/* ==========================================================================
   SC Desa HTML — Desain 04 "Resmi"
   Gaya portal pemerintahan formal: top bar info, mega menu, navy & merah.
   Template oleh sharecode.id — Lisensi MIT
   ========================================================================== */

/* ---------- Font (self-host, lihat NOTICE.md) ---------- */
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Variabel tema (ubah di sini) ---------- */
:root {
  --navy: #1f3a68;
  --navy-700: #193156;
  --navy-900: #112443;
  --navy-50: #eef2f8;
  --red: #c62828;
  --red-700: #a51f1f;
  --red-50: #fdeeee;
  --gold: #d9a441;
  --white: #ffffff;
  --gray-50: #f6f7f9;
  --gray-100: #eef0f4;
  --gray-200: #e1e5eb;
  --gray-300: #c9d0da;
  --gray-500: #6b7587;
  --text: #1c2433;
  --muted: #566176;
  --success: #2e7d32;
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 3px;
  --shadow: 0 1px 2px rgba(17, 36, 67, .06), 0 4px 16px rgba(17, 36, 67, .07);
  --shadow-lg: 0 18px 40px rgba(17, 36, 67, .16);
  --container: 1200px;
  --fs-base: 16px;
}

/* ---------- Reset ringan ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--fs-base); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.65; font-size: 1rem; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-900); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.22rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--red); color: #fff; padding: 10px 16px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section--gray { background: var(--gray-50); }
.section--tight { padding: 56px 0; }

/* Judul section bergaya kop resmi: label kecil + garis ganda */
.kop { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; border-bottom: 1px solid var(--gray-200); position: relative; padding-bottom: 14px; }
.kop::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 88px; height: 3px; background: var(--red); }
.kop h2 { margin: 0; }
.kop__label { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.kop__label::before { content: ""; width: 8px; height: 8px; background: var(--red); }
.kop__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.kop--light { border-color: rgba(255, 255, 255, .18); }
.kop--light h2 { color: #fff; }
.kop--light .kop__label { color: #ffb4b4; }
.kop--light .kop__label::before { background: #ffb4b4; }
.kop--center { justify-content: center; text-align: center; }
.kop--center::after { left: 50%; transform: translateX(-50%); }
.lead { font-size: 1.1rem; color: var(--muted); }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius); border: 2px solid transparent; font-weight: 600; font-size: .95rem; text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s; line-height: 1.2; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-700); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-900); color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--sm { padding: 8px 14px; font-size: .85rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-900); color: #cfd8e8; font-size: .8rem; border-top: 4px solid var(--red); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__info { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.topbar__info span, .topbar__info a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.topbar__info a:hover { color: #fff; }
.topbar__tools { display: flex; align-items: center; gap: 4px; }
.topbar__tools button { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff; min-width: 30px; height: 26px; border-radius: 2px; font-size: .75rem; font-weight: 600; }
.topbar__tools button:hover { background: var(--red); border-color: var(--red); }
.topbar__tools .lbl { margin-right: 6px; }

/* ---------- Header identitas ---------- */
.brandbar { background: #fff; border-bottom: 1px solid var(--gray-200); }
.brandbar__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 20px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brand img { width: 62px; height: 62px; }
.brand__small { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.brand__name { display: block; font-family: var(--font-head); font-size: 1.55rem; font-weight: 700; color: var(--navy-900); line-height: 1.15; }
.brand__sub { display: block; font-size: .82rem; color: var(--muted); }
.brandbar__aside { display: flex; align-items: center; gap: 22px; }
.hotline { display: flex; align-items: center; gap: 12px; padding-left: 22px; border-left: 1px solid var(--gray-200); }
.hotline__ic { width: 44px; height: 44px; display: grid; place-items: center; background: var(--red-50); color: var(--red); border-radius: 50%; }
.hotline small { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hotline strong { font-size: 1.05rem; color: var(--navy-900); }
.search-form { display: flex; border: 1px solid var(--gray-300); border-radius: var(--radius); overflow: hidden; }
.search-form input { border: 0; padding: 9px 12px; width: 210px; outline: none; font-size: .9rem; }
.search-form button { border: 0; background: var(--navy); color: #fff; padding: 0 14px; display: grid; place-items: center; }
.search-form:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31, 58, 104, .15); }

/* ---------- Navigasi utama + mega menu ---------- */
.nav { background: var(--navy); position: sticky; top: 0; z-index: 90; border-bottom: 3px solid var(--red); transition: box-shadow .2s; }
.nav.is-stuck { box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.nav__in { display: flex; align-items: stretch; justify-content: space-between; position: relative; }
.nav__brand-mini { display: none; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 700; }
.nav__brand-mini img { width: 34px; height: 34px; }
.nav.is-stuck .nav__brand-mini { display: flex; }
.menu { display: flex; list-style: none; margin: 0; padding: 0; }
.menu > li { position: static; }
.menu > li > a, .menu > li > button { display: flex; align-items: center; gap: 6px; height: 54px; padding: 0 16px; color: #e8edf6; text-decoration: none; font-weight: 600; font-size: .9rem; background: none; border: 0; position: relative; }
.menu > li > a:hover, .menu > li > button:hover, .menu > li.open > button { background: var(--navy-700); color: #fff; }
.menu > li > .is-active { background: var(--navy-900); color: #fff; }
.menu > li > .is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: #fff; }
.menu .caret { width: 14px; height: 14px; transition: transform .2s; }
.menu > li.open .caret { transform: rotate(180deg); }
.mega { position: absolute; left: 20px; right: 20px; top: 100%; margin-top: 3px; background: #fff; box-shadow: var(--shadow-lg); border-top: 3px solid var(--red); display: grid; grid-template-columns: 1fr 1fr 300px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 95; }
.menu > li.open > .mega { opacity: 1; visibility: visible; transform: none; }
.mega__col { padding: 26px 28px; }
.mega__col + .mega__col { border-left: 1px solid var(--gray-100); }
.mega__title { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-weight: 700; margin: 0 0 12px; }
.mega__list { list-style: none; margin: 0; padding: 0; }
.mega__list a { display: flex; gap: 12px; padding: 10px; border-radius: var(--radius); text-decoration: none; color: var(--text); }
.mega__list a:hover { background: var(--navy-50); color: var(--navy); }
.mega__list .icon { width: 22px; height: 22px; color: var(--navy); margin-top: 2px; }
.mega__list strong { display: block; font-size: .92rem; }
.mega__list small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.mega__feature { text-decoration: none; background: var(--navy-50); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.mega__feature img { border-radius: var(--radius); aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.mega__feature p { font-size: .85rem; color: var(--muted); margin: 0; }
.mega__feature strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--navy-900); }
.nav__toggle { display: none; background: none; border: 0; color: #fff; height: 54px; padding: 0 6px; align-items: center; gap: 8px; font-weight: 600; }
.nav__toggle .icon { width: 26px; height: 26px; }

/* ---------- Ticker ---------- */
.ticker { background: #fff; border-bottom: 1px solid var(--gray-200); }
.ticker__in { display: flex; align-items: stretch; }
.ticker__label { background: var(--red); color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: 10px 18px; display: flex; align-items: center; gap: 8px; flex: none; position: relative; }
.ticker__label::after { content: ""; position: absolute; right: -12px; top: 0; bottom: 0; border-left: 12px solid var(--red); border-top: 20px solid transparent; border-bottom: 20px solid transparent; }
.ticker__track { overflow: hidden; flex: 1; display: flex; align-items: center; padding-left: 22px; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker__move { display: flex; gap: 48px; white-space: nowrap; animation: ticker 45s linear infinite; font-size: .9rem; }
.ticker__move a { color: var(--text); text-decoration: none; }
.ticker__move a:hover { color: var(--red); }
.ticker__move a::before { content: "■"; color: var(--red); font-size: .6rem; margin-right: 10px; vertical-align: middle; }
.ticker:hover .ticker__move { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Hero beranda: slider + panel layanan ---------- */
.hero { background: var(--gray-50); padding: 28px 0 40px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; }
.slider { position: relative; overflow: hidden; background: var(--navy-900); border-radius: var(--radius); min-height: 470px; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s, visibility .7s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide__cap { position: absolute; left: 0; bottom: 0; right: 0; padding: 90px 36px 70px; background: linear-gradient(transparent, rgba(17, 36, 67, .92) 55%); color: #fff; }
.slide__cap h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2.1rem); max-width: 640px; margin-bottom: .4em; }
.slide__cap p { color: #d7dfec; max-width: 600px; margin-bottom: 14px; }
.badge { display: inline-block; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 2px; margin-bottom: 12px; }
.badge--navy { background: var(--navy); }
.badge--soft { background: var(--navy-50); color: var(--navy); }
.badge--green { background: #e6f2e7; color: var(--success); }
.badge--warn { background: #fff3dc; color: #8a5a00; }
.slider__ctrl { position: absolute; right: 24px; bottom: 22px; display: flex; gap: 8px; align-items: center; z-index: 3; }
.slider__ctrl button { width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .4); background: rgba(17, 36, 67, .5); color: #fff; display: grid; place-items: center; border-radius: 2px; }
.slider__ctrl button:hover { background: var(--red); border-color: var(--red); }
.slider__dots { position: absolute; left: 36px; bottom: 30px; display: flex; gap: 8px; z-index: 3; }
.slider__dots button { width: 28px; height: 4px; border: 0; padding: 0; background: rgba(255, 255, 255, .4); }
.slider__dots button.is-active { background: #fff; width: 48px; }
.slider__num { color: #fff; font-family: var(--font-head); font-size: .95rem; margin-right: 8px; }

.panel { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); display: flex; flex-direction: column; }
.panel__head { background: var(--navy); color: #fff; padding: 14px 20px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; border-bottom: 3px solid var(--red); }
.quick { display: grid; grid-template-columns: 1fr 1fr; }
.quick a { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--gray-100); border-right: 1px solid var(--gray-100); font-size: .85rem; font-weight: 600; line-height: 1.3; transition: background .2s; }
.quick a:nth-child(2n) { border-right: 0; }
.quick a:hover { background: var(--navy-50); color: var(--navy); }
.quick .icon { width: 28px; height: 28px; color: var(--red); }
.panel__foot { padding: 16px 20px; margin-top: auto; background: var(--gray-50); font-size: .85rem; display: flex; align-items: center; gap: 12px; }
.panel__foot strong { display: block; color: var(--navy-900); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #2e7d32; box-shadow: 0 0 0 4px rgba(46, 125, 50, .18); flex: none; }

/* ---------- Strip statistik ringkas ---------- */
.factbar { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--gray-200); margin-top: 24px; }
.factbar div { padding: 18px 22px; display: flex; align-items: center; gap: 14px; }
.factbar div + div { border-left: 1px solid var(--gray-200); }
.factbar .icon { width: 30px; height: 30px; color: var(--navy); }
.factbar b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--navy-900); line-height: 1.1; }
.factbar span { font-size: .8rem; color: var(--muted); }

/* ---------- Sambutan ---------- */
.sambutan { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: start; }
.potret { position: relative; }
.potret__frame { border: 1px solid var(--gray-200); padding: 12px; background: #fff; box-shadow: var(--shadow); position: relative; z-index: 1; }
.potret::before { content: ""; position: absolute; inset: 28px -18px -18px 28px; background: repeating-linear-gradient(45deg, var(--navy) 0 2px, transparent 2px 10px); opacity: .25; }
.potret__name { background: var(--navy); color: #fff; padding: 14px 18px; margin-top: 12px; }
.potret__name strong { display: block; font-family: var(--font-head); font-size: 1.15rem; }
.potret__name span { font-size: .82rem; color: #cfd9ea; }
.quote { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.5; color: var(--navy-900); border-left: 4px solid var(--red); padding-left: 22px; margin: 0 0 22px; font-weight: 600; }
.ttd { display: flex; align-items: center; gap: 18px; margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--gray-300); }
.ttd img { width: 160px; }
.ttd small { display: block; color: var(--muted); }

/* ---------- Statistik penduduk (band navy) ---------- */
.band { background: var(--navy) url("../img/pola-garis.svg") repeat; color: #fff; position: relative; }
.band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--red) 0 50%, #fff 50% 100%); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255, 255, 255, .16); }
.stat { padding: 30px 26px; border-right: 1px solid rgba(255, 255, 255, .16); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-head); font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1; display: block; margin-bottom: 8px; }
.stat__label { font-size: .85rem; color: #cfd9ea; text-transform: uppercase; letter-spacing: .08em; }
.stat .icon { width: 30px; height: 30px; color: #ffb4b4; margin-bottom: 18px; }
.bars-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; margin-top: 24px; }
.mini-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); padding: 24px; }
.mini-card h3 { color: #fff; font-size: 1.05rem; }
.hbar { margin-bottom: 12px; font-size: .85rem; }
.hbar__top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.hbar__track { height: 10px; background: rgba(255, 255, 255, .12); }
.hbar__fill { height: 100%; background: #fff; width: 0; transition: width 1.2s ease; }
.hbar__fill--red { background: #ff8a80; }
.gender { display: flex; align-items: center; gap: 24px; }
.donut { width: 150px; height: 150px; border-radius: 50%; background: conic-gradient(#fff 0 50.6%, #ff8a80 50.6% 100%); display: grid; place-items: center; flex: none; }
.donut::after { content: ""; width: 92px; height: 92px; border-radius: 50%; background: var(--navy); }
.legend { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.legend li { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.legend i { width: 14px; height: 14px; display: inline-block; }

/* ---------- Layanan (grid ikon formal) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--gray-200); border-left: 1px solid var(--gray-200); }
.svc { border-right: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); padding: 28px 24px; background: #fff; text-decoration: none; color: var(--text); position: relative; transition: background .25s; }
.svc::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--red); transition: width .3s; }
.svc:hover::before { width: 100%; }
.svc:hover { background: var(--navy-50); color: var(--text); }
.svc__ic { width: 54px; height: 54px; border: 1px solid var(--gray-300); display: grid; place-items: center; color: var(--navy); margin-bottom: 18px; background: #fff; }
.svc__ic .icon { width: 28px; height: 28px; }
.svc h3 { font-size: 1.08rem; margin-bottom: 6px; }
.svc p { font-size: .88rem; color: var(--muted); margin: 0 0 12px; }
.svc__more { font-size: .82rem; font-weight: 700; color: var(--red); display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Berita ---------- */
.news-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; }
.news-main { position: relative; display: block; text-decoration: none; color: inherit; }
.news-main img { aspect-ratio: 16/10; object-fit: cover; width: 100%; border-radius: var(--radius); }
.news-main__body { background: #fff; margin: -60px 24px 0; position: relative; padding: 24px 26px; border-top: 4px solid var(--red); box-shadow: var(--shadow); }
.news-main__body h3 { font-size: 1.45rem; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.news-list { display: flex; flex-direction: column; }
.news-item { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--gray-200); text-decoration: none; color: inherit; }
.news-item:first-child { padding-top: 0; }
.news-item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: var(--radius); }
.news-item h3 { font-size: 1rem; margin: 4px 0 6px; transition: color .2s; }
.news-item:hover h3, .news-main:hover h3, .card:hover h3 { color: var(--red); }
.cat { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }

.card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: inherit; }
.card__img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body h3 { margin: 0; font-size: 1.1rem; }
.card__body p { margin: 0; color: var(--muted); font-size: .9rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ---------- Agenda + pengumuman ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.agenda-item { display: grid; grid-template-columns: 76px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--gray-200); align-items: start; }
.datebox { border: 1px solid var(--gray-300); text-align: center; background: #fff; }
.datebox b { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--navy-900); line-height: 1.1; padding-top: 6px; }
.datebox span { display: block; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 0; margin-top: 4px; }
.agenda-item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.notice { display: flex; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--gray-200); border-left: 4px solid var(--navy); margin-bottom: 12px; text-decoration: none; color: inherit; }
.notice:hover { border-left-color: var(--red); color: inherit; }
.notice .icon { width: 24px; height: 24px; color: var(--red); margin-top: 2px; }
.notice h3 { font-size: .98rem; margin: 0 0 4px; font-family: var(--font-body); font-weight: 600; }

/* ---------- Galeri ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery--home { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 200px; }
.gallery--home .g-item:first-child { grid-row: span 2; }
.g-item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--gray-100); border: 0; padding: 0; display: block; width: 100%; text-align: left; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; aspect-ratio: 4/3; }
.gallery--home .g-item img { aspect-ratio: auto; }
.g-item:hover img { transform: scale(1.06); }
.g-item figcaption, .g-item__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; background: linear-gradient(transparent, rgba(17, 36, 67, .9)); color: #fff; font-size: .85rem; font-weight: 600; }
.g-item.is-hidden { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button { border: 1px solid var(--gray-300); background: #fff; padding: 8px 16px; border-radius: 2px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.filters button:hover { border-color: var(--navy); color: var(--navy); }
.filters button.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Lightbox & modal video */
.lightbox, .vmodal { position: fixed; inset: 0; background: rgba(8, 18, 36, .94); z-index: 200; display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.is-open, .vmodal.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; text-align: center; }
.lightbox img { max-height: 76vh; margin: 0 auto; width: auto; background: #fff; }
.lightbox figcaption { color: #fff; margin-top: 14px; font-size: .95rem; }
.lb-btn { position: absolute; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; border-radius: 2px; }
.lb-btn:hover { background: var(--red); border-color: var(--red); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 28px; left: 24px; color: #cfd9ea; font-size: .9rem; }
.vmodal__box { width: 100%; max-width: 960px; aspect-ratio: 16/9; background: #000; }
.vmodal__box iframe { width: 100%; height: 100%; border: 0; }

.video-card { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.video-card__thumb { position: relative; overflow: hidden; border-radius: var(--radius); }
.video-card__thumb img { aspect-ratio: 16/9; object-fit: cover; width: 100%; transition: transform .4s; }
.video-card:hover img { transform: scale(1.05); }
.play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(17, 36, 67, .25); }
.play span { width: 66px; height: 66px; background: var(--red); color: #fff; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(198, 40, 40, .3); transition: transform .2s; }
.video-card:hover .play span { transform: scale(1.1); }
.play .icon { width: 26px; height: 26px; fill: currentColor; margin-left: 4px; }
.video-card__dur { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .75); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 2px; }
.video-card h3 { font-size: 1.05rem; margin: 14px 0 4px; }
.video-card .meta { margin-bottom: 0; }
.video-feature { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: center; margin-bottom: 48px; }

/* ---------- Peta ---------- */
.map-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0; border: 1px solid var(--gray-200); background: #fff; }
.map-wrap img { width: 100%; height: 100%; object-fit: cover; }
.map-info { padding: 30px; border-left: 1px solid var(--gray-200); }
.def-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: .92rem; }
.def-list dt { color: var(--muted); }
.def-list dd { margin: 0; font-weight: 600; color: var(--navy-900); }

/* ---------- Page header (halaman dalam) ---------- */
.page-head { background: var(--navy-900) url("../img/pola-garis.svg") repeat; color: #fff; padding: 54px 0 46px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -40px; top: -40px; width: 300px; height: 300px; background: url("../img/logo.svg") no-repeat center / contain; opacity: .06; }
.page-head h1 { color: #fff; margin: 6px 0 8px; }
.page-head p { color: #cfd9ea; max-width: 680px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; font-size: .85rem; color: #aebcd4; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #6f83a8; }

/* Layout dengan sidebar */
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.side-box { border: 1px solid var(--gray-200); margin-bottom: 24px; background: #fff; }
.side-box h3 { font-size: 1rem; margin: 0; padding: 14px 18px; background: var(--gray-50); border-bottom: 2px solid var(--navy); font-family: var(--font-body); font-weight: 700; color: var(--navy-900); }
.side-box__body { padding: 16px 18px; }
.side-nav { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: flex; justify-content: space-between; align-items: center; padding: 11px 18px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--gray-100); font-size: .92rem; }
.side-nav a:hover, .side-nav a.is-active { background: var(--navy-50); color: var(--navy); box-shadow: inset 3px 0 0 var(--red); }
.sticky-side { position: sticky; top: 80px; }

/* Konten artikel */
.prose { font-size: 1.02rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius); }
.prose blockquote { margin: 1.5em 0; padding: 18px 24px; background: var(--navy-50); border-left: 4px solid var(--navy); font-family: var(--font-head); font-size: 1.15rem; color: var(--navy-900); }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }

/* Visi misi */
.vm { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0; border: 1px solid var(--gray-200); }
.vm__visi { background: var(--navy); color: #fff; padding: 40px; position: relative; }
.vm__visi h3 { color: #ffb4b4; font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.vm__visi p { font-family: var(--font-head); font-size: 1.5rem; line-height: 1.45; margin: 0; }
.vm__misi { padding: 40px; background: #fff; }
.vm__misi ol { counter-reset: m; list-style: none; padding: 0; margin: 0; }
.vm__misi li { counter-increment: m; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.vm__misi li::before { content: counter(m, decimal-leading-zero); font-family: var(--font-head); font-weight: 700; color: var(--red); font-size: 1.2rem; }

/* Timeline sejarah */
.timeline { position: relative; padding-left: 34px; border-left: 2px solid var(--gray-300); margin-left: 10px; }
.tl-item { position: relative; padding-bottom: 28px; }
.tl-item::before { content: ""; position: absolute; left: -43px; top: 4px; width: 16px; height: 16px; background: #fff; border: 3px solid var(--red); }
.tl-year { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--navy); }

/* Tabel resmi */
.table-wrap { overflow-x: auto; border: 1px solid var(--gray-200); background: #fff; }
.tbl { font-size: .92rem; min-width: 560px; }
.tbl th { background: var(--navy); color: #fff; text-align: left; padding: 12px 16px; font-weight: 600; font-size: .85rem; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
.tbl tbody tr:nth-child(even) { background: var(--gray-50); }
.tbl tbody tr:hover { background: var(--navy-50); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tfoot td { font-weight: 700; background: var(--navy-50); border-top: 2px solid var(--navy); }
.tbl .grp td { background: var(--gray-100); font-weight: 700; color: var(--navy-900); }

/* Batas wilayah (kompas) */
.batas { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto auto; gap: 10px; max-width: 520px; }
.batas div { border: 1px solid var(--gray-200); padding: 14px; background: #fff; font-size: .9rem; text-align: center; }
.batas b { display: block; color: var(--red); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.batas .n { grid-column: 2; }
.batas .w { grid-column: 1; grid-row: 2; }
.batas .c { grid-column: 2; grid-row: 2; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.batas .e { grid-column: 3; grid-row: 2; }
.batas .s { grid-column: 2; grid-row: 3; }

/* Perangkat desa */
.officer { background: #fff; border: 1px solid var(--gray-200); text-align: center; overflow: hidden; }
.officer img { aspect-ratio: 5/6; object-fit: cover; width: 100%; background: var(--gray-100); }
.officer__body { padding: 16px 14px 18px; border-top: 3px solid var(--navy); }
.officer h3 { font-size: 1.02rem; margin: 0 0 2px; }
.officer p { margin: 0; color: var(--red); font-size: .82rem; font-weight: 600; }
.officer--lead { display: grid; grid-template-columns: 300px 1fr; text-align: left; }
.officer--lead .officer__body { border-top: 0; border-left: 4px solid var(--red); padding: 34px; }
.officer--lead h3 { font-size: 1.6rem; }

/* Bagan struktur organisasi */
.org { display: flex; flex-direction: column; align-items: center; gap: 0; overflow-x: auto; padding-bottom: 10px; }
.org__row { display: flex; justify-content: center; gap: 18px; position: relative; padding-top: 24px; }
.org__row::before { content: ""; position: absolute; top: 0; left: 50%; height: 24px; border-left: 2px solid var(--gray-300); }
.org__row--first { padding-top: 0; }
.org__row--first::before { display: none; }
.org__row--split > .org__node::before { content: ""; position: absolute; top: -12px; left: 50%; height: 12px; border-left: 2px solid var(--gray-300); }
.org__row--split::after { content: ""; position: absolute; top: 12px; left: 80px; right: 80px; border-top: 2px solid var(--gray-300); }
.org__row--split { padding-top: 36px; }
.org__row--split::before { height: 12px; }
.org__node { position: relative; background: #fff; border: 1px solid var(--gray-300); border-top: 3px solid var(--navy); padding: 10px 14px; min-width: 150px; text-align: center; font-size: .82rem; }
.org__node b { display: block; color: var(--navy-900); font-size: .88rem; }
.org__node--top { background: var(--navy); color: #fff; border-color: var(--navy); border-top-color: var(--red); min-width: 220px; }
.org__node--top b { color: #fff; }
.org__node--side { border-top-color: var(--red); }

/* Tab */
.tabs__list { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--gray-200); margin-bottom: 26px; }
.tabs__list button { border: 0; background: none; padding: 12px 20px; font-weight: 600; color: var(--muted); position: relative; font-size: .95rem; }
.tabs__list button[aria-selected="true"] { color: var(--navy); }
.tabs__list button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--red); }
.tabs__panel[hidden] { display: none; }

/* Akordeon */
.acc { border: 1px solid var(--gray-200); background: #fff; }
.acc__item + .acc__item { border-top: 1px solid var(--gray-200); }
.acc__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; background: none; border: 0; text-align: left; font-weight: 600; font-size: 1rem; color: var(--navy-900); }
.acc__btn:hover { background: var(--gray-50); }
.acc__btn .icon { transition: transform .25s; color: var(--red); }
.acc__btn[aria-expanded="true"] .icon { transform: rotate(45deg); }
.acc__panel { padding: 0 22px 20px; color: var(--muted); }
.acc__panel[hidden] { display: none; }

/* Layanan surat */
.letter { display: grid; grid-template-columns: 1fr; gap: 0; }
.req-list { list-style: none; padding: 0; margin: 0; }
.req-list li { display: flex; gap: 10px; padding: 6px 0; }
.req-list .icon { color: var(--success); width: 18px; height: 18px; margin-top: 4px; }
.letter__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--gray-300); font-size: .85rem; color: var(--navy); font-weight: 600; }
.letter__meta span { display: inline-flex; align-items: center; gap: 6px; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: s; position: relative; }
.step { counter-increment: s; text-align: center; padding: 0 12px; position: relative; }
.step::before { content: counter(s); width: 56px; height: 56px; margin: 0 auto 16px; display: grid; place-items: center; background: #fff; border: 2px solid var(--navy); color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; position: relative; z-index: 1; }
.step::after { content: ""; position: absolute; top: 28px; left: 50%; width: 100%; border-top: 2px dashed var(--gray-300); }
.step:last-child::after { display: none; }
.step:hover::before { background: var(--red); border-color: var(--red); color: #fff; }
.step h3 { font-size: 1rem; margin-bottom: 4px; }
.step p { font-size: .85rem; color: var(--muted); }

/* Transparansi */
.apb-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--gray-200); background: #fff; margin-bottom: 36px; }
.apb-sum > div { padding: 26px; }
.apb-sum > div + div { border-left: 1px solid var(--gray-200); }
.apb-sum small { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--muted); font-weight: 700; }
.apb-sum b { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--navy-900); margin: 4px 0; }
.apb-sum .up { color: var(--success); font-size: .85rem; font-weight: 600; }
.chart-box { background: #fff; border: 1px solid var(--gray-200); padding: 24px; }
.chart-box h3 { font-size: 1.05rem; }
.chart-svg text { font-family: var(--font-body); }
.chart-svg .bar { transition: opacity .2s; }
.chart-svg .bar:hover { opacity: .8; }
.progress { margin-bottom: 18px; }
.progress__top { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 6px; gap: 10px; }
.progress__top b { color: var(--navy-900); }
.progress__track { height: 12px; background: var(--gray-100); border: 1px solid var(--gray-200); }
.progress__fill { height: 100%; background: linear-gradient(90deg, var(--navy), #3d63a3); width: 0; transition: width 1.3s ease; }
.progress__fill--red { background: linear-gradient(90deg, var(--red), #e55); }

/* Potensi */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 56px; }
.feature-row:nth-child(even) .feature-row__img { order: 2; }
.feature-row__img { position: relative; }
.feature-row__img img { border-radius: var(--radius); width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.feature-row__img::after { content: ""; position: absolute; left: -14px; bottom: -14px; width: 120px; height: 120px; border-left: 4px solid var(--red); border-bottom: 4px solid var(--red); }
.product { border: 1px solid var(--gray-200); background: #fff; }
.product img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.product__body { padding: 18px 20px; }
.product__price { font-family: var(--font-head); font-weight: 700; color: var(--red); font-size: 1.15rem; }
.product__row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: .85rem; color: var(--muted); }

/* Toolbar pencarian daftar */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 24px; padding: 14px; background: var(--gray-50); border: 1px solid var(--gray-200); }
.field-search { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.field-search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gray-500); }
.field-search input { width: 100%; padding: 10px 12px 10px 38px; border: 1px solid var(--gray-300); border-radius: var(--radius); background: #fff; }
.field-search input:focus, .select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31, 58, 104, .15); }
.select { padding: 10px 12px; border: 1px solid var(--gray-300); border-radius: var(--radius); background: #fff; }
.empty { display: none; text-align: center; padding: 40px; color: var(--muted); border: 1px dashed var(--gray-300); }
.empty.is-show { display: block; }
.result-count { font-size: .85rem; color: var(--muted); }
.doc-ic { display: inline-grid; place-items: center; width: 34px; height: 40px; background: var(--red-50); color: var(--red); font-size: .6rem; font-weight: 800; border: 1px solid #f3c6c6; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--gray-300); text-decoration: none; font-weight: 600; font-size: .9rem; padding: 0 10px; }
.pagination .is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy-900); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--gray-300); border-radius: var(--radius); background: #fff; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31, 58, 104, .15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field__err { display: none; color: var(--red); font-size: .8rem; margin-top: 4px; }
.field.has-error .field__err { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: 5px; width: auto; }
.contact-cards { display: grid; gap: 14px; }
.c-card { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--gray-200); background: #fff; }
.c-card .icon { width: 26px; height: 26px; color: var(--red); }
.c-card h3 { font-size: .95rem; margin: 0 0 2px; font-family: var(--font-body); }
.c-card p { margin: 0; font-size: .9rem; color: var(--muted); }
.map-frame { border: 1px solid var(--gray-200); width: 100%; height: 420px; display: block; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 140%); background: var(--navy-900); color: #fff; padding: 14px 20px; border-left: 4px solid #66bb6a; box-shadow: var(--shadow-lg); z-index: 300; display: flex; gap: 10px; align-items: center; max-width: calc(100% - 32px); transition: transform .35s; font-size: .92rem; }
.toast.is-show { transform: translate(-50%, 0); }
.toast.is-error { border-left-color: #ff8a80; }

/* CTA */
.cta { background: var(--red); color: #fff; padding: 40px 0; }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0 0 4px; font-size: 1.6rem; }
.cta p { margin: 0; color: #ffe1e1; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #b9c5da; font-size: .9rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 60px 20px 44px; }
.footer h3 { color: #fff; font-family: var(--font-body); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .12); position: relative; }
.footer h3::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 40px; height: 2px; background: var(--red); }
.footer a { color: #b9c5da; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer__brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.footer__brand img { width: 52px; height: 52px; }
.footer__brand strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.15rem; }
.footer__contact li { display: flex; gap: 10px; }
.footer__contact .icon { color: #ff8a80; margin-top: 3px; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .18); display: grid; place-items: center; }
.socials a:hover { background: var(--red); border-color: var(--red); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: .82rem; }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer__bottom a { color: #fff; text-decoration: underline; }
.visitor { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
.visitor b { color: #fff; text-align: right; }

/* Kembali ke atas */
.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; background: var(--red); color: #fff; border: 0; display: grid; place-items: center; box-shadow: var(--shadow-lg); z-index: 80; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s; border-radius: 2px; }
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy); }

/* 404 */
.notfound { text-align: center; padding: 100px 0; }
.notfound__code { font-family: var(--font-head); font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; color: var(--navy); line-height: 1; letter-spacing: -.03em; }
.notfound__code span { color: var(--red); }

/* Animasi muncul saat scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Mode kontras tinggi (tombol aksesibilitas di top bar) */
body.hc { --text: #000; --muted: #222; --gray-200: #777; --gray-300: #555; }
body.hc img { filter: grayscale(.4) contrast(1.15); }

/* ---------- Responsif ---------- */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; }
  .quick { grid-template-columns: repeat(4, 1fr); }
  .quick a:nth-child(2n) { border-right: 1px solid var(--gray-100); }
  .svc-grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .search-form input { width: 160px; }
  .sambutan { grid-template-columns: 300px 1fr; gap: 40px; }
}
@media (max-width: 960px) {
  .nav__toggle { display: flex; }
  .nav__brand-mini { display: flex; }
  .nav__in { align-items: center; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--navy-900); margin-top: 3px; max-height: 0; overflow: hidden; transition: max-height .35s ease; }
  .menu.is-open { max-height: 80vh; overflow-y: auto; }
  .menu > li > a, .menu > li > button { height: auto; padding: 14px 20px; width: 100%; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .menu > li > .is-active::after { display: none; }
  .menu > li > .is-active { box-shadow: inset 4px 0 0 var(--red); }
  .mega { position: static; display: none; grid-template-columns: 1fr; opacity: 1; visibility: visible; transform: none; box-shadow: none; margin: 0; border-top: 0; background: var(--navy-700); }
  .menu > li.open > .mega { display: grid; }
  .mega__col { padding: 12px 16px; }
  .mega__col + .mega__col { border-left: 0; }
  .mega__feature { display: none; }
  .mega__title { color: #ffb4b4; }
  .mega__list a { color: #e8edf6; }
  .mega__list a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .mega__list .icon { color: #ffb4b4; }
  .mega__list small { color: #aebcd4; }
  .brandbar__aside .search-form { display: none; }
  .news-layout, .split, .with-side, .map-wrap, .bars-row, .video-feature { grid-template-columns: 1fr; }
  .map-info { border-left: 0; border-top: 1px solid var(--gray-200); }
  .sambutan { grid-template-columns: 1fr; }
  .potret { max-width: 380px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .16); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .vm, .feature-row, .officer--lead { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-row__img { order: 0; }
  .steps { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 0 16px; text-align: left; padding: 0; }
  .step::before { margin: 0; grid-row: span 2; }
  .step::after { top: 56px; left: 28px; width: 0; height: calc(100% - 38px); border-top: 0; border-left: 2px dashed var(--gray-300); }
  .sticky-side { position: static; }
  .apb-sum { grid-template-columns: 1fr; }
  .apb-sum > div + div { border-left: 0; border-top: 1px solid var(--gray-200); }
}
@media (max-width: 720px) {
  .topbar__info > span:not(.keep), .topbar__info > a { display: none; }
  .factbar div { padding: 14px; gap: 10px; }
  .factbar b { font-size: 1.15rem; }
  .factbar .icon { width: 24px; height: 24px; }
  .potret { max-width: 300px; }
  .hotline { display: none; }
  .brand__name { font-size: 1.2rem; }
  .brand img { width: 50px; height: 50px; }
  .brandbar__in { padding: 14px 20px; }
  .section { padding: 56px 0; }
  .slider { min-height: 420px; }
  .slide__cap { padding: 60px 20px 70px; }
  .slider__dots { left: 20px; }
  .slider__ctrl { right: 14px; }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .quick a:nth-child(2n) { border-right: 0; }
  .factbar { grid-template-columns: 1fr 1fr; }
  .factbar div:nth-child(3) { border-left: 0; }
  .factbar div:nth-child(-n+2) { border-bottom: 1px solid var(--gray-200); }
  .svc-grid, .grid-3, .grid-2, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery--home { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .gallery--home .g-item:first-child { grid-column: span 2; }
  .kop { flex-direction: column; align-items: flex-start; }
  .news-item { grid-template-columns: 100px 1fr; }
  .news-main__body { margin: -30px 10px 0; padding: 18px; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .gender { flex-direction: column; align-items: flex-start; }
  .lightbox, .vmodal { padding: 60px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .vm__visi, .vm__misi { padding: 26px; }
  .officer--lead .officer__body { padding: 22px; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .16); }
  .brand__sub { display: none; }
  .topbar__tools .lbl { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker__move { animation: none; }
}

@media print {
  .topbar, .nav, .ticker, .footer, .to-top, .cta { display: none; }
}

/* ---------- Tambahan grid khusus ---------- */
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.grid-chart { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: stretch; }
.chart-box .donut { width: 190px; height: 190px; }
.chart-box .donut::after { background: #fff; width: 110px; height: 110px; }
.with-side--wide { grid-template-columns: minmax(0, 1fr) 360px; }
@media (max-width: 1100px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) { .grid-chart, .with-side--wide { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-5 { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.pop-title { display: block; font-family: var(--font-head); font-size: .95rem; line-height: 1.35; color: var(--navy-900); margin-bottom: 4px; }
.news-item:hover .pop-title { color: var(--red); }
@media (max-width: 720px) { .g-item__cap { font-size: .75rem; padding: 24px 10px 8px; } }
