/* ==========================================================================
   SC Dinas HTML — 03 Pendidikan (Dinas Pendidikan dan Kebudayaan)
   Template oleh sharecode.id — konsep "buku tulis & stiker": ramah, ceria, rapi.
   Ganti warna/font cukup di :root.
   ========================================================================== */

/* ---------- Font (self-host, OFL) ---------- */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

/* ---------- Variabel ---------- */
:root {
  --navy: #1a237e;
  --navy-2: #283593;
  --navy-3: #3949ab;
  --navy-dark: #0f1452;
  --navy-soft: #e8eaf6;
  --yellow: #ffca28;
  --yellow-2: #ffb300;
  --yellow-soft: #fff4cc;
  --coral: #ff7a59;
  --coral-soft: #ffe3da;
  --sky: #4fa3f7;
  --sky-soft: #e1efff;
  --mint: #2fb57c;
  --mint-soft: #dcf5ea;
  --paper: #fbfaf5;
  --white: #ffffff;
  --ink: #181c3f;
  --muted: #5a5f82;
  --line: #e2e4f0;
  --rule: rgba(26, 35, 126, .07);

  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-base: 16px;

  --radius: 18px;
  --radius-lg: 32px;
  --shadow: 0 10px 30px -12px rgba(26, 35, 126, .25);
  --shadow-sticker: 6px 6px 0 var(--navy);
  --container: 1200px;
  --header-h: 78px;
}

/* ---------- Reset dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--fs-base); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.7; font-size: .95rem; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--navy-2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .6em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow-2); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--yellow); color: var(--navy); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: middle; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .8em 1.4em; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s; line-height: 1.2; }
.btn:hover { transform: translateY(-2px); }
.btn-yellow { background: var(--yellow); color: var(--navy); box-shadow: 0 4px 0 var(--yellow-2); }
.btn-yellow:hover { color: var(--navy); box-shadow: 0 6px 0 var(--yellow-2); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 4px 0 var(--navy-dark); }
.btn-navy:hover { color: #fff; box-shadow: 0 6px 0 var(--navy-dark); }
.btn-ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { color: var(--navy); background: #fff; }
.btn-sm { padding: .55em 1em; font-size: .85rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; color: var(--navy-2); }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-dark); color: #d6daf5; font-size: .8rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info span, .topbar-info a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.topbar-tools { display: flex; align-items: center; gap: 6px; }
.topbar-tools .label { margin-right: 4px; }
.fs-btn { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; width: 32px; height: 26px; cursor: pointer; font-weight: 700; font-size: .75rem; }
.fs-btn:hover, .fs-btn[aria-pressed="true"] { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 4px; background: repeating-linear-gradient(90deg, var(--yellow) 0 40px, var(--navy) 40px 48px, var(--coral) 48px 88px, var(--navy) 88px 96px, var(--sky) 96px 136px, var(--navy) 136px 144px); opacity: 0; transition: opacity .25s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -14px rgba(15,20,82,.45); }
.site-header.is-scrolled::after { opacity: 1; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 46px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: .98rem; font-weight: 800; color: var(--navy); }
.brand-text small { font-size: .74rem; color: var(--muted); font-weight: 500; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a, .nav-drop > button { display: inline-flex; align-items: center; gap: 4px; padding: .5em .85em; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .9rem; background: none; border: 0; cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.main-nav a:hover, .nav-drop > button:hover { background: var(--navy-soft); color: var(--navy); }
.main-nav a[aria-current="page"], .nav-drop.is-current > button { background: var(--yellow); color: var(--navy); font-weight: 700; }
.nav-drop { position: relative; }
.nav-drop .icon { width: 1em; height: 1em; transition: transform .2s; }
.nav-drop .sub { position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px; background: #fff; border: 2px solid var(--navy); border-radius: 16px; box-shadow: var(--shadow-sticker); padding: 8px; display: grid !important; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.nav-drop .sub a { display: flex; border-radius: 10px; padding: .55em .8em; }
.nav-drop:hover .sub, .nav-drop:focus-within .sub, .nav-drop.is-open .sub { opacity: 1; visibility: visible; transform: none; }
.nav-drop:hover > button .icon, .nav-drop.is-open > button .icon { transform: rotate(180deg); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 14px; border: 2px solid var(--navy); background: var(--yellow); color: var(--navy); cursor: pointer; align-items: center; justify-content: center; box-shadow: 3px 3px 0 var(--navy); }
.menu-toggle .icon { width: 24px; height: 24px; }

/* Panel menu mobile (di luar header agar tidak terkurung) */
.mobile-panel { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.mobile-panel.is-open { visibility: visible; }
.mobile-backdrop { position: absolute; inset: 0; background: rgba(15,20,82,.55); opacity: 0; transition: opacity .3s; }
.mobile-panel.is-open .mobile-backdrop { opacity: 1; }
.mobile-sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 360px); background: var(--paper); padding: 20px; overflow-y: auto; transform: translateX(100%); transition: transform .3s ease; background-image: linear-gradient(var(--rule) 1px, transparent 1px); background-size: 100% 32px; }
.mobile-panel.is-open .mobile-sheet { transform: none; }
.mobile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mobile-head strong { color: var(--navy); }
.mobile-close { width: 42px; height: 42px; border-radius: 12px; border: 2px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.mobile-sheet ul { list-style: none; padding: 0; margin: 0 0 18px; }
.mobile-sheet li a { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 500; }
.mobile-sheet li a:hover { background: var(--navy-soft); }
.mobile-sheet li a[aria-current="page"] { background: var(--yellow); color: var(--navy); font-weight: 700; }
.mobile-sheet .group-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; padding: 10px 14px 4px; }

/* ---------- Hero beranda ---------- */
.hero { padding: 28px 0 0; }
.hero-board { position: relative; background: var(--navy); color: #fff; border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: 1.08fr .92fr; min-height: 560px; isolation: isolate; }
.hero-board::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 34px 34px; }
.hero-board::after { content: ""; position: absolute; left: 64px; top: 0; bottom: 0; width: 2px; background: rgba(255,122,89,.55); z-index: -1; }
.hero-copy { padding: 64px 40px 56px 96px; display: flex; flex-direction: column; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: .4em .9em; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.chip-yellow { background: var(--yellow); color: var(--navy); }
.chip-soft { background: rgba(255,255,255,.12); color: #fff; }
.hero h1 { color: #fff; margin: 18px 0 16px; }
.marker { position: relative; white-space: nowrap; z-index: 0; }
.marker::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: .08em; height: .38em; background: var(--yellow); z-index: -1; border-radius: 4px 12px 6px 14px; transform: rotate(-1.2deg); }
.hero h1 .marker::after { opacity: .9; }
.hero h1 .marker { color: #fff; }
.hero-lead { color: #c9cdf0; font-size: 1.02rem; max-width: 520px; }
.hero-search { margin-top: 22px; display: flex; background: #fff; border-radius: 999px; padding: 6px; max-width: 540px; box-shadow: 0 6px 0 var(--yellow-2); }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 0 18px; color: var(--ink); background: transparent; }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { box-shadow: 0 6px 0 var(--yellow-2), 0 0 0 4px rgba(255,202,40,.5); }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; font-size: .82rem; color: #c9cdf0; align-items: center; }
.hero-tags a { color: #fff; background: rgba(255,255,255,.1); border: 1px dashed rgba(255,255,255,.35); padding: .25em .8em; border-radius: 999px; text-decoration: none; }
.hero-tags a:hover { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.hero-art { position: relative; display: flex; align-items: flex-end; justify-content: center; padding: 40px 40px 0 0; }
.hero-art .art-frame { position: relative; width: 100%; max-width: 500px; aspect-ratio: 640 / 560; border-radius: 48% 52% 0 0 / 40% 40% 0 0; overflow: hidden; border: 6px solid var(--yellow); border-bottom: 0; }
.hero-art .art-frame img { width: 100%; height: 100%; object-fit: cover; }
.sticker { position: absolute; background: #fff; color: var(--ink); border: 2px solid var(--navy); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-sticker); display: flex; gap: 10px; align-items: center; font-size: .82rem; line-height: 1.35; animation: bob 5s ease-in-out infinite; }
.sticker strong { display: block; font-size: 1.05rem; color: var(--navy); }
.sticker .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.sticker-1 { top: 70px; left: -10px; transform: rotate(-4deg); }
.sticker-2 { bottom: 120px; right: 22px; transform: rotate(3deg); animation-delay: -2.5s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.doodle { position: absolute; color: var(--yellow); pointer-events: none; }

/* Strip statistik "rapor" */
.rapor { position: relative; z-index: 2; margin: -46px auto 0; width: min(100% - 80px, 1080px); background: #fff; border: 2px solid var(--navy); border-radius: 22px; box-shadow: var(--shadow-sticker); display: grid; grid-template-columns: repeat(4, 1fr); }
.rapor-item { padding: 22px 24px; display: flex; gap: 14px; align-items: center; }
.rapor-item + .rapor-item { border-left: 2px dashed var(--line); }
.rapor-item .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.rapor-item .ico .icon { width: 26px; height: 26px; }
.rapor-num { font-size: 1.7rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.rapor-label { font-size: .8rem; color: var(--muted); }
.bg-y { background: var(--yellow-soft); color: #9a6b00; }
.bg-n { background: var(--navy-soft); color: var(--navy); }
.bg-c { background: var(--coral-soft); color: #c2410c; }
.bg-s { background: var(--sky-soft); color: #1565c0; }
.bg-m { background: var(--mint-soft); color: #137a4f; }

/* ---------- Section umum ---------- */
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.section-white { background: #fff; }
.section-lined { background-color: #fff; background-image: linear-gradient(var(--rule) 1px, transparent 1px); background-size: 100% 34px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 620px; margin: 0; }
.section-head h2 { margin-bottom: .3em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-3); margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 8px; border-radius: 99px; background: var(--yellow); box-shadow: 10px 0 0 -2px var(--coral); }
.center { text-align: center; }
.section-head.center { flex-direction: column; align-items: center; }
/* Pembatas penggaris */
.ruler { height: 26px; background:
  repeating-linear-gradient(90deg, var(--navy) 0 2px, transparent 2px 60px) bottom / 100% 22px no-repeat,
  repeating-linear-gradient(90deg, var(--navy) 0 2px, transparent 2px 12px) bottom / 100% 10px no-repeat,
  var(--yellow); border-block: 2px solid var(--navy); }

/* ---------- Layanan cepat: kartu indeks ---------- */
.index-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.index-card { position: relative; background: #fff; border: 2px solid var(--navy); border-radius: 18px; padding: 30px 22px 22px; text-decoration: none; color: var(--ink); box-shadow: 5px 5px 0 var(--navy); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; gap: 6px; }
.index-card:nth-child(odd) { transform: rotate(-1.2deg); }
.index-card:nth-child(even) { transform: rotate(1deg); }
.index-card:hover { transform: rotate(0) translateY(-4px); box-shadow: 8px 9px 0 var(--navy); color: var(--ink); }
.index-card .tab { position: absolute; top: -14px; left: 20px; padding: 3px 12px; border-radius: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 2px solid var(--navy); }
.index-card .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 8px; }
.index-card .ico .icon { width: 28px; height: 28px; }
.index-card h3 { margin: 0; font-size: 1.05rem; }
.index-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.index-card .go { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--navy-2); font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Sambutan kepala dinas ---------- */
.welcome { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: center; }
.polaroid { position: relative; background: #fff; padding: 14px 14px 56px; border-radius: 8px; box-shadow: 0 18px 40px -18px rgba(15,20,82,.5); transform: rotate(-3deg); }
.polaroid img { width: 100%; aspect-ratio: 400 / 460; object-fit: cover; border-radius: 4px; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-weight: 600; font-size: .9rem; color: var(--navy); }
.polaroid .tape { position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; background: rgba(255,202,40,.78); transform: translateX(-50%) rotate(-4deg); }
.quote-text { font-size: 1.15rem; line-height: 1.75; color: var(--ink); position: relative; }
.quote-text::before { content: "\201C"; font-size: 6rem; line-height: 1; color: var(--yellow); position: absolute; top: -38px; left: -10px; font-weight: 800; z-index: -1; }
.signature { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.signature strong { display: block; color: var(--navy); }
.signature span { color: var(--muted); font-size: .85rem; }
.signature .line { width: 60px; height: 4px; border-radius: 4px; background: var(--yellow); }

/* ---------- Tab jenjang ---------- */
.tabs-list { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.tab-btn { display: inline-flex; align-items: center; gap: 8px; padding: .75em 1.3em; border-radius: 14px; border: 2px solid var(--navy); background: #fff; color: var(--navy); font-weight: 600; cursor: pointer; transition: .2s; }
.tab-btn:hover { background: var(--navy-soft); }
.tab-btn[aria-selected="true"] { background: var(--navy); color: #fff; box-shadow: 4px 4px 0 var(--yellow); }
.tab-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: #fff; border: 2px solid var(--navy); border-radius: 24px; padding: 36px; align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-panel img { border-radius: 18px; width: 100%; aspect-ratio: 8/5; object-fit: cover; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.mini-stats div { background: var(--paper); border-radius: 14px; padding: 14px; border: 1px dashed var(--navy-3); }
.mini-stats b { display: block; font-size: 1.4rem; color: var(--navy); }
.mini-stats span { font-size: .78rem; color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--mint); margin-top: 3px; }

/* ---------- Program (kartu buku catatan) ---------- */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.note-card { position: relative; background: #fff; border-radius: 20px; padding: 28px 26px 24px 46px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.note-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 26px; background: radial-gradient(circle at 13px 50%, var(--paper) 5px, transparent 6px) 0 0 / 26px 28px repeat-y, var(--accent, var(--yellow)); }
.note-card .num { font-size: 2.6rem; font-weight: 800; color: var(--navy-soft); line-height: 1; position: absolute; right: 22px; top: 18px; }
.note-card .badge { align-self: flex-start; }
.note-card h3 { margin: 12px 0 8px; padding-right: 50px; }
.note-card p { color: var(--muted); font-size: .9rem; }
.progress { height: 10px; background: var(--navy-soft); border-radius: 99px; overflow: hidden; margin-top: auto; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy-3), var(--navy)); border-radius: inherit; width: var(--w, 50%); transition: width 1.2s ease; }
.progress-meta { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; padding: .3em .8em; border-radius: 999px; letter-spacing: .02em; }
.badge-y { background: var(--yellow-soft); color: #8a5a00; }
.badge-n { background: var(--navy-soft); color: var(--navy); }
.badge-c { background: var(--coral-soft); color: #b23a14; }
.badge-m { background: var(--mint-soft); color: #0f6b44; }
.badge-s { background: var(--sky-soft); color: #0d5bb5; }

/* ---------- Berita ---------- */
.news-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; }
.news-feature { position: relative; border-radius: 26px; overflow: hidden; background: var(--navy); color: #fff; display: flex; flex-direction: column; text-decoration: none; min-height: 100%; }
.news-feature img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .5s; }
.news-feature:hover img { transform: scale(1.04); }
.news-feature .body { padding: 26px 30px 30px; }
.news-feature h3 { color: #fff; font-size: 1.45rem; margin: 10px 0; }
.news-feature p { color: #c9cdf0; margin: 0; }
.news-list { display: grid; gap: 18px; }
.news-item { display: grid; grid-template-columns: 150px 1fr; gap: 18px; text-decoration: none; color: var(--ink); background: #fff; border-radius: 18px; padding: 12px; border: 1px solid var(--line); transition: border-color .2s, transform .2s; align-items: center; }
.news-item:hover { border-color: var(--navy); transform: translateX(4px); color: var(--ink); }
.news-item img { border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.news-item h3 { font-size: .98rem; margin: 6px 0 4px; }
.meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); align-items: center; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.news-feature .meta { color: #c9cdf0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card .thumb { position: relative; display: block; overflow: hidden; }
.news-card .thumb img { aspect-ratio: 16/10; object-fit: cover; width: 100%; transition: transform .5s; }
.news-card:hover .thumb img { transform: scale(1.05); }
.news-card .thumb .badge { position: absolute; top: 14px; left: 14px; }
.news-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news-card h3 { font-size: 1.05rem; margin: 8px 0; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--navy-3); }
.news-card p { color: var(--muted); font-size: .88rem; }
.news-card .link-arrow { margin-top: auto; }

/* ---------- Pengumuman & agenda ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.board { background: #fff; border-radius: 24px; padding: 30px; border: 2px solid var(--navy); position: relative; }
.board-pin::before { content: ""; position: absolute; top: -12px; left: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--coral); border: 3px solid var(--navy); transform: translateX(-50%); }
.board h3.board-title { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin-bottom: 18px; }
.ann-list { list-style: none; padding: 0; margin: 0; }
.ann-list li { padding: 14px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 14px; }
.ann-list li:last-child { border-bottom: 0; }
.ann-list .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); margin-top: 8px; flex: none; box-shadow: 0 0 0 4px var(--yellow-soft); }
.ann-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.ann-list a:hover { color: var(--navy-3); text-decoration: underline; }
.agenda-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.agenda-item { display: flex; gap: 16px; align-items: center; }
.calendar-leaf { width: 68px; flex: none; border-radius: 12px; overflow: hidden; text-align: center; border: 2px solid var(--navy); background: #fff; }
.calendar-leaf .m { display: block; background: var(--navy); color: var(--yellow); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 3px 0; }
.calendar-leaf .d { display: block; font-size: 1.6rem; font-weight: 800; color: var(--navy); line-height: 1.3; }
.agenda-item h4 { margin: 0 0 2px; font-size: .95rem; }

/* ---------- Budaya (gelap) ---------- */
.section-navy { background: var(--navy); color: #fff; overflow: hidden; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .section-head p { color: #c9cdf0; }
.section-navy .eyebrow { color: var(--yellow); }
.section-navy::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1.2px, transparent 1.3px); background-size: 26px 26px; pointer-events: none; }
.culture-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: auto auto; gap: 22px; position: relative; }
.culture-card { position: relative; border-radius: 24px; overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; text-decoration: none; color: #fff; }
.culture-card:first-child { grid-row: span 2; }
.culture-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.culture-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(15,20,82,.92)); }
.culture-card:hover img { transform: scale(1.06); }
.culture-card .body { position: relative; z-index: 1; padding: 22px; }
.culture-card h3 { margin: 8px 0 4px; }
.culture-card p { margin: 0; font-size: .85rem; color: #dfe2ff; }

/* ---------- Testimoni slider ---------- */
.slider { position: relative; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s, transform .5s; transform: translateX(20px); }
.slide.is-active { opacity: 1; visibility: visible; transform: none; }
.testi { display: grid; grid-template-columns: 120px 1fr; gap: 28px; background: #fff; border: 2px solid var(--navy); border-radius: 26px; padding: 36px; box-shadow: var(--shadow-sticker); align-items: center; }
.testi img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--yellow); }
.testi blockquote { margin: 0 0 12px; font-size: 1.08rem; }
.testi cite { font-style: normal; font-weight: 700; color: var(--navy); }
.testi cite span { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.slider-nav { display: flex; align-items: center; gap: 12px; margin-top: 24px; justify-content: center; }
.slider-btn { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; transition: .2s; }
.slider-btn:hover { background: var(--yellow); }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { width: 12px; height: 12px; border-radius: 99px; border: 2px solid var(--navy); background: transparent; cursor: pointer; padding: 0; transition: width .3s, background .3s; }
.slider-dots button[aria-current="true"] { width: 32px; background: var(--navy); }

/* ---------- Galeri ---------- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn { padding: .55em 1.1em; border-radius: 999px; border: 2px solid var(--navy); background: #fff; color: var(--navy); font-weight: 600; cursor: pointer; font-size: .88rem; transition: .2s; }
.filter-btn:hover { background: var(--navy-soft); }
.filter-btn.is-active { background: var(--yellow); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-item { position: relative; border-radius: 18px; overflow: hidden; cursor: zoom-in; background: var(--navy-soft); border: 0; padding: 0; display: block; width: 100%; text-align: left; }
.gallery-item:nth-child(5n+1) { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 8/5; transition: transform .5s; }
.gallery-item:nth-child(5n+1) img { aspect-ratio: auto; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .cap { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(255,255,255,.95); color: var(--ink); border-radius: 12px; padding: 8px 12px; font-size: .8rem; font-weight: 600; transform: translateY(8px); opacity: 0; transition: .3s; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gallery-item:hover .cap, .gallery-item:focus-visible .cap { transform: none; opacity: 1; }
.gallery-item.is-hidden { display: none; }
.gallery-mini { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery-mini .gallery-item:nth-child(5n+1) { grid-row: auto; }
.gallery-mini .gallery-item img { aspect-ratio: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(10,13,56,.94); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 1000px; width: 100%; }
.lightbox img { width: 100%; max-height: 74vh; object-fit: contain; border-radius: 16px; background: #fff; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 14px; font-weight: 500; }
.lightbox figcaption small { display: block; color: #aab0e0; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--yellow); background: var(--navy); color: var(--yellow); cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: var(--yellow); color: var(--navy); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* Video */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.video-card { background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.video-thumb { position: relative; display: block; width: 100%; border: 0; padding: 0; cursor: pointer; background: var(--navy); }
.video-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; opacity: .9; transition: opacity .3s, transform .5s; }
.video-thumb:hover img { opacity: 1; transform: scale(1.04); }
.video-thumb .play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; border-radius: 50%; background: var(--yellow); color: var(--navy); display: grid; place-items: center; transform: translate(-50%, -50%); box-shadow: 0 0 0 10px rgba(255,202,40,.3); transition: transform .3s; }
.video-thumb:hover .play { transform: translate(-50%, -50%) scale(1.1); }
.video-thumb .play .icon { width: 28px; height: 28px; fill: currentColor; margin-left: 4px; }
.video-thumb .dur { position: absolute; right: 12px; bottom: 12px; background: rgba(15,20,82,.85); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 6px; }
.video-card .body { padding: 18px 20px 22px; }
.video-card h3 { font-size: 1rem; margin: 6px 0 4px; }
.video-modal { position: fixed; inset: 0; z-index: 400; background: rgba(10,13,56,.94); display: none; align-items: center; justify-content: center; padding: 20px; }
.video-modal.is-open { display: flex; }
.video-frame { width: min(100%, 980px); aspect-ratio: 16/9; background: #000; border-radius: 16px; overflow: hidden; border: 3px solid var(--yellow); }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-modal .lb-close { position: absolute; }

/* ---------- CTA pengaduan ---------- */
.cta-band { background: var(--yellow); border: 2px solid var(--navy); border-radius: 30px; padding: 44px 48px; display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; box-shadow: 8px 8px 0 var(--navy); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; border: 24px solid rgba(26,35,126,.08); }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-band p { margin: 0; color: #4a3d00; }
.cta-band .ico-big { width: 84px; height: 84px; border-radius: 24px; background: var(--navy); color: var(--yellow); display: grid; place-items: center; transform: rotate(-6deg); }
.cta-band .ico-big .icon { width: 42px; height: 42px; }

/* ---------- Peta ---------- */
.map-wrap { border-radius: 24px; overflow: hidden; border: 2px solid var(--navy); box-shadow: var(--shadow-sticker); background: var(--navy-soft); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #c3c8ee; position: relative; margin-top: 0; font-size: .9rem; }
.site-footer .ruler { border-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 70px 0 50px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.footer-brand img { width: 52px; height: 54px; }
.footer-brand strong { color: #fff; display: block; line-height: 1.3; }
.footer-brand small { color: var(--yellow); }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 4px; border-radius: 4px; background: var(--yellow); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: #c3c8ee; text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact .icon { color: var(--yellow); margin-top: 3px; }
.footer-contact a { color: #c3c8ee; text-decoration: none; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; transition: .2s; }
.socials a:hover { background: var(--yellow); color: var(--navy); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .82rem; }
.footer-bottom a { color: var(--yellow); }

/* Kembali ke atas */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 50px; height: 50px; border-radius: 16px; background: var(--yellow); color: var(--navy); border: 2px solid var(--navy); box-shadow: 3px 3px 0 var(--navy); cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 500; transform: translate(-50%, 30px); background: var(--navy); color: #fff; padding: 14px 20px; border-radius: 16px; border: 2px solid var(--yellow); display: flex; gap: 10px; align-items: center; box-shadow: 0 16px 40px -10px rgba(0,0,0,.4); opacity: 0; visibility: hidden; transition: .35s; max-width: calc(100% - 40px); }
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .icon { color: var(--yellow); }

/* ---------- Page header (halaman dalam) ---------- */
.page-hero { padding: 28px 0 0; }
.page-hero-box { position: relative; background: var(--navy); border-radius: var(--radius-lg); color: #fff; padding: 56px 64px 60px 96px; overflow: hidden; isolation: isolate; }
.page-hero-box::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 100% 32px; }
.page-hero-box::after { content: ""; position: absolute; left: 64px; top: 0; bottom: 0; width: 2px; background: rgba(255,122,89,.6); z-index: -1; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: 10px 0 10px; }
.page-hero p { color: #c9cdf0; max-width: 640px; margin: 0; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; color: var(--yellow); }
.breadcrumb li + li::before { content: "/"; color: rgba(255,255,255,.4); }
.breadcrumb a { color: #fff; text-decoration: none; opacity: .85; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.page-hero .shape { position: absolute; right: 48px; top: 50%; transform: translateY(-50%); width: 170px; height: 170px; z-index: -1; opacity: .95; }

/* ---------- Konten & layout halaman ---------- */
.content-grid { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
.sidebar { display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 24px); }
.widget { background: #fff; border-radius: 22px; padding: 24px; border: 1px solid var(--line); }
.widget h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.widget-navy { background: var(--navy); color: #fff; border: 0; }
.widget-navy h3 { color: #fff; }
.widget-navy p { color: #c9cdf0; font-size: .88rem; }
.side-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side-links a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); font-size: .9rem; }
.side-links a:hover { background: var(--navy-soft); color: var(--navy); }
.prose { font-size: 1rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose blockquote { margin: 1.5em 0; padding: 18px 24px; background: var(--yellow-soft); border-left: 6px solid var(--yellow); border-radius: 0 16px 16px 0; font-weight: 500; }
.prose img { border-radius: 20px; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; text-align: center; }
.card { background: #fff; border-radius: 22px; padding: 28px; border: 1px solid var(--line); }
.card-outline { border: 2px solid var(--navy); box-shadow: var(--shadow-sticker); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stack { display: grid; gap: 18px; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.muted { color: var(--muted); }

/* Visi misi */
.vision { background: var(--navy); color: #fff; border-radius: 28px; padding: 44px; position: relative; overflow: hidden; }
.vision::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 200px; height: 200px; border-radius: 50%; background: var(--yellow); opacity: .9; }
.vision h2 { color: #fff; }
.vision p.big { font-size: 1.3rem; font-weight: 600; line-height: 1.6; position: relative; z-index: 1; max-width: 82%; }
.mission-list { counter-reset: m; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.mission-list li { counter-increment: m; display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; background: #fff; border-radius: 16px; padding: 16px; border: 1px solid var(--line); }
.mission-list li::before { content: counter(m, decimal-leading-zero); width: 46px; height: 46px; border-radius: 14px; background: var(--yellow); color: var(--navy); font-weight: 800; display: grid; place-items: center; }

/* Timeline */
.timeline { position: relative; display: grid; gap: 22px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 3px; background: repeating-linear-gradient(var(--navy) 0 8px, transparent 8px 14px); }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -32px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--navy); }
.tl-item b { color: var(--navy-3); font-size: .85rem; }
.tl-item h4 { margin: 2px 0 4px; }

/* Struktur organisasi */
.org { display: grid; gap: 28px; justify-items: center; }
.org-row { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; position: relative; }
.org-node { background: #fff; border: 2px solid var(--navy); border-radius: 16px; padding: 12px 18px; text-align: center; min-width: 180px; box-shadow: 4px 4px 0 var(--navy); position: relative; }
.org-node strong { display: block; font-size: .9rem; color: var(--navy); }
.org-node span { font-size: .78rem; color: var(--muted); }
.org-node.top { background: var(--yellow); }
.org-node.mid { background: var(--navy); }
.org-node.mid strong { color: var(--yellow); }
.org-node.mid span { color: #c9cdf0; }
.org-row + .org-row::before { content: ""; position: absolute; top: -28px; left: 50%; width: 2px; height: 28px; background: var(--navy); }

/* Pejabat */
.officer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.officer { background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); text-align: center; transition: transform .25s, box-shadow .25s; }
.officer:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.officer img { width: 100%; aspect-ratio: 400/440; object-fit: cover; object-position: top; }
.officer .body { padding: 18px 16px 22px; }
.officer h3 { font-size: 1rem; margin: 0 0 4px; }
.officer p { margin: 0; font-size: .82rem; color: var(--muted); }
.officer .nip { display: inline-block; margin-top: 8px; font-size: .72rem; background: var(--navy-soft); color: var(--navy); padding: 2px 10px; border-radius: 99px; }
.leader { display: grid; grid-template-columns: 340px 1fr; gap: 50px; align-items: center; }

/* Tabel */
.table-wrap { overflow-x: auto; background: #fff; border-radius: 20px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy); color: #fff; font-weight: 600; white-space: nowrap; }
thead th:first-child { border-top-left-radius: 18px; }
thead th:last-child { border-top-right-radius: 18px; }
tbody tr:hover { background: var(--yellow-soft); }
tbody tr:last-child td { border-bottom: 0; }
.doc-name { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.file-ico { width: 40px; height: 46px; border-radius: 8px; display: grid; place-items: center; font-size: .62rem; font-weight: 800; color: #fff; flex: none; position: relative; }
.file-pdf { background: #e53935; } .file-xls { background: #2e7d32; } .file-doc { background: #1565c0; } .file-zip { background: #6d4c41; }
.empty-state { text-align: center; padding: 40px; color: var(--muted); display: none; }
.empty-state.is-visible { display: block; }

/* Toolbar pencarian/filter */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; align-items: center; }
.search-field { position: relative; flex: 1; min-width: 220px; }
.search-field .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-field input { width: 100%; padding: 13px 16px 13px 46px; border-radius: 14px; border: 2px solid var(--line); background: #fff; }
.search-field input:focus, .select:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 4px rgba(57,73,171,.15); }
.select { padding: 13px 40px 13px 16px; border-radius: 14px; border: 2px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a237e' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; appearance: none; cursor: pointer; }
.result-count { font-size: .85rem; color: var(--muted); }

/* Akordeon */
.accordion { display: grid; gap: 12px; }
.acc-item { background: #fff; border-radius: 18px; border: 2px solid var(--line); overflow: hidden; transition: border-color .2s; }
.acc-item.is-open { border-color: var(--navy); }
.acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; background: none; border: 0; cursor: pointer; text-align: left; font-weight: 600; color: var(--ink); font-size: .98rem; }
.acc-btn .pm { width: 32px; height: 32px; border-radius: 10px; background: var(--yellow-soft); display: grid; place-items: center; flex: none; transition: transform .3s, background .3s; color: var(--navy); }
.acc-item.is-open .pm { transform: rotate(45deg); background: var(--yellow); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s; }
.acc-panel > div { overflow: hidden; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel .inner { padding: 0 22px 20px; color: var(--muted); }
.acc-panel .inner ul { margin: 0; }

/* Alur langkah */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.step { counter-increment: s; position: relative; background: #fff; border-radius: 18px; padding: 24px 18px 20px; border: 2px dashed var(--navy-3); text-align: center; }
.step::before { content: counter(s); width: 44px; height: 44px; margin: -46px auto 12px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--navy); font-weight: 800; border: 2px solid var(--navy); }
.step h4 { font-size: .95rem; margin-bottom: 4px; }
.step p { font-size: .82rem; color: var(--muted); margin: 0; }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .88rem; }
.field label .req { color: #d32f2f; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 16px; border-radius: 14px; border: 2px solid var(--line); background: #fff; }
.field textarea { min-height: 140px; resize: vertical; }
.field .err { color: #c62828; font-size: .8rem; min-height: 1em; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #e53935; }
.field.has-error .err { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--navy); }
.ticket { display: none; margin-top: 22px; background: var(--yellow-soft); border: 2px dashed var(--navy); border-radius: 18px; padding: 22px; text-align: center; }
.ticket.is-visible { display: block; }
.ticket code { display: inline-block; font-size: 1.5rem; font-weight: 800; color: var(--navy); background: #fff; padding: 6px 16px; border-radius: 12px; margin: 8px 0; letter-spacing: .06em; font-family: var(--font-head); }
.ticket .btn { margin-top: 6px; }

/* Info kontak */
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 20px; border: 1px solid var(--line); }
.contact-card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.contact-card h4 { margin: 0 0 2px; font-size: .95rem; }
.contact-card p { margin: 0; color: var(--muted); font-size: .88rem; }

/* PPID */
.ppid-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ppid-card { background: #fff; border-radius: 20px; padding: 24px; border-top: 6px solid var(--c, var(--navy)); box-shadow: var(--shadow); }
.ppid-card h3 { font-size: 1rem; margin: 12px 0 6px; }
.ppid-card p { font-size: .85rem; color: var(--muted); margin: 0; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; }
.pagination a, .pagination span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 2px solid var(--navy); text-decoration: none; color: var(--navy); font-weight: 600; background: #fff; }
.pagination [aria-current="page"] { background: var(--yellow); }

/* Artikel detail */
.article-head img { width: 100%; border-radius: 26px; aspect-ratio: 16/8; object-fit: cover; margin-bottom: 26px; }
.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 20px 0; border-block: 1px dashed var(--line); margin-top: 30px; }
.share a, .share button { width: 42px; height: 42px; border-radius: 12px; border: 2px solid var(--navy); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; }
.share a:hover, .share button:hover { background: var(--yellow); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags a { font-size: .8rem; padding: .3em .9em; border-radius: 99px; background: var(--navy-soft); color: var(--navy); text-decoration: none; }
.mini-post { display: grid; grid-template-columns: 76px 1fr; gap: 12px; text-decoration: none; color: var(--ink); align-items: center; }
.mini-post img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; }
.mini-post h4 { font-size: .85rem; margin: 0 0 2px; line-height: 1.4; }
.mini-post span { font-size: .75rem; color: var(--muted); }
.mini-post:hover h4 { color: var(--navy-3); }

/* 404 */
.notfound { text-align: center; padding: 70px 0 100px; }
.notfound img { width: min(100%, 460px); margin: 0 auto 24px; }
.notfound .code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; color: var(--navy); line-height: 1; }
.notfound .code span { color: var(--yellow-2); }

/* Reveal saat scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.index-card.reveal.is-in:nth-child(odd) { transform: rotate(-1.2deg); }
.index-card.reveal.is-in:nth-child(even) { transform: rotate(1deg); }
.index-card.reveal.is-in:hover { transform: rotate(0) translateY(-4px); }

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

/* Ukuran huruf (aksesibilitas) */
html.fs-lg { --fs-base: 17.5px; }
html.fs-sm { --fs-base: 14.5px; }

/* ---------- Responsif ---------- */
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-cta .btn-pengaduan { display: none; }
}
@media (max-width: 1024px) {
  .hero-board { grid-template-columns: 1fr; }
  .hero-copy { padding: 52px 40px 20px 80px; }
  .hero-art { padding: 10px 40px 0; }
  .hero-art .art-frame { max-width: 440px; }
  .rapor { grid-template-columns: repeat(2, 1fr); }
  .rapor-item:nth-child(3) { border-left: 0; }
  .rapor-item:nth-child(n+3) { border-top: 2px dashed var(--line); }
  .index-cards, .officer-grid, .ppid-cards, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .welcome, .leader { grid-template-columns: 1fr; gap: 40px; }
  .polaroid { max-width: 340px; margin-inline: auto; }
  .news-layout, .two-col, .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .program-grid, .news-grid, .video-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .culture-grid { grid-template-columns: 1fr 1fr; }
  .culture-card:first-child { grid-column: span 2; grid-row: auto; min-height: 300px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery-mini { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .tab-panel { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; text-align: left; }
}
@media (max-width: 720px) {
  .topbar-info span:not(:first-child) { display: none; }
  .topbar-tools .label { display: none; }
  .section { padding: 70px 0; }
  .hero { padding-top: 14px; }
  .hero-board { border-radius: 24px; min-height: 0; }
  .hero-board::after, .page-hero-box::after { left: 26px; }
  .hero-copy { padding: 40px 22px 10px 44px; }
  .hero-art { padding: 10px 16px 0; }
  .sticker { font-size: .74rem; padding: 8px 10px; }
  .sticker .ico { width: 32px; height: 32px; }
  .sticker-1 { top: 20px; left: 0; }
  .sticker-2 { bottom: 20px; right: 0; }
  .rapor { width: calc(100% - 32px); margin-top: -30px; }
  .rapor-item { padding: 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .rapor-num { font-size: 1.35rem; }
  .index-cards, .program-grid, .news-grid, .video-grid, .grid-2, .grid-3, .ppid-cards, .form-grid, .culture-grid { grid-template-columns: 1fr; }
  .culture-card:first-child { grid-column: auto; }
  .officer-grid, .grid-4 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .news-item { grid-template-columns: 110px 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-item:nth-child(5n+1) { grid-row: auto; }
  .gallery-item:nth-child(5n+1) img { aspect-ratio: 8/5; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .page-hero-box { padding: 40px 24px 44px 46px; border-radius: 24px; }
  .page-hero .shape { width: 90px; height: 90px; right: 12px; top: 18px; transform: none; opacity: .35; }
  .testi { grid-template-columns: 1fr; padding: 26px; text-align: left; }
  .testi img { width: 84px; height: 84px; }
  .tab-panel, .board, .vision { padding: 24px; }
  .cta-band { padding: 30px 24px; }
  .mini-stats { grid-template-columns: 1fr 1fr 1fr; }
  .brand-text small { display: none; }
  .lightbox { padding: 60px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
}
@media (max-width: 400px) {
  .brand-text strong { font-size: .86rem; }
  .officer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Perbaikan tata letak sempit ---------- */
.hero-copy, .hero-art { min-width: 0; }
.map-wrap { position: relative; }
.map-wrap::before { content: "Memuat peta lokasi…"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--navy-3); font-weight: 600; z-index: 0; }
.map-wrap iframe { position: relative; z-index: 1; }
@media (max-width: 1024px) {
  .hero-board { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .topbar-info > :not(:nth-child(2)) { display: none; }
  .index-card:nth-child(n), .index-card.reveal.is-in:nth-child(n) { transform: none; }
  .hero-search .btn { padding: .8em 1em; }
  .sticker-2 { bottom: 60px; }
}
@media (max-width: 720px) {
  .index-cards { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  .index-card { padding: 26px 14px 16px; box-shadow: 4px 4px 0 var(--navy); }
  .index-card p, .index-card .go { display: none; }
  .index-card h3 { font-size: .9rem; }
  .index-card .ico { width: 44px; height: 44px; }
  .polaroid { max-width: 260px; }
}
.gallery { grid-auto-flow: dense; }
@media (max-width: 720px) {
  .table-docs th:nth-child(1), .table-docs td:nth-child(1), .table-docs th:nth-child(4), .table-docs td:nth-child(4), .table-docs th:nth-child(5), .table-docs td:nth-child(5) { display: none; }
  .table-docs th, .table-docs td { padding: 12px; }
  .table-docs .btn { padding: .5em .7em; }
}
.form-grid .field.full > .btn { justify-self: start; }
.field select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a237e' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; }
.btn-pengaduan[aria-current="page"] { background: var(--yellow); color: var(--navy); box-shadow: 0 4px 0 var(--yellow-2); }
@media (max-width: 720px) {
  .page-hero .shape { top: auto; bottom: 14px; right: 14px; width: 64px; height: 64px; opacity: .5; }
}
