/* ==========================================================================
   SC Desa HTML — 07 Digital (Smart Village, mode gelap)
   Template oleh sharecode.id — Lisensi MIT
   Daftar isi:
   1. Font & variabel  2. Dasar  3. Utilitas  4. Header  5. Hero
   6. Komponen (kartu kaca, tombol, chip)  7. Section beranda
   8. Halaman dalam  9. Galeri, lightbox, modal  10. Form & toast
   11. Footer  12. Animasi & responsif
   ========================================================================== */

/* 1. Font & variabel ------------------------------------------------------ */
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-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; }

:root {
  /* Warna utama — ganti di sini untuk mengubah seluruh tema */
  --bg: #0b1120;
  --slate: #0f172a;
  --slate-2: #1e293b;
  --slate-3: #334155;
  --line: rgba(148, 163, 184, .14);
  --line-strong: rgba(148, 163, 184, .28);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --heading: #f8fafc;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, .12);
  --violet: #a78bfa;
  --violet-soft: rgba(167, 139, 250, .14);
  --green: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;
  --grad: linear-gradient(120deg, var(--cyan), var(--violet));
  --glass: rgba(15, 23, 42, .55);
  --glass-2: rgba(30, 41, 59, .45);
  /* Tipografi */
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  /* Bentuk */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  --container: 1240px;
  --header-h: 76px;
}

/* 2. Dasar ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(167, 139, 250, .14), transparent 60%),
    radial-gradient(800px 500px at -10% 10%, rgba(34, 211, 238, .10), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: #67e8f9; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--heading); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--violet); color: #0b1120; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 999; background: var(--cyan); color: #0b1120; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #0b1120; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 3. Utilitas ------------------------------------------------------------- */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--font-head); letter-spacing: .06em; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.grid-bg { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(34, 211, 238, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 211, 238, .06) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }

/* Judul section bergaya "konsol" */
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.sec-head > div { max-width: 640px; }
.sec-head h2 { margin-bottom: .3em; }
.sec-head p { color: var(--muted); margin: 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.kicker b { color: var(--violet); font-weight: 600; }

/* 4. Header --------------------------------------------------------------- */
.statusbar { font-family: var(--font-head); font-size: .78rem; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--line); background: rgba(11, 17, 32, .8); }
.statusbar .container { display: flex; gap: 22px; align-items: center; min-height: 38px; flex-wrap: wrap; }
.statusbar span { display: inline-flex; align-items: center; gap: 7px; }
.statusbar .icon { width: 14px; height: 14px; }
.statusbar .push { margin-left: auto; }
.statusbar a { color: var(--muted); }
.statusbar a:hover { color: var(--cyan); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

.site-header { position: sticky; top: 0; z-index: 100; padding: 12px 0; transition: padding .3s, background .3s; }
.site-header.is-stuck { padding: 6px 0; }
.nav-shell { display: flex; align-items: center; gap: 20px; height: 62px; padding: 0 10px 0 16px; border: 1px solid var(--line-strong); border-radius: 18px;
  background: rgba(15, 23, 42, .62); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); transition: box-shadow .3s; }
.site-header.is-stuck .nav-shell { box-shadow: 0 14px 40px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(34, 211, 238, .1); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--heading); flex: none; }
.brand img { width: 40px; height: 40px; }
.brand strong { display: block; font-family: var(--font-head); font-size: 1.05rem; line-height: 1.1; }
.brand small { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .05em; }
.brand:hover { color: var(--heading); }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a, .main-nav .sub-toggle { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; color: var(--text); font-size: .92rem; font-weight: 500; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.main-nav a:hover, .main-nav .sub-toggle:hover { background: rgba(148, 163, 184, .1); color: var(--heading); }
.main-nav a.active, .main-nav .has-sub.active > .sub-toggle { color: var(--cyan); background: var(--cyan-soft); }
.main-nav .icon { width: 14px; height: 14px; }
.has-sub { position: relative; }
.submenu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px; padding: 8px; flex-direction: column !important; border-radius: 14px; border: 1px solid var(--line-strong);
  background: rgba(15, 23, 42, .96); backdrop-filter: blur(16px); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.open .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { padding: 9px 12px; }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--glass-2); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--heading); border-radius: 2px; position: relative; transition: .25s; }
.nav-toggle span::before { position: absolute; top: -6px; } .nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* 6. Komponen ------------------------------------------------------------- */
.btn { --b: var(--cyan); display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 12px; font-family: var(--font-head); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s; white-space: nowrap; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #0b1120; box-shadow: 0 10px 30px -10px rgba(34, 211, 238, .55); }
.btn-primary:hover { color: #0b1120; transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(167, 139, 250, .7); }
.btn-ghost { background: rgba(148, 163, 184, .08); border-color: var(--line-strong); color: var(--heading); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-soft); }
.btn-sm { padding: 9px 14px; font-size: .85rem; border-radius: 10px; }
.btn-block { width: 100%; }

.glass { position: relative; background: linear-gradient(160deg, rgba(30, 41, 59, .62), rgba(15, 23, 42, .5)); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.glass--glow::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(34, 211, 238, .55), transparent 35%, transparent 65%, rgba(167, 139, 250, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.card-hover { transition: transform .3s, border-color .3s, box-shadow .3s; }
.card-hover:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, .35); box-shadow: 0 24px 50px -24px rgba(34, 211, 238, .35); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .75rem; font-weight: 600; font-family: var(--font-head); letter-spacing: .04em; border: 1px solid rgba(34, 211, 238, .35); color: var(--cyan); background: var(--cyan-soft); }
.chip--violet { border-color: rgba(167, 139, 250, .4); color: var(--violet); background: var(--violet-soft); }
.chip--green { border-color: rgba(52, 211, 153, .4); color: var(--green); background: rgba(52, 211, 153, .1); }
.chip--amber { border-color: rgba(251, 191, 36, .4); color: var(--amber); background: rgba(251, 191, 36, .1); }
.chip--rose { border-color: rgba(251, 113, 133, .4); color: var(--rose); background: rgba(251, 113, 133, .1); }
.icon-box { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--cyan); background: var(--cyan-soft); border: 1px solid rgba(34, 211, 238, .25); flex: none; }
.icon-box .icon { width: 22px; height: 22px; }
.icon-box--violet { color: var(--violet); background: var(--violet-soft); border-color: rgba(167, 139, 250, .3); }

/* 5. Hero beranda --------------------------------------------------------- */
.hero { position: relative; padding: 40px 0 70px; overflow: hidden; }
.hero .grid-bg { mask-image: linear-gradient(#000, transparent 90%); -webkit-mask-image: linear-gradient(#000, transparent 90%); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; }
.hero-orb.o1 { width: 380px; height: 380px; background: var(--cyan); left: -120px; top: 80px; opacity: .18; }
.hero-orb.o2 { width: 460px; height: 460px; background: var(--violet); right: -140px; top: -60px; opacity: .22; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero h1 .grad-text { display: inline-block; }
.hero-lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 30px; }
.hero-search { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 14px; max-width: 520px; }
.hero-search .icon { color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 8px 0; color: var(--heading); }
.hero-search input::placeholder { color: #64748b; }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-size: .82rem; color: var(--muted); align-items: center; }
.hero-tags a { color: var(--text); border-bottom: 1px dashed var(--slate-3); }
.typed { color: var(--cyan); }
.typed::after { content: "_"; animation: blink 1s steps(1) infinite; color: var(--violet); }
@keyframes blink { 50% { opacity: 0; } }

/* Dashboard bento di hero */
.dash { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.dash .tile { padding: 18px; border-radius: 16px; overflow: hidden; }
.tile-label { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-head); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.tile-value { font-family: var(--font-head); font-weight: 700; font-size: 2.1rem; color: var(--heading); line-height: 1.1; }
.tile-value small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.trend { color: var(--green); font-size: .8rem; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.tile-map { grid-column: span 6; padding: 0 !important; position: relative; aspect-ratio: 16 / 8.2; }
.tile-map img { width: 100%; height: 100%; object-fit: cover; }
.tile-map .overlay { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; justify-content: space-between; gap: 10px; align-items: end; }
.tile-map .overlay .chip { backdrop-filter: blur(6px); background: rgba(15, 23, 42, .7); }
.tile-pop { grid-column: span 3; }
.tile-donut { grid-column: span 3; display: flex; gap: 14px; align-items: center; }
.tile-queue { grid-column: span 6; }
.spark { width: 100%; height: 46px; margin-top: 8px; }
.spark path.line { fill: none; stroke: var(--cyan); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2.2s .4s forwards ease-out; }
.spark path.area { fill: url(#sparkGrad); opacity: .5; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.donut { --p: 50; width: 84px; height: 84px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--cyan) calc(var(--p) * 1%), var(--violet) 0); position: relative; }
.donut::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #111a2e; }
.donut span { position: relative; font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--heading); }
.legend { list-style: none; padding: 0; margin: 0; font-size: .82rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--cyan); display: inline-block; }
.legend i.v { background: var(--violet); }
.legend i.g { background: var(--green); }
.legend i.a { background: var(--amber); }
.legend b { color: var(--heading); margin-left: auto; font-family: var(--font-head); }
.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.queue li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; font-size: .86rem; padding: 8px 10px; border-radius: 10px; background: rgba(148, 163, 184, .06); }
.queue code { font-family: var(--font-head); color: var(--violet); font-size: .8rem; }

/* Strip metrik bergerak */
.metric-strip { border-block: 1px solid var(--line); background: rgba(15, 23, 42, .6); overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.metric-strip:hover .marquee { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 10px; padding: 16px 30px; font-family: var(--font-head); font-size: .92rem; color: var(--muted); white-space: nowrap; border-right: 1px solid var(--line); }
.marquee b { color: var(--heading); }
.marquee .icon { color: var(--cyan); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 7. Section beranda ------------------------------------------------------ */
/* Sambutan: gaya panel konsol */
.welcome { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: stretch; }
.welcome-photo { padding: 14px; display: flex; flex-direction: column; }
.welcome-photo img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.welcome-photo .id-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 6px 4px; }
.welcome-photo h3 { margin: 0; font-size: 1.15rem; }
.welcome-body { padding: 0; overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-size: .8rem; color: var(--muted); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--rose); display: inline-block; }
.win-bar i:nth-child(2) { background: var(--amber); } .win-bar i:nth-child(3) { background: var(--green); }
.win-bar span { margin-left: 10px; }
.welcome-text { padding: clamp(24px, 4vw, 44px); }
.welcome-text blockquote { margin: 0 0 20px; font-family: var(--font-head); font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.45; color: var(--heading); font-weight: 500; }
.signature { display: flex; gap: 18px; align-items: center; margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line-strong); flex-wrap: wrap; }
.signature .sig { font-family: var(--font-head); font-size: 1.5rem; font-style: italic; color: var(--violet); transform: rotate(-4deg); }

/* Peluncur layanan (gaya ikon aplikasi) */
.launcher { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.app { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 18px; color: var(--text); min-height: 170px; }
.app .icon-box { width: 54px; height: 54px; border-radius: 16px; }
.app h3 { font-size: 1rem; margin: 0; }
.app p { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.app:hover { color: var(--text); }
.app .go { margin-top: auto; font-size: .78rem; font-family: var(--font-head); color: var(--cyan); display: inline-flex; align-items: center; gap: 6px; opacity: .7; transition: .2s; }
.app:hover .go { opacity: 1; gap: 10px; }

/* Panel statistik (dashboard) */
.stat-dash { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { padding: 22px; }
.kpi .tile-value { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 6px 0 4px; }
.kpi .bar { height: 6px; border-radius: 6px; background: rgba(148, 163, 184, .12); overflow: hidden; margin-top: 12px; }
.kpi .bar i { display: block; height: 100%; width: var(--w, 50%); background: var(--grad); border-radius: inherit; }
.chart-panel { grid-column: span 4; padding: 26px; display: grid; grid-template-columns: 260px 1fr; gap: 30px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 5px; border-radius: 14px; background: rgba(148, 163, 184, .06); border: 1px solid var(--line); width: fit-content; }
.tabs--vert { flex-direction: column; width: 100%; align-self: start; }
.tab { padding: 10px 14px; border-radius: 10px; border: 0; background: none; color: var(--muted); cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: .9rem; text-align: left; display: flex; gap: 10px; align-items: center; }
.tab:hover { color: var(--heading); }
.tab[aria-selected="true"] { background: var(--grad); color: #0b1120; }
.tab-panel[hidden] { display: none; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hbars li { display: grid; grid-template-columns: 150px 1fr 70px; gap: 14px; align-items: center; font-size: .9rem; }
.hbars .track { height: 12px; border-radius: 8px; background: rgba(148, 163, 184, .1); overflow: hidden; }
.hbars .fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.hbars .fill.v { background: linear-gradient(90deg, var(--violet), #f0abfc); }
.hbars b { font-family: var(--font-head); color: var(--heading); text-align: right; }

/* Berita: umpan */
.news-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
.news-feature { overflow: hidden; display: flex; flex-direction: column; }
.news-feature .thumb { aspect-ratio: 16 / 9; overflow: hidden; }
.news-feature .thumb img, .news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-feature:hover .thumb img, .news-card:hover .thumb img { transform: scale(1.05); }
.news-feature .body { padding: 26px; }
.news-feature h3 { font-size: 1.55rem; }
.news-feature h3 a, .news-item h3 a, .news-card h3 a { color: var(--heading); }
.news-feature h3 a:hover, .news-item h3 a:hover, .news-card h3 a:hover { color: var(--cyan); }
.meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta .icon { width: 14px; height: 14px; }
.news-list { display: grid; gap: 14px; }
.news-item { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 12px; align-items: center; }
.news-item img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.news-item h3 { font-size: 1rem; margin: 0; line-height: 1.4; }
.news-item .meta { margin-bottom: 6px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { overflow: hidden; display: flex; flex-direction: column; }
.news-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.news-card .thumb .chip { position: absolute; left: 14px; top: 14px; background: rgba(15, 23, 42, .8); }
.news-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news-card h3 { font-size: 1.1rem; line-height: 1.4; }
.news-card p { color: var(--muted); font-size: .92rem; }
.read-more { margin-top: auto; font-family: var(--font-head); font-weight: 600; font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; }

/* Agenda: garis waktu */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 35px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--cyan), var(--violet), transparent); }
.timeline li { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 10px 0; }
.date-chip { width: 72px; height: 72px; border-radius: 18px; display: grid; place-content: center; text-align: center; background: #111a2e; border: 1px solid rgba(34, 211, 238, .35); position: relative; z-index: 1; }
.date-chip b { font-family: var(--font-head); font-size: 1.6rem; line-height: 1; color: var(--heading); }
.date-chip small { font-size: .72rem; color: var(--cyan); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.timeline .ev { padding: 16px 18px; }
.timeline h3 { font-size: 1.02rem; margin-bottom: 6px; }
.timeline .meta { margin: 0; }

/* Pengumuman ringkas */
.notice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.notice { display: flex; gap: 14px; padding: 16px 18px; align-items: flex-start; }
.notice h3 { font-size: 1rem; margin: 0 0 4px; }
.notice h3 a { color: var(--heading); }
.notice p { margin: 0; font-size: .86rem; color: var(--muted); }

/* Galeri bento ringkas */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.bento a { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.bento a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bento a:nth-child(4) { grid-column: span 2; }
.bento img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.bento a:hover img { transform: scale(1.06); }
.bento span { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; font-size: .78rem; background: rgba(15, 23, 42, .78); color: var(--heading); backdrop-filter: blur(6px); border: 1px solid var(--line); }

/* Testimoni carousel */
.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.slide { flex: 0 0 100%; padding: clamp(26px, 4vw, 48px); display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.slide img { width: 96px; height: 96px; border-radius: 24px; object-fit: cover; border: 1px solid var(--line-strong); }
.slide blockquote { margin: 0 0 14px; font-family: var(--font-head); font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--heading); line-height: 1.5; }
.slide cite { font-style: normal; color: var(--muted); font-size: .9rem; }
.slide cite b { color: var(--cyan); }
.carousel-ctrl { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 18px; }
.carousel-ctrl button.arrow { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--glass-2); color: var(--heading); cursor: pointer; display: grid; place-items: center; }
.carousel-ctrl button.arrow:hover { border-color: var(--cyan); color: var(--cyan); }
.dots { display: flex; gap: 8px; margin-right: auto; }
.dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; background: var(--slate-3); cursor: pointer; padding: 0; transition: .3s; }
.dots button[aria-current="true"] { width: 30px; background: var(--grad); }

/* Peta interaktif */
.map-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: stretch; }
.map-box { padding: 10px; overflow: hidden; }
.map-box img { border-radius: 12px; width: 100%; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.facts li { display: flex; justify-content: space-between; gap: 14px; padding: 13px 16px; border-radius: 12px; background: rgba(148, 163, 184, .06); border: 1px solid var(--line); font-size: .92rem; }
.facts li span { color: var(--muted); }
.facts li b { color: var(--heading); font-family: var(--font-head); text-align: right; }

/* CTA */
.cta { padding: clamp(32px, 5vw, 60px); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; overflow: hidden; }
.cta h2 { margin-bottom: .3em; }
.cta p { color: var(--muted); margin: 0; }
.cta .grid-bg { opacity: .7; }

/* 8. Halaman dalam -------------------------------------------------------- */
.page-hero { position: relative; padding: 50px 0 60px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .container { position: relative; }
.crumb { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--font-head); font-size: .85rem; color: var(--muted); padding: 7px 14px; border-radius: 10px; background: rgba(148, 163, 184, .06); border: 1px solid var(--line); margin-bottom: 20px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--cyan); }
.crumb .path { color: var(--green); }
.crumb [aria-current] { color: var(--cyan); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); margin-bottom: 12px; }
.page-hero p { color: var(--muted); max-width: 680px; font-size: 1.05rem; margin: 0; }
.page-hero .hero-orb.o2 { width: 360px; height: 360px; right: -100px; top: -140px; }

.prose { max-width: 760px; }
.prose p, .prose li { color: #cbd5e1; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose blockquote { margin: 1.5em 0; padding: 18px 22px; border-left: 3px solid var(--cyan); background: var(--cyan-soft); border-radius: 0 12px 12px 0; font-family: var(--font-head); color: var(--heading); font-size: 1.1rem; }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.box { padding: 26px; }
.box h3 { display: flex; gap: 10px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--green); margin-top: 4px; }
.num-list { list-style: none; padding: 0; margin: 0; counter-reset: n; display: grid; gap: 12px; }
.num-list li { counter-increment: n; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.num-list li::before { content: counter(n, decimal-leading-zero); font-family: var(--font-head); font-weight: 700; color: var(--cyan); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--cyan-soft); border: 1px solid rgba(34, 211, 238, .25); font-size: .9rem; }

/* Sejarah timeline horizontal */
.history { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.history::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--violet)); opacity: .5; }
.history .step { position: relative; padding-top: 48px; }
.history .step::before { content: ""; position: absolute; top: 14px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid var(--cyan); box-shadow: 0 0 0 6px rgba(34, 211, 238, .12); }
.history .year { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--heading); }
.history p { font-size: .9rem; color: var(--muted); margin: 6px 0 0; }

/* Tabel data */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(15, 23, 42, .5); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
caption { text-align: left; padding: 16px 18px; font-family: var(--font-head); color: var(--heading); font-weight: 600; border-bottom: 1px solid var(--line); }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-family: var(--font-head); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: rgba(148, 163, 184, .05); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:hover { background: rgba(34, 211, 238, .04); }
tfoot td { font-weight: 700; color: var(--heading); font-family: var(--font-head); }
.progress { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.progress .track { flex: 1; height: 8px; border-radius: 8px; background: rgba(148, 163, 184, .12); overflow: hidden; }
.progress .track i { display: block; height: 100%; background: var(--grad); }
.progress b { font-family: var(--font-head); font-size: .82rem; color: var(--heading); width: 42px; text-align: right; }

/* Struktur organisasi */
.org { display: flex; flex-direction: column; align-items: center; gap: 34px; }
.org-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; position: relative; }
.org-node { padding: 14px 18px; text-align: center; min-width: 190px; position: relative; }
.org-node b { display: block; font-family: var(--font-head); color: var(--heading); }
.org-node small { color: var(--cyan); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.org-row + .org-row::before { content: ""; position: absolute; top: -34px; left: 50%; width: 2px; height: 34px; background: linear-gradient(var(--cyan), var(--violet)); }
.org-node.lead { border-color: rgba(34, 211, 238, .5); box-shadow: 0 0 40px -12px rgba(34, 211, 238, .5); }

/* Profil perangkat */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.person { padding: 12px; text-align: left; }
.person img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; width: 100%; margin-bottom: 14px; }
.person h3 { font-size: 1.02rem; margin: 0 0 2px; padding: 0 6px; }
.person p { font-size: .84rem; color: var(--cyan); margin: 0 6px 10px; }
.person .tag { margin: 0 6px 6px; }

/* Layanan surat (akordeon) */
.accordion { display: grid; gap: 12px; }
.acc-item { overflow: hidden; }
.acc-btn { width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: none; border: 0; cursor: pointer; text-align: left; color: var(--heading); font-family: var(--font-head); font-weight: 600; font-size: 1.04rem; }
.acc-btn .chev { margin-left: auto; transition: transform .3s; color: var(--muted); }
.acc-btn[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--cyan); }
.acc-panel { padding: 0 20px 20px 84px; color: #cbd5e1; }
.acc-panel[hidden] { display: none; }
.acc-panel .meta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* Alur layanan */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: f; }
.flow .step { padding: 22px 18px; position: relative; counter-increment: f; }
.flow .step::before { content: "0" counter(f); font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 12px; }
.flow .step h3 { font-size: 1rem; }
.flow .step p { font-size: .86rem; color: var(--muted); margin: 0; }
.flow .step:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 38px; width: 10px; height: 10px; border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); transform: rotate(45deg); }

/* APBDes */
.apb-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.apb-chart { padding: 26px; }
.vbars { display: flex; align-items: flex-end; gap: clamp(8px, 2vw, 22px); height: 260px; padding: 0 6px; border-bottom: 1px solid var(--line-strong); background-image: repeating-linear-gradient(to top, transparent 0 51px, var(--line) 51px 52px); }
.vbar { flex: 1; display: flex; gap: 4px; align-items: flex-end; height: 100%; position: relative; }
.vbar i { flex: 1; border-radius: 6px 6px 0 0; background: var(--cyan); height: 0; transition: height 1.2s cubic-bezier(.2, .8, .2, 1); position: relative; }
.vbar i.r { background: var(--violet); }
.vbar i:hover::after { content: attr(data-v); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #0b1120; border: 1px solid var(--line-strong); padding: 3px 8px; border-radius: 6px; font-size: .72rem; white-space: nowrap; color: var(--heading); z-index: 2; }
.vbar-labels { display: flex; gap: clamp(8px, 2vw, 22px); padding: 10px 6px 0; }
.vbar-labels span { flex: 1; text-align: center; font-size: .76rem; color: var(--muted); line-height: 1.3; }
.ring-wrap { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.ring { width: 190px; height: 190px; }
.ring circle { fill: none; stroke-width: 18; }
.ring .bgc { stroke: rgba(148, 163, 184, .12); }
.ring .seg { stroke-linecap: butt; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring text { fill: var(--heading); font-family: var(--font-head); font-weight: 700; }

/* Potensi */
.product { overflow: hidden; display: flex; flex-direction: column; }
.product .thumb { aspect-ratio: 1; overflow: hidden; background: #111a2e; }
.product .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product:hover .thumb img { transform: scale(1.05); }
.product .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.product h3 { font-size: 1.05rem; margin: 0; }
.product .price { font-family: var(--font-head); color: var(--cyan); font-weight: 700; font-size: 1.1rem; }
.product p { font-size: .88rem; color: var(--muted); margin: 0; }
.spot { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; overflow: hidden; }
.spot:nth-child(even) { grid-template-columns: 1fr 1.1fr; }
.spot:nth-child(even) .spot-img { order: 2; }
.spot-img img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.spot-body { padding: clamp(24px, 4vw, 44px); }
.spot-body .facts { margin-top: 18px; }

/* Toolbar filter / pencarian */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.filter-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(148, 163, 184, .05); color: var(--text); cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: .86rem; }
.filter-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.filter-btn.is-active { background: var(--grad); color: #0b1120; border-color: transparent; }
.search-box { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(15, 23, 42, .6); min-width: min(100%, 320px); }
.search-box:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .12); }
.search-box input, .search-box select { background: none; border: 0; outline: 0; padding: 12px 0; flex: 1; min-width: 0; color: var(--heading); }
.search-box select option { background: var(--slate); }
.search-box .icon { color: var(--muted); }
.empty { display: none; padding: 40px; text-align: center; color: var(--muted); }
.empty.show { display: block; }
.result-count { font-size: .86rem; color: var(--muted); font-family: var(--font-head); }

/* Berita detail */
.article-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.article-cover { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 28px; }
.article-cover img { width: 100%; }
.share { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.share > a, .share > button { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--glass-2); color: var(--heading); cursor: pointer; }
.share > a:hover, .share > button:hover { color: var(--cyan); border-color: var(--cyan); }
.sidebar { display: grid; gap: 20px; position: sticky; top: 100px; }
.sidebar .box h3 { font-size: 1.05rem; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .82rem; color: var(--text); }
.tags a:hover { border-color: var(--cyan); color: var(--cyan); }
.mini-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.mini-list li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: center; }
.mini-list img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; }
.mini-list a { color: var(--heading); font-size: .9rem; line-height: 1.4; font-weight: 500; }
.mini-list a:hover { color: var(--cyan); }
.mini-list small { color: var(--muted); font-size: .76rem; }
.comment { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 18px; }
.comment img { border-radius: 14px; }
.comment b { color: var(--heading); font-family: var(--font-head); }

/* Dokumen unduhan */
.doc-list { display: grid; gap: 12px; }
.doc { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; }
.doc h3 { font-size: 1rem; margin: 0 0 4px; }
.doc .meta { margin: 0; }
.doc-ext { width: 52px; height: 58px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .78rem; color: #0b1120; background: var(--grad); clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.doc-ext.xls { background: linear-gradient(135deg, var(--green), var(--cyan)); }
.doc-ext.doc { background: linear-gradient(135deg, #60a5fa, var(--violet)); }

/* Agenda halaman */
.cal-month { font-family: var(--font-head); font-size: 1.1rem; color: var(--heading); margin: 30px 0 14px; display: flex; gap: 12px; align-items: center; }
.cal-month::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.event-card { display: grid; grid-template-columns: 90px 1fr auto; gap: 20px; padding: 18px; align-items: center; }
.event-card .date-chip { width: 90px; height: 90px; }
.event-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.event-card p { margin: 0; font-size: .9rem; color: var(--muted); }

/* 9. Galeri, lightbox, modal --------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g-item { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #111a2e; cursor: zoom-in; padding: 0; display: block; width: 100%; aspect-ratio: 4 / 3; transition: opacity .3s, transform .3s; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.g-item:hover img { transform: scale(1.06); }
.g-item figcaption, .g-item .cap { position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px; background: linear-gradient(transparent, rgba(11, 17, 32, .92)); color: var(--heading); font-size: .9rem; text-align: left; font-weight: 500; }
.g-item .cap small { display: block; color: var(--cyan); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--font-head); }
.g-item.is-hidden { display: none; }
.gallery .g-item.wide { grid-column: span 2; aspect-ratio: auto; }

.lightbox, .modal { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(5, 8, 18, .9); backdrop-filter: blur(10px); }
.lightbox.open, .modal.open { display: flex; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.lb-figure { margin: 0; max-width: min(1100px, 100%); width: 100%; text-align: center; }
.lb-figure img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 14px; border: 1px solid var(--line-strong); }
.lb-figure figcaption { margin-top: 14px; color: var(--text); font-size: .95rem; }
.lb-figure figcaption span { color: var(--muted); font-family: var(--font-head); margin-left: 8px; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(15, 23, 42, .8); color: var(--heading); cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.modal-box { width: min(960px, 100%); position: relative; }
.modal-box .ratio { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); background: #000; }
.modal-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-box .lb-close { top: -64px; right: 0; }
.modal-box h3 { margin: 14px 0 0; font-size: 1.05rem; }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-card { overflow: hidden; text-align: left; padding: 0; cursor: pointer; color: var(--text); width: 100%; display: flex; flex-direction: column; font: inherit; }
.video-card .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; width: 100%; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.video-card:hover .thumb img { transform: scale(1.05); }
.play { position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; background: rgba(15, 23, 42, .6); border: 1px solid rgba(34, 211, 238, .6); color: var(--cyan); backdrop-filter: blur(6px); transition: .3s; }
.play::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(34, 211, 238, .3); animation: ring 2s infinite; }
@keyframes ring { to { transform: scale(1.3); opacity: 0; } }
.play .icon { width: 26px; height: 26px; fill: currentColor; margin-left: 4px; }
.video-card:hover .play { background: var(--cyan); color: #0b1120; }
.duration { position: absolute; right: 12px; bottom: 12px; font-family: var(--font-head); font-size: .76rem; padding: 3px 8px; border-radius: 6px; background: rgba(11, 17, 32, .85); color: var(--heading); }
.video-card .body { padding: 18px 20px 22px; }
.video-card h3 { font-size: 1.05rem; margin: 0 0 6px; }
.video-card p { font-size: .86rem; color: var(--muted); margin: 0; }
.video-feature { display: grid; grid-template-columns: 1.5fr 1fr; gap: 0; margin-bottom: 30px; }
.video-feature .thumb { aspect-ratio: 16 / 9; }
.video-feature .body { padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.video-feature h3 { font-size: 1.5rem; }

/* 10. Form & toast -------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 8px; color: var(--heading); }
.field label .req { color: var(--rose); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(11, 17, 32, .6); color: var(--heading); transition: border-color .2s, box-shadow .2s; }
.field select option { background: var(--slate); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .14); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--rose); }
.field .err { display: none; color: var(--rose); font-size: .8rem; margin-top: 6px; }
.field.invalid .err { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.check input { accent-color: var(--cyan); width: 18px; height: 18px; margin-top: 3px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 600; max-width: min(380px, calc(100% - 40px)); display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px;
  background: rgba(15, 23, 42, .96); border: 1px solid rgba(52, 211, 153, .45); box-shadow: var(--shadow); transform: translateY(140%); opacity: 0; transition: .4s cubic-bezier(.2, .8, .2, 1); }
.toast.show { transform: none; opacity: 1; }
.toast .icon { color: var(--green); width: 22px; height: 22px; margin-top: 2px; }
.toast b { display: block; color: var(--heading); font-family: var(--font-head); }
.toast p { margin: 0; font-size: .86rem; color: var(--muted); }
.toast.error { border-color: rgba(251, 113, 133, .5); }
.toast.error .icon { color: var(--rose); }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; padding: 18px; align-items: flex-start; }
.contact-card h3 { font-size: 1rem; margin: 0 0 2px; }
.contact-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 8; background: #111a2e; }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(180deg) saturate(.6); }
.hours { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .9rem; }
.hours li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.hours li b { color: var(--heading); font-family: var(--font-head); font-weight: 600; }

/* 11. Footer -------------------------------------------------------------- */
.site-footer { position: relative; margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(rgba(11, 17, 32, .2), #070b16); overflow: hidden; }
.site-footer .grid-bg { mask-image: linear-gradient(transparent, #000); -webkit-mask-image: linear-gradient(transparent, #000); }
.footer-top { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding: 70px 0 50px; }
.footer-top h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-bottom: 18px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-top ul a { color: var(--text); font-size: .93rem; }
.footer-top ul a:hover { color: var(--cyan); }
.footer-about p { color: var(--muted); font-size: .93rem; margin: 18px 0; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--text); background: var(--glass-2); }
.socials a:hover { color: var(--cyan); border-color: var(--cyan); }
.footer-contact li { display: flex; gap: 10px; font-size: .92rem; color: var(--text); }
.footer-contact .icon { color: var(--cyan); margin-top: 4px; }
.newsletter { display: flex; gap: 8px; margin-top: 16px; }
.newsletter input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(11, 17, 32, .6); color: var(--heading); }
.newsletter input:focus { outline: 0; border-color: var(--cyan); }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 28px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.footer-bottom a { color: var(--text); }
.footer-bottom a:hover { color: var(--cyan); }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 14px; border: 1px solid rgba(34, 211, 238, .5); background: rgba(15, 23, 42, .85); color: var(--cyan); cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; backdrop-filter: blur(8px); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--cyan); color: #0b1120; }

/* 404 */
.err-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; position: relative; }
.err-code { font-family: var(--font-head); font-weight: 700; font-size: clamp(6rem, 20vw, 13rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.04em; }
.err-term { text-align: left; max-width: 520px; margin: 20px auto 30px; padding: 18px 20px; font-family: var(--font-head); font-size: .9rem; color: var(--muted); }
.err-term b { color: var(--green); font-weight: 500; }
.err-term em { color: var(--rose); font-style: normal; }

/* 12. Animasi & responsif ------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; } .reveal[data-delay="2"] { transition-delay: .2s; } .reveal[data-delay="3"] { transition-delay: .3s; } .reveal[data-delay="4"] { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee { animation: none; }
  .spark path.line { stroke-dashoffset: 0; }
}

@media (max-width: 1180px) {
  .main-nav a, .main-nav .sub-toggle { padding: 8px 9px; font-size: .88rem; }
  .nav-cta .btn-ghost { display: none; }
  .launcher { grid-template-columns: repeat(3, 1fr); }
  .people { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: rgba(11, 17, 32, .98); border-left: 1px solid var(--line-strong); padding: 90px 20px 30px; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); overflow-y: auto; z-index: 150; visibility: hidden; }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a, .main-nav .sub-toggle { padding: 12px 14px; font-size: 1rem; width: 100%; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; background: rgba(148, 163, 184, .05); margin-top: 4px; }
  .has-sub:hover .submenu { display: none; }
  .has-sub.open .submenu { display: flex; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 120; opacity: 0; visibility: hidden; transition: .3s; }
  .nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  .nav-toggle { position: relative; z-index: 160; }
  .nav-cta { margin-left: auto; }
  .hero-grid, .welcome, .news-layout, .split, .map-wrap, .two-col, .article-layout, .video-feature, .spot, .spot:nth-child(even) { grid-template-columns: 1fr; }
  .spot:nth-child(even) .spot-img { order: 0; }
  .welcome-photo { flex-direction: row; gap: 16px; align-items: center; }
  .welcome-photo img { width: 140px; }
  .stat-dash { grid-template-columns: repeat(2, 1fr); }
  .chart-panel { grid-column: span 2; grid-template-columns: 1fr; }
  .tabs--vert { flex-direction: row; width: fit-content; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow .step::after { display: none; }
  .history { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .history::before { display: none; }
  .sidebar { position: static; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .video-grid, .gallery, .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .statusbar .hide-sm { display: none; }
  .brand small { display: none; }
  .nav-cta .btn-primary span { display: none; }
  .nav-cta .btn-primary { padding: 10px; }
  .launcher { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: repeat(2, 1fr); }
  .stat-dash, .apb-kpi { grid-template-columns: 1fr; }
  .chart-panel { grid-column: auto; padding: 20px; }
  .hbars li { grid-template-columns: 1fr 60px; }
  .hbars li .track { grid-column: span 2; order: 3; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .bento a:nth-child(4) { grid-column: span 1; }
  .news-grid, .video-grid, .gallery, .cols-3, .cols-4, .form-row, .footer-top, .flow, .history { grid-template-columns: 1fr; }
  .gallery .g-item.wide { grid-column: auto; aspect-ratio: 4 / 3; }
  .news-item { grid-template-columns: 100px 1fr; }
  .slide { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 70px 1fr; }
  .event-card .date-chip { width: 70px; height: 70px; }
  .event-card .btn { grid-column: span 2; }
  .doc { grid-template-columns: auto 1fr; }
  .doc .btn { grid-column: span 2; }
  .acc-panel { padding-left: 20px; }
  .welcome-photo img { width: 96px; }
  .welcome-photo .id-card { padding: 0; flex: 1; }
  .welcome-photo .id-card .icon-box { display: none; }
  .dash { gap: 10px; }
  .tile-pop, .tile-donut { grid-column: span 6; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .map-embed { aspect-ratio: 4 / 3; }
  .toolbar { flex-direction: column; align-items: stretch; }
}
[data-cat].is-hidden { display: none !important; }

/* Animasi masuk hero (tanpa menunggu scroll) */
.hero-copy { animation: heroIn .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero-dash { animation: heroIn .9s .15s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
/* Mode tangkapan layar / tanpa animasi: tambahkan ?static pada URL */
.no-reveal .reveal { opacity: 1; transform: none; transition: none; }
@media (max-width: 1520px) { .nav-cta .btn-ghost { display: none; } }
@media (max-width: 1240px) { .brand small { display: none; } }
.no-reveal .hbars .fill, .no-reveal .vbar i { transition: none; }
.video-card .vt { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--heading); line-height: 1.35; margin-bottom: 6px; }
.video-card .vt-lg { font-size: 1.5rem; margin-top: 14px; }
.video-card .vd { display: block; font-size: .88rem; color: var(--muted); }
.video-card .body { display: block; }
.video-feature .body { display: flex; }
.search-box .btn .icon, .hero-search .btn .icon { color: inherit; }
/* backdrop-filter membuat containing block baru; matikan di mobile agar menu off-canvas (fixed) tampil penuh */
@media (max-width: 1024px) { .nav-shell { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(15, 23, 42, .94); } }
@media (max-width: 1024px) {
  .nav-open .site-header { z-index: 130; }
  .main-nav .submenu { display: none; }
  .main-nav .has-sub.open .submenu { display: flex; }
}
