.feature-text-link, .card-text-link { display:block; text-decoration:none; color:var(--text-primary); position:relative; padding:0; border-radius:0; transition:color .25s ease; }
.feature-text-link:hover, .card-text-link:hover { background:transparent; box-shadow:none; }
.feature-text-link .featured-excerpt, .card-text-link .card-excerpt { color:var(--text-secondary); transition:color .25s ease; }
.feature-text-link:hover .featured-excerpt, .card-text-link:hover .card-excerpt { color:var(--text-primary); }
.read-more-inline { transition:color .25s ease, background-color .25s ease; }
.read-more-inline:hover { text-decoration:none; }
/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #2d6e3e;
    --primary-dark: #1e4a2b;
    --secondary-color: #8fbc8f;
    --accent-color: #ff6b35;
    --text-primary: #2c3e35;
    --text-secondary: #6c757d;
    --text-light: #8e9297;
    --background: #ffffff;
    --background-light: #f8f9fa;
    --background-section: #f4f6f5;
    --border-light: #e9ecef;
    --shadow-light: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-medium: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --transition: all 0.3s ease;
    --border-radius: 0.5rem;
    --font-family-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-family-headings: 'Montserrat Alternates', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    /* Spacing scale */
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-primary);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--background);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
}

/* ===== BUTTON STYLES ===== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    font-family: var(--font-family-primary);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ===== NAVIGATION ===== */
.navbar {
    box-shadow: var(--shadow-light);
    padding: 0.65rem 0; /* reduced height */
    background-color: #ffffff !important; /* force fully opaque */
    min-height:56px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-family: var(--font-family-headings);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.brand-icon {
    height: 48px;          /* slightly smaller to reduce header height */
    width: auto;
    margin-right: 0;
    object-fit: contain;
    display: block;
    transition:height .25s ease;
}

/* Responsive tweak: slightly smaller on very small screens */
@media (max-width: 576px) {
    .brand-icon { height: 42px; }
}

/* Hard override to ensure absolutely no translucency behind logo / burger */
.navbar, .navbar.navbar-light, .navbar.bg-white, .navbar .container, .navbar .container-fluid {
    background:#fff !important;
    background-color:#fff !important;
}
/* Remove any accidental inherited opacity */
.navbar, .navbar * { opacity:unset; }

.brand-text {
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-medium);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
}

.btn-search {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== NAV TOOLS ROW (Search + Language) ===== */
.nav-tools-row { display:flex; align-items:center; gap:.65rem; margin-left:1rem; }
.nav-tools-row .nav-tool-search { flex:0 0 auto; }
@media (max-width: 991.98px){
    .navbar-collapse .nav-tools-row { width:100%; margin:0 0 .35rem 0; gap:.55rem; justify-content:space-between; padding:0 .25rem; }
    .nav-tools-row { margin-left:0; }
    .navbar .nav-tools-row { order: 3; }
    .nav-tools-row .btn-search { width:32px; height:32px; font-size:.85rem; }
    .nav-tools-row .language-selector.lang-dropdown { margin-left:0; }
}

    /* ===== INLINE HEADER SEARCH (Always Visible Mobile) ===== */
    .nav-inline-search { position:relative; display:flex; align-items:center; gap:.45rem; background:#f2f4f3; padding:.3rem .65rem; border-radius:30px; width:100%; max-width:260px; }
    .nav-inline-search .search-icon-static { color:var(--text-secondary); font-size:.9rem; line-height:1; display:flex; align-items:center; }
    .nav-inline-search .search-input { flex:1; border:none; background:transparent; padding:0; font-size:.85rem; outline:none; min-width:0; }
    .nav-inline-search .search-input::placeholder { color:#777; }
    .nav-inline-search .search-submit { border:none; background:transparent; padding:.3rem; line-height:1; display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--primary-color); font-size:.95rem; }
    .nav-inline-search .search-submit:hover { color:var(--primary-dark); }
    .nav-inline-search .search-submit:focus-visible { outline:2px solid var(--primary-color); outline-offset:2px; border-radius:6px; }
    @media (max-width: 420px){ .nav-inline-search { max-width:210px; } }

    /* Responsive visibility helpers for header tools */
    .desktop-only { display:inline-flex; }
    .mobile-only { display:none; }
    @media (max-width: 991.98px){
        .desktop-only { display:none !important; }
        .mobile-only { display:flex !important; }
    }

/* ===== HERO SECTION ===== */
.hero-section {
    height: 60vh;
    background: linear-gradient(rgba(45, 110, 62, 0.7), rgba(30, 74, 43, 0.8)),
                url('https://images.unsplash.com/photo-1416879595882-3373a0480b5b?w=1920&h=1080&fit=crop') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 4rem;
}

.hero-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 600px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #f5fff9; /* lighter for contrast */
}

.hero-cta {
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    display: inline-block;
}

.hero-cta:hover {
    background-color: #e55a2b;
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* ===== SECTION STYLES ===== */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
}
    .category-articles-section .section-title, .subcategories-section .section-title { margin-bottom:2rem; }

.section-title:after {
    content: '';
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.featured-section {
    padding: 4rem 0;
    background-color: var(--background);
}

.latest-section {
    padding: 4rem 0;
    background-color: var(--background-section);
}

/* ===== CARD STYLES ===== */
.featured-card,
.article-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    /* Remove card lift/shadow animation, keep static look */
    transition: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.featured-card .card-image img {
    height: 300px;
}

.card-image:hover img {
    transform: scale(1.1);
}

.card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.featured-card .card-title {
    font-size: 1.5rem;
}

.card-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.meta-date,
.meta-read {
    display: flex;
    align-items: center;
}

.meta-date:before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.5rem;
}

.meta-read:before {
    content: '\f06e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.5rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* ===== LOAD MORE BUTTON ===== */
.load-more-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
}

.load-more-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 4rem 0;
    color: white;
}

.newsletter-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.newsletter-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form .input-group {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.newsletter-form .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    padding: 1rem 2rem;
}

.newsletter-form .btn:hover {
    background-color: #e55a2b;
}

.newsletter-privacy {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* ===== SEARCH MODAL ===== */
.search-form .input-group-lg .form-control {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    border: 2px solid var(--border-light);
    padding: 1rem 1.5rem;
}

.search-form .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 1rem 1.5rem;
}

.popular-searches .badge {
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.popular-searches .badge:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 56px;          /* Match header logo height */
    width: auto;           /* Preserve aspect ratio for wide logo */
    margin-right: 0;       /* No text next to it now */
    object-fit: contain;   /* Ensure full logo visible */
    display: block;
}

@media (max-width: 576px) {
    .footer-logo { height: 48px; }
}

/* .footer-brand-text removed (logo now contains text); keep rule commented for easy restoration */
/* .footer-brand-text {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
} */

.footer-description {
    color: #adb5bd;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-title {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #adb5bd;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-newsletter-desc {
    color: #adb5bd;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.footer-newsletter-form .input-group {
    margin-bottom: 1.5rem;
}

.footer-newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.footer-newsletter-form .form-control::placeholder {
    color: #adb5bd;
}

.footer-newsletter-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    color: white;
    box-shadow: none;
}

.footer-newsletter-form .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.footer-contact {
    color: #adb5bd;
    font-size: 0.875rem;
}

.footer-contact i {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 2rem;
}

.copyright {
    color: #adb5bd;
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #adb5bd;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: white;
}

/* Mobile footer centering adjustments */
@media (max-width: 767.98px) {
    .footer .footer-brand, 
    .footer .footer-description,
    .footer .social-links {
        justify-content: center;
        text-align: center;
    }
    .footer .footer-description { margin-left: auto; margin-right: auto; }
    .footer .social-links { flex-wrap: wrap; }
    .footer .footer-brand { flex-direction: column; }
    .footer .footer-logo { margin: 0 0 0.75rem 0; }
}

/* ===== TELEGRAM BANNER ===== */
.topscreen-info {
    background: linear-gradient(135deg, #0088cc, #0077b3);
    border: none;
    margin: 0;
    padding: 0.75rem 1rem;
    text-align: center;
    position: relative;
}

.telegram-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition);
}

.telegram-close:hover {
    opacity: 1;
}

.telegram-text {
    color: white;
    font-size: 0.9rem;
}

.telegram-text a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
}

.telegram-text a:hover {
    color: #f0f8ff;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .featured-section,
    .latest-section {
        padding: 2rem 0;
    }
    
    .newsletter-section {
        padding: 3rem 0;
    }
    
    .footer {
        padding: 3rem 0 1rem;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .newsletter-form .form-control,
    .newsletter-form .btn {
        border-radius: var(--border-radius);
        margin-bottom: 0.5rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* ===== UTILITY CLASSES ===== */
.text-primary-color {
    color: var(--primary-color) !important;
}

.bg-primary-color {
    background-color: var(--primary-color) !important;
}

.border-primary-color {
    border-color: var(--primary-color) !important;
}

/* (Removed unused fadeInUp animation & utility classes) */

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== MOVED FROM INLINE STYLES (Category, ArticleDetail, etc.) ===== */
/* Category & Subcategory Cards */
.subcategory-card, .featured-article-large, .newsletter-card, .related-category-item { transition: var(--transition); }
.subcategory-card:hover .subcategory-image img { transform: scale(1.1); }
.subcategory-image img { width:100%; height:200px; object-fit:cover; }
.category-hero { min-height:400px; display:flex; align-items:center; padding:3.5rem 0 3rem; }
.category-title { font-size:3rem; font-weight:700; }
@media (max-width:768px){ .category-title{font-size:2rem;} }
/* Improve readability for dark hero background sections */
.category-hero .category-title { color:#ffffff; text-shadow:0 2px 4px rgba(0,0,0,0.4); }
.category-hero .category-description { color:#f5fff9; font-size:1.1rem; line-height:1.6; }
.category-hero-text { color:#fff; }
.category-hero-text a { color:#e6fff4; }
.category-hero-text a:hover { color:#ffffff; }

/* Category spacing improvements */
.category-header { margin-bottom:2.5rem; }
.subcategories-section { padding:0 0 2.5rem; }
.category-articles-section { padding:0 0 2.5rem; }
/* Move category articles heading upward by reducing top spacing on this specific section-block */

.related-categories-section { padding:0 0 2.5rem; }
.category-newsletter-section { padding:0 0 3rem; }

/* Subcategory cards refinement */
.subcategory-card { height:100%; display:flex; flex-direction:column; border:1px solid #e9ecef; border-radius:12px; overflow:hidden; background:#fff; transition:box-shadow .2s ease, transform .2s ease; }
.subcategory-card:hover { box-shadow:0 6px 18px -4px rgba(0,0,0,0.15); transform:translateY(-3px); }
.subcategory-image { position:relative; aspect-ratio:4/3; overflow:hidden; }
.subcategory-image img { width:100%; height:100%; object-fit:cover; display:block; }
.subcategory-overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,0.35); opacity:0; transition:opacity .2s ease; }
.subcategory-card:hover .subcategory-overlay { opacity:1; }
.subcategory-content { padding:1rem 1rem 1.25rem; flex:1; display:flex; flex-direction:column; }
.subcategory-title { font-size:1.05rem; margin:0 0 .4rem; line-height:1.3; }
.subcategory-description { font-size:.85rem; color:#555; line-height:1.4; margin:0; }

/* Articles grid refinement */
.featured-article-large .featured-content { padding:1.25rem 0 1.25rem 0; }
.featured-article-large .featured-title { margin-top:0; margin-bottom:.75rem; }
.featured-article-large .featured-excerpt { margin-bottom:1rem; line-height:1.55; }
.article-card { height:100%; display:flex; flex-direction:column; border:1px solid #e9ecef; border-radius:12px; overflow:hidden; background:#fff; transition:box-shadow .2s ease, transform .2s ease; }
.article-card:hover { box-shadow:0 6px 18px -4px rgba(0,0,0,0.15); transform:translateY(-3px); }
.article-card .card-image { position:relative; aspect-ratio:4/3; overflow:hidden; }
.article-card .card-image img { width:100%; height:100%; object-fit:cover; display:block; }
.article-card .card-content { padding:0.9rem 1rem 1.2rem; display:flex; flex-direction:column; flex:1; }
.article-card .card-title { font-size:1.02rem; margin:0 0 .5rem; line-height:1.3; }
.article-card .card-excerpt { font-size:.85rem; line-height:1.5; margin:0 0 .75rem; color:#555; }
.article-card .card-meta { margin-top:auto; font-size:.7rem; display:flex; gap:.75rem; color:#6c757d; }
.article-card .card-category { top:10px; left:10px; padding:.3rem .55rem; font-size:.65rem; border-radius:6px; }

/* Load more button spacing */
.load-more-btn { padding:.85rem 2rem; }

@media (max-width: 991.98px) {
    .category-hero { padding:3rem 0 2.25rem; min-height:360px; }
    .category-header { margin-bottom:2rem; }
    .subcategory-card, .article-card { border-radius:10px; }
    .featured-article-large .featured-content { padding:1rem 0 0; }
}

@media (max-width: 575.98px) {
    .category-hero { padding:2.5rem 0 2rem; min-height:320px; }
    .category-title { font-size:1.9rem; }
    .category-description { font-size:.95rem; }
    .subcategory-content { padding:.85rem .85rem 1rem; }
    .article-card .card-content { padding:.75rem .8rem 1rem; }
}

/* Article Detail */
.article-title { font-size:2.5rem; font-weight:700; line-height:1.2; }
@media (max-width:768px){ .article-title{font-size:2rem;} }
.article-image { width:100%; max-height:500px; object-fit:cover; border-radius:var(--border-radius); box-shadow:var(--shadow-medium); }
.article-body h3 { margin-top:2rem; }
.tag-link:hover { background-color:var(--primary-color)!important; color:#fff!important; }
.related-articles-section { background-color:var(--background-section); padding:4rem 0; }
.article-newsletter-section { padding:4rem 0; background:linear-gradient(135deg,var(--primary-color),var(--primary-dark)); }
.article-detail { margin-top:2rem; }
.article-header { background:linear-gradient(135deg,var(--background-section),var(--background-light)); padding:3rem 0; }
.article-breadcrumb .breadcrumb { background:transparent; padding:0; margin-bottom:1rem; }
/* Breadcrumb separators: default neutral on light headers; keep white only on explicit dark contexts */
.article-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--text-light); }
/* Explicit dark background modifier (can be added via .breadcrumb-on-dark) */
.breadcrumb-on-dark .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.7); }
/* Light breadcrumb dividers on dark hero sections */
.category-hero .breadcrumb-item + .breadcrumb-item::before { color:rgba(255,255,255,0.65); }
.article-meta { font-size:0.9rem; }
.article-lead { font-size:1.25rem; color:var(--text-secondary); line-height:1.6; margin-bottom:2rem; }
.author-info { margin-bottom:2rem; }
.author-avatar { width:48px; height:48px; border-radius:50%; object-fit:cover; }
/* Added global small variant to ensure consistent sizing wherever used */
.author-avatar-small { width:32px; height:32px; border-radius:50%; object-fit:cover; }
.author-name { font-weight:600; color:var(--text-primary); }
.author-title { font-size:0.9rem; }
.article-image-container { margin:2rem 0; }
.article-content-section { padding:3rem 0; }
.social-share { border-bottom:1px solid var(--border-light); padding-bottom:2rem; }
.share-buttons .btn { border-radius:25px; }
.article-body { font-size:1.1rem; line-height:1.8; color:var(--text-secondary); }
.article-body ul, .article-body ol { margin-bottom:1.5rem; }
.article-body li { margin-bottom:0.5rem; }
.article-tags { border-top:1px solid var(--border-light); padding-top:2rem; }
.tag-link { text-decoration:none!important; transition:var(--transition); }
.article-navigation { border-top:1px solid var(--border-light); padding-top:2rem; }
.nav-item a { color:var(--text-primary); }
.nav-label { font-size:0.9rem; color:var(--text-light); }
.nav-title { font-weight:600; }
.newsletter-card { background:#fff; padding:3rem; border-radius:var(--border-radius); box-shadow:var(--shadow-medium); }
.newsletter-title { color:var(--text-primary); margin-bottom:1rem; }
.newsletter-subtitle { color:var(--text-secondary); margin-bottom:2rem; }
.newsletter-form .input-group { max-width:500px; margin:0 auto; }
.newsletter-privacy { font-size:0.875rem; color:var(--text-light); margin-top:1rem; margin-bottom:0; }
@media (max-width:768px){ .article-body{font-size:1rem;} .newsletter-card{padding:2rem 1rem;} }

/* (Removed .animate-fade-in-up class) */

/* ===== ACCESSIBILITY / CONTRAST FIXES FOR HOMEPAGE NEWSLETTER SECTION ===== */
/* The global newsletter title/subtitle colors were overridden to dark text later in the file,
   which reduced contrast on the dark gradient background in the homepage .newsletter-section.
   These scoped rules restore high contrast white text and improve input legibility. */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 70%);
    position: relative;
    color: #fff;
}
.newsletter-section .newsletter-title,
.newsletter-section .newsletter-subtitle,
.newsletter-section .newsletter-privacy { color: #fff; }
.newsletter-section .newsletter-subtitle { opacity: 0.95; }
.newsletter-section .newsletter-form .form-control {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
}
.newsletter-section .newsletter-form .form-control::placeholder { color: #f0f5f2; }
.newsletter-section .newsletter-form .form-control:focus {
    background: rgba(255,255,255,0.25);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25);
}
.newsletter-section .newsletter-form .btn-primary {
    background: #fff;
    color: var(--primary-dark);
    border-color: #fff;
}
.newsletter-section .newsletter-form .btn-primary:hover {
    background: #f0f5f2;
    color: var(--primary-dark);
    border-color: #f0f5f2;
}

/* Language Selector (replaces former region selector) */
.language-selector { position:relative; display:flex; align-items:center; margin-left:1rem; font-size:12px; }
#languageSelect + .language-flag-img, .language-selector .language-flag-img { margin-right:6px; border:1px solid var(--border-light); border-radius:3px; box-shadow:0 0 0 1px rgba(0,0,0,0.04); object-fit:cover; width:18px; height:14px; background:#f8f9fa; }
#languageSelect { border:1px solid var(--border-light); border-radius:14px; background:#fff; font-size:12px; padding:2px 22px 2px 8px; height:30px; line-height:1.2; width:auto; cursor:pointer; appearance:auto; transition:width .18s ease; }
#languageSelect:hover { border-color: var(--primary-color); }
#languageSelect:focus { outline:none; border-color: var(--primary-color); box-shadow:0 0 0 2px rgba(45,110,62,.15); }
/* Hidden sizer span for dynamic width measurement */
.lang-sizer { position:absolute; top:-9999px; left:-9999px; visibility:hidden; white-space:pre; font-size:12px; font-family:inherit; font-weight:normal; }
@media (max-width: 576px){ .language-selector { margin-left:.5rem; } #languageSelect { max-width:110px; font-size:11px; } }

/* Flag-only variant adjustments */
.language-selector .flag-only-select {
    width:auto;
    padding:2px 22px 2px 8px;
    border:1px solid var(--border-light);
    background:#fff;
    color:#000; /* ensure readable text on load */
    font-size:12px;
    line-height:1.2;
    border-radius:14px;
    cursor:pointer;
    -moz-appearance: auto;
    -webkit-appearance: auto;
    appearance: auto;
    transition: border-color .18s ease, background .18s ease;
}
.language-selector .flag-only-select:hover { border-color: var(--primary-color); }
.language-selector .flag-only-select:focus { outline:none; border-color: var(--primary-color); box-shadow:0 0 0 2px rgba(45,110,62,.15); }
.language-selector .flag-only-select option { color:#000; }
.language-selector .flag-only-select::-ms-expand { display:none; }

/* Compact language selector behavior */
.language-selector.compact { position:relative; display:inline-flex; align-items:center; gap:.4rem; }
.language-selector.compact .language-label { font-size:12px; color:#000; white-space:nowrap; opacity:0; transform:translateX(4px); transition:opacity .18s ease, transform .18s ease; max-width:0; overflow:hidden; }
.language-selector.compact.show-label .language-label { opacity:1; transform:translateX(0); max-width:160px; }
.language-selector.compact .flag-only-select { width:24px; padding:0; border:none; background:transparent; color:transparent; position:absolute; left:0; top:0; height:18px; cursor:pointer; z-index:2; }
.language-selector.compact .flag-only-select:focus { box-shadow:none; outline:none; }
.language-selector.compact.show-label .flag-only-select { position:static; width:auto; padding:2px 22px 2px 8px; border:1px solid var(--border-light); background:#fff; color:#000; height:30px; border-radius:14px; z-index:2; }
.language-selector.compact.show-label .flag-only-select:focus { border-color: var(--primary-color); box-shadow:0 0 0 2px rgba(45,110,62,.15); }

/* New custom language dropdown */
.language-selector.lang-dropdown { position:relative; display:inline-flex; }
.lang-toggle { background:transparent; border:none; padding:0; margin:0; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; width:26px; height:20px; border-radius:4px; transition:background .15s ease; }
.lang-toggle:focus-visible { outline:2px solid var(--primary-color); outline-offset:2px; }
.lang-toggle:hover { background:rgba(0,0,0,0.05); }
.lang-toggle img { display:block; width:18px; height:14px; border:1px solid var(--border-light); border-radius:3px; background:#f8f9fa; }
.lang-menu { position:absolute; top:105%; right:0; min-width:180px; background:#fff; border:1px solid var(--border-light); box-shadow:0 8px 22px -4px rgba(0,0,0,0.15); border-radius:10px; padding:.35rem 0; list-style:none; margin:0; display:none; z-index:50; max-height:320px; overflow:auto; -webkit-overflow-scrolling:touch; opacity:0; transform:translateY(-4px); transition:opacity .18s ease, transform .18s ease; }
.lang-menu.open { display:block; opacity:1; transform:translateY(0); }
.lang-menu li { display:flex; align-items:center; gap:.6rem; padding:.45rem .85rem; font-size:.8rem; cursor:pointer; line-height:1.2; color:#222; transition:background .12s ease, color .12s ease; }
.lang-menu li img { width:18px; height:14px; border:1px solid var(--border-light); border-radius:3px; background:#f8f9fa; }
.lang-menu li:hover, .lang-menu li.active { background:rgba(45,110,62,0.08); }
.lang-menu li[aria-selected="true"] { font-weight:600; }
.lang-menu::-webkit-scrollbar { width:8px; }
.lang-menu::-webkit-scrollbar-track { background:transparent; }
.lang-menu::-webkit-scrollbar-thumb { background:rgba(0,0,0,0.2); border-radius:4px; }

/* ===== Mobile Header & Language Dropdown Enhancements ===== */
@media (max-width: 991.98px){
    .navbar { padding:.18rem .55rem .18rem; }
    /* Flatten mobile header: remove shadow */
    .navbar { box-shadow:none !important; }
    .navbar-brand img, .navbar-brand svg { max-height:28px; }
    .navbar-nav .nav-link { padding:.36rem .42rem; font-size:13px; }
    .btn-search { padding:.3rem .5rem; line-height:1; }
    .language-selector.lang-dropdown { margin-left:.35rem; }
    .lang-toggle { width:32px; height:24px; border-radius:6px; }
    .lang-toggle img { width:19px; height:14px; }
    .lang-menu { right:-4px; min-width:200px; max-height:55vh; font-size:.82rem; }
    .lang-menu li { padding:.55rem .8rem; font-size:.82rem; }
    .lang-menu li img { width:19px; height:14px; }
    .navbar-nav > li { position:relative; }
    .navbar-nav .dropdown-menu { font-size:.88rem; }
    .quick-categories .btn { font-size:.62rem; padding:.4rem .65rem; }
    body { overscroll-behavior-y:contain; }
    .navbar-collapse { padding-bottom:.55rem; }
    .navbar-collapse .navbar-nav { margin-bottom:.2rem; }
    .navbar-collapse .nav-item { border-bottom:1px solid rgba(0,0,0,0.05); }
    .navbar-collapse .nav-item:last-child { border-bottom:none; }
    .navbar-collapse .dropdown-menu { position:static; float:none; box-shadow:none; border:none; background:transparent; padding:0 .2rem .45rem; margin-top:0; }
    /* Ensure solid background (remove transparent bleed-through) */
    .navbar-collapse .dropdown-menu { background:#ffffff; }
    .navbar-collapse .dropdown-menu .dropdown-item { padding:.5rem .25rem .5rem .7rem; border-radius:6px; }
    .navbar-collapse .dropdown-menu .dropdown-item:hover { background:#fff; }
    .navbar-collapse .dropdown-toggle::after { margin-left:.3rem; }
    .navbar-collapse .dropdown.show > .dropdown-menu { display:block; }
}

/* Mobile full-screen nav & language sheet */
@media (max-width: 991.98px){
    .navbar-collapse { background:#ffffff; padding:.55rem .65rem .75rem; border-top:none; box-shadow:none; }
    .navbar-collapse.show { display:block; }
    .navbar .navbar-toggler { z-index:1050; }
    .language-selector.lang-dropdown[data-behavior="hybrid"] .lang-menu { display:none !important; }
    /* Ensure fully opaque white background spans full viewport width when menu open */
    .navbar-collapse.show { position:relative; }
    .navbar-collapse.show::before { content:""; position:absolute; top:0; left:50%; transform:translateX(-50%); width:100vw; height:100%; background:#ffffff; z-index:-1; box-shadow:none !important; border:none !important; }
    /* Fully flat, no outer shadow or border */
    .navbar, .navbar-collapse, .navbar-collapse.show::before { background:#ffffff !important; box-shadow:none !important; border:none !important; }
    .navbar-collapse.show::after { display:none !important; }
}

/* Bottom sheet for mobile language selection */
.lang-sheet { position:fixed; left:0; right:0; bottom:0; background:#fff; border-radius:16px 16px 0 0; box-shadow:0 -4px 18px -4px rgba(0,0,0,0.25); transform:translateY(calc(100% + 32px)); transition:transform .34s cubic-bezier(.4,0,.2,1), opacity .18s ease, visibility 0s linear .18s; z-index:1100; max-height:68vh; display:flex; flex-direction:column; will-change:transform; opacity:0; pointer-events:none; visibility:hidden; }
.lang-sheet.open { transform:translateY(0); opacity:1; pointer-events:auto; visibility:visible; transition:transform .38s cubic-bezier(.4,0,.2,1), opacity .22s ease, visibility 0s; }
.no-scroll { overflow:hidden; }
.lang-sheet-backdrop { position:fixed; inset:0; background:rgba(0,0,0,0.28); opacity:0; transition:opacity .28s ease; z-index:1090; }
.lang-sheet-backdrop.visible { opacity:1; }
.lang-sheet-backdrop[hidden] { display:none !important; }
.lang-sheet__body { -webkit-overflow-scrolling:touch; }
.lang-sheet__list { padding-bottom:.5rem; }
.lang-sheet__list li { touch-action:manipulation; }
.lang-sheet__handle { cursor:grab; }
html.lang-sheet-open, html.lang-sheet-open body { overscroll-behavior-y:contain; }

/* Prevent accidental visibility flash of sheet on desktop */
@media (min-width: 992px){
    .lang-sheet { display:none; }
}
.lang-sheet__handle { width:48px; height:5px; border-radius:3px; background:#d1d5db; margin:10px auto 6px; position:relative; }
.lang-sheet__handle:after { content:""; position:absolute; inset:-8px -12px; } /* larger touch target */
.lang-sheet__header { display:flex; align-items:center; justify-content:space-between; padding:.35rem 1rem .65rem; border-bottom:1px solid var(--border-light); }
.lang-sheet__title { font-size:.9rem; font-weight:600; letter-spacing:.5px; text-transform:uppercase; color:var(--text-secondary); }
.lang-sheet__close { background:transparent; border:none; font-size:1.5rem; line-height:1; padding:.25rem .5rem; cursor:pointer; color:#555; }
.lang-sheet__close:hover { color:#000; }
.lang-sheet__body { overflow-y:auto; padding:.5rem .75rem 1rem; }
.lang-sheet__list { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:.35rem .5rem; }
.lang-sheet__list li { display:flex; align-items:center; gap:.45rem; padding:.55rem .6rem; border:1px solid var(--border-light); border-radius:10px; font-size:.75rem; cursor:pointer; background:#fff; transition:background .15s ease, border-color .15s ease, transform .15s ease; }
.lang-sheet__list li img { width:18px; height:14px; border:1px solid var(--border-light); border-radius:3px; background:#f8f9fa; }
.lang-sheet__list li:hover { background:#f5f7f5; }
.lang-sheet__list li.active, .lang-sheet__list li[aria-selected="true"] { background:var(--primary-color); color:#fff; border-color:var(--primary-color); }
.lang-sheet__list li.active img, .lang-sheet__list li[aria-selected="true"] img { border-color:rgba(255,255,255,0.8); }
.lang-sheet__list li:active { transform:scale(.97); }
@media (max-width: 420px){
    .lang-sheet__list { grid-template-columns:repeat(auto-fill,minmax(100px,1fr)); }
}

/* Notification toast (moved) */
.notification-toast { animation: slideInRight 0.3s ease; }
@keyframes slideInRight { from { transform:translateX(100%); opacity:0;} to { transform:translateX(0); opacity:1;} }

/* ===== LAZY LOADING IMAGE STATES ===== */
/* Removed lazy loading system: show images immediately */
.featured-card, .article-card { opacity:1; transform:none; }

/* ===== NEW CATEGORY OVERHAUL UTILITIES ===== */
.section-block { padding: var(--space-8) 0 var(--space-7); }
@media (max-width: 768px){ .section-block { padding: var(--space-6) 0 var(--space-5); } }
.container.narrow { max-width: 960px; }
.stack { display:flex; flex-direction:column; gap: var(--stack-space, var(--space-4)); }
.flex-between-wrap { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--space-3); }
.flex-gap { display:flex; align-items:center; gap:var(--space-3); flex-wrap:wrap; }
.max-ch { max-width: 62ch; }
.small-heading { font-size:1.75rem; }
.lead-sm { font-size:1.05rem; line-height:1.55; }
.fade-text { color: var(--text-light); }
.badge-soft { background: rgba(45,110,62,0.1); color: var(--primary-dark); font-size:.65rem; padding:.35rem .6rem; border-radius:6px; font-weight:600; letter-spacing:.5px; text-transform:uppercase; }
.pill-link { display:inline-block; padding:.55rem 1rem; background:#ffffff0d; backdrop-filter: blur(4px); border:1px solid rgba(255,255,255,0.25); color:#fff; border-radius: 999px; font-size:.8rem; font-weight:500; text-decoration:none; transition:var(--transition); }
.pill-link:hover { background:#fff; color: var(--primary-dark); }
.scroller-inline { display:flex; gap:.65rem; overflow-x:auto; padding:.35rem .25rem .5rem; scrollbar-width:none; justify-content:center; flex-wrap:wrap; }
.scroller-inline::-webkit-scrollbar { display:none; }
.surface-overlay { position:relative; }
.fancy-heading { position:relative; }
.fancy-heading:after { content:""; position:absolute; left:50%; transform:translateX(-50%); bottom:-.65rem; width:72px; height:4px; border-radius:3px; background:linear-gradient(90deg,var(--primary-color),var(--accent-color)); }
.section-head .section-anchor { font-size:.8rem; text-decoration:none; font-weight:600; letter-spacing:.5px; text-transform:uppercase; color:var(--primary-color); }
.section-head .section-anchor:hover { color:var(--primary-dark); }

/* Hero inner alignment */
.hero-inner { padding: var(--space-7) 0 var(--space-6); }
@media (max-width:768px){ .hero-inner { padding: var(--space-6) 0 var(--space-5); } }

/* Quick subcategories pills */
.quick-subcategories { margin-top: var(--space-2); }

/* Subcategory grid */
.subcategory-grid { display:grid; gap:var(--space-5); grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); margin-top:var(--space-6); }
@media (max-width:576px){ .subcategory-grid { gap:var(--space-4); } }
.subcategory-card.raise { position:relative; border:1px solid var(--border-light); border-radius:14px; overflow:hidden; background:#fff; display:flex; flex-direction:column; box-shadow:var(--shadow-light); transition:box-shadow .25s ease, transform .25s ease; }
.subcategory-card.raise:hover { transform:translateY(-4px); box-shadow: var(--shadow-medium); }
.subcategory-media { position:relative; aspect-ratio:4/3; overflow:hidden; margin:0; }
.subcategory-media img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .6s cubic-bezier(.19,1,.22,1); }
.subcategory-card.raise:hover .subcategory-media img { transform:scale(1.08); }
.subcategory-overlay { position:absolute; inset:0; display:flex; align-items:flex-end; justify-content:flex-end; padding:.6rem .6rem; opacity:0; transition:opacity .3s ease; }
.subcategory-card.raise:hover .subcategory-overlay { opacity:1; }
.subcategory-content { padding: var(--space-4) var(--space-4) var(--space-5); flex:1; }
.subcategory-title { margin:0; font-size:1rem; font-weight:600; }
.subcategory-description { font-size:.75rem; color:var(--text-secondary); line-height:1.4; margin:0; }

/* Articles grid overhaul */
.articles-grid { display:grid; gap:var(--space-6); grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); align-items:start; }
@media (max-width:992px){ .articles-grid { gap:var(--space-5); } }
@media (max-width:576px){ .articles-grid { gap:var(--space-4); } }
.article-feature { grid-column: 1/-1; }
.feature-grid { display:grid; gap:var(--space-5); grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); align-items:stretch; }
.feature-media { position:relative; border-radius:18px; overflow:hidden; min-height:280px; background:var(--background-section); }
.feature-media img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .8s cubic-bezier(.19,1,.22,1); }
.article-feature .feature-media:hover img { transform:scale(1.06); }
.feature-media .featured-category { position:absolute; top:12px; left:12px; }
.feature-body { position:relative; }
.article-feature .feature-body { display:flex; flex-direction:column; height:100%; }
.article-feature .feature-body .stack { flex-grow:0; }
.article-feature .feature-body .meta-row { margin-top:.75rem; }
.article-feature .feature-body .author-inline { margin-top:1rem; }
.article-feature .feature-body .cta-row { margin-top:auto; padding-top:1.25rem; }
.author-cta-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-top:auto; padding-top:1.25rem; }
.author-cta-row .author-inline { margin-top:0 !important; }
.author-cta-row .read-more-btn { margin-left:auto; }
.article-feature .feature-body .read-more-btn { align-self:flex-start; }
.article-feature .feature-text-link { display:block; margin-bottom:.75rem; }
.article-feature .feature-text-link .featured-title { margin-top:0; }

/* Editorial Variant A refinements */
.article-feature .feature-body { display:flex; flex-direction:column; height:100%; }
.article-feature .feature-body-inner { flex:1 1 auto; display:flex; flex-direction:column; padding: var(--space-1) 0 var(--space-2); }
.article-feature .feature-body-inner .featured-title { padding-left:0; }
.article-feature .feature-body-inner .featured-excerpt { margin-top:.35rem; padding-left:0; }
.article-feature .featured-meta-row { margin-top:.85rem; padding-left:0; font-size:.78rem; gap:.9rem; }
.article-feature .author-cta-row { border-top:1px solid var(--border-light); margin-top:1.25rem; padding-top:1rem; }
.article-feature .read-more-btn { box-shadow:none; }
.article-feature .read-more-btn:hover { box-shadow:var(--shadow-light); }
.article-feature .author-inline .author-name { font-size:.8rem; letter-spacing:.3px; }

@media (min-width: 992px){
    .article-feature .feature-grid { grid-template-columns: 48% 52%; }
    .article-feature .feature-media { min-height:100%; height:100%; }
    .article-feature .feature-media img { height:100%; }
}

/* Improved spacing inside regular cards for vertical stretch */
.article-card.improved { display:flex; flex-direction:column; }
.article-card.improved .card-content { display:flex; flex-direction:column; height:100%; }
.article-card.improved .card-content .card-text-link { flex-grow:1; display:block; }
.article-card.improved .read-more-inline-wrapper { margin-top:.6rem; }

/* Load more button lower placement */
.articles-load-more-wrapper { margin-top:4rem !important; padding-top:1rem; }
.articles-load-more-wrapper .load-more-btn { margin-top:.5rem; }
.feature-link { text-decoration:none; }
.feature-link:hover { color: var(--primary-color); }

/* Improved article card */
.article-card.improved { position:relative; border:1px solid var(--border-light); border-radius:14px; overflow:hidden; background:#fff; display:flex; flex-direction:column; box-shadow:var(--shadow-light); transition:box-shadow .25s ease, transform .25s ease; }
.article-card.improved:hover { box-shadow: var(--shadow-medium); }
.ratio-thumb { position:relative; aspect-ratio:4/3; overflow:hidden; }
.ratio-thumb img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .7s cubic-bezier(.19,1,.22,1); }
.article-card.improved .ratio-thumb:hover img { transform:scale(1.08); }
.article-card.improved .card-content { padding: var(--space-4) var(--space-4) var(--space-5); flex:1; }
.article-card.improved .card-title { margin:0; font-size: .95rem; font-weight:600; line-height:1.3; }
.article-card.improved .card-excerpt { margin:0; font-size:.72rem; line-height:1.45; color: var(--text-secondary); }
.meta-row { display:flex; align-items:center; gap: .6rem; font-size:.65rem; letter-spacing:.3px; }
.meta-row .meta-sep { opacity:.4; }
.author-inline { display:flex; align-items:center; gap:.65rem; font-size:.75rem; font-weight:500; color: var(--text-primary); }
.raise .stretched-link::after { content:""; position:absolute; inset:0; display:none; }

/* Clamp utilities */
.clamp-2 { -webkit-line-clamp:2; line-clamp:2; }
.clamp-3 { -webkit-line-clamp:3; line-clamp:3; }
.clamp-2, .clamp-3 { display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; }

/* Skeleton loader */
.skeleton { position:relative; overflow:hidden; }
.skeleton-line { height:.65rem; background: var(--background-section); border-radius:4px; }
.skeleton-line + .skeleton-line { margin-top:.55rem; }
.skeleton .card-content { padding: var(--space-4); }
.shimmer { background: linear-gradient(90deg, var(--background-section) 0%, #eef1ef 40%, var(--background-section) 80%); background-size:200% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0% { background-position: 0 0;} 100% { background-position: -200% 0;} }

/* Empty state */
.empty-state { padding: var(--space-7) 0; }
.empty-state .icon-wrapper { opacity:.4; }

/* Gradient fade overlay reuse */
.gradient-fade { background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 85%); }

/* Adjust existing selectors for new variant differences */
.article-card.improved .card-category, .feature-media .featured-category, .ratio-thumb .card-category { background: var(--primary-color); color:#fff; padding:.35rem .7rem; font-size:.55rem; border-radius:6px; font-weight:600; letter-spacing:.5px; position:absolute; top:10px; left:10px; }

/* Interactive separation styles */
.feature-title-link, .card-title-link { text-decoration:none; color: var(--text-primary); position:relative; transition:color .25s ease; }
.feature-title-link:hover, .card-title-link:hover { color: var(--primary-color); }
.excerpt-link { text-decoration:none; color: var(--text-secondary); transition:color .25s ease; }
.excerpt-link:hover { color: var(--primary-color); }
.read-more-inline, .read-more-btn { text-decoration:none; font-weight:600; letter-spacing:.5px; position:relative; }
.read-more-inline { display:inline-flex; align-items:center; gap:.25rem; font-size:.7rem; text-transform:uppercase; color: var(--primary-color); }
.read-more-inline:hover { color: var(--primary-dark); }
.read-more-btn { text-transform:uppercase; }
.read-more-btn:hover { filter:brightness(.95); }

@media (prefers-reduced-motion: reduce){
    .article-card.improved:hover, .subcategory-card.raise:hover, .article-feature:hover { transform:none; }
    .feature-media img, .ratio-thumb img { transition:none; }
}

/* Category hero dynamic background using CSS variable */
.category-hero { background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.65)), var(--hero-bg) center/cover no-repeat; position:relative; }
.category-hero:after { content:' '; position:absolute; inset:0; background:linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.65)); pointer-events:none; }
.category-hero > .container { position:relative; z-index:2; }

/* Visually hidden utility (for status regions, a11y) */
.visually-hidden { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0 0 0 0) !important; white-space:nowrap !important; border:0 !important; }

/* Inline spinner alignment inside buttons */
.btn .spinner-border { vertical-align:middle; }
