/*
 * Header dan footer situs. Warna dari DESIGNS.md: navy institusi, navy-deep untuk bar atas dan footer,
 * oranye hanya untuk penanda halaman aktif dan fokus keyboard. Kelas berawalan sc- agar tidak
 * bentrok dengan CSS template lama (main.css).
 */
.sc-header, .sc-overlay, .sc-drawer, .sc-footer, .sc-skip {
    --sc-navy: #003153;
    --sc-navy-deep: #002943;
    --sc-navy-light: #004372;
    --sc-orange: #ED8B00;
    --sc-text: #172938;
    --sc-text-2: #536476;
    --sc-border: #DEE5EC;
    --sc-on-navy: #DCE6EE;
    line-height: 1.5;
}
.sc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.sc-skip { position: fixed; left: 16px; top: -64px; z-index: 10001; padding: 12px 18px; border-radius: 8px; background: #fff; color: var(--sc-navy); font-weight: 700; text-decoration: none; transition: top .15s ease; }
.sc-skip:focus { top: 12px; outline: 3px solid var(--sc-orange); outline-offset: 2px; }

/* ---- Header ---- */
.sc-header { position: fixed; top: 0; left: 0; right: 0; z-index: 997; }
.sc-header a:focus-visible, .sc-header button:focus-visible, .sc-header input:focus-visible { outline: 3px solid var(--sc-orange); outline-offset: 2px; }

.sc-utility { background: var(--sc-navy-deep); }
.sc-utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.sc-utility-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.sc-utility-links a { color: var(--sc-on-navy); font-size: 13px; text-decoration: none; }
.sc-utility-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.sc-search { display: flex; align-items: stretch; margin: 0; }
.sc-search input { width: 200px; min-height: 30px; padding: 0 10px; border: 1px solid #74849a; border-right: 0; border-radius: 6px 0 0 6px; background: #fff; color: var(--sc-text); font-size: 13px; }
.sc-search input::placeholder { color: var(--sc-text-2); }
.sc-search button { min-width: 36px; padding: 0 10px; border: 1px solid #74849a; border-radius: 0 6px 6px 0; background: var(--sc-navy-light); color: #fff; cursor: pointer; }
.sc-search button:hover { background: var(--sc-navy); }

.sc-bar { background: var(--sc-navy); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.sc-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.sc-logo { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.sc-logo:hover { color: #fff; text-decoration: none; }
.sc-logo img { display: block; width: 46px; height: auto; }
.sc-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.sc-logo-text strong { font-size: 1.05rem; font-weight: 700; letter-spacing: .1px; }
.sc-logo-text span { color: var(--sc-on-navy); font-size: .8rem; font-weight: 400; }

.sc-nav-list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.sc-nav-item { position: relative; }
.sc-nav-link { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: #fff; font: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; }
.sc-nav-link:hover, .sc-nav-item.is-open > .sc-nav-link { background: rgba(255, 255, 255, .12); color: #fff; }
.sc-nav-item.is-current > .sc-nav-link { box-shadow: inset 0 -3px 0 var(--sc-orange); border-radius: 8px 8px 0 0; }
.sc-caret { width: 7px; height: 7px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s ease; }
.sc-nav-item.is-open > .sc-nav-link .sc-caret { transform: rotate(-135deg); margin-top: 3px; }

.sc-panel { display: none; position: absolute; top: 100%; left: 0; z-index: 1000; min-width: 260px; max-width: min(560px, 92vw); padding: 8px 0; background: #fff; border: 1px solid var(--sc-border); border-radius: 12px; box-shadow: 0 12px 28px rgba(0, 41, 67, .18); }
.sc-nav-item:nth-last-child(-n+2) .sc-panel { left: auto; right: 0; }
.sc-nav-item.is-open > .sc-panel { display: block; }
@media (hover: hover) {
    /* Cadangan tanpa JS; JS tetap mengatur is-open agar klik dan keyboard sinkron. */
    .sc-nav-item:hover > .sc-panel { display: block; }
}
/* Jembatan tak terlihat supaya kursor yang bergerak miring tidak menutup menu */
.sc-nav-item::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
.sc-panel ul { margin: 0; padding: 0; list-style: none; }
.sc-panel a { display: block; padding: 9px 20px; color: var(--sc-text); font-size: 14px; font-weight: 500; line-height: 1.4; text-decoration: none; }
.sc-panel a:hover { background: #E3EEF8; color: var(--sc-navy); }
.sc-panel a[aria-current="page"] { color: var(--sc-navy); font-weight: 700; box-shadow: inset 3px 0 0 var(--sc-orange); }
.sc-panel a:focus-visible { outline: 3px solid var(--sc-navy); outline-offset: -3px; }
.sc-panel-group { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--sc-border); }
.sc-panel-group:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.sc-panel-label { display: block; padding: 6px 20px 2px; color: var(--sc-text-2); font-size: 12.5px; font-weight: 700; }
.sc-panel-group ul.is-cols { column-count: 2; column-gap: 0; }
.sc-panel-group ul.is-cols li { break-inside: avoid; }
.sc-nav-item:has(.is-cols) .sc-panel { min-width: 440px; }

.sc-burger { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.sc-burger span { display: block; width: 20px; height: 2px; border-radius: 1px; background: #fff; }
.sc-burger:hover { background: rgba(255, 255, 255, .12); }

/* ---- Laci menu (ponsel dan tablet) ---- */
.sc-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0, 20, 34, .6); }
.sc-overlay[hidden], .sc-drawer[hidden] { display: none; }
.sc-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 10000; display: flex; flex-direction: column; width: min(340px, 90vw); background: var(--sc-navy); color: #fff; overflow-y: auto; animation: sc-slide .22s ease-out; }
@keyframes sc-slide { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
body.sc-drawer-open { overflow: hidden; }
.sc-drawer a:focus-visible, .sc-drawer button:focus-visible, .sc-drawer summary:focus-visible, .sc-drawer input:focus-visible { outline: 3px solid var(--sc-orange); outline-offset: -3px; }
.sc-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.sc-logo--drawer img { width: 40px; }
.sc-logo--drawer .sc-logo-text strong { font-size: .95rem; }
.sc-drawer-close { width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; background: transparent; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.sc-search--drawer { padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.sc-search--drawer input { flex: 1; width: auto; min-height: 44px; font-size: 15px; }
.sc-search--drawer button { min-width: 48px; }
.sc-drawer-nav { flex: 1; }
.sc-drawer-nav ul { margin: 0; padding: 0; list-style: none; }
.sc-drawer-nav > ul > li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.sc-drawer-top, .sc-drawer-nav summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px; color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; list-style: none; }
.sc-drawer-nav summary::-webkit-details-marker { display: none; }
.sc-drawer-nav summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s ease; }
.sc-drawer-nav details[open] > summary::after { transform: rotate(-135deg); }
.sc-drawer-nav [aria-current="page"] { box-shadow: inset 4px 0 0 var(--sc-orange); }
.sc-drawer-sub { padding: 4px 0 12px; background: var(--sc-navy-deep); }
.sc-drawer-sub a { display: block; padding: 11px 16px 11px 28px; color: var(--sc-on-navy); font-size: 15px; line-height: 1.4; text-decoration: none; }
.sc-drawer-sub a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.sc-drawer-label { display: block; padding: 12px 16px 2px 28px; color: #B8C9D8; font-size: 13px; font-weight: 700; }
.sc-drawer-group ul a { padding-left: 40px; }
.sc-drawer-utility { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 16px; list-style: none; border-top: 1px solid rgba(255, 255, 255, .14); }
.sc-drawer-utility a { color: var(--sc-on-navy); font-size: 14px; }

@media (max-width: 1199px) {
    .sc-nav { display: none; }
    .sc-burger { display: flex; }
    .sc-utility { display: none; }
    .sc-bar-inner { min-height: 64px; }
    .sc-logo img { width: 40px; }
}
@media (min-width: 1200px) {
    .sc-nav-link { padding: 0 9px; font-size: 14px; }
    .sc-logo img { width: 40px; }
    .sc-logo-text strong { font-size: .95rem; }
}

/* ---- Footer ---- */
.sc-footer { background: var(--sc-navy-deep); color: var(--sc-on-navy); padding: clamp(32px, 4vw, 48px) 0 24px; }
.sc-footer a { color: var(--sc-on-navy); text-decoration: none; }
.sc-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sc-footer a:focus-visible { outline: 3px solid var(--sc-orange); outline-offset: 3px; border-radius: 2px; }
.sc-footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 32px 32px; }
.sc-footer h2 { margin: 0 0 14px; color: #fff; font-size: 1rem; font-weight: 700; line-height: 1.3; }
.sc-footer-sub { margin: 16px 0 12px; color: #fff; font-weight: 600; }
.sc-footer address { margin: 0 0 16px; font-style: normal; line-height: 1.6; }
.sc-footer-contact { margin: 0; padding: 0; list-style: none; }
.sc-footer-contact li { margin-bottom: 8px; }
.sc-footer-contact span { display: block; color: #B8C9D8; font-size: .85rem; }
.sc-footer-col ul { margin: 0; padding: 0; list-style: none; }
.sc-footer-col li { margin-bottom: 8px; line-height: 1.4; }
.sc-footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .9rem; color: #B8C9D8; }
.sc-footer-bottom p { margin: 0 0 4px; }

@media (max-width: 1199px) { .sc-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sc-footer-id { grid-column: 1 / -1; } }
@media (max-width: 767px) { .sc-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .sc-footer-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .sc-skip, .sc-caret { transition: none; } .sc-drawer { animation: none; } }
.sc-footer-id .sc-logo { margin-bottom: 4px; }
