/* =================================
   BLOG SPECIFIC STYLES
   ================================= */

/* Blog uses the same font stack as main site - let styles-new.css handle it */



/* Blog specific spacing adjustments - let main CSS handle banner positioning */
/* Remove any overrides that interfere with banner positioning */

/* Blog Hero Section */
.blog-hero {
    background: var(--bg-primary) !important;
    padding: 80px 0 60px !important;
    text-align: center !important;
    position: relative !important;
    margin-top: var(--nav-height) !important; /* Always below navbar */
}

.blog-hero h1 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Main Section */
.blog-section {
    background: #ffffff !important;
    padding: 80px 0 !important;
    min-height: 70vh !important;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Blog Cards */
.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-card:hover h2 {
    color: #667eea;
    transition: color 0.3s ease;
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 3/2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.blog-card-content {
    padding: 2rem;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.blog-card-date {
    font-weight: 500;
}

.blog-card-read-time {
    color: #9ca3af;
}

.blog-card h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-card-cta {
    display: inline-flex;
    align-items: center;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-cta:hover {
    color: #5a67d8;
}

.blog-card-cta svg {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.blog-card-cta:hover svg {
    transform: translateX(4px);
}

/* Code Block Styles */
.cm-editor {
    background: #1e1e1e !important;
    border: 1px solid #333 !important;
    border-radius: 8px !important;
    margin: 1.5rem 0 !important;
    overflow: hidden !important;
}

.cm-scroller {
    background: #1e1e1e !important;
    padding: 0 !important;
}

.cm-content {
    background: #1e1e1e !important;
    color: #d4d4d4 !important;
    font-family: 'JetBrains Mono', 'Courier New', monospace !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    padding: 1rem !important;
    min-height: auto !important;
}

.cm-line {
    color: #d4d4d4 !important;
    line-height: 1.5 !important;
}

/* Syntax highlighting for code */
.cm-content .ͼ1p,
.cm-content .ͼb {
    color: #569cd6 !important; /* Keywords (for, in, do) */
    font-weight: 600 !important;
}

.cm-content .ͼ1r {
    color: #9cdcfe !important; /* Flags (-o) */
}

.cm-content .ͼ1y,
.cm-content .ͼe {
    color: #ce9178 !important; /* Strings */
}

/* Remove cursor and selection layers for static display */
.cm-cursorLayer,
.cm-selectionLayer {
    display: none !important;
}

/* Blog States */
.blog-loading {
    text-align: center;
    padding: 4rem 0;
    color: #6b7280;
}

.blog-empty {
    text-align: center;
    padding: 4rem 0;
    color: #6b7280;
}

/* =================================
   ARTICLE SPECIFIC STYLES
   ================================= */

/* Article Hero */
.article-hero {
    background: var(--bg-primary);
    padding: 120px 0 40px;
    margin-top: var(--nav-height) !important; /* Always below navbar */
}

.article-content {
    background: #ffffff;
    min-height: 80vh;
    padding: 0;
}

.article-header {
    background: var(--bg-primary);
    padding: 0 0 80px;
    margin-top: var(--nav-height) !important; /* Always below navbar */
}

.article-header .container {
    max-width: 800px;
}

/* Article Featured Image */
.article-featured-image {
    padding: 2rem 0;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.article-featured-image .featured-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    margin-top: 3rem !important;
    padding-top: 2rem !important;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.article-date {
    font-weight: 500;
}

.article-read-time {
    color: var(--text-muted);
}

.article-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-description {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Article Body */
.article-body {
    padding: 80px 0;
}

.article-body .container {
    max-width: 800px;
}

.article-body h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 3rem 0 1.5rem 0;
    line-height: 1.3;
}

.article-body h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 2.5rem 0 1rem 0;
    line-height: 1.4;
}

.article-body p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin: 1rem 0;
    padding-left: 1.8rem;
}

.article-body li {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.125rem;
    line-height: 1.3;
    color: #374151;
    margin-bottom: 0.2rem;
}

/* Nested lists should have tighter spacing */
.article-body li ul,
.article-body li ol {
    margin: 0.3rem 0;
    padding-left: 1.4rem;
}

.article-body li li {
    line-height: 1.25;
    margin-bottom: 0.15rem;
}

.article-body strong {
    font-weight: 600;
    color: #111827;
}

.article-body em {
    font-style: italic;
    color: #6b7280;
}

.article-body a {
    color: #667eea;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.article-body a:hover {
    color: #5a67d8;
}

/* Article Elements */
.blog-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Table Styles */
.article-body table,
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.article-body table th,
.article-body table td,
.comparison-table th,
.comparison-table td {
    padding: 1.25rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.article-body table th,
.comparison-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #cbd5e1;
}

.article-body table td,
.comparison-table td {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
}

/* First column styling */
.article-body table td:first-child,
.comparison-table td:first-child {
    font-weight: 600;
    color: #334155;
    background: #f8fafc;
}

/* Hover effects */
.article-body table tbody tr:hover,
.comparison-table tbody tr:hover {
    background: #f1f5f9;
    transition: background-color 0.2s ease;
}

/* Remove border from last row */
.article-body table tbody tr:last-child td,
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* Alternating row colors */
.article-body table tbody tr:nth-child(even),
.comparison-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.article-body table tbody tr:nth-child(even):hover,
.comparison-table tbody tr:nth-child(even):hover {
    background: #f1f5f9;
}

/* Status/highlight cells */
.article-body table .status-yes,
.comparison-table .status-yes {
    color: #059669;
    font-weight: 600;
}

.article-body table .status-no,
.comparison-table .status-no {
    color: #dc2626;
    font-weight: 600;
}

.article-body table .status-limited,
.comparison-table .status-limited {
    color: #d97706;
    font-weight: 600;
}

.blog-quote {
    background: #f8fafc;
    border-left: 4px solid #667eea;
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 1.25rem;
    color: #475569;
}

/* Article Navigation */
.article-nav {
    background: #f9fafb;
    padding: 40px 0;
    border-top: 1px solid #e5e7eb;
}

.article-nav .container {
    max-width: 800px;
    text-align: center;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-bottom: 2rem;
}

.back-to-blog:hover {
    color: #5a67d8;
}

.back-to-blog svg {
    margin-right: 0.5rem;
}

.article-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.article-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white !important;
}

.article-cta p {
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white !important;
}

.article-cta .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.article-cta .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Article States */
.article-loading {
    text-align: center;
    padding: 4rem 0;
    color: #6b7280;
    background: #ffffff;
}

.article-error {
    text-align: center;
    padding: 4rem 0;
    color: #dc2626;
    background: #ffffff;
}



/* =================================
   RESPONSIVE DESIGN
   ================================= */

@media (max-width: 768px) {
    /* Blog responsive */
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 0 1rem !important;
    }
    
    .blog-card-content {
        padding: 1.5rem !important;
    }
    
    .blog-hero {
        padding: 60px 0 40px !important;
    }
    
    .blog-section {
        padding: 40px 0 !important;
    }
    
    /* Article responsive */
    .article-hero {
        padding: 100px 0 30px;
    }
    
    .article-header {
        padding: 0 0 60px;
    }
    
    .article-body {
        padding: 60px 0;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
        margin-top: 2rem !important;
        padding-top: 1.5rem !important;
    }

    /* Article Featured Image - Mobile */
    .article-featured-image {
        padding: 1.5rem 0;
    }

    .article-featured-image .featured-img {
        border-radius: 8px;
        max-width: 100%;
    }
    
    .article-body h2 {
        font-size: 1.75rem;
        margin: 2rem 0 1rem 0;
    }
    
    .article-body h3 {
        font-size: 1.25rem;
        margin: 1.5rem 0 0.75rem 0;
    }
    
    .article-body p,
    .article-body li {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    /* Tighter spacing for lists on mobile */
    .article-body ul,
    .article-body ol,
    .article-content ul,
    .article-content ol {
        margin: 0.8rem 0;
        padding-left: 1.3rem;
    }
    
    .article-body li,
    .article-content li {
        margin-bottom: 0.15rem;
        line-height: 1.25;
    }
    
    .article-body li p,
    .article-content li p {
        margin: 0;
        padding: 0;
        line-height: 1.25;
        margin-bottom: 0.1rem;
    }
    
    .article-body li p:last-child,
    .article-content li p:last-child {
        margin-bottom: 0;
    }
    
    .article-body li ul,
    .article-body li ol,
    .article-content li ul,
    .article-content li ol {
        margin: 0.2rem 0;
        padding-left: 1rem;
    }
    
    .article-body li li,
    .article-content li li {
        margin-bottom: 0.1rem;
        line-height: 1.2;
    }
    
    .article-body li li p,
    .article-content li li p {
        margin: 0;
        line-height: 1.2;
        margin-bottom: 0.05rem;
    }
    
    /* Even tighter for data-spread="false" on mobile */
    ul[data-spread="false"],
    ol[data-spread="false"] {
        margin: 0.6rem 0;
    }
    
    ul[data-spread="false"] li,
    ol[data-spread="false"] li {
        margin-bottom: 0.1rem;
    }
    
    ul[data-spread="false"] li p,
    ol[data-spread="false"] li p {
        margin: 0;
        line-height: 1.2;
    }
    
    .blog-quote {
        padding: 1.5rem;
        font-size: 1.125rem;
    }
    
        /* Table responsive styles */
    .article-body table,
    .comparison-table {
        font-size: 0.875rem;
        margin: 2rem 0;
        border-radius: 8px;
    }

    .article-body table th,
    .article-body table td,
    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.75rem;
        font-size: 0.875rem;
    }

    .article-body table th,
    .comparison-table th {
        font-size: 0.8rem;
        padding: 1rem 0.75rem;
    }

    /* Stack table on very small screens */
    @media (max-width: 640px) {
        .article-body table,
        .comparison-table {
            display: block;
            overflow-x: auto;
            white-space: nowrap;
            border-radius: 8px;
        }
        
        .article-body table thead,
        .comparison-table thead {
            display: block;
        }
        
        .article-body table tbody,
        .comparison-table tbody {
            display: block;
        }
        
        .article-body table tr,
        .comparison-table tr {
            display: block;
        }
        
        .article-body table th,
        .article-body table td,
        .comparison-table th,
        .comparison-table td {
            display: inline-block;
            padding: 0.75rem 0.5rem;
            min-width: 120px;
            text-align: center;
            vertical-align: top;
        }
    }
    

}

@media (max-width: 480px) {
    /* Additional responsive styles for very small screens */
}

/* Table styling for mobile responsiveness */
.blog-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog-article table th,
.blog-article table td {
    padding: 12px 8px;
    text-align: left;
    border: 1px solid #e2e8f0;
    vertical-align: top;
    word-wrap: break-word;
}

.blog-article table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #1a202c;
    border-bottom: 2px solid #e2e8f0;
}

.blog-article table td {
    background-color: #fff;
}

.blog-article table tr:nth-child(even) td {
    background-color: #f8fafc;
}

.blog-article table tr:hover td {
    background-color: #edf2f7;
}

/* Mobile responsiveness for tables */
@media (max-width: 768px) {
    .blog-article table {
        font-size: 12px;
        border-collapse: separate;
        border-spacing: 0;
        margin: 1rem 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .blog-article table th,
    .blog-article table td {
        padding: 8px 4px;
        border: 1px solid #d1d5db;
        border-collapse: separate;
        min-height: 40px;
        line-height: 1.2;
    }
    
    .blog-article table th {
        background-color: #f3f4f6;
        font-weight: 700;
        border-bottom: 2px solid #d1d5db;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .blog-article table td {
        background-color: #ffffff;
        border-right: 1px solid #d1d5db;
        border-bottom: 1px solid #d1d5db;
    }
    
    .blog-article table tr:nth-child(even) td {
        background-color: #f9fafb;
    }
    
    /* Make table horizontally scrollable on very small screens */
    .blog-article table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .blog-article table thead,
    .blog-article table tbody,
    .blog-article table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
    
    .blog-article table thead {
        width: calc(100% - 1em);
    }
    
    .blog-article table tbody {
        overflow-y: auto;
        height: auto;
    }
}

@media (max-width: 480px) {
    .blog-article table {
        font-size: 11px;
        margin: 0.5rem 0;
    }
    
    .blog-article table th,
    .blog-article table td {
        padding: 6px 3px;
        min-width: 80px;
        border-width: 1px;
        border-style: solid;
        border-color: #d1d5db;
    }
    
    /* Ensure proper borders for each cell */
    .blog-article table th:first-child,
    .blog-article table td:first-child {
        border-left: 1px solid #d1d5db;
    }
    
    .blog-article table th:last-child,
    .blog-article table td:last-child {
        border-right: 1px solid #d1d5db;
    }
    
    .blog-article table tr:first-child th {
        border-top: 1px solid #d1d5db;
    }
    
    .blog-article table tr:last-child td {
        border-bottom: 1px solid #d1d5db;
    }
}

/* Ensure table container has proper spacing */
.blog-article .table-container {
    margin: 2rem 0;
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .blog-article .table-container {
        margin: 1rem -1rem;
        border-radius: 0;
    }
}

/* List styling for blog articles - targeting specific structure used in blog posts */
.article-body ul,
.article-body ol,
.article-content ul,
.article-content ol {
    margin: 1rem 0;
    padding-left: 1.8rem;
}

.article-body li,
.article-content li {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.125rem;
    line-height: 1.3;
    color: #374151;
    margin-bottom: 0.2rem;
}

/* Specific targeting for li > p structure used in blog posts */
.article-body li p,
.article-content li p {
    margin: 0;
    padding: 0;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

/* Remove extra margin from last paragraph in list items */
.article-body li p:last-child,
.article-content li p:last-child {
    margin-bottom: 0;
}

/* Nested lists should have tighter spacing */
.article-body li ul,
.article-body li ol,
.article-content li ul,
.article-content li ol {
    margin: 0.3rem 0;
    padding-left: 1.4rem;
}

.article-body li li,
.article-content li li {
    line-height: 1.25;
    margin-bottom: 0.15rem;
}

.article-body li li p,
.article-content li li p {
    line-height: 1.25;
    margin-bottom: 0.15rem;
}

/* Override any existing paragraph spacing within lists */
.article-body ul p,
.article-body ol p,
.article-content ul p,
.article-content ol p {
    margin: 0;
    line-height: 1.3;
}

/* Specific styling for data-spread="false" lists to be even more compact */
ul[data-spread="false"],
ol[data-spread="false"] {
    margin: 0.8rem 0;
}

ul[data-spread="false"] li,
ol[data-spread="false"] li {
    margin-bottom: 0.15rem;
}

ul[data-spread="false"] li p,
ol[data-spread="false"] li p {
    margin: 0;
    line-height: 1.25;
}

/* =================================
   404 ERROR PAGE STYLES
   ================================= */

.article-404 {
    background: #ffffff;
    padding: 80px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.error-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.error-icon {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.error-icon svg {
    opacity: 0.6;
}

.error-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.error-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.error-description,
.error-suggestion {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.error-suggestion {
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions .btn {
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
}

.error-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.error-actions .btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.error-actions .btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.error-actions .btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

/* Suggested Articles Section */
.suggested-articles {
    margin-top: 4rem;
}

.suggested-articles-header {
    text-align: center;
    margin-bottom: 3rem;
}

.suggested-articles-header h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.suggested-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.suggested-article {
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.suggested-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.suggested-article-image {
    width: 100%;
    aspect-ratio: 2/1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.suggested-article-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.suggested-article-content {
    padding: 1.5rem;
}

.suggested-article-meta {
    margin-bottom: 0.75rem;
}

.suggested-article-date {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.suggested-article h4 {
    margin-bottom: 0.75rem;
}

.suggested-article h4 a {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.suggested-article h4 a:hover {
    color: #667eea;
}

.suggested-article p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .article-404 {
        padding: 60px 0;
        min-height: 50vh;
    }
    
    .error-content {
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    .error-title {
        font-size: 2.5rem;
    }
    
    .error-subtitle {
        font-size: 1.25rem;
    }
    
    .error-description,
    .error-suggestion {
        font-size: 1rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .suggested-articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .suggested-article-content {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .error-icon svg {
        width: 80px;
        height: 80px;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-subtitle {
        font-size: 1.125rem;
    }
}