/* Blog Styles - Updated to match MiRanfla design system */
:root {
    /* MiRanfla color palette */
    --blog-primary: #2563eb;
    --blog-secondary: #1e40af;
    --blog-accent: #2196f3;
    --blog-text: #223046;
    --blog-text-light: #6b7280;
    --blog-bg: #ffffff;
    --blog-bg-light: #f9fafb;
    --blog-bg-dark: #223046;
    --blog-bg-darker: #10151e;
    --blog-border: #e5e7eb;
    --blog-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --blog-shadow-lg: 0 8px 32px rgba(34, 48, 70, 0.18);
    --blog-gradient: radial-gradient(ellipse at 60% 40%, #223046 60%, #10151e 100%);
}

/* Global typography to match MiRanfla */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--blog-text);
}

/* Blog Header - Updated to match MiRanfla header style */
.blog-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--blog-shadow);
}

.blog-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--blog-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.blog-logo img {
    height: 40px;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.blog-logo:hover img {
    transform: scale(1.05);
}

.blog-header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.blog-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--blog-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--blog-primary);
}

.blog-search {
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--blog-border);
    border-radius: 8px;
    width: 250px;
    font-size: 0.875rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.search-input:focus {
    outline: none;
    border-color: var(--blog-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-btn {
    background: var(--blog-primary);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: var(--blog-secondary);
}

/* Blog Layout */
.blog-main {
    background: var(--blog-bg-light);
    min-height: calc(100vh - 200px);
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.blog-content {
    background: var(--blog-bg);
    border-radius: 18px;
    box-shadow: var(--blog-shadow-lg);
    overflow: hidden;
}

/* Blog Hero - Updated to match MiRanfla hero style */
.blog-hero {
    background: var(--blog-gradient);
    color: #f3f6fa;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.blog-hero > * {
    position: relative;
    z-index: 1;
}

.blog-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f3f6fa;
    line-height: 1.2;
}

.blog-hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    color: #f3f6fa;
}

.blog-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #f3f6fa;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    color: #f3f6fa;
}

/* Featured Posts */
.featured-posts {
    padding: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--blog-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.featured-post {
    background: var(--blog-bg-light);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--blog-border);
}

.featured-post:hover {
    transform: translateY(-2px);
    box-shadow: var(--blog-shadow-lg);
}

.featured-post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--blog-text-light);
}

.post-category {
    background: var(--blog-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.post-date {
    color: var(--blog-text-light);
}

.post-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--blog-text-light);
}

.featured-post-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.featured-post-title a {
    color: var(--blog-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-post-title a:hover {
    color: var(--blog-primary);
}

.featured-post-excerpt {
    color: var(--blog-text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tag {
    background: var(--blog-bg-light);
    color: var(--blog-text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tag:hover {
    background: var(--blog-primary);
    color: white;
    text-decoration: none;
}

/* All Posts Section */
.all-posts {
    padding: 2rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.blog-post-card {
    background: var(--blog-bg-light);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--blog-border);
}

.blog-post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--blog-shadow-lg);
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.post-title a {
    color: var(--blog-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--blog-primary);
}

.post-excerpt {
    color: var(--blog-text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--blog-text-light);
}

.read-more {
    color: var(--blog-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--blog-secondary);
    text-decoration: none;
}

/* Categories Section */
.categories-section {
    padding: 2rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--blog-bg);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--blog-border);
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--blog-shadow-lg);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--blog-primary);
    margin-bottom: 1rem;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--blog-text);
}

.category-description {
    color: var(--blog-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Category links in main content (category cards) */
.category-card .category-link {
    display: inline-block;
    background: var(--blog-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.category-card .category-link:hover {
    background: var(--blog-secondary);
    color: white;
    text-decoration: none;
}

/* Newsletter Section */
.newsletter-section {
    background: var(--blog-gradient);
    color: #f3f6fa;
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem 0;
}

.newsletter-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f3f6fa;
}

.newsletter-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: #f3f6fa;
}

.newsletter-form-large {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    gap: 1rem;
}

.newsletter-input-large {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.newsletter-btn-large {
    background: var(--blog-accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-btn-large:hover {
    background: #1976d2;
}

.newsletter-disclaimer {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 1rem;
    color: #f3f6fa;
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-cta {
    background: var(--blog-gradient);
    color: #f3f6fa;
    padding: 2rem;
    border-radius: 18px;
    text-align: center;
}

.sidebar-cta h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f3f6fa;
}

.sidebar-cta p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: #f3f6fa;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--blog-accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-btn:hover {
    background: #1976d2;
    color: white;
    text-decoration: none;
}

.sidebar-section {
    background: var(--blog-bg);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--blog-shadow);
    border: 1px solid var(--blog-border);
    position: relative;
}

.sidebar-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--blog-gradient);
    border-radius: 18px 18px 0 0;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--blog-text);
    border-bottom: 2px solid var(--blog-primary);
    padding-bottom: 0.75rem;
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--blog-primary);
    border-radius: 1px;
}

.sidebar-title i {
    color: var(--blog-primary);
    font-size: 1.25rem;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-list li {
    margin: 0;
}

/* Category links in sidebar */
.sidebar-section .category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--blog-text);
    text-decoration: none;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid transparent;
    background: var(--blog-bg-light);
}

.sidebar-section .category-link:hover {
    color: var(--blog-primary);
    text-decoration: none;
    background: var(--blog-primary);
    color: white;
    border-color: var(--blog-primary);
    transform: translateX(4px);
}

.category-count {
    color: var(--blog-text-light);
    font-size: 0.875rem;
    font-weight: 400;
    background: var(--blog-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--blog-border);
    transition: all 0.3s ease;
}

.sidebar-section .category-link:hover .category-count {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-post {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--blog-border);
}

.recent-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.recent-post-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.recent-post-title a {
    color: var(--blog-text);
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.recent-post-title a:hover {
    color: var(--blog-primary);
    text-decoration: none;
}

.recent-post-title a:hover {
    color: var(--blog-primary);
}

.recent-post-date {
    font-size: 0.75rem;
    color: var(--blog-text-light);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-link {
    background: var(--blog-bg-light);
    color: var(--blog-text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: var(--blog-primary);
    color: white;
    text-decoration: none;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--blog-border);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.newsletter-btn {
    background: var(--blog-primary);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-btn:hover {
    background: var(--blog-secondary);
}

/* Blog Footer */
.blog-footer {
    background: var(--blog-bg-dark);
    color: #f3f6fa;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.blog-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.blog-footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f3f6fa;
}

.blog-footer-section ul {
    list-style: none;
    padding: 0;
}

.blog-footer-section li {
    margin-bottom: 0.5rem;
}

.blog-footer-section a {
    color: #f3f6fa;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.blog-footer-section a:hover {
    opacity: 1;
    text-decoration: none;
}

.blog-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    opacity: 0.8;
    color: #f3f6fa;
}

/* Blog Post Full */
.blog-post-full {
    padding: 2rem;
}

.post-header {
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--blog-text);
}

.post-excerpt {
    font-size: 1.125rem;
    color: var(--blog-text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.post-featured-image {
    margin-bottom: 2rem;
}

.post-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.post-content {
    line-height: 1.8;
    color: var(--blog-text);
}

.post-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--blog-text);
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--blog-text);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--blog-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--blog-text-light);
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--blog-border);
}

.post-share h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--blog-text);
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.share-btn:hover {
    opacity: 0.8;
    color: white;
    text-decoration: none;
}

.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }
.share-linkedin { background: #0077b5; }
.share-whatsapp { background: #25d366; }

.post-cta {
    background: var(--blog-gradient);
    color: #f3f6fa;
    padding: 2rem;
    border-radius: 18px;
    text-align: center;
    margin: 2rem 0;
}

.cta-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f3f6fa;
}

.cta-content p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: #f3f6fa;
}

/* Related Posts */
.related-posts {
    margin-top: 3rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-post {
    background: var(--blog-bg-light);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--blog-border);
}

.related-post:hover {
    transform: translateY(-2px);
    box-shadow: var(--blog-shadow-lg);
}

.related-post-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.related-post-title a {
    color: var(--blog-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: var(--blog-primary);
}

.related-post-excerpt {
    font-size: 0.875rem;
    color: var(--blog-text-light);
}

/* Comments Section */
.comments-section {
    margin-top: 3rem;
}

.comments-header {
    margin-bottom: 2rem;
}

.comments-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--blog-text);
}

.comments-header p {
    color: var(--blog-text-light);
}

.comments-placeholder {
    background: var(--blog-bg-light);
    border: 2px dashed var(--blog-border);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    color: var(--blog-text-light);
}

.comments-placeholder i {
    font-size: 3rem;
    color: var(--blog-text-light);
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* No Posts State */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
}

.no-posts-content i {
    font-size: 4rem;
    color: var(--blog-text-light);
    margin-bottom: 2rem;
    opacity: 0.5;
}

.no-posts-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--blog-text);
}

.no-posts-content p {
    color: var(--blog-text-light);
    margin-bottom: 2rem;
}

/* Category and Tag Headers */
.category-header,
.tag-header {
    background: var(--blog-gradient);
    color: #f3f6fa;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.category-title,
.tag-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f3f6fa;
}

.category-description,
.tag-description {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    color: #f3f6fa;
}

.category-stats,
.tag-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.category-post-count,
.tag-post-count {
    text-align: center;
}

/* Search Header */
.search-header {
    background: var(--blog-gradient);
    color: #f3f6fa;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.search-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f3f6fa;
}

.search-query {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    color: #f3f6fa;
}

.search-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.search-result-count {
    text-align: center;
}

/* Category CTA and Search Actions */
.category-cta,
.search-actions {
    background: var(--blog-bg-light);
    border: 1px solid var(--blog-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.cta-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--blog-text);
}

.cta-content p {
    color: var(--blog-text-light);
    margin-bottom: 1.5rem;
}

.no-category-posts,
.no-search-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--blog-text-light);
}

/* Search Suggestions */
.search-suggestions {
    background: var(--blog-bg-light);
    border: 1px solid var(--blog-border);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.search-suggestions h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--blog-text);
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
}

.search-suggestions li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.search-suggestions li:before {
    content: '•';
    color: var(--blog-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Secondary CTA Button */
.cta-btn.secondary {
    background: transparent;
    color: var(--blog-primary);
    border: 2px solid var(--blog-primary);
}

.cta-btn.secondary:hover {
    background: var(--blog-primary);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header improvements for mobile */
    .blog-header {
        padding: 0.75rem 0;
    }
    
    .blog-header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .blog-logo {
        font-size: 1.25rem;
    }
    
    .blog-logo img {
        height: 32px;
    }
    
    .blog-header-right {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .blog-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .blog-search {
        width: 100%;
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
        max-width: 300px;
    }
    
    /* Layout improvements */
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .blog-hero {
        padding: 2rem 1rem;
    }
    
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .blog-hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .featured-grid,
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-title {
        font-size: 1rem;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .blog-footer-content {
        grid-template-columns: 1fr;
    }
    
    .blog-nav-link {
        margin-left: 0.5rem;
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-btn {
        width: 100%;
        text-align: center;
    }
}

/* Tablet specific adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .blog-header-content {
        padding: 0 1.5rem;
    }
    
    .blog-nav {
        gap: 1.5rem;
    }
    
    .search-input {
        width: 200px;
    }
    
    .blog-layout {
        padding: 1.5rem;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Header for very small screens */
    .blog-header {
        padding: 0.5rem 0;
    }
    
    .blog-header-content {
        padding: 0 0.75rem;
        gap: 0.75rem;
    }
    
    .blog-logo {
        font-size: 1.125rem;
    }
    
    .blog-logo img {
        height: 28px;
    }
    
    .blog-nav {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .search-input {
        max-width: 250px;
        font-size: 0.8rem;
    }
    
    /* Content adjustments */
    .blog-hero-title {
        font-size: 1.75rem;
    }
    
    .post-title {
        font-size: 0.875rem;
    }
    
    .featured-posts,
    .all-posts {
        padding: 1rem;
    }
    
    .blog-post-full {
        padding: 1rem;
    }
    
    .blog-layout {
        padding: 0.75rem;
    }
} 

/* Mejora de contraste para la descripción de la categoría en las tarjetas principales */
.category-card .category-description {
    color: var(--blog-text);
    font-weight: 500;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-shadow: none;
}

/* Si el fondo de la tarjeta cambia en hover, mantener el color del texto */
.category-card:hover .category-description {
    color: var(--blog-text);
}

/* Blog header navigation link */
.blog-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blog-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.blog-nav-link:hover {
    color: var(--blog-primary);
    background: rgba(37, 99, 235, 0.1);
    text-decoration: none;
}

/* App links in sidebar */
.app-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.app-links li {
    margin-bottom: 0.75rem;
}

.app-links a {
    color: var(--blog-text);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    font-weight: 500;
}

.app-links a:hover {
    color: var(--blog-primary);
    background: rgba(37, 99, 235, 0.1);
    text-decoration: none;
    transform: translateX(4px);
}

.app-links i {
    width: 16px;
    text-align: center;
    color: var(--blog-primary);
}

/* CTA buttons with multiple options */
.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}

.cta-btn.primary {
    background: var(--blog-primary);
    color: white;
    border: 2px solid var(--blog-primary);
}

.cta-btn.primary:hover {
    background: var(--blog-secondary);
    border-color: var(--blog-secondary);
    color: white;
}

.cta-btn.secondary {
    background: transparent;
    color: var(--blog-primary);
    border: 2px solid var(--blog-primary);
}

.cta-btn.secondary:hover {
    background: var(--blog-primary);
    color: white;
} 

/* Quick Actions in sidebar */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.quick-action-btn.primary {
    background: var(--blog-primary);
    color: white;
    border: 2px solid var(--blog-primary);
}

.quick-action-btn.primary:hover {
    background: var(--blog-secondary);
    border-color: var(--blog-secondary);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.quick-action-btn.secondary {
    background: transparent;
    color: var(--blog-primary);
    border: 2px solid var(--blog-primary);
}

.quick-action-btn.secondary:hover {
    background: var(--blog-primary);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
} 