:root {
    --ma-green: #0d5c3a;
    --ma-maroon: #800000;
    --ma-gold: #f59e0b;
    --ma-bg: #f8fafc;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: var(--ma-bg);
    margin: 0;
    padding: 0;
    color: #333;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 15px; 
}

/* =======================================================
   1. TOPBAR DINAMIS & SEARCH (COMPACT)
   ======================================================= */
.topbar {
    background-color: #093c26;
    color: #e2e8f0;
    font-size: 0.8rem;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background-size: cover;
    background-position: center;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-group-left, 
.topbar-group-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-socials a {
    color: #f1f5f9;
    text-decoration: none;
    margin-right: 6px;
    font-size: 0.85rem;
    transition: 0.2s;
}

.topbar-socials a:hover { 
    color: var(--ma-gold); 
}

.topbar-search-form {
    display: flex;
    align-items: center;
}

.topbar-search-form input {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.topbar-search-form input::placeholder { 
    color: #cbd5e1; 
}

.topbar-search-form button {
    background: var(--ma-gold);
    border: 1px solid var(--ma-gold);
    color: #000;
    padding: 2px 8px;
    border-radius: 0 4px 4px 0;
    font-size: 0.75rem;
    cursor: pointer;
}

.btn-acc {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.72rem;
    cursor: pointer;
    font-weight: bold;
}

.btn-acc:hover { 
    background: var(--ma-gold); 
    color: #000; 
}

/* =======================================================
   2. HEADER INSTANSI (FLEKSIBEL & FULL BANNER)
   ======================================================= */
.main-header { 
    background-color: var(--ma-green); 
    color: #fff; 
    padding: 10px 0; 
    border-bottom: 3px solid var(--ma-gold); 
    background-size: cover;
    background-position: center;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-header.header-is-full {
    padding: 0 !important;
}

.main-header.header-is-full .header-container {
    max-width: 100% !important;
    padding: 0 !important;
}

.main-header.header-is-full img.header-banner-full {
    width: 100%;
    height: auto;
    display: block;
}

.header-layout-logo_only {
    display: flex;
    align-items: center;
}
.header-layout-logo_only.align-left { justify-content: flex-start; }
.header-layout-logo_only.align-center { justify-content: center; }
.header-layout-logo_only.align-right { justify-content: flex-end; }

.brand-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.brand-sub {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ma-gold);
    letter-spacing: 1px;
}

.brand-title {
    margin: 2px 0;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.brand-address {
    font-size: 0.8rem;
    color: #d1fae5;
}

/* =======================================================
   3. NAVIGASI MENU UTAMA & MULTI-LEVEL FLYOUT
   ======================================================= */
.main-nav {
    background-color: #082d1c;
    border-bottom: 3px solid var(--ma-gold);
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-size: cover;
    background-position: center;
}

.nav-container { 
    position: relative;
    padding: 0 15px; 
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap; /* Cegah menu turun ke bawah */
}

.nav-menu > li { 
    position: relative; 
    flex-shrink: 0; /* Cegah teks mengecil atau terlipat */
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #f1f5f9;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem; /* Sedikit disesuaikan agar lega */
    padding: 12px 10px; /* Padding samping dirampingkan */
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap !important; /* Kunci teks agar tetap 1 baris horizontal */
    transition: 0.2s;
}

.nav-menu > li:hover > .nav-link,
.nav-menu > li.has-dropdown:hover > .nav-link {
    background: rgba(255,255,255,0.12);
    color: var(--ma-gold) !important;
}

.nav-arrow { 
    font-size: 0.6rem; 
    margin-left: 3px;
}

.nav-btn-portal {
    background: var(--ma-maroon) !important;
    color: #fff !important;
    border-radius: 4px;
    margin-left: auto;
    padding: 6px 12px !important;
    white-space: nowrap !important;
    font-size: 0.78rem;
}

.nav-btn-portal:hover { 
    background: #5c0000 !important; 
}

/* Dropdown Menu Tingkat 1 (Bawah) */
.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    border-radius: 0 0 8px 8px;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    display: none;
    z-index: 10000;
    border-top: 3px solid var(--ma-gold);
}

.nav-menu > li.has-dropdown:hover > .dropdown-menu {
    display: block !important;
}

.dropdown-menu li, 
.dropdown-submenu li {
    position: relative;
    list-style: none;
}

.dropdown-menu li a, 
.dropdown-submenu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 16px;
    color: #1e293b !important;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    border-bottom: 1px solid #f1f5f9;
    white-space: nowrap;
    transition: 0.2s;
}

.dropdown-menu li:hover > a, 
.dropdown-submenu li:hover > a {
    background: #f8fafc;
    color: var(--ma-green) !important;
    padding-left: 20px;
}

.nav-sub-arrow {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-left: 14px;
}

/* Dropdown Menu Tingkat 2, 3, dst (Membuka ke Samping Kanan) */
.dropdown-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 250px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-radius: 0 8px 8px 8px;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    display: none;
    z-index: 10001;
    border-left: 3px solid var(--ma-green);
}

li.has-submenu:hover > .dropdown-submenu {
    display: block !important;
}

/* =======================================================
   4. RUNNING TEXT TICKER
   ======================================================= */
.running-ticker {
    background-color: #0f172a;
    border-bottom: 2px solid var(--ma-gold);
    color: #e2e8f0;
    font-size: 0.82rem;
    padding: 4px 0;
    background-size: cover;
    background-position: center;
}

.ticker-badge {
    background: var(--ma-maroon);
    color: #fff;
    font-weight: bold;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 12px;
    white-space: nowrap;
}

.ticker-content {
    font-weight: 500;
    letter-spacing: 0.3px;
}

.ticker-news-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 35px;
    text-decoration: none;
    color: #f1f5f9;
    font-weight: 500;
}

.ticker-news-item:hover { 
    color: var(--ma-gold); 
}

.ticker-news-thumb {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.2);
}

/* =======================================================
   5. KONTEN BERANDA & SECTION BOX
   ======================================================= */
.main-content {
    padding-top: 20px;
}

.section-box { 
    background: #fff; 
    border-radius: 12px; 
    padding: 20px; 
    margin-bottom: 20px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
}

.section-title { 
    margin-top: 0; 
    color: var(--ma-green); 
    font-size: 1.2rem; 
    border-bottom: 2px solid #eee; 
    padding-bottom: 10px; 
    font-weight: 700;
}

.iframe-wrapper iframe { 
    width: 100%; 
    height: 420px; 
    border-radius: 8px; 
    border: 1px solid #e2e8f0; 
}

/* =======================================================
   6. DESAIN KARTU SURVEI
   ======================================================= */
.survey-container { 
    display: grid; 
    gap: 20px; 
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
}

.survey-card-wrapper {
    width: 100%;
}

.survey-card-wrapper.col-1 {
    grid-column: 1 / -1 !important;
}

.survey-card-wrapper.col-2 {
    grid-column: span 1;
}

.survey-card { 
    border: 2px solid var(--theme-color); 
    border-radius: 16px; 
    padding: 20px; 
    background: #fff; 
    position: relative; 
    height: 100%;
}

.badge-tag { 
    background: #fee2e2; 
    color: var(--theme-color); 
    font-size: 0.75rem; 
    font-weight: bold; 
    padding: 4px 10px; 
    border-radius: 20px; 
    text-transform: uppercase; 
}

.survey-title { 
    font-size: 1rem; 
    font-weight: 800; 
    color: #1e293b; 
    margin: 8px 0; 
}

.survey-period { 
    font-size: 0.85rem; 
    color: #64748b; 
    margin-bottom: 12px; 
}

.survey-score-banner { 
    background: var(--theme-color); 
    color: #fff; 
    border-radius: 12px; 
    padding: 12px 20px; 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

.score-number { 
    font-size: 3rem; 
    font-weight: 900; 
    line-height: 1;
}

.score-meta { 
    flex-grow: 1; 
}

.score-pct { 
    font-size: 1.1rem; 
    font-weight: 800; 
    color: #fde047; 
}

.score-label { 
    font-size: 0.8rem; 
    font-weight: bold; 
    letter-spacing: 0.5px; 
}

.progress-bar { 
    background: rgba(255,255,255,0.2); 
    height: 6px; 
    border-radius: 4px; 
    margin-top: 6px; 
    overflow: hidden; 
}

.progress-fill { 
    background: #fde047; 
    height: 100%; 
}

.survey-demography { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px; 
    margin: 15px 0; 
}

.demo-box { 
    background: #f1f5f9; 
    padding: 8px; 
    border-radius: 8px; 
    text-align: center; 
}

.demo-count { 
    font-size: 1.2rem; 
    font-weight: 800; 
    color: #1e293b; 
}

.demo-lbl { 
    font-size: 0.75rem; 
    color: #64748b; 
}

.survey-breakdown-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; 
}

.breakdown-head { 
    background: var(--theme-color); 
    color: #fff; 
    font-size: 0.8rem; 
    font-weight: bold; 
    padding: 6px 10px; 
    border-radius: 6px; 
    margin-bottom: 6px; 
}

.breakdown-item { 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.8rem; 
    padding: 4px 6px; 
    border-bottom: 1px solid #f1f5f9; 
}

/* =======================================================
   7. RSS FEED (2x2 GRID)
   ======================================================= */
.rss-grid-2 { 
    display: grid; 
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
    gap: 20px; 
}

.rss-head { 
    font-size: 1.1rem; 
    color: #1e293b; 
    margin-top: 0; 
}

.text-gold { 
    color: var(--ma-gold); 
}

.rss-item { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 10px 12px; 
    margin-bottom: 8px; 
    background: #fffbeb; 
    border: 1px solid #fef3c7; 
    border-radius: 8px; 
    text-decoration: none; 
    color: #334155; 
    font-size: 0.84rem; 
    font-weight: 600; 
    transition: 0.2s; 
}

.rss-item:hover { 
    background: #fef3c7; 
    color: var(--ma-maroon); 
}

.rss-icon { 
    color: var(--ma-gold); 
}

.rss-date { 
    margin-left: auto; 
    font-size: 0.72rem; 
    color: #94a3b8; 
    min-width: 75px; 
    text-align: right; 
}

/* =======================================================
   8. BLOK KUSTOM: BANNER & TOMBOL APLIKASI
   ======================================================= */
.banner-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.banner-grid-1 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.banner-item-wrap {
    width: 100%;
}

.banner-img-item {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease;
}

.banner-img-item:hover {
    transform: scale(1.01);
}

.service-icon-grid {
    display: grid;
    gap: 14px;
}

.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.service-icon-card {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.service-icon-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.service-icon-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(128, 0, 0, 0.25);
}

/* =======================================================
   9. FOOTER
   ======================================================= */
.main-footer {
    background: #0f172a;
    color: #94a3b8;
    margin-top: 40px;
    border-top: 4px solid var(--ma-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 2fr;
    gap: 35px;
    padding: 35px 15px 25px;
}

.footer-title {
    color: #fff;
    font-size: 1.05rem;
    margin-top: 0;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 6px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--ma-gold);
}

.footer-desc { 
    font-size: 0.85rem; 
    line-height: 1.6; 
}

.footer-links { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.footer-links li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.82rem;
    display: block;
    margin-bottom: 8px;
    transition: 0.2s;
}

.footer-links li a:hover { 
    color: var(--ma-gold); 
    transform: translateX(4px); 
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    margin-right: 6px;
    text-decoration: none;
    transition: 0.2s;
}

.footer-socials a:hover { 
    background: var(--ma-gold); 
    color: #000; 
}

.footer-bottom {
    background: #020617;
    padding: 12px 0;
    font-size: 0.78rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.high-contrast { 
    background: #000 !important; 
    color: #fff !important; 
}

body.high-contrast .section-box { 
    background: #111 !important; 
    color: #fff !important; 
    border: 1px solid #444; 
}

/* =======================================================
   10. KOTAK BERITA & PAGINASI
   ======================================================= */
.btn-all-news {
    background: #0d5c3a;
    color: #fff !important;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
}
.btn-all-news:hover {
    background: #084028;
}

.news-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.news-grid-home {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.news-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.news-thumb-link {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f8fafc;
    text-decoration: none !important;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-img {
    transform: scale(1.05);
}

.news-badge-cat {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(13, 92, 58, 0.9);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.news-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta-date {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 6px;
}

.news-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
}

.news-card-title a {
    color: #1e293b;
    text-decoration: none;
    transition: 0.2s;
}

.news-card-title a:hover {
    color: #0d5c3a;
}

.news-card-snippet {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 12px;
    flex-grow: 1;
}

.news-read-more {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0d5c3a;
    text-decoration: none;
    align-self: flex-start;
}

.news-read-more:hover {
    color: #f59e0b;
}

/* Styling Tombol Paginasi Cerdas */
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background: #e2e8f0;
    color: #0d5c3a;
    border-color: #0d5c3a;
}

.page-btn.active {
    background: #0d5c3a;
    color: #ffffff !important;
    border-color: #0d5c3a;
    cursor: default;
}

.page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    height: 38px;
    color: #94a3b8;
    font-weight: bold;
}

/* =======================================================
   11. RESPONSIVE MOBILE
   ======================================================= */
@media (max-width: 900px) {
    .survey-container,
    .rss-grid-2,
    .banner-grid-2,
    .footer-grid,
    .news-grid-home {
        grid-template-columns: 1fr !important;
    }
    
    .grid-cols-5, .grid-cols-4, .grid-cols-3 { 
        grid-template-columns: repeat(2, minmax(0, 1fr)); 
    }

    .topbar-inner {
        flex-direction: column;
        gap: 6px;
    }
}

/* =======================================================
   STYLING KARTU RELAAS PANGGILAN UMUM (PENGADILAN)
   ======================================================= */
.relaas-card-banner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #093c26 0%, #15803d 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.relaas-banner-inner {
    z-index: 2;
}

.relaas-tag-top {
    font-size: 1.25rem;
    font-weight: 900;
    color: #fef08a; /* Kuning Emas */
    letter-spacing: 1px;
    line-height: 1.1;
}

.relaas-tag-sub {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

.relaas-tag-no {
    font-size: 0.72rem;
    color: #bbf7d0;
    margin-top: 8px;
    font-family: monospace;
    font-weight: bold;
}

.relaas-paper-mockup {
    width: 80px;
    height: 100px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: -4px 6px 12px rgba(0, 0, 0, 0.25);
    position: relative;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: rotate(4deg);
    border: 1px solid #e2e8f0;
}

.paper-line {
    height: 4px;
    background: #cbd5e1;
    border-radius: 2px;
    width: 100%;
}

.paper-line.short {
    width: 60%;
}

.paper-seal {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.paper-seal img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* =======================================================
   FOOTER & WIDGET STATISTIK PENGUNJUNG RESPONSIVE
   ======================================================= */
.footer-grid-wrap {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1.3fr;
    gap: 35px;
    align-items: start;
    margin-bottom: 30px;
}

@media (max-width: 991px) {
    .footer-grid-wrap {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

.footer-widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f1f5f9;
    border-bottom: 2px solid #f59e0b;
    padding-bottom: 10px;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 1. Arsip Berita */
.footer-archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-archive-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.archive-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}

.archive-link:hover {
    color: #f59e0b;
    transform: translateX(4px);
}

.archive-badge {
    color: #f59e0b;
    font-weight: 700;
    font-size: 0.9rem;
}

/* =======================================================
   KARTU STATISTIK PENGUNJUNG GLASSMORPHISM (SEMI-TRANSPARAN)
   ======================================================= */
.visitor-stats-card {
    background: rgba(0, 0, 0, 0.22); /* Semi transparan menyatu dengan warna footer */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.visitor-card-header {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #ffffff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 10px;
}

.visitor-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.vstat-box {
    background: rgba(255, 255, 255, 0.08); /* Kotak dalam semi-transparan */
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease;
}

.vstat-box:hover {
    background: rgba(255, 255, 255, 0.14);
}

.vstat-box.full-span {
    grid-column: span 2;
}

.vstat-icon {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
}

.vstat-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vstat-info.d-flex-between {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.vstat-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.vstat-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    font-family: monospace;
}

.vstat-value.highlight {
    color: #fef08a; /* Kuning emas terang */
    font-size: 1.15rem;
}

.text-purple { color: #c084fc; }

/* 3. Frame Video */
.footer-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.footer-instansi-contact {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* 4. Sub-Footer */
.sub-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 18px;
    margin-top: 20px;
    font-size: 0.82rem;
    color: #94a3b8;
}

.sub-footer-socials a {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    margin-left: 6px;
    text-decoration: none;
    transition: 0.2s;
}

.sub-footer-socials a:hover {
    background: #f59e0b;
    color: #0f172a;
}

/* =======================================================
   STYLING HALAMAN DOKUMEN & AUTO-DOWNLOAD BUTTONS
   ======================================================= */
.page-content-wrapper table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 20px 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.page-content-wrapper td, 
.page-content-wrapper th {
    padding: 12px 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle !important;
}

/* Header Tahun Hasil Auto-Sorting */
.table-year-header td {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    border-bottom: 2px solid #cbd5e1 !important;
    border-top: 1px solid #e2e8f0 !important;
}

/* Tombol Download Link Dokumen Modern */
.doc-download-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #f8fafc !important;
    color: #1e293b !important;
    padding: 7px 14px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    border: 1px solid #cbd5e1 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
    margin: 3px 0 !important;
}

.doc-download-btn:hover {
    background: #0d5c3a !important;
    color: #ffffff !important;
    border-color: #0d5c3a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(13, 92, 58, 0.2) !important;
}

.doc-download-btn:hover i {
    color: #ffffff !important;
}

.doc-badge-unduh {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: 6px;
}

.doc-download-btn:hover .doc-badge-unduh {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
/* ===================================================
   PATCH STABILISASI FRONTEND PN SIAK
   =================================================== */

/* 1. Sticky Navbar */
nav.main-nav, .main-navbar, .nav-container, header nav, .navigation-wrap {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

/* 2. Cegah Gambar Meleber Keluar Kontainer */
img, .article-body img, .page-content img, .entry-content img, .card img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
}

/* 3. Submenu Ujung Kanan (Balik arah ke Kiri agar tidak keluar layar) */
.nav-item:last-child ul, 
.nav-item:nth-last-child(2) ul,
.navbar-nav > li:last-child ul,
.navbar-nav > li:nth-last-child(2) ul {
    right: 0 !important;
    left: auto !important;
}

.nav-item:last-child ul ul, 
.nav-item:nth-last-child(2) ul ul,
.navbar-nav > li:last-child ul ul,
.navbar-nav > li:nth-last-child(2) ul ul,
li:has(> a[href*="reformasi"]) ul ul,
li:has(> a:contains("REFORMASI")) ul ul {
    right: 100% !important;
    left: auto !important;
}

/* 4. Perataan Tombol Tautan Sosial Media */
.article-body a[href*="facebook.com"],
.article-body a[href*="youtube.com"],
.article-body a[href*="instagram.com"],
.article-body a[href*="t.me"],
.article-body a[href*="wa.me"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 6px 8px 6px 0 !important;
    padding: 8px 14px !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    color: #1e293b !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.article-body a[href*="facebook.com"]:hover,
.article-body a[href*="youtube.com"]:hover,
.article-body a[href*="instagram.com"]:hover,
.article-body a[href*="t.me"]:hover,
.article-body a[href*="wa.me"]:hover {
    background: #0d5c3a !important;
    color: #ffffff !important;
    border-color: #0d5c3a !important;
    transform: translateY(-2px);
}
