
:root {
    --pr: #003B7A;
    --pr-l: #0056B3;
    --ac: #E8A020;
    --ac-s: #FFF3DC;
    --sf: #F4F7FB;
    --sf2: #EAF0F8;
    --tx: #1A2535;
    --mu: #6B7A90;
    --wh: #FFFFFF;
    --bd: #D6E0EE;
    --gn: #1A7A4A;
    --gn-s: #E8F5EE;
    --rd: #C0392B;
    --rd-s: #FDECEA;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--sf);
    color: var(--tx);
    font-size: 15px;
    line-height: 1.65;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* TOPBAR */
.topbar {
    background: var(--pr);
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    padding: 6px 0;
}

.topbar a {
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
}

.topbar a:hover {
    color: var(--ac);
}

.topbar .sep {
    margin: 0 10px;
    opacity: .3;
}

/* NAVBAR */
.main-navbar {
    background: var(--wh);
    border-bottom: 3px solid var(--ac);
    box-shadow: 0 2px 18px rgba(0, 59, 122, .09);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--tx);
    flex-shrink: 0;
    cursor: pointer;
}

.brand-logo {
    height: 54px;
}

.brand-text .t1 {
    font-size: 13px;
    font-weight: 800;
    color: var(--pr);
    line-height: 1.2;
}

.brand-text .t2 {
    font-size: 10.5px;
    color: var(--mu);
    line-height: 1.35;
}

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

.nav-list>li {
    position: relative;
}

.nav-list>li>a,
.nav-list>li>button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 13px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tx);
    text-decoration: none;
    border: none;
    background: none;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s, color .18s;
}

.nav-list>li>a:hover,
.nav-list>li>button:hover,
.nav-list>li>a.active {
    background: var(--sf2);
    color: var(--pr);
}

.caret {
    font-size: 10px;
    opacity: .55;
}

.drop-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 230px;
    background: var(--wh);
    border: 1px solid var(--bd);
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 59, 122, .13);
    padding: 8px;
    z-index: 9999;
}

.drop-panel.show {
    display: block !important;
}

.drop-panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--tx);
    text-decoration: none;
    transition: background .15s;
}

.drop-panel a:hover,
.drop-panel a.active {
    background: var(--sf2);
    color: var(--pr);
}

.drop-panel .ico {
    width: 30px;
    height: 30px;
    background: var(--sf2);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--pr);
    flex-shrink: 0;
}

.drop-panel .ico.gold {
    background: var(--ac-s);
    color: var(--ac);
}

.drop-panel .ico.green {
    background: var(--gn-s);
    color: var(--gn);
}

.drop-panel .dl {
    height: 1px;
    background: var(--bd);
    margin: 6px 4px;
}

.drop-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--mu);
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: 8px 12px 4px;
}

.btn-auth {
    padding: 8px 15px;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all .2s;
    white-space: nowrap;
}

.btn-auth-out {
    border: 1.5px solid var(--pr);
    color: var(--pr);
    background: transparent;
}

.btn-auth-out:hover {
    background: var(--pr);
    color: var(--wh);
}

.btn-auth-fill {
    background: var(--ac);
    color: var(--tx);
    border: 1.5px solid var(--ac);
}

.btn-auth-fill:hover {
    background: #d08c18;
    border-color: #d08c18;
}

.hamburger {
    display: none;
    border: none;
    background: none;
    font-size: 1.45rem;
    color: var(--pr);
    cursor: pointer;
    padding: 4px;
}

.mob-menu {
    display: none;
    background: var(--wh);
    border-top: 1px solid var(--bd);
    padding: 12px 16px;
}

.mob-menu.open {
    display: block;
}

.mob-menu a {
    display: block;
    padding: 10px 8px;
    border-bottom: 1px solid var(--bd);
    font-size: 14px;
    font-weight: 600;
    color: var(--tx);
    text-decoration: none;
}

.mob-menu a:last-child {
    border-bottom: none;
}

.mob-menu a:hover {
    color: var(--pr);
}

.mob-sub {
    padding-left: 16px;
    display: none;
}

.mob-sub.open {
    display: block;
}

.mob-sub a {
    font-weight: 500;
    font-size: 13px;
}

/* SUBNAV */
.ki-subnav {
    background: #fff;
    border-bottom: 1px solid var(--bd);
    position: sticky;
    top: 77px;
    z-index: 900;
    box-shadow: 0 2px 8px rgba(0, 59, 122, .05);
}

.ki-subnav-inner {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    padding: 0 1rem;
    scrollbar-width: none;
}

.ki-subnav-inner::-webkit-scrollbar {
    display: none;
}

.ki-subtab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mu);
    border: none;
    background: none;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color .18s, border-color .18s;
}

.ki-subtab:hover {
    color: var(--pr);
}

.ki-subtab.active {
    color: var(--pr);
    border-bottom-color: var(--ac);
    font-weight: 700;
}

.ki-subpage {
    display: none;
}

.ki-subpage.active {
    display: block;
}

/* SHARED */
.sec-tag {
    display: inline-block;
    background: var(--ac-s);
    color: var(--ac);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.sec-title {
    font-family: 'Lora', serif;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--pr);
    margin: 0;
}

.sec-title span {
    color: var(--ac);
}

.sec-title-sm {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--pr);
    margin: 0;
}

.page-banner {
    background: linear-gradient(135deg, #002F63 0%, #004FA0 60%, #006FCC 100%);
    padding: clamp(28px, 5vw, 44px) 0 clamp(24px, 4vw, 36px);
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .03);
    top: -70px;
    right: -60px;
    pointer-events: none;
}

.page-banner .pg-badge {
    display: inline-block;
    background: var(--ac);
    color: var(--tx);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 13px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.page-banner h1 {
    font-family: 'Lora', serif;
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-weight: 600;
    color: var(--wh);
    line-height: 1.3;
    margin-bottom: 8px;
    overflow-wrap: break-word;
}

.page-banner p {
    color: rgba(255, 255, 255, .7);
    font-size: clamp(13px, 2vw, 14px);
    max-width: 560px;
}

.breadcrumb-bar {
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
    margin-top: 14px;
    overflow-wrap: break-word;
}

.breadcrumb-bar a {
    color: rgba(255, 255, 255, .65);
    text-decoration: none;
}

.breadcrumb-bar a:hover {
    color: var(--ac);
}

.breadcrumb-bar .sep {
    margin: 0 8px;
}

.white-box {
    background: var(--wh);
    border: 1px solid var(--bd);
    border-radius: 14px;
    padding: 24px;
}

.white-box-sm {
    background: var(--wh);
    border: 1px solid var(--bd);
    border-radius: 12px;
    padding: 18px;
}

/* STAT ROW */
.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
    gap: 14px;
}

.stat-cell {
    background: var(--wh);
    border-radius: 14px;
    padding: 20px 16px;
    min-width: 0;
    text-align: center;
    box-shadow: 0 2px 18px rgba(0, 59, 122, .09);
}

.stat-cell .val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--pr);
}

.stat-cell .lbl {
    font-size: 12px;
    color: var(--mu);
    margin-top: 3px;
}

/* SIDEBAR */
.sb-box {
    background: var(--wh);
    border: 1px solid var(--bd);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
}

.sb-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.sb-head h5 {
    font-size: 14px;
    font-weight: 800;
    color: var(--pr);
    margin: 0;
}

.ki-promo {
    background: linear-gradient(135deg, #002F63 0%, #005FBE 100%);
    border-radius: 14px;
    padding: 22px;
    color: var(--wh);
    margin-bottom: 20px;
}

.ki-promo .kp-tag {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ac);
    margin-bottom: 8px;
}

.ki-promo h5 {
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.ki-promo p {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .72);
    line-height: 1.6;
    margin-bottom: 16px;
}

.ki-promo a {
    display: inline-block;
    background: var(--ac);
    color: var(--tx);
    padding: 8px 18px;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
}

.ki-promo a:hover {
    background: #d08c18;
}

/* ORG CHART */
.org-card {
    background: var(--wh);
    border: 1px solid var(--bd);
    border-radius: 14px;
    padding: 22px;
    text-align: center;
    height: 100%;
    transition: all .22s;
}

.org-card:hover {
    box-shadow: 0 8px 24px rgba(0, 59, 122, .09);
    transform: translateY(-3px);
}

.org-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sf2), var(--bd));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.8rem;
    color: var(--pr);
}

.org-card h5 {
    font-size: 14px;
    font-weight: 800;
    color: var(--pr);
    margin-bottom: 3px;
}

.org-card .role {
    font-size: 12px;
    color: var(--mu);
    margin-bottom: 6px;
}

.org-card .nidn {
    font-size: 11px;
    color: var(--mu);
    font-family: monospace;
}

/* TIMELINE */
.timeline-item {
    display: flex;
    gap: 16px;
    padding-bottom: 28px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 42px;
    bottom: 0;
    width: 2px;
    background: var(--bd);
}

.timeline-item:last-child::before {
    display: none;
}

.tl-dot {
    width: 40px;
    height: 40px;
    background: var(--pr);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wh);
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.tl-body h6 {
    font-size: 14px;
    font-weight: 800;
    color: var(--pr);
    margin-bottom: 4px;
}

.tl-body p {
    font-size: 13px;
    color: var(--mu);
    margin: 0;
    line-height: 1.6;
}

.tl-year {
    font-size: 11px;
    color: var(--ac);
    font-weight: 700;
    margin-bottom: 3px;
}

/* VM TAB */
.vm-tab-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.vmt {
    flex: 1;
    padding: 11px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    background: var(--wh);
    color: var(--mu);
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 18px rgba(0, 59, 122, .09);
    font-family: inherit;
    transition: all .18s;
}

.vmt.active {
    background: var(--pr);
    color: var(--wh);
}

.vm-panel {
    display: none;
}

.vm-panel.active {
    display: block;
}

/* KONTAK */
.kontak-box {
    background: var(--wh);
    border: 1px solid var(--bd);
    border-radius: 14px;
    padding: 22px;
}

.kontak-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 13px 0;
    border-bottom: 1px solid var(--bd);
}

.kontak-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.kontak-ico {
    width: 40px;
    height: 40px;
    background: var(--sf2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pr);
    font-size: 1rem;
    flex-shrink: 0;
}

.kontak-row h6 {
    font-size: 11px;
    font-weight: 700;
    color: var(--mu);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 3px;
}

.kontak-row p {
    font-size: 13.5px;
    color: var(--tx);
    font-weight: 600;
    margin: 0;
}

/* FORM */
.form-field {
    margin-bottom: 14px;
}

.form-field label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--mu);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 6px;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--bd);
    border-radius: 9px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    color: var(--tx);
    background: #fafcff;
    transition: border-color .16s;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--pr);
    background: #fff;
}

.btn-primary-ki {
    background: linear-gradient(135deg, var(--pr-l), var(--pr));
    color: #fff;
    border: none;
    padding: 11px 24px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: transform .15s, box-shadow .15s;
    font-family: inherit;
}

.btn-primary-ki:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 59, 122, .22);
}

/* BADGE */
.badge-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.badge-green {
    background: var(--gn-s);
    color: var(--gn);
}

.badge-amber {
    background: var(--ac-s);
    color: #b87c10;
}

.badge-blue {
    background: var(--sf2);
    color: var(--pr);
}

/* TABLE */
.hki-table {
    width: 100%;
    border-collapse: collapse;
}

.hki-table th {
    background: var(--pr);
    color: var(--wh);
    font-size: 12px;
    font-weight: 700;
    padding: 10px 14px;
    text-align: left;
}

.hki-table th:first-child {
    border-radius: 10px 0 0 0;
}

.hki-table th:last-child {
    border-radius: 0 10px 0 0;
}

.hki-table td {
    padding: 12px 14px;
    font-size: 13px;
    border-bottom: 1px solid var(--bd);
}

.hki-table tr:last-child td {
    border-bottom: none;
}

.hki-table tr:nth-child(even) td {
    background: var(--sf);
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--bd);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--pr);
    gap: 12px;
}

.faq-q i {
    flex-shrink: 0;
    font-size: 11px;
    color: var(--mu);
    transition: transform .2s;
}

.faq-item.open .faq-q i {
    transform: rotate(180deg);
}

.faq-a {
    display: none;
    font-size: 12.5px;
    color: var(--mu);
    line-height: 1.7;
    padding: 0 0 13px;
}

.faq-item.open .faq-a {
    display: block;
}

/* FOOTER */
.footer {
    background: var(--pr);
    color: rgba(255, 255, 255, .72);
    padding: 48px 0 0;
}

.footer .f-logo {
    opacity: .9;
    height: 46px;
}

.footer .f-brand {
    font-size: 15px;
    font-weight: 800;
    color: var(--wh);
}

.footer p {
    font-size: 13px;
    line-height: 1.7;
}

.footer h6 {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ac);
    margin-bottom: 14px;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul li a {
    color: rgba(255, 255, 255, .68);
    text-decoration: none;
    font-size: 13px;
    transition: color .18s;
}

.footer ul li a:hover {
    color: var(--ac);
}

.footer-bottom {
    margin-top: 36px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, .11);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, .45);
}

@media (max-width: 991px) {
    .desktop-nav {
        display: none !important;
    }

    .hamburger {
        display: block;
    }

    .ki-subnav-inner {
        padding: 0 .5rem;
    }

    .ki-subtab {
        padding: 12px 14px;
        font-size: 12px;
    }

    /* Navbar brand di tablet */
    .brand-logo {
        height: 44px;
    }

    /* White box padding lebih kecil */
    .white-box {
        padding: 18px;
    }
}

@media (min-width: 992px) {
    .mob-menu {
        display: none !important;
    }
}

/* ── TABLET KECIL & MOBILE ── */
@media (max-width: 767px) {
    /* Topbar: sembunyikan info jam di mobile */
    .topbar-inner > div:first-child {
        display: none;
    }
    .topbar-inner {
        justify-content: flex-end;
    }

    /* Navbar brand */
    .brand-logo {
        height: 38px;
    }
    .brand-text .t1 {
        font-size: 11.5px;
    }
    .brand-text .t2 {
        font-size: 10px;
    }

    /* Stat row: 2 kolom di mobile */
    .stat-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .stat-cell {
        padding: 14px 12px;
        border-radius: 10px;
    }
    .stat-cell .val {
        font-size: 1.5rem;
    }

    /* White box */
    .white-box {
        padding: 16px;
        border-radius: 12px;
    }

    /* Ki promo */
    .ki-promo {
        padding: 18px;
    }

    /* Tabel HKI: bungkus dengan scroll horizontal */
    .hki-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .hki-table {
        min-width: 540px;
    }

    /* Section title */
    .sec-title {
        font-size: clamp(1.2rem, 4.5vw, 1.8rem);
    }

    /* Footer padding */
    .footer {
        padding: 36px 0 0;
    }
    .footer-bottom {
        margin-top: 24px;
        text-align: center;
        justify-content: center;
    }

    /* Org chart stack */
    .org-avatar {
        width: 60px;
        height: 60px;
    }

    /* Timeline */
    .timeline-item {
        gap: 12px;
    }
}

/* ── MOBILE KECIL ── */
@media (max-width: 425px) {
    /* Stat row: 1 kolom penuh */
    .stat-row {
        grid-template-columns: 1fr !important;
    }

    /* Brand text baris ke-2 sembunyikan */
    .brand-text .t2 {
        display: none;
    }

    /* Ki promo */
    .ki-promo {
        padding: 16px;
    }

    /* White box */
    .white-box {
        padding: 14px;
    }

    /* Footer kontak: biar wrap */
    .footer ul li a {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* Form field input full width */
    .form-field input,
    .form-field select,
    .form-field textarea {
        width: 100%;
    }
}

/* ── LAYAR SANGAT KECIL 320px ── */
@media (max-width: 359px) {
    body {
        font-size: 13.5px;
    }
    .brand-logo {
        height: 32px;
    }
    .brand-text .t1 {
        font-size: 10px;
    }
    .stat-cell .val {
        font-size: 1.3rem;
    }
}
