/* =========================================================
   1. BLOK BERITA & SEPUTAR PERKARA
   ========================================================= */
.news-section {
    background: var(--paper);
    border-top: 1px solid var(--brand-100);
    padding: 48px 0 56px;
}

.news-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.news-head-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.news-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--white);
    padding: 4px;
    border-radius: 9999px;
    border: 1px solid var(--brand-100);
    box-shadow: 0 2px 8px rgba(4, 57, 42, 0.05);
}

.news-tab-btn {
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
}

.news-tab-btn:hover {
    color: var(--brand-dark);
    background: var(--brand-50);
}

.news-tab-btn.is-active {
    background: linear-gradient(135deg, var(--brand-mid), var(--brand));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(6, 120, 86, 0.25);
}

.news-archive-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--brand);
    transition: gap 0.18s ease, color 0.18s ease;
}

.news-archive-link:hover {
    gap: 10px;
    color: var(--brand-dark);
}

.news-tab-panel {
    animation: pabjnTabFade 0.22s ease;
}

@keyframes pabjnTabFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.news-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

/* Kartu Berita Utama (Dipakai juga di Grid Arsip) */
.news-featured-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(4, 57, 42, 0.06);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.news-featured-card:hover {
    box-shadow: var(--shadow-card-lg);
    transform: translateY(-2px);
}

.news-featured-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-featured-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    overflow: hidden;
    flex-shrink: 0;
}

.news-featured-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.news-featured-card:hover .news-featured-thumb img {
    transform: scale(1.04);
}

.news-thumb-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--gold-light);
    opacity: 0.9;
}

.news-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 57, 42, 0.58) 0%, transparent 45%);
    pointer-events: none;
}

.news-date-pill {
    position: absolute;
    left: 16px;
    top: 16px;
    background: var(--gold-light);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 9999px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}

.news-utama-pill {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: rgba(4, 57, 42, 0.82);
    backdrop-filter: blur(4px);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 9999px;
}

.news-featured-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-featured-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--ink);
    transition: color 0.18s ease;
}

.news-featured-card:hover .news-featured-title {
    color: var(--brand);
}

.news-featured-excerpt {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-600);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-readmore {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--brand);
    transition: gap 0.18s ease;
}

.news-featured-card:hover .news-readmore {
    gap: 10px;
}

/* Daftar Artikel Samping (Rapat & Proporsional) */
.news-side-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-side-item {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(4, 57, 42, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    flex: 0 0 auto;
    display: block;
}

.news-side-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 3px;
    background: var(--gold);
    transform: scaleY(0);
    transition: transform 0.22s ease;
}

.news-side-item:hover {
    border-color: rgba(6, 120, 86, 0.22);
    box-shadow: var(--shadow-card);
    transform: translateX(2px);
}

.news-side-item:hover::before {
    transform: scaleY(1);
}

.news-side-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    width: 100%;
}

.news-side-thumb {
    position: relative;
    width: 84px;
    height: 68px;
    margin-top: 2px;
    border-radius: 9px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--brand-50);
    border: 1px solid rgba(4, 57, 42, 0.06);
}

.news-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-side-content {
    min-width: 0;
    flex: 1;
}

.news-side-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.news-side-date {
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-400);
}

.news-side-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

.news-side-item:hover .news-side-title {
    color: var(--brand);
}

.news-side-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 6px;
}

/* =========================================================
   2. BLOK ARTIKEL & EDUKASI HUKUM (MARQUEE KANAN KE KIRI)
   ========================================================= */
.artikel-section {
    background: var(--white);
    border-top: 1px solid var(--brand-100);
    padding: 48px 0 54px;
    overflow: hidden;
}

.artikel-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.artikel-marquee-outer {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.artikel-fade-left,
.artikel-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 72px;
    z-index: 5;
    pointer-events: none;
}

.artikel-fade-left {
    left: 0;
    background: linear-gradient(to right, var(--white) 0%, rgba(255, 255, 255, 0) 100%);
}

.artikel-fade-right {
    right: 0;
    background: linear-gradient(to left, var(--white) 0%, rgba(255, 255, 255, 0) 100%);
}

.artikel-marquee-viewport {
    overflow: hidden;
    padding: 8px 0 18px;
}

.artikel-marquee-track {
    display: flex;
    width: max-content;
    animation: pabjnArticleMarquee var(--marquee-duration, 36s) linear infinite;
    will-change: transform;
}

.artikel-marquee-viewport:hover .artikel-marquee-track,
.artikel-marquee-viewport:focus-within .artikel-marquee-track {
    animation-play-state: paused;
}

@keyframes pabjnArticleMarquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.artikel-marquee-group {
    display: flex;
    align-items: stretch;
    gap: 20px;
    padding-right: 20px;
    flex-shrink: 0;
}

.artikel-card {
    width: 315px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid rgba(4, 57, 42, 0.08);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.artikel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-lg);
    border-color: rgba(6, 120, 86, 0.25);
}

.artikel-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.artikel-card-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    overflow: hidden;
}

.artikel-card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.artikel-card:hover .artikel-card-thumb img {
    transform: scale(1.05);
}

.artikel-thumb-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--gold-light);
    opacity: 0.9;
}

.artikel-cat-pill {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 12px rgba(4, 57, 42, 0.28);
}

.artikel-cat-pill.pill-edukasi {
    background: var(--brand);
    color: var(--white);
}

.artikel-cat-pill.pill-artikel {
    background: var(--brand-dark);
    color: var(--gold-light);
}

.artikel-card-body {
    padding: 16px 18px 20px;
    flex: 1;
}

.artikel-card-title {
    margin: 0;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.42;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.18s ease;
}

.artikel-card:hover .artikel-card-title {
    color: var(--brand);
}

/* Responsif Berita & Artikel */
@media (prefers-reduced-motion: reduce) {
    .artikel-marquee-track {
        animation: none;
    }
    .artikel-marquee-viewport {
        overflow-x: auto;
    }
}

@media (max-width: 992px) {
    .news-layout-grid {
        grid-template-columns: 1fr;
    }
    .news-side-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .news-section {
        padding: 36px 0 42px;
    }
    .news-side-list {
        grid-template-columns: 1fr;
    }
    .news-tabs {
        width: 100%;
        justify-content: space-between;
    }
    .news-tab-btn {
        flex: 1;
        text-align: center;
        padding: 7px 10px;
        font-size: 12px;
    }
    .artikel-card {
        width: 265px;
    }
    .artikel-fade-left,
    .artikel-fade-right {
        width: 28px;
    }
}