/* ==========================================================================
   JDIH KEMENKO POLKAM — CONSOLIDATED FRONTEND STYLESHEET
   Menggabungkan semua CSS dari 16 file PHP view menjadi satu file terpusat.
   ========================================================================== */


/* ==========================================================================
   0. CSS VARIABLES
   ========================================================================== */
:root {
    --primary-blue:    #0B2447;
    --primary-dark:    #0B2447;
    --secondary-blue:  #19376D;
    --accent-gold:     #D4AF37;
    --jdih-red:        #C8102E;
    --success-green:   #10b981;
    --danger-red:      #C8102E;
    --warning-orange:  #f59e0b;
    --bg-light:        #f8fafc;
    --bg-page:         #f8fafc;
    --text-dark:       #1e293b;
    --text-muted:      #64748b;
    --text-light:      #64748b;
    --border-color:    #e2e8f0;
    --title-bg:        #CFE2FF;
    --link-hover-bg:   #f1f5f9;
    --gold-gradient:   linear-gradient(135deg, #DFBD69 0%, #926F34 100%);
    --blue-gradient:   linear-gradient(135deg, #0B2447 0%, #19376D 100%);
}


/* ==========================================================================
   1. GLOBAL
   ========================================================================== */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

a { text-decoration: none; transition: 0.3s; }

main { min-height: 80vh; }

.custom-page {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    min-height: 100vh;
    color: var(--text-dark);
}


/* ==========================================================================
   2. HEADER & NAVBAR
   ========================================================================== */
#header {
    background: #fff;
    height: 80px;
    transition: all 0.5s;
    z-index: 997;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-bottom: 3px solid #D4AF37;
}

#header .logo { display: flex; align-items: center; }
#header .logo img { max-height: 55px; width: auto; transition: 0.3s; }

.navbar { padding: 0; }

.navbar ul {
    margin: 0; padding: 0;
    display: flex; list-style: none; align-items: center;
}

.navbar li { position: relative; }

.navbar a, .navbar a:focus {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0 10px 30px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px; font-weight: 600;
    color: #0B2447;
    white-space: nowrap; transition: 0.3s;
    text-decoration: none; text-transform: uppercase;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a { color: #D4AF37; }

.mobile-nav-toggle {
    color: #0B2447; font-size: 28px; cursor: pointer;
    display: none; line-height: 0; transition: 0.5s;
}

@media (max-width: 991px) {
    .mobile-nav-toggle { display: block; }
    .navbar ul { display: none; }
}

.navbar-mobile > ul { display: block !important; }


/* ==========================================================================
   3. ACCESSIBILITY WIDGET v2
   ========================================================================== */
.acc-skip {
    position: absolute; top: -100px; left: 8px; z-index: 10020;
    background: #1565C0; color: #fff; padding: 10px 20px;
    border-radius: 4px; font-weight: 700; text-decoration: none; transition: top .2s;
}
.acc-skip:focus { top: 8px; }

#acc-trigger {
    position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 10010;
    background: #1565C0; color: #fff; border: none;
    border-radius: 12px 0 0 12px; width: 46px; height: 54px;
    font-size: 22px; cursor: pointer;
    box-shadow: -3px 0 16px rgba(21,101,192,.45);
    transition: .3s; display: flex; align-items: center; justify-content: center;
}
#acc-trigger:hover { background: #0D47A1; width: 54px; }

#acc-panel {
    position: fixed; top: 0; right: -510px; width: 480px; height: 100vh;
    background: #f0f4ff; z-index: 10009; overflow-y: auto;
    box-shadow: -6px 0 36px rgba(0,0,0,0.2);
    transition: right .35s cubic-bezier(.4,0,.2,1);
}
#acc-panel.open { right: 0; }

.acc2-hdr {
    background: linear-gradient(135deg,#1565C0,#0D47A1);
    color: #fff; padding: 15px 18px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 2;
}
.acc2-hdr .ttl { font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: 9px; }

#acc-close {
    background: rgba(255,255,255,.18); border: none; color: #fff;
    border-radius: 50%; width: 32px; height: 32px; cursor: pointer;
    font-size: 1rem; display: flex; align-items: center; justify-content: center;
    transition: .2s; flex-shrink: 0;
}
#acc-close:hover { background: rgba(255,255,255,.38); }

.acc2-body { padding: 14px; }

.acc2-lang {
    background: #fff; border-radius: 10px; padding: 11px 14px;
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 10px; border: 1px solid #dbeafe;
}
.acc2-lang .flag {
    width: 30px; height: 30px; background: #1565C0; color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: .6rem; font-weight: 700; flex-shrink: 0;
}
.acc2-lang span { font-size: .85rem; font-weight: 500; color: #1e293b; }

.acc2-pbar {
    background: #fff; border-radius: 10px; padding: 11px 14px;
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px; border: 1px solid #dbeafe;
}
.acc2-pbar .pico { color: #1565C0; font-size: 1rem; flex-shrink: 0; }
.acc2-pbar .plbl { font-size: .84rem; font-weight: 600; color: #1e293b; flex: 1; }
.acc2-pbar .parr { color: #94a3b8; font-size: .78rem; }

.acc2-slbl { font-size: .7rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .07em; margin: 12px 0 8px 2px; }

.acc2-profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.acc2-pcard {
    background: #fff; border: 2px solid #e2e8f0; border-radius: 12px;
    padding: 10px 11px; display: flex; align-items: center; gap: 9px;
    cursor: pointer; transition: .2s; text-align: left;
}
.acc2-pcard:hover { border-color: #1565C0; }
.acc2-pcard.active { border-color: #1565C0; background: #eff5ff; }
.acc2-pcard .pi { font-size: 1rem; color: #64748b; width: 20px; text-align: center; flex-shrink: 0; }
.acc2-pcard.active .pi { color: #1565C0; }
.acc2-pcard .pt { font-size: .76rem; font-weight: 600; color: #334155; line-height: 1.25; }
.acc2-pcard.active .pt { color: #1565C0; }

.acc2-tiles { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.acc2-tile {
    background: #fff; border: 2px solid #e2e8f0; border-radius: 12px;
    padding: 14px 6px 10px; display: flex; flex-direction: column;
    align-items: center; gap: 6px; cursor: pointer; transition: .2s;
}
.acc2-tile:hover { border-color: #1565C0; }
.acc2-tile.active { border-color: #1565C0; background: #eff5ff; }
.acc2-tile .tico { font-size: 1.55rem; color: #475569; line-height: 1; }
.acc2-tile.active .tico { color: #1565C0; }
.acc2-tile .tlbl { font-size: .68rem; font-weight: 600; color: #475569; text-align: center; line-height: 1.25; }
.acc2-tile.active .tlbl { color: #1565C0; }

#acc-reset {
    width: 100%; background: #1565C0; color: #fff; border: none;
    border-radius: 10px; padding: 13px; font-weight: 700; font-size: .85rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    gap: 9px; transition: .2s; margin-bottom: 10px;
}
#acc-reset:hover { background: #0D47A1; }

.acc2-ver { text-align: center; font-size: .7rem; color: #94a3b8; margin: 0 0 6px; }

#acc-guide {
    position: fixed; left: 0; width: 100%; height: 44px;
    background: rgba(21,101,192,.09);
    border-top: 2px solid rgba(21,101,192,.5);
    border-bottom: 2px solid rgba(21,101,192,.5);
    pointer-events: none; z-index: 9999; display: none; top: 50%;
}

/* Accessibility feature classes */
html.acc-hc  { filter: contrast(200%); }
html.acc-sat { filter: saturate(0%); }
html.acc-neg { filter: invert(100%) hue-rotate(180deg); }
html.acc-no-anim *, html.acc-no-anim *::before, html.acc-no-anim *::after { animation: none !important; transition: none !important; }
body.acc-hide-images img { visibility: hidden !important; }
body.acc-justify p, body.acc-justify li, body.acc-justify td { text-align: justify !important; }
/* Kelas ikon dikecualikan: jenis huruf ikon FA5 & themify dipasang di elemennya sendiri */
body.acc-dyslexia, body.acc-dyslexia *:not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not([class^="ti-"]):not([class*=" ti-"]) { font-family: 'Trebuchet MS',Arial,sans-serif !important; letter-spacing: .04em; }
body.acc-lh p, body.acc-lh li, body.acc-lh td { line-height: 2 !important; }
body.acc-ls p, body.acc-ls li, body.acc-ls a, body.acc-ls td { letter-spacing: .12em !important; word-spacing: .2em !important; }
body.acc-ul a { text-decoration: underline !important; }
body.acc-bigcur * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cpath d='M9 3l0 26 6-6 4 10 3-1-4-10 9 0z' fill='%23000' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E"),auto !important; }

*:focus-visible { outline: 3px solid #1565C0 !important; outline-offset: 3px !important; }


/* ==========================================================================
   4. FOOTER
   ========================================================================== */
.site-footer {
    background: #0B2447;
    color: rgba(255,255,255,0.75);
    padding: 60px 0 0;
    font-size: 0.9rem;
}

.site-footer h5 {
    color: #D4AF37; font-weight: 700; font-size: 1rem;
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 18px; position: relative; padding-bottom: 10px;
}
.site-footer h5::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 36px; height: 3px; background: #D4AF37; border-radius: 2px;
}

.site-footer p, .site-footer li { color: rgba(255,255,255,0.72); line-height: 1.8; }
.site-footer a { color: rgba(255,255,255,0.72); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: #D4AF37; }

.footer-socials a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff; font-size: 1rem; margin-right: 8px; transition: 0.3s;
}
.footer-socials a:hover { background: #D4AF37; border-color: #D4AF37; color: #0B2447; }

.visit-stat {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.visit-stat:last-child { border-bottom: none; }
.visit-stat .label { color: rgba(255,255,255,0.65); font-size: 0.85rem; }
.visit-stat .value { color: #D4AF37; font-weight: 700; font-size: 0.95rem; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-links li:last-child { border-bottom: none; }
.footer-links a::before { content: '›'; margin-right: 7px; color: #D4AF37; font-weight: 700; }

.footer-contact li { display: flex; gap: 10px; padding: 5px 0; list-style: none; }
.footer-contact .icon { color: #D4AF37; min-width: 20px; margin-top: 3px; }

.footer-divider { border-color: rgba(255,255,255,0.1); margin: 40px 0 0; }

.footer-bottom {
    background: rgba(0,0,0,0.25);
    padding: 14px 0; font-size: 0.82rem; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #D4AF37; }


/* ==========================================================================
   5. SHARED HERO (semua halaman kecuali beranda)
   ========================================================================== */
.hero-rectangle {
    background-color: #0B2447;
    background-image: linear-gradient(135deg, #0B2447 0%, #19376D 100%);
    padding: 180px 0 140px 0;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
    border-bottom: 6px solid #D4AF37;
}

.hero-rectangle h1 {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.custom-breadcrumb {
    background: rgba(255,255,255,0.1);
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
}
.custom-breadcrumb a { color: rgba(255,255,255,0.9); text-decoration: none; font-size: 0.9rem; }
.custom-breadcrumb span.active { color: #D4AF37; font-weight: 700; }


/* ==========================================================================
   6. SHARED SEARCH BOX (halaman index dokumen)
   ========================================================================== */
.search-wrapper-wide {
    margin-top: 50px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.wide-search-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(11,36,71,0.08);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wide-search-box h3 {
    color: var(--primary-blue);
    font-size: 1.4rem; font-weight: 800; margin: 0;
    text-transform: uppercase;
    display: flex; align-items: center; gap: 12px;
    letter-spacing: 0.5px;
}
.wide-search-box h3 i { color: var(--accent-gold); }

.input-group-custom {
    display: flex;
    background: #f8fafc;
    border-radius: 12px;
    padding: 8px; gap: 10px;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}
.input-group-custom:focus-within {
    background: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(11,36,71,0.1);
}

.input-field-custom {
    flex-grow: 1; border: none;
    padding: 0 20px; height: 55px;
    font-size: 1.1rem; font-weight: 500;
    outline: none; color: var(--text-dark); background: transparent;
}
.input-field-custom::placeholder { color: #94a3b8; }

.btn-search-custom {
    background: var(--primary-blue);
    color: #ffffff; border: none;
    padding: 0 45px; border-radius: 10px;
    font-weight: 700; text-transform: uppercase;
    height: 55px; letter-spacing: 0.5px; transition: 0.3s;
}
.btn-search-custom:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(11,36,71,0.2);
}

/* Shortcut links */
.shortcut-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 5px; align-items: center; }
.shortcut-label { color: var(--text-muted); font-size: 0.9rem; font-weight: 700; margin-right: 5px; }
.shortcut-item {
    color: var(--primary-blue); font-size: 0.85rem; font-weight: 600;
    text-decoration: none; padding: 8px 18px;
    border: 1.5px solid var(--primary-blue); border-radius: 50px;
    transition: 0.2s; background: #e8edf5;
}
.shortcut-item:hover {
    background: var(--primary-blue); color: white;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 10px rgba(11,36,71,0.15);
}

.content-section { padding: 0 0 100px 0; }


/* ==========================================================================
   7. SHARED DOCUMENT LISTING CARDS (halaman index dokumen)
   ========================================================================== */
.results-main { display: flex; flex-direction: column; gap: 15px; }

.premium-doc-card {
    background: white; border-radius: 12px; padding: 25px;
    border: 1px solid #e2e8f0;
    display: flex; align-items: center; gap: 25px;
    transition: all 0.3s ease; position: relative;
}
.premium-doc-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.doc-icon-box {
    width: 55px; height: 55px; background: #f8fafc;
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: var(--primary-blue); font-size: 1.4rem;
    border: 1px solid #e2e8f0; flex-shrink: 0;
}

.doc-info-column { flex-grow: 1; }

.doc-type-tag {
    font-size: 0.7rem; font-weight: 800;
    color: var(--jdih-red); text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 5px;
}

.doc-title {
    font-size: 1.1rem; font-weight: 700;
    color: var(--primary-blue); margin: 0 0 8px 0; line-height: 1.4;
}

.doc-meta { display: flex; flex-wrap: wrap; gap: 15px; font-size: 0.85rem; color: var(--text-muted); }
.doc-meta i { color: var(--accent-gold); margin-right: 5px; }

.doc-actions-column {
    flex-shrink: 0; width: 140px;
    display: flex; flex-direction: column; gap: 8px;
}

.btn-action {
    display: block; width: 100%; padding: 10px;
    text-align: center; font-size: 0.8rem; font-weight: 700;
    border-radius: 6px; text-decoration: none !important; transition: 0.2s;
}
.btn-action-primary { background: var(--primary-blue); color: white; }
.btn-action-outline { background: white; color: var(--primary-blue); border: 1px solid #e2e8f0; }
.btn-action-primary:hover { background: var(--secondary-blue); color: white; }
.btn-action-outline:hover { border-color: var(--primary-blue); background: #f8fafc; }

.sidebar-v4 { background: white; padding: 25px; border-radius: 12px; border: 1px solid #e2e8f0; }
.sidebar-v4 h5 {
    color: var(--primary-blue); font-weight: 800; margin-bottom: 20px;
    text-transform: uppercase; border-left: 4px solid var(--accent-gold);
    padding-left: 12px; font-size: 0.95rem;
}

/* Search sidebar form */
.search-v4-sidebar { font-size: 0.9rem; }
.search-v4-sidebar .field-dokumensearch-judul,
.search-v4-sidebar .field-dokumensearch-tipe_dokumen,
.search-v4-sidebar .field-dokumensearch-jenis_peraturan,
.search-v4-sidebar .field-dokumensearch-nomor_peraturan,
.search-v4-sidebar .field-dokumensearch-tahun_terbit,
.search-v4-sidebar .field-dokumensearch-status,
.search-v4-sidebar .field-dokumensearch-bahasa,
.search-v4-sidebar .field-dokumensearch-urusan_pemerintahan { margin-bottom: 14px; }

.search-v4-sidebar label {
    font-size: 0.78rem; font-weight: 700; color: var(--primary-blue);
    text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 5px; display: block;
}

.search-v4-sidebar input[type="text"],
.search-v4-sidebar select {
    width: 100%; padding: 9px 12px;
    border: 1px solid #e2e8f0; border-radius: 8px;
    font-size: 0.88rem; color: var(--text-dark);
    background: #f8fafc; outline: none; transition: 0.2s;
    appearance: auto;
}
.search-v4-sidebar input[type="text"]:focus,
.search-v4-sidebar select:focus {
    border-color: var(--primary-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(11,36,71,0.08);
}

.compact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.btn-filter-submit {
    background: var(--primary-blue); color: #fff;
    border: none; padding: 10px 20px; border-radius: 8px;
    font-weight: 700; font-size: 0.88rem; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    transition: 0.2s;
}
.btn-filter-submit:hover { background: var(--secondary-blue); transform: translateY(-1px); }

.btn-filter-reset {
    color: var(--text-muted); font-size: 0.85rem; font-weight: 600;
    text-decoration: none; padding: 10px 8px;
    display: inline-flex; align-items: center; gap: 4px; transition: 0.2s;
}
.btn-filter-reset:hover { color: var(--primary-blue); }


/* ==========================================================================
   8. SHARED DOCUMENT DETAIL (halaman view dokumen)
   ========================================================================== */
.detail-card {
    background: white; border-radius: 20px; padding: 40px;
    box-shadow: 0 10px 30px rgba(11,36,71,0.05);
    border: 1px solid #e2e8f0; margin-bottom: 30px;
}

/* Default: judul dengan background biru muda (artikel, monografi, putusan) */
.doc-title-main {
    font-size: 1.5rem; font-weight: 800;
    margin-bottom: 40px; padding: 25px 30px;
    border-radius: 12px; line-height: 1.4;
    text-transform: uppercase;
    color: var(--primary-blue);
    background: var(--title-bg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    text-align: left;
}

/* Override untuk peraturan: teks putih di atas background status */
.doc-title-main.status-bg-green,
.doc-title-main.status-bg-red { color: #ffffff; background: initial; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.status-bg-green { background: var(--success-green) !important; }
.status-bg-red   { background: var(--danger-red) !important; }

/* Status label sidebar */
.status-text-green { background: #ecfdf5; color: var(--success-green); }
.status-text-red   { background: #fef2f2; color: var(--danger-red); }

.info-label { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: 4px; }
.info-value { font-size: 1rem; color: var(--text-dark); font-weight: 600; margin-bottom: 25px; line-height: 1.5; }

/* Daftar dokumen terkait */
.related-list { list-style: none; padding: 0; margin: 0; }
.related-item-link {
    display: flex; align-items: flex-start;
    padding: 15px; border-radius: 12px;
    background: #ffffff; border: 1px solid #f1f5f9;
    margin-bottom: 12px; transition: all 0.3s ease;
    text-decoration: none !important; color: var(--text-dark);
}
.related-item-link:hover { background: var(--link-hover-bg); border-color: var(--secondary-blue); transform: translateX(5px); }
.related-icon {
    width: 40px; height: 40px; background: #f0f4f8;
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    margin-right: 15px; flex-shrink: 0; color: var(--primary-blue); font-size: 1rem;
}
.related-content { flex-grow: 1; }
.related-title { font-size: 0.95rem; font-weight: 700; color: var(--primary-blue); line-height: 1.4; display: block; }
.related-meta  { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; display: block; }

/* Riwayat status */
.status-history-list { list-style: none; padding: 0; margin: 0; }
.status-history-item { padding: 15px; border-radius: 12px; margin-bottom: 15px; border: 1px solid transparent; transition: 0.3s; }
.status-item-mencabut     { background: #fef2f2; border-color: #fee2e2; }
.status-item-dicabut-oleh { background: #fdfaf0; border-color: #fef3c7; }
.status-item-default      { background: #f8fafc; border-color: #e2e8f0; }

.status-badge-boxed {
    display: inline-block; padding: 5px 10px; border-radius: 6px;
    font-weight: 900; font-size: 0.75rem; text-transform: uppercase;
    margin-bottom: 8px; border-width: 2px; border-style: solid;
    line-height: 1; background: white;
}
.badge-color-mencabut    { color: var(--danger-red);    border-color: var(--danger-red); }
.badge-color-dicabut-oleh{ color: var(--accent-gold);   border-color: var(--accent-gold); }
.badge-color-default     { color: var(--secondary-blue); border-color: var(--secondary-blue); }

.catatan-box { font-size: 0.8rem; color: var(--text-muted); font-style: italic; margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(0,0,0,0.05); display: block; }

.btn-abstrak-style { background: #64748b; }


/* ==========================================================================
   9. SHARED SIDEBAR
   ========================================================================== */
.sidebar-widget { background: white; border-radius: 16px; border: 1px solid #e2e8f0; overflow: hidden; margin-bottom: 25px; }
.sidebar-header {
    background: #ffffff; padding: 15px; text-align: center;
    font-size: 0.75rem; font-weight: 800; color: var(--primary-blue);
    border-bottom: 1px solid #f1f5f9; text-transform: uppercase;
}
.sidebar-body { padding: 20px; text-align: center; font-weight: 800; font-size: 1.2rem; }


/* ==========================================================================
   10. SHARED UTILITIES
   ========================================================================== */
.section-header-small {
    font-size: 0.95rem; font-weight: 800; color: var(--primary-blue);
    margin-bottom: 20px; text-transform: uppercase;
    border-left: 4px solid var(--accent-gold); padding-left: 12px; display: block;
}

.badge-subjek {
    background: #f1f5f9; color: var(--primary-blue);
    padding: 8px 15px; border-radius: 8px;
    font-size: 0.85rem; font-weight: 600;
    margin-right: 8px; margin-bottom: 8px;
    display: inline-block; border: 1px solid #e2e8f0;
}

.lampiran-box { background: #f8fafc; border-radius: 12px; padding: 15px; margin-bottom: 15px; border: 1px solid #e2e8f0; }
.lampiran-sub-header { font-size: 0.8rem; font-weight: 800; color: var(--primary-blue); margin-bottom: 10px; text-transform: uppercase; display: block; }

.btn-download-action {
    background: var(--primary-blue); color: white !important;
    border-radius: 8px; padding: 10px; font-size: 0.85rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    gap: 8px; width: 100%; transition: 0.3s;
}
.btn-download-action:hover { background: var(--secondary-blue); transform: translateY(-2px); text-decoration: none; }

.table-clean { width: 100%; border-collapse: collapse; margin-top: 15px; }
.table-clean th { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); border-bottom: 2px solid #e2e8f0; padding: 12px; text-align: left; }
.table-clean td { padding: 12px; border-bottom: 1px solid #f1f5f9; font-size: 0.95rem; }


/* ==========================================================================
   11. MEDIA QUERIES GLOBAL
   ========================================================================== */
@media (max-width: 991px) {
    .premium-doc-card { flex-direction: column; text-align: center; }
    .doc-actions-column { width: 100%; flex-direction: row; }
    .input-group-custom { flex-direction: column; }
    .btn-search-custom { width: 100%; }
    .hero-rectangle { padding-bottom: 60px !important; }
}

@media (max-width: 768px) {
    .mobile-nav-toggle { display: block; }
    .navbar ul { display: none; }
    #acc-panel { width: 100%; right: -100%; }
    #acc-trigger { width: 40px; height: 44px; font-size: 18px; top: auto; bottom: 70px; transform: none; }
    .hero-rectangle { padding: 120px 0 80px 0; }
    .hero-rectangle h1 { font-size: 2.2rem; letter-spacing: -0.5px; }
}
