/* Extrait de index.php (bloc <style> inline) le 2026-08-30.
   Externalise pour etre mis en cache par le navigateur : le .htaccess applique
   max-age=1an + immutable aux .css, et injectStyles ajoute ?v=filemtime.
   Avant : ces 27523 octets etaient retelecharges a CHAQUE page vue. */

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== LATEST NEWS PAGINATION ===== */
.latest-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
}
.latest-pagination button {
    min-width: 38px;
    height: 38px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}
.latest-pagination button:hover:not(:disabled):not(.active) {
    background: #f1f5f9;
    border-color: #94a3b8;
    transform: translateY(-2px);
}
.latest-pagination button.active {
    background: linear-gradient(135deg, #4da900, #3d8600);
    color: #fff;
    border-color: #4da900;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(77,169,0,0.3);
}
.latest-pagination button:disabled {
    opacity: 0.35;
    cursor: default;
}
.latest-pagination .page-ellipsis {
    color: #94a3b8;
    font-size: 14px;
    padding: 0 4px;
}
.sa-dark .latest-pagination button {
    background: #2a2a2a;
    border-color: #444;
    color: #ccc;
}
.sa-dark .latest-pagination button:hover:not(:disabled):not(.active) {
    background: #333;
}
.sa-dark .latest-pagination button.active {
    background: linear-gradient(135deg, #4da900, #3d8600);
    color: #fff;
    border-color: #4da900;
}

/* Hide empty ad placeholders */
.featured-add img[src*="placeholder"],
.featured-add img:not([src]),
.sa-ad img[src*="placeholder"],
.sa-ad img:not([src]) {
    display: none;
}
.featured-add:has(img:not([src])),
.featured-add:has(img[src=""]) {
    display: none;
}

/* Section Title with See All link */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-title .see-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #4da900;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(77,169,0,0.06);
    transition: all 0.3s ease;
}
.section-title .see-all:hover {
    color: #fff;
    background: linear-gradient(135deg, #4da900, #3d8600);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(77,169,0,0.25);
}
.section-title .see-all i {
    margin-left: 2px;
    transition: transform 0.2s;
}
.section-title .see-all:hover i {
    transform: translateX(3px);
}

/* ===== IN-ARTICLE BANNER ZONE ===== */
.banner-zone-inarticle {
    margin: 28px 0;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #f9f9f9;
    min-height: 90px;
}
.banner-zone-inarticle .banner-slide {
    display: none;
    width: 100%;
    animation: bannerFadeIn 0.6s ease;
}
.banner-zone-inarticle .banner-slide.active {
    display: block;
}
@keyframes bannerFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.banner-zone-inarticle a {
    display: block;
    width: 100%;
    line-height: 0;
}
.banner-zone-inarticle img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}
.banner-zone-inarticle .banner-label {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    background: rgba(255,255,255,0.85);
    padding: 2px 7px;
    border-radius: 3px;
    pointer-events: none;
}
.banner-zone-inarticle .banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.banner-zone-inarticle .banner-dots .b-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}
.banner-zone-inarticle .banner-dots .b-dot.active {
    background: #fff;
    width: 20px;
    border-radius: 4px;
}
.sa-dark .banner-zone-inarticle {
    background: #1a1a1a;
}
@media (max-width: 768px) {
    .banner-zone-inarticle { margin: 20px 0; border-radius: 8px; }
    .banner-zone-inarticle img { border-radius: 8px; }
}

/* ===== MODERN FEATURED SECTION ===== */
.featured-section-modern {
    margin-bottom: 36px;
    animation: fadeInUp 0.5s ease both;
}

.featured-main-article {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #0f172a;
    height: 460px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.featured-main-article .featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease, opacity 0.4s ease;
}

.featured-main-article:hover .featured-image {
    transform: scale(1.06);
    opacity: 0.8;
}

.featured-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: inherit;
    height: 100%;
}

.featured-img-wrap .category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #4da900, #76b900);
    color: #fff;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    text-decoration: none;
    z-index: 3;
    box-shadow: 0 3px 12px rgba(77,169,0,0.35);
}

/* Sidebar items: badges plus petits */
.featured-sidebar-item .featured-img-wrap .category-badge {
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    font-size: 9px;
}

.featured-main-article .featured-img-wrap .access-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    animation: badge-pulse 3s ease-in-out infinite;
}

.featured-sidebar-item .featured-img-wrap .access-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* ============================================================
   FEATURED AUDIO BAR (resume audio en bandeau plein largeur)
   Style "promo bar" voyant, wave dynamique Web Audio API
   ============================================================ */
.fm-audio {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-bottom: 14px;
    padding: 12px 14px 12px 12px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(77, 169, 0, 0.95) 0%, rgba(118, 185, 0, 0.95) 100%);
    color: #fff;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 6px 18px rgba(77, 169, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    overflow: hidden;
    transition: all .28s cubic-bezier(.4, 0, .2, 1);
}
.fm-audio::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 40%;
    height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: skewX(-25deg);
    animation: fm-shine 5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes fm-shine {
    0%, 100% { transform: translateX(0) skewX(-25deg); }
    50%      { transform: translateX(450%) skewX(-25deg); }
}
.fm-audio:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(77, 169, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.fm-audio.is-playing {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: none;
}
.fm-audio.is-playing::before { display: none; }

/* Bouton play/pause circulaire */
.fm-audio-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    color: #4da900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .22s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    font-size: 16px;
}
.fm-audio:hover .fm-audio-btn { transform: scale(1.08); }
.fm-audio.is-playing .fm-audio-btn {
    background: #4da900;
    color: #fff;
    animation: fm-pulse 1.6s ease-in-out infinite;
}
@keyframes fm-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(77, 169, 0, 0.55); }
    50%      { box-shadow: 0 0 0 10px rgba(77, 169, 0, 0); }
}
.fm-audio-btn .ico-play  { display: inline-flex; }
.fm-audio-btn .ico-pause { display: none; }
.fm-audio.is-playing .ico-play  { display: none; }
.fm-audio.is-playing .ico-pause { display: inline-flex; }
.fm-audio-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(77, 169, 0, 0.3);
    border-top-color: #4da900;
    border-radius: 50%;
    animation: fm-spin .8s linear infinite;
}
.fm-audio.is-loading .fm-audio-spinner { display: block; }
.fm-audio.is-loading .ico-play,
.fm-audio.is-loading .ico-pause { display: none; }
@keyframes fm-spin { to { transform: rotate(360deg); } }

/* Zone label (etat idle / loading) */
.fm-audio-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    z-index: 1;
}
.fm-audio-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 7px 2px 5px;
    border-radius: 10px;
    margin-bottom: 3px;
}
.fm-audio-tag i { font-size: 7px; animation: fm-blink 1.4s ease-in-out infinite; }
@keyframes fm-blink { 50% { opacity: 0.3; } }
.fm-audio-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fm-audio-sub {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.92;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fm-audio.is-playing .fm-audio-info { display: none; }

/* Wave canvas plein largeur pendant la lecture */
.fm-audio-wave-wrap {
    display: none;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    gap: 10px;
    z-index: 1;
}
.fm-audio.is-playing .fm-audio-wave-wrap { display: flex; }
.fm-audio-wave {
    flex: 1 1 auto;
    height: 42px;
    width: 100%;
    min-width: 0;
}
.fm-audio-time {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* Fallback wave CSS (si Web Audio API absent ou CORS bloque) */
.fm-audio-wave-fallback {
    display: none;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 42px;
}
.fm-audio.is-playing.no-webaudio .fm-audio-wave          { display: none; }
.fm-audio.is-playing.no-webaudio .fm-audio-wave-fallback { display: flex; }
.fm-audio-wave-fallback span {
    display: block;
    width: 4px;
    background: #4da900;
    border-radius: 2px;
    animation: fm-bar 1.1s ease-in-out infinite;
}
.fm-audio-wave-fallback span:nth-child(1)  { animation-delay: 0s;    height: 14px; }
.fm-audio-wave-fallback span:nth-child(2)  { animation-delay: 0.07s; height: 22px; }
.fm-audio-wave-fallback span:nth-child(3)  { animation-delay: 0.14s; height: 32px; }
.fm-audio-wave-fallback span:nth-child(4)  { animation-delay: 0.21s; height: 18px; }
.fm-audio-wave-fallback span:nth-child(5)  { animation-delay: 0.28s; height: 26px; }
.fm-audio-wave-fallback span:nth-child(6)  { animation-delay: 0.35s; height: 14px; }
.fm-audio-wave-fallback span:nth-child(7)  { animation-delay: 0.42s; height: 30px; }
.fm-audio-wave-fallback span:nth-child(8)  { animation-delay: 0.49s; height: 20px; }
.fm-audio-wave-fallback span:nth-child(9)  { animation-delay: 0.56s; height: 16px; }
.fm-audio-wave-fallback span:nth-child(10) { animation-delay: 0.63s; height: 28px; }
.fm-audio-wave-fallback span:nth-child(11) { animation-delay: 0.7s;  height: 22px; }
.fm-audio-wave-fallback span:nth-child(12) { animation-delay: 0.77s; height: 14px; }
@keyframes fm-bar {
    0%, 100% { transform: scaleY(0.3); }
    50%      { transform: scaleY(1); }
}

@media (max-width: 768px) {
    .fm-audio { padding: 10px 12px; gap: 10px; }
    .fm-audio-btn { width: 40px; height: 40px; font-size: 14px; }
    .fm-audio-title { font-size: 13px; }
    .fm-audio-sub { font-size: 10px; }
    .fm-audio-wave { height: 32px; }
    .fm-audio-wave-fallback { height: 32px; }
}


.featured-main-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 50%, transparent 100%);
    color: #fff;
    z-index: 2;
}

.featured-main-content .category-badge {
    display: none;
}

.featured-main-content .featured-title {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.featured-main-content .featured-title a {
    font-weight: 900 !important;
}

.featured-main-content .featured-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.featured-main-content .featured-title a:hover {
    color: #76b900;
}

.featured-main-content .featured-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}

.featured-main-content .featured-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

.featured-main-content .featured-meta-item i {
    color: #76b900;
}


/* Sidebar width constraint on large screens */
@media (min-width: 1400px) {
    .home-sidebar-col {
        flex: 0 0 390px;
        max-width: 390px;
    }
    .home-main-col {
        flex: 1 1 0%;
        max-width: calc(100% - 390px);
    }
}

@media (min-width: 1700px) {
    .home-sidebar-col {
        flex: 0 0 370px;
        max-width: 370px;
    }
    .home-main-col {
        flex: 1 1 0%;
        max-width: calc(100% - 370px);
    }
}

/* Featured Sidebar Articles */
.featured-sidebar-articles {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 460px;
    margin-left: 20px;
}

@media (max-width: 991px) {
    .featured-sidebar-articles {
        margin-left: 0;
    }
}

.featured-sidebar-item {
    position: relative;
    flex: 1;
    border-radius: 14px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.featured-sidebar-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.featured-sidebar-item .featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.featured-sidebar-item:hover .featured-image {
    transform: scale(1.1);
    opacity: 0.75;
}

.featured-sidebar-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: #fff;
}

.featured-sidebar-content .category-badge {
    display: none;
}

/* Titre sidebar tronque */
.featured-sidebar-content .featured-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Badges sur les sidebar items */
.featured-sidebar-item .featured-img-wrap .category-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    font-size: 9px;
    z-index: 3;
}

.featured-sidebar-item .featured-img-wrap .access-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    text-decoration: none;
}

.featured-sidebar-content .featured-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.featured-sidebar-content .featured-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.featured-sidebar-content .featured-title a:hover {
    color: #76b900;
}

.featured-sidebar-content .access-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* ===== MODERN LATEST NEWS SECTION ===== */
.latest-news-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .latest-news-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .latest-news-modern {
        grid-template-columns: 1fr;
    }
    .featured-img-wrap .category-badge {
        top: 8px;
        left: 8px;
        padding: 4px 10px;
        font-size: 9px;
    }
    .featured-main-article .featured-img-wrap .access-badge {
        top: 8px;
        right: 8px;
        padding: 3px 8px;
        font-size: 8px;
    }
    .featured-sidebar-item .featured-img-wrap .access-badge {
        padding: 2px 6px;
        font-size: 7px;
    }
    .featured-main-article {
        height: 280px;
    }
    .featured-main-content {
        padding: 16px;
    }
    .featured-main-content .featured-title {
        font-size: 18px;
        font-weight: 800;
    }
}

.latest-news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(0,0,0,0.04);
}

.latest-news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}

.latest-news-card .card-image {
    position: relative;
    height: 185px;
    overflow: hidden;
}

.latest-news-card .card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.08), transparent);
    pointer-events: none;
}

.latest-news-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.latest-news-card:hover .card-image img {
    transform: scale(1.08);
}

.latest-news-card .card-image .category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #4da900, #76b900);
    color: #fff;
    padding: 5px 14px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 16px;
    text-decoration: none;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(77,169,0,0.25);
}

.latest-news-card .card-image .access-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.latest-news-card .card-content {
    padding: 20px;
}

.latest-news-card .card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px 0;
    color: #0f172a;
}

.latest-news-card .card-title a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.latest-news-card .card-title a:hover {
    color: #4da900;
}

.latest-news-card .card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #64748b;
}

.latest-news-card .card-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.latest-news-card .card-meta-item i {
    color: #4da900;
    font-size: 11px;
}

/* ===== MODERN CATEGORY SECTIONS ===== */
.category-section-modern {
    margin-bottom: 36px;
    padding: 32px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease;
    animation: fadeInUp 0.5s ease both;
}

.category-section-modern:hover {
    box-shadow: 0 4px 28px rgba(0,0,0,0.07);
}

.category-section-modern .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.category-section-modern .section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #4da900, #76b900);
    border-radius: 1px;
}

.category-section-modern .section-header h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

.category-section-modern .section-header h2::before {
  
}

.category-section-modern .section-header .view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(77,169,0,0.06);
    color: #4da900;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.category-section-modern .section-header .view-all:hover {
    background: linear-gradient(135deg, #4da900, #3d8600);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(77,169,0,0.25);
}

.category-section-modern .section-header .view-all i {
    font-size: 11px;
    transition: transform 0.2s;
}

.category-section-modern .section-header .view-all:hover i {
    transform: translateX(3px);
}

.category-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .category-articles-grid {
        grid-template-columns: 1fr;
    }
}

.category-article-card {
    display: flex;
    gap: 16px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid transparent;
}

.category-article-card:hover {
    background: #f0fdf4;
    transform: translateX(5px);
    border-color: rgba(77,169,0,0.12);
    box-shadow: 0 2px 12px rgba(77,169,0,0.06);
}

.category-article-card .card-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 95px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.category-article-card .card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-article-card:hover .card-thumbnail img {
    transform: scale(1.1);
}

.category-article-card .card-thumbnail .access-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 3px 7px;
    font-size: 8px;
    width: auto;
    height: auto;
    min-height: 0;
    line-height: 1;
}

.category-article-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.category-article-card .card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px 0;
    color: #0f172a;
}

.category-article-card .card-title a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.category-article-card .card-title a:hover {
    color: #4da900;
}

.category-article-card .card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    color: #64748b;
}

.category-article-card .card-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.category-article-card .card-meta-item i {
    color: #4da900;
    font-size: 10px;
}

/* Dark Mode for Main Content */
.sa-dark .latest-news-card {
    background: #1f1f1f;
}

.sa-dark .latest-news-card .card-title {
    color: #e8e8e8;
}

.sa-dark .category-section-modern {
    background: #1f1f1f;
}

.sa-dark .category-section-modern .section-header h2 {
    color: #e8e8e8;
}

.sa-dark .category-article-card {
    background: #2a2a2a;
}

.sa-dark .category-article-card:hover {
    background: #2d3a2a;
}

.sa-dark .category-article-card .card-title {
    color: #e8e8e8;
}

/* Featured section responsive */
@media (max-width: 768px) {
    .featured-main-article {
        height: 320px;
        border-radius: 14px;
    }

    .featured-sidebar-articles {
        height: auto;
        flex-direction: row;
        margin-top: 14px;
    }

    .featured-sidebar-item {
        height: 180px;
        border-radius: 12px;
    }

    .featured-main-content {
        padding: 24px;
    }

    .featured-main-content .featured-title {
        font-size: 20px;
    }

    .featured-main-content .featured-meta-item {
        padding: 3px 8px;
        font-size: 11px;
    }

    .card-body {
        padding: 0 !important;
    }

    .category-article-card {
        padding: 0;
        gap: 8px;
    }

    .category-article-card .card-thumbnail {
        width: 100px;
        height: 80px;
        border-radius: 8px;
    }

    .category-article-card .card-thumbnail .access-badge {
        padding: 4px 4px;
        font-size: 7px;
        top: 4px;
        left: 4px;
        max-width: 40px;
        text-align: center;
    }

    .category-article-card .card-title {
        font-size: 13px;
        line-height: 1.3;
    }

    .category-article-card .card-meta-item {
        font-size: 10px;
    }
}

/* Category cards mobile responsive */
@media (max-width: 576px) {
    .category-section-modern {
        padding: 20px 15px;
        margin-bottom: 25px;
        border-radius: 12px;
    }

    .category-section-modern .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }

    .category-section-modern .section-header h2 {
        font-size: 18px;
    }

    .category-article-card {
        gap: 12px;
        padding: 12px;
    }

    .category-article-card .card-thumbnail {
        width: 90px;
        height: 75px;
        flex-shrink: 0;
    }

    .category-article-card .card-title {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 6px;
    }

    .category-article-card .card-meta {
        gap: 8px;
        font-size: 11px;
    }

    .category-article-card .card-thumbnail .access-badge {
        padding: 1px 4px;
        font-size: 7px;
        top: 4px;
        left: 4px;
    }

    /* Latest news cards mobile */
    .latest-news-card .card-image {
        height: 150px;
    }

    .latest-news-card .card-content {
        padding: 14px;
    }

    .latest-news-card .card-title {
        font-size: 14px;
    }

}

/* Extra small screens */
@media (max-width: 400px) {
    .category-article-card .card-thumbnail {
        width: 75px;
        height: 65px;
    }

    .category-article-card .card-title {
        font-size: 12px;
    }
}

/* Main content area */
.sa-main-content {
    animation: fadeIn 0.4s ease;
}
