/* ============================================
   NEWS DETAIL PAGE
   ============================================ */

/* ---- HERO SECTION ---- */
/* FIX: section.article-hero (0,1,1) beats base.css section[class*="-hero"] (0,1,1)
   by source order since this file loads AFTER desktop/base.css */
section.article-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1a2744 100%);
    padding: 220px 0 80px !important;
    color: white;
    position: relative;
    height: auto !important;
    min-height: 520px !important;
    max-height: none !important;
    display: block !important;
    align-items: initial !important;
    justify-content: initial !important;
    overflow: visible !important;
}

section.article-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: auto !important;
    display: block !important;
    align-items: initial !important;
    justify-content: initial !important;
}

section.article-hero .article-category {
    display: inline-block;
    background: rgba(200, 169, 126, 0.2);
    backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px !important;
    border: 1px solid rgba(200, 169, 126, 0.5);
    color: #f0e6d8;
    font-weight: 600;
}

section.article-hero h1 {
    font-size: 2.8rem;
    margin: 0 0 30px 0 !important;
    padding: 0 !important;
    font-weight: 700;
    color: white;
    line-height: 1.3;
}

section.article-hero .article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center !important;
    align-items: center;
    gap: 40px;
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---- STICKY NAV ---- */
.back-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    pointer-events: auto;
}

.sticky-nav-container {
    position: -webkit-sticky;
    position: sticky;
    top: 144px; /* Fallback: JS sets nav_height + 24px dynamically */
    z-index: 100;
    pointer-events: none;
    margin-bottom: 40px;
    margin-top: 40px;
    max-width: 1400px; 
    margin-left: auto;
    margin-right: auto;
    padding: 0 60px 0 0; 
    box-sizing: border-box;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.back-link-btn:hover {
    background: var(--color-accent, #c8a97e);
    color: white;
    border-color: var(--color-accent, #c8a97e);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    transform: translateX(-5px);
}

/* ---- MAIN CONTENT ---- */
.article-container {
    background: white;
    margin: 40px auto;
    max-width: 1200px;
    padding: 80px 60px;
    position: relative;
    z-index: 10;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-body p {
    margin-bottom: 25px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 6px;
}

.article-body h2 {
    font-size: 1.8rem;
    color: var(--color-primary, #1a2744);
    margin: 50px 0 25px;
    font-weight: 700;
}

.article-body blockquote {
    border-left: 4px solid var(--color-accent, #c8a97e);
    margin: 40px 0;
    padding: 20px 30px;
    background: #fdfdfc;
    font-style: italic;
    font-size: 1.25rem;
    color: #555;
}

.article-source {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e8e8e8;
    font-size: 0.95rem;
    color: var(--color-text-muted, #666);
}

/* ---- RELATED SECTION ---- */
.related-section {
    padding: 60px 0 80px;
    background: #f5f5f0;
}

.related-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--color-primary, #1a2744);
    font-weight: 700;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.related-image {
    height: 180px;
    background-color: #e8eaf0;
    background-size: cover;
    background-position: center;
}

.related-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-date {
    font-size: 0.85rem;
    color: var(--color-text-muted, #666);
    margin-bottom: 10px;
}

.related-title {
    color: var(--color-primary, #1a2744);
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 15px;
    font-size: 1.05rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-link {
    font-size: 0.9rem;
    color: var(--color-accent, #c8a97e);
    font-weight: 600;
    margin-top: auto;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding: 100px 0 60px;
    }
    
    .article-hero h1 {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .article-container {
        padding: 40px 25px;
        margin-bottom: 40px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .related-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding-bottom: 20px;
        scrollbar-width: none;
    }
    
    .related-grid::-webkit-scrollbar {
        display: none;
    }
    
    .related-card {
        min-width: 260px;
        flex: 0 0 85%;
        scroll-snap-align: center;
    }
}
