/* ==========================================================================
   SC Pemkab HTML — Tema 07 "Gelap" (modern mode gelap, kartu kaca)
   Template oleh sharecode.id — MIT License
   Daftar isi:
   1. Font & variabel   2. Dasar   3. Utilitas   4. Topbar & header
   5. Menu mobile & palet pencarian   6. Hero beranda   7. Komponen kartu
   8. Section beranda   9. Halaman dalam   10. Galeri & modal   11. Form
   12. Footer   13. Animasi & aksesibilitas   14. Responsif
   ========================================================================== */

/* 1. Font & variabel ------------------------------------------------------ */
@font-face { font-family: "Manrope"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/manrope-400.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/manrope-500.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/manrope-600.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/manrope-700.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/manrope-800.woff2") format("woff2"); }

:root {
  /* Warna utama — ganti di sini untuk mengubah seluruh tema */
  --bg: #0a1628;            /* navy dasar */
  --bg-2: #0d1d34;          /* navy sedikit terang */
  --bg-3: #12284a;
  --primary: #10b981;       /* emerald */
  --primary-2: #34d399;
  --primary-3: #6ee7b7;
  --primary-ink: #04261a;   /* teks di atas tombol emerald */
  --accent: #38bdf8;        /* aksen sekunder (biru langit) */
  --warn: #fbbf24;
  --danger: #fb7185;
  --text: #e6edf7;
  --text-2: #b6c3d6;
  --muted: #8a9bb4;
  /* Kaca */
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.075);
  --glass-strong: rgba(13, 29, 52, 0.78);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --blur: blur(16px) saturate(140%);
  /* Tipografi */
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Bentuk */
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --glow: 0 0 0 1px rgba(16, 185, 129, 0.35), 0 10px 40px -10px rgba(16, 185, 129, 0.45);
  --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);
  overflow-x: hidden;
  min-height: 100vh;
}
/* Latar aurora + grid halus (tetap di belakang konten) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(16, 185, 129, 0.16), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(56, 189, 248, 0.10), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(16, 185, 129, 0.10), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("../img/pola-grid.svg");
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
  pointer-events: none;
}
body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 0.6em; color: #f8fafc; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-2); }
a { color: var(--primary-2); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-3); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.2em; }
table { width: 100%; border-collapse: collapse; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
::selection { background: var(--primary); color: var(--primary-ink); }
.icon { width: 1.2em; height: 1.2em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--primary); color: var(--primary-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* 3. Utilitas ------------------------------------------------------------ */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 8vw, 110px) 0; position: relative; }
.section-sm { padding: clamp(40px, 5vw, 64px) 0; }
.text-grad { background: linear-gradient(100deg, var(--primary-3), var(--primary) 45%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary-3); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--primary); border-radius: 2px; box-shadow: 0 0 10px var(--primary); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-head p { max-width: 560px; margin: 0; }
.sec-head h2 { margin-bottom: 8px; }
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }

/* Tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 0.95rem; line-height: 1; white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.25s, background 0.25s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: linear-gradient(135deg, var(--primary-2), var(--primary)); color: var(--primary-ink); box-shadow: 0 8px 30px -8px rgba(16, 185, 129, 0.7); }
.btn-primary:hover { color: var(--primary-ink); transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(16, 185, 129, 0.85); }
.btn-ghost { background: var(--glass); border-color: var(--line-2); color: var(--text); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.btn-ghost:hover { border-color: var(--primary); color: #fff; background: rgba(16, 185, 129, 0.1); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.link-arrow .icon { transition: transform 0.2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Chip / badge */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
  background: rgba(16, 185, 129, 0.12); color: var(--primary-3); border: 1px solid rgba(16, 185, 129, 0.3);
}
.chip-blue { background: rgba(56, 189, 248, 0.12); color: #7dd3fc; border-color: rgba(56, 189, 248, 0.3); }
.chip-amber { background: rgba(251, 191, 36, 0.12); color: #fcd34d; border-color: rgba(251, 191, 36, 0.3); }
.chip-rose { background: rgba(251, 113, 133, 0.12); color: #fda4af; border-color: rgba(251, 113, 133, 0.3); }
.chip-plain { background: var(--glass); color: var(--text-2); border-color: var(--line); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-2); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* 4. Topbar & header ----------------------------------------------------- */
.topbar { font-size: 0.8rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar-info { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-info .icon { color: var(--primary-2); }
.topbar a { color: var(--text-2); }
.topbar a:hover { color: var(--primary-3); }
#jamDigital { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 100; padding: 12px 0; transition: padding 0.3s; }
.nav-shell {
  display: flex; align-items: center; gap: 20px; height: 64px; padding: 0 10px 0 18px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(10, 22, 40, 0.55);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.site-header.scrolled { padding: 8px 0; }
.site-header.scrolled .nav-shell { background: rgba(10, 22, 40, 0.86); border-color: var(--line-2); box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.8); }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; flex: none; }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary-3); font-weight: 700; }
.brand-text strong { font-size: 1.04rem; font-weight: 800; letter-spacing: -0.01em; }
.brand:hover { color: #fff; }

.main-nav { margin-inline: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a, .main-nav .nav-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 9px 12px; border-radius: 999px;
  color: var(--text-2); font-weight: 600; font-size: 0.9rem; background: none; border: 0; white-space: nowrap;
}
.main-nav a:hover, .main-nav .nav-btn:hover { color: #fff; background: var(--glass-2); }
.main-nav a.active, .main-nav .has-sub.active > .nav-btn { color: var(--primary-ink); background: var(--primary-2); }
.main-nav .icon { width: 14px; height: 14px; transition: transform 0.2s; }
.has-sub { position: relative; }
.submenu {
  position: absolute; top: calc(100% + 14px); left: 50%; translate: -50% 6px; min-width: 250px;
  list-style: none; margin: 0; padding: 8px; border-radius: var(--r);
  background: rgba(13, 29, 52, 0.97); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity 0.2s, translate 0.2s, visibility 0.2s;
}
.submenu::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.open .submenu { opacity: 1; visibility: visible; translate: -50% 0; }
.has-sub:hover .nav-btn .icon, .has-sub.open .nav-btn .icon { transform: rotate(180deg); }
.submenu a { display: flex; width: 100%; padding: 10px 12px; border-radius: 12px; font-size: 0.88rem; }
.submenu a.active { background: rgba(16, 185, 129, 0.15); color: var(--primary-3); }

.nav-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.search-trigger {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); color: var(--muted); font-size: 0.86rem;
}
.search-trigger:hover { border-color: var(--primary); color: var(--text); }
.search-trigger kbd, .kbd { font-family: inherit; font-size: 0.7rem; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.05); color: var(--text-2); }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--glass); color: #fff; align-items: center; justify-content: center; }

/* 5. Menu mobile & palet pencarian --------------------------------------- */
.mobile-panel {
  position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 300;
  background: #0b1a30; border-left: 1px solid var(--line-2);
  transform: translateX(105%); transition: transform 0.35s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column; padding: 20px; overflow-y: auto;
}
.mobile-panel.open { transform: none; }
.mobile-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mobile-panel nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-panel nav a { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border-radius: 14px; color: var(--text); font-weight: 600; }
.mobile-panel nav a:hover { background: var(--glass-2); }
.mobile-panel nav a.active { background: rgba(16, 185, 129, 0.15); color: var(--primary-3); }
.mobile-panel .m-group { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 14px 14px 4px; font-weight: 700; }
.mobile-panel .btn { margin-top: 18px; }
.overlay { position: fixed; inset: 0; background: rgba(2, 8, 18, 0.7); z-index: 250; opacity: 0; visibility: hidden; transition: 0.3s; }
.overlay.show { opacity: 1; visibility: visible; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); background: var(--glass); color: #fff; }
.icon-btn:hover { border-color: var(--primary); color: var(--primary-3); }

.palette { position: fixed; inset: 0; z-index: 400; display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; background: rgba(2, 8, 18, 0.72); }
.palette.open { display: flex; }
.palette-box { width: min(640px, 100%); border-radius: 22px; background: #0d1d34; border: 1px solid var(--line-2); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9), var(--glow); overflow: hidden; }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.palette-input .icon { color: var(--primary-2); width: 22px; height: 22px; }
.palette-input input { flex: 1; background: none; border: 0; color: #fff; font-size: 1.05rem; outline: none; }
.palette-list { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow-y: auto; }
.palette-list a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--text); }
.palette-list a small { margin-left: auto; color: var(--muted); font-size: 0.75rem; }
.palette-list a:hover, .palette-list a.sel { background: rgba(16, 185, 129, 0.14); color: #fff; }
.palette-list .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--glass-2); color: var(--primary-3); flex: none; }
.palette-empty { padding: 26px; text-align: center; color: var(--muted); display: none; }
.palette-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 0.75rem; color: var(--muted); }

/* 6. Hero beranda (bento) ------------------------------------------------ */
.hero { padding: 40px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-copy h1 { margin: 18px 0 20px; }
.hero-copy .lead { font-size: 1.12rem; max-width: 540px; }
.hero-search {
  display: flex; align-items: center; gap: 10px; margin: 28px 0 18px; padding: 8px 8px 8px 20px; max-width: 560px;
  border-radius: 999px; background: var(--glass); border: 1px solid var(--line-2); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  color: var(--muted); cursor: text; text-align: left; width: 100%;
}
.hero-search:hover { border-color: var(--primary); }
.hero-search > span:not(.btn) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-search .btn { pointer-events: none; }
.quick-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--muted); }
.quick-tags a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); font-size: 0.82rem; }
.quick-tags a:hover { border-color: var(--primary); color: var(--primary-3); }
.hero-trust { display: flex; gap: 28px; margin-top: 34px; padding-top: 26px; border-top: 1px dashed var(--line-2); flex-wrap: wrap; }
.hero-trust strong { display: block; font-size: 1.6rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.hero-trust span { font-size: 0.82rem; color: var(--muted); }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 92px; gap: 14px; }
.tile {
  position: relative; border-radius: var(--r); padding: 18px; overflow: hidden;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.tile-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.tile-big { grid-column: span 6; grid-row: span 4; padding: 0; }
.tile-big > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-big::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(6, 14, 28, 0.92)); }
.slides { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 24px; }
.slide { display: none; }
.slide.active { display: block; animation: slideIn 0.6s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.slide h3 { font-size: 1.3rem; margin: 10px 0 6px; max-width: 460px; }
.slide h3 a { color: #fff; }
.slide h3 a:hover { color: var(--primary-3); }
.slide p { font-size: 0.88rem; margin: 0; color: var(--text-2); }
.slider-ctrl { position: absolute; top: 16px; right: 16px; z-index: 3; display: flex; gap: 6px; align-items: center; }
.slider-dots { display: flex; gap: 6px; padding: 8px 10px; border-radius: 999px; background: rgba(10, 22, 40, 0.6); }
.slider-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, 0.35); transition: width 0.3s, background 0.3s; }
.slider-dots button.active { width: 24px; background: var(--primary-2); }
.slider-ctrl .icon-btn { width: 34px; height: 34px; background: rgba(10, 22, 40, 0.6); }
.tile-weather { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; }
.tile-weather .temp { font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1; }
.tile-weather .temp sup { font-size: 1rem; color: var(--primary-3); }
.tile-weather p { margin: 0; font-size: 0.8rem; }
.tile-ikm { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; }
.ring { flex: none; --p: 88; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--primary-2) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #0e2038; }
.ring b { position: relative; font-size: 1rem; color: #fff; }
.ikm-row { display: flex; align-items: center; gap: 12px; }
.ikm-row p { margin: 0; font-size: 0.78rem; }
.tile-queue { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(150deg, rgba(16, 185, 129, 0.22), rgba(16, 185, 129, 0.04)); border-color: rgba(16, 185, 129, 0.35); }
.tile-queue .num { font-size: 2.3rem; font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.tile-queue p { margin: 0; font-size: 0.8rem; }

/* 7. Komponen kartu ------------------------------------------------------ */
.card {
  position: relative; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.card:hover { border-color: rgba(16, 185, 129, 0.45); }
.card-pad { padding: 26px; }
/* Efek sorotan mengikuti kursor (diatur JS lewat --mx/--my) */
.spot { --mx: 50%; --my: 50%; overflow: hidden; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(52, 211, 153, 0.16), transparent 60%);
}
.spot:hover::before { opacity: 1; }
.ico-box { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--primary-3); background: linear-gradient(145deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.05)); border: 1px solid rgba(16, 185, 129, 0.35); margin-bottom: 18px; }
.ico-box .icon { width: 24px; height: 24px; }

/* Layanan cepat */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc { display: flex; flex-direction: column; padding: 24px; color: var(--text); min-height: 200px; }
.svc h3 { font-size: 1.05rem; margin-bottom: 6px; color: #fff; }
.svc p { font-size: 0.86rem; margin: 0 0 16px; }
.svc .go { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: var(--muted); }
.svc .go .icon { width: 34px; height: 34px; padding: 8px; border-radius: 50%; border: 1px solid var(--line-2); transition: 0.3s; }
.svc:hover { color: var(--text); transform: translateY(-4px); }
.svc:hover .go .icon { background: var(--primary-2); color: var(--primary-ink); border-color: transparent; transform: rotate(-45deg); }

/* Sambutan */
.welcome { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
.portrait { position: relative; border-radius: var(--r-lg); padding: 10px; background: linear-gradient(160deg, rgba(52, 211, 153, 0.5), rgba(56, 189, 248, 0.15) 50%, rgba(255, 255, 255, 0.04)); }
.portrait img { border-radius: 22px; width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.portrait .name-tag { position: absolute; left: 24px; right: 24px; bottom: 24px; padding: 14px 18px; border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--line-2); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.name-tag strong { display: block; color: #fff; }
.name-tag span { font-size: 0.8rem; color: var(--primary-3); }
.quote { font-size: clamp(1.25rem, 2.1vw, 1.65rem); line-height: 1.5; font-weight: 600; color: #f1f5f9; margin: 0 0 24px; letter-spacing: -0.01em; }
.quote::before { content: "\201C"; display: block; font-size: 4.5rem; line-height: 0.6; color: var(--primary); margin-bottom: 14px; font-weight: 800; }
.sign { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.sign .line { flex: 1; max-width: 120px; height: 1px; background: linear-gradient(90deg, var(--primary), transparent); }

/* Statistik / dashboard */
.dash { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.stat { grid-column: span 3; padding: 22px; }
.stat .val { font-size: clamp(1.8rem, 2.8vw, 2.4rem); font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .lbl { font-size: 0.85rem; color: var(--muted); }
.stat .trend { display: inline-flex; align-items: center; gap: 4px; font-size: 0.78rem; font-weight: 700; color: var(--primary-2); margin-top: 8px; }
.stat .trend.down { color: var(--danger); }
.chart-card { grid-column: span 7; padding: 26px; }
.chart-card.side { grid-column: span 5; }
.bars { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 70px; gap: 12px; align-items: center; font-size: 0.85rem; }
.bar-row span:last-child { text-align: right; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--primary-3)); box-shadow: 0 0 12px rgba(52, 211, 153, 0.5); transform-origin: left; }
.reveal .bar i { transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1) 0.2s; }
.reveal.in .bar i { transform: scaleX(1); }
.donut-wrap { display: flex; align-items: center; gap: 28px; margin-top: 18px; flex-wrap: wrap; }
.donut { width: 170px; height: 170px; flex: none; }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.85rem; }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.legend b { margin-left: auto; color: #fff; padding-left: 12px; }

/* Berita */
.news-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; }
.news-feature { display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.thumb { position: relative; overflow: hidden; border-radius: var(--r) var(--r) 0 0; aspect-ratio: 16 / 9; background: var(--bg-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.card:hover .thumb img, .news-item:hover img { transform: scale(1.05); }
.thumb .chip { position: absolute; top: 14px; left: 14px; background: rgba(10, 22, 40, 0.8); backdrop-filter: blur(6px); }
.meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.card h3 a, .news-item h3 a { color: #fff; }
.card h3 a:hover, .news-item h3 a:hover { color: var(--primary-3); }
.news-list { display: grid; gap: 14px; }
.news-item { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 12px; align-items: center; }
.news-item .im { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.news-item .im img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-item h3 { font-size: 0.98rem; margin: 0 0 6px; line-height: 1.35; }
.news-item .meta { margin: 0; }
.news-card .body { padding: 22px; }
.news-card h3 { font-size: 1.1rem; line-height: 1.35; }
.news-card p { font-size: 0.9rem; }

/* Pengumuman */
.ann-list { list-style: none; margin: 0; padding: 0; }
.ann { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px dashed var(--line-2); }
.ann:last-child { border-bottom: 0; }
.date-box { width: 64px; height: 64px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--glass-2); border: 1px solid var(--line); line-height: 1; }
.date-box b { font-size: 1.4rem; color: #fff; font-weight: 800; }
.date-box small { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary-3); margin-top: 4px; }
.ann h3 { font-size: 0.98rem; margin: 0 0 4px; line-height: 1.4; }
.ann h3 a { color: #fff; }
.ann h3 a:hover { color: var(--primary-3); }
.ann p { margin: 0; font-size: 0.82rem; color: var(--muted); }

/* Agenda timeline horizontal */
.agenda-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.agenda-track::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--primary), transparent); }
.agenda-card { padding: 22px; padding-top: 0; }
.agenda-card .when { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #0d2a2a; border: 1px solid rgba(16, 185, 129, 0.45); font-size: 0.8rem; font-weight: 700; color: var(--primary-3); margin: 16px 0 18px; position: relative; z-index: 1; }
.agenda-card h3 { font-size: 1.02rem; line-height: 1.4; }
.agenda-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 0.84rem; color: var(--muted); }
.agenda-card li { display: flex; gap: 8px; align-items: center; }
.agenda-card li .icon { color: var(--primary-2); }

/* Wisata carousel (scroll-snap) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 32%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--primary) transparent; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 9px; }
.dest { scroll-snap-align: start; position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line); display: block; color: #fff; }
.dest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.dest::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6, 14, 28, 0.95)); }
.dest:hover img { transform: scale(1.06); }
.dest-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; z-index: 2; }
.dest-info h3 { margin: 10px 0 4px; font-size: 1.3rem; }
.dest-info p { margin: 0; font-size: 0.85rem; color: var(--text-2); }
.dest:hover { color: #fff; }
.rail-nav { display: flex; gap: 8px; }

/* CTA band */
.cta-band { position: relative; border-radius: var(--r-lg); padding: clamp(32px, 5vw, 56px); overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; background: linear-gradient(120deg, rgba(16, 185, 129, 0.22), rgba(56, 189, 248, 0.08) 60%, rgba(255, 255, 255, 0.03)); border: 1px solid rgba(16, 185, 129, 0.35); }
.cta-band::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(52, 211, 153, 0.35), transparent 65%); }
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 10px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* 9. Halaman dalam ------------------------------------------------------- */
.page-hero { padding: 50px 0 40px; position: relative; }
.page-hero-box { position: relative; border-radius: var(--r-lg); padding: clamp(30px, 5vw, 56px); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(255, 255, 255, 0.02) 55%); }
.page-hero-box::after { content: ""; position: absolute; right: -60px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(52, 211, 153, 0.35); box-shadow: 0 0 0 40px rgba(52, 211, 153, 0.04), 0 0 0 80px rgba(52, 211, 153, 0.03); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 12px; position: relative; z-index: 1; }
.page-hero p { max-width: 640px; margin: 0; position: relative; z-index: 1; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 0.82rem; color: var(--muted); position: relative; z-index: 1; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.crumbs a { color: var(--text-2); }
.crumbs [aria-current] { color: var(--primary-3); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-wide { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }
.prose p { font-size: 1rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul li, .prose ol li { color: var(--text-2); margin-bottom: 6px; }
.prose blockquote { margin: 1.6em 0; padding: 20px 24px; border-left: 3px solid var(--primary); background: var(--glass); border-radius: 0 var(--r) var(--r) 0; font-size: 1.1rem; color: #fff; font-weight: 600; }
.figure { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.figure img { width: 100%; }

/* Timeline vertikal */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 90px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--primary), rgba(16, 185, 129, 0.1)); }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 34px; padding-bottom: 28px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 84px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 2px solid var(--primary-2); box-shadow: 0 0 12px var(--primary); }
.timeline .yr { font-weight: 800; color: var(--primary-3); font-size: 1.1rem; }
.timeline h3 { font-size: 1.05rem; margin-bottom: 4px; }
.timeline p { margin: 0; font-size: 0.92rem; }

/* Visi misi */
.vision { padding: clamp(28px, 4vw, 48px); text-align: center; }
.vision blockquote { margin: 0; font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 800; line-height: 1.35; color: #fff; letter-spacing: -0.02em; }
.mission { counter-reset: m; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 24px 0 0; }
.mission li { counter-increment: m; padding: 22px; padding-top: 58px; position: relative; font-size: 0.93rem; color: var(--text-2); }
.mission li::before { content: "0" counter(m); position: absolute; top: 18px; left: 22px; font-weight: 800; font-size: 1.4rem; color: var(--primary-2); }

/* Lambang */
.emblem-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: center; }
.emblem-stage { padding: 30px; display: grid; place-items: center; border-radius: var(--r-lg); background: radial-gradient(circle at 50% 40%, rgba(16, 185, 129, 0.25), transparent 70%), var(--glass); border: 1px solid var(--line); }
.emblem-stage img { width: 240px; }
.meaning { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.meaning div { padding: 18px; }
.meaning h4 { margin-bottom: 4px; display: flex; gap: 10px; align-items: center; }
.meaning h4 i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.meaning p { margin: 0; font-size: 0.88rem; }

/* Tabel */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--glass); }
.table { min-width: 620px; font-size: 0.9rem; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; background: rgba(255, 255, 255, 0.03); }
.table td { color: var(--text-2); }
.table td strong { color: #fff; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(16, 185, 129, 0.05); }
.num { font-variant-numeric: tabular-nums; }

/* Pejabat */
.leader-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.leader { display: grid; grid-template-columns: 200px 1fr; overflow: hidden; }
.leader img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.leader .body { padding: 26px; }
.leader .role { color: var(--primary-3); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.leader h3 { margin: 6px 0 12px; font-size: 1.35rem; }
.leader dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 0.86rem; }
.leader dt { color: var(--muted); }
.leader dd { margin: 0; color: var(--text-2); }
.official { text-align: center; padding: 22px; }
.official img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 2px solid rgba(16, 185, 129, 0.5); padding: 4px; }
.official h3 { font-size: 1rem; margin-bottom: 2px; }
.official span { font-size: 0.8rem; color: var(--muted); }

/* Struktur organisasi */
.org { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org-node { padding: 14px 22px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--line-2); text-align: center; min-width: 200px; }
.org-node strong { display: block; color: #fff; font-size: 0.92rem; }
.org-node span { font-size: 0.76rem; color: var(--muted); }
.org-node.top { border-color: var(--primary); box-shadow: var(--glow); }
.org-v { width: 1px; height: 28px; background: var(--primary); }
.org-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; padding-top: 28px; }
.org-row::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px; background: var(--primary); }
.org-row .org-node { position: relative; min-width: 170px; }
.org-row .org-node::before { content: ""; position: absolute; top: -28px; left: 50%; width: 1px; height: 28px; background: var(--primary); }

/* Toolbar filter / cari */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.search-box { position: relative; flex: 1; min-width: 240px; max-width: 420px; }
.search-box .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input { width: 100%; padding: 13px 16px 13px 46px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass); color: #fff; }
.search-box input::placeholder { color: var(--muted); }
.search-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass); color: var(--text-2); font-size: 0.86rem; font-weight: 600; }
.filter-btn:hover { color: #fff; border-color: var(--primary); }
.filter-btn.active { background: var(--primary-2); color: var(--primary-ink); border-color: transparent; }
.empty-state { display: none; padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty-state.show { display: block; }
.hidden { display: none !important; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--text-2); font-weight: 700; background: var(--glass); }
.pagination .active { background: var(--primary-2); color: var(--primary-ink); border-color: transparent; }
.pagination a:hover { border-color: var(--primary); color: #fff; }

/* OPD */
.opd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.opd { padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.opd .ico-box { width: 44px; height: 44px; border-radius: 12px; margin: 0; flex: none; }
.opd .ico-box .icon { width: 20px; height: 20px; }
.opd h3 { font-size: 0.96rem; margin: 0 0 4px; line-height: 1.35; }
.opd p { margin: 0 0 8px; font-size: 0.8rem; color: var(--muted); }
.opd a.small { font-size: 0.8rem; }

/* Tab */
.tabs { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); width: max-content; max-width: 100%; overflow-x: auto; margin-bottom: 28px; }
.tab-btn { padding: 10px 18px; border-radius: 999px; border: 0; background: none; color: var(--text-2); font-weight: 700; font-size: 0.88rem; white-space: nowrap; }
.tab-btn:hover { color: #fff; }
.tab-btn[aria-selected="true"] { background: var(--primary-2); color: var(--primary-ink); }
.tab-panel { animation: slideIn 0.4s ease; }
.tab-panel[hidden] { display: none; }

/* Akordeon */
.acc { display: grid; gap: 12px; }
.acc-item { border-radius: var(--r); border: 1px solid var(--line); background: var(--glass); overflow: hidden; transition: border-color 0.3s; }
.acc-item.open { border-color: rgba(16, 185, 129, 0.45); }
.acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: none; border: 0; color: #fff; font-weight: 700; text-align: left; font-size: 0.98rem; }
.acc-btn .icon { transition: transform 0.3s; color: var(--primary-2); }
.acc-item.open .acc-btn .icon { transform: rotate(45deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel .inner { padding: 0 22px 20px; color: var(--text-2); font-size: 0.93rem; }
.acc-panel ul { margin: 0 0 10px; }
.acc-panel li { margin-bottom: 4px; }

/* Layanan publik */
.svc-detail { padding: 24px; }
.svc-detail .head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.svc-detail .ico-box { margin: 0; flex: none; }
.svc-detail h3 { margin: 0 0 4px; font-size: 1.1rem; }
.svc-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: st; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: st; padding: 22px; position: relative; }
.steps li::before { content: counter(st); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--primary-2); color: var(--primary-ink); margin-bottom: 14px; box-shadow: 0 0 20px rgba(52, 211, 153, 0.5); }
.steps h3 { font-size: 0.98rem; margin-bottom: 4px; }
.steps p { margin: 0; font-size: 0.84rem; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line-2); font-size: 0.92rem; }
.hours li:last-child { border-bottom: 0; }
.hours b { color: #fff; }

/* Artikel */
.article-head .meta { font-size: 0.86rem; }
.article-cover { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); margin: 26px 0 32px; }
.share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.share span { font-weight: 700; margin-right: 6px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; position: sticky; top: 110px; }
.side-card { padding: 22px; }
.side-card h3 { font-size: 1rem; margin-bottom: 14px; }
.side-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.side-list a { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: center; color: #fff; font-size: 0.88rem; font-weight: 600; line-height: 1.35; }
.side-list img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; }
.side-list a:hover { color: var(--primary-3); }
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list a { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--text-2); font-size: 0.9rem; }
.cat-list a:hover { color: var(--primary-3); }

/* Kalender agenda */
.cal { padding: 22px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; }
.cal-grid .dn { font-size: 0.72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; padding: 6px 0; }
.cal-grid .d { height: 42px; display: grid; place-items: center; border-radius: 12px; font-size: 0.88rem; color: var(--text-2); background: rgba(255, 255, 255, 0.02); position: relative; }
.cal-grid .d.off { opacity: 0.25; }
.cal-grid .d.has-ev { background: rgba(16, 185, 129, 0.16); color: #fff; font-weight: 700; border: 1px solid rgba(16, 185, 129, 0.4); }
.cal-grid .d.has-ev::after { content: ""; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--primary-2); }
.cal-grid .d.today { background: var(--primary-2); color: var(--primary-ink); font-weight: 800; }
.ev-list { display: grid; gap: 14px; }
.ev { display: grid; grid-template-columns: 80px 1fr auto; gap: 20px; padding: 20px; align-items: center; }
.ev .date-box { width: 80px; height: 80px; }
.ev h3 { font-size: 1.02rem; margin-bottom: 6px; }
.ev .meta { margin: 0; }

/* Dokumen / unduhan */
.doc-ico { width: 40px; height: 40px; border-radius: 10px; display: inline-grid; place-items: center; background: rgba(251, 113, 133, 0.12); color: #fda4af; border: 1px solid rgba(251, 113, 133, 0.3); font-size: 0.66rem; font-weight: 800; vertical-align: middle; margin-right: 12px; }
.doc-name { display: flex; align-items: center; }
.ppid-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ppid-cards .card { padding: 22px; }
.ppid-cards h3 { font-size: 1rem; margin-bottom: 6px; }
.ppid-cards p { font-size: 0.85rem; margin: 0; }

/* Wisata page */
.dest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dest-card .thumb { aspect-ratio: 4 / 3; }
.dest-card .body { padding: 22px; }
.dest-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.dest-card p { font-size: 0.88rem; }
.dest-card .facts { display: flex; gap: 14px; font-size: 0.8rem; color: var(--muted); flex-wrap: wrap; }
.dest-card .facts span { display: inline-flex; gap: 6px; align-items: center; }
.potensi { padding: 24px; }
.potensi .val { font-size: 1.9rem; font-weight: 800; color: #fff; }

/* 10. Galeri & modal ----------------------------------------------------- */
.gallery { columns: 3 280px; column-gap: 16px; }
.g-item { break-inside: avoid; margin-bottom: 16px; position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); display: block; width: 100%; padding: 0; background: var(--bg-2); cursor: zoom-in; }
.g-item img { width: 100%; transition: transform 0.6s; }
.g-item:nth-child(3n+1) img { aspect-ratio: 4 / 5; object-fit: cover; }
.g-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; text-align: left; background: linear-gradient(transparent, rgba(6, 14, 28, 0.9)); color: #fff; font-size: 0.88rem; font-weight: 600; opacity: 0; transform: translateY(10px); transition: 0.3s; }
.g-item:hover img { transform: scale(1.05); }
.g-item:hover .cap, .g-item:focus-visible .cap { opacity: 1; transform: none; }
.mini-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mini-gallery .g-item { margin: 0; aspect-ratio: 1; }
.mini-gallery .g-item img { height: 100%; object-fit: cover; aspect-ratio: auto !important; }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video-card { padding: 0; overflow: hidden; text-align: left; color: var(--text); width: 100%; }
.video-card .thumb { aspect-ratio: 16 / 9; }
.video-card .play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(16, 185, 129, 0.9); color: var(--primary-ink); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0.2); transition: transform 0.3s; z-index: 2; }
.video-card .play .icon { width: 26px; height: 26px; fill: currentColor; margin-left: 3px; }
.video-card:hover .play { transform: scale(1.12); }
.video-card .dur { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.7); font-size: 0.75rem; font-weight: 700; color: #fff; }
.video-card .body { padding: 18px 20px 22px; }
.video-card .vt { display: block; font-size: 1rem; line-height: 1.4; color: #fff; font-weight: 700; }
.video-feature { display: grid; grid-template-columns: 1.5fr 1fr; gap: 0; overflow: hidden; margin-bottom: 30px; }
.video-feature .thumb { border-radius: 0; aspect-ratio: auto; min-height: 320px; }
.video-feature .body { padding: 34px; display: flex; flex-direction: column; justify-content: center; }

.modal { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; background: rgba(2, 6, 14, 0.92); padding: 20px; }
.modal.open { display: flex; }
.modal-close { position: absolute; top: 18px; right: 18px; }
.lb-figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lb-figure img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: var(--r); border: 1px solid var(--line-2); }
.lb-figure figcaption { margin-top: 14px; color: var(--text-2); font-size: 0.92rem; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-count { position: absolute; top: 26px; left: 24px; color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.video-frame { width: min(1000px, 100%); aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; border: 1px solid var(--line-2); }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* 11. Form ---------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 0.86rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04); color: #fff; transition: border-color 0.2s, box-shadow 0.2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--bg-2); color: #fff; }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6b7d97; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field .err { display: none; font-size: 0.78rem; color: var(--danger); margin-top: 6px; }
.field.invalid .err { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--text-2); }
.check input { width: 18px; height: 18px; accent-color: var(--primary); margin-top: 3px; flex: none; }
.check.invalid { color: var(--danger); }

.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; padding: 20px; align-items: flex-start; }
.contact-card .ico-box { margin: 0; flex: none; }
.contact-card h3 { font-size: 0.98rem; margin-bottom: 2px; }
.contact-card p { margin: 0; font-size: 0.88rem; }
.map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); height: 380px; background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: invert(0.9) hue-rotate(180deg) saturate(0.6); }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 600; transform: translate(-50%, calc(100% + 60px)); visibility: hidden; display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 16px; background: #0f2a26; border: 1px solid rgba(16, 185, 129, 0.5); color: #fff; box-shadow: var(--shadow); font-weight: 600; font-size: 0.92rem; transition: transform 0.4s cubic-bezier(.2, .8, .2, 1), visibility 0.4s; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast .icon { color: var(--primary-2); width: 22px; height: 22px; }

/* 12. Footer -------------------------------------------------------------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 22, 40, 0), rgba(6, 14, 26, 0.9)); position: relative; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding: 70px 0 50px; }
.site-footer h4 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--text-2); font-size: 0.92rem; }
.site-footer ul a:hover { color: var(--primary-3); }
.footer-about p { font-size: 0.9rem; margin: 18px 0; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--text-2); background: var(--glass); }
.socials a:hover { color: var(--primary-ink); background: var(--primary-2); border-color: transparent; }
.footer-contact li { display: flex; gap: 10px; font-size: 0.9rem; color: var(--text-2); }
.footer-contact .icon { color: var(--primary-2); margin-top: 4px; }
.newsletter { display: flex; gap: 8px; margin-top: 14px; }
.newsletter input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass); color: #fff; }
.newsletter input:focus { outline: none; border-color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 30px; border-top: 1px solid var(--line); font-size: 0.84rem; color: var(--muted); }
.footer-bottom a { color: var(--primary-3); }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 50px; height: 50px; border-radius: 16px; border: 1px solid rgba(16, 185, 129, 0.5); background: rgba(13, 29, 52, 0.9); color: var(--primary-3); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(16px); transition: 0.3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary-2); color: var(--primary-ink); }

/* 404 */
.err-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.err-code { font-size: clamp(7rem, 22vw, 15rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.06em; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.05)); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; }
.err-code span { color: var(--primary-2); -webkit-text-fill-color: var(--primary-2); text-shadow: 0 0 60px rgba(16, 185, 129, 0.6); }

/* 13. Animasi & aksesibilitas -------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal .bar i { transform: none; }
}

/* 14. Responsif ----------------------------------------------------------- */
@media (max-width: 1520px) {
  .search-trigger .st-text, .search-trigger kbd { display: none; }
  .search-trigger { width: 44px; justify-content: center; padding: 0; }
}
@media (max-width: 1180px) {
  .main-nav a, .main-nav .nav-btn { padding: 9px 9px; font-size: 0.85rem; }
  .search-trigger .st-text, .search-trigger kbd { display: none; }
  .search-trigger { width: 44px; justify-content: center; padding: 0; }
}
@media (max-width: 1024px) {
  .main-nav, .nav-actions .btn-primary { display: none; }
  .burger { display: inline-flex; }
  .nav-actions { margin-left: auto; }
  .hero-grid, .welcome, .split, .split-wide, .emblem-wrap, .news-layout, .cta-band { grid-template-columns: 1fr; }
  .welcome .portrait { max-width: 380px; }
  .svc-grid, .g-4, .ppid-cards { grid-template-columns: repeat(2, 1fr); }
  .g-3, .opd-grid, .dest-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { grid-column: span 6; }
  .chart-card, .chart-card.side { grid-column: span 12; }
  .agenda-track { grid-template-columns: repeat(2, 1fr); }
  .agenda-track::before { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .sidebar { position: static; }
  .cta-actions { justify-content: flex-start; }
  .video-feature { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: minmax(280px, 45%); }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .topbar { display: none; }
  .brand-text small { font-size: 0.58rem; }
  .nav-shell { height: 58px; padding-left: 12px; }
  .search-trigger { width: 42px; height: 42px; }
  .bento { grid-auto-rows: 84px; gap: 10px; }
  .tile-big { grid-row: span 4; }
  .tile-weather, .tile-ikm { grid-column: span 3; }
  .tile-queue { grid-column: span 6; grid-row: span 1; flex-direction: row; align-items: center; }
  .tile-queue p { display: none; }
  .svc-grid, .g-2, .g-3, .g-4, .opd-grid, .dest-grid, .video-grid, .leader-grid, .ppid-cards, .meaning, .form-row, .footer-top { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .svc { padding: 18px; min-height: 0; }
  .svc p { display: none; }
  .stat { grid-column: span 6; padding: 18px; }
  .agenda-track, .steps { grid-template-columns: 1fr; }
  .leader { grid-template-columns: 1fr; }
  .leader img { max-height: 320px; }
  .bar-row { grid-template-columns: 96px 1fr 56px; font-size: 0.8rem; }
  .news-item { grid-template-columns: 100px 1fr; }
  .ann { grid-template-columns: 54px 1fr; }
  .ann .btn { display: none; }
  .date-box { width: 54px; height: 54px; }
  .ev { grid-template-columns: 64px 1fr; }
  .ev .date-box { width: 64px; height: 64px; }
  .ev > .btn { grid-column: 1 / -1; }
  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 30px; }
  .timeline li::before { left: 0; }
  .rail { grid-auto-columns: 82%; }
  .mini-gallery { grid-template-columns: repeat(2, 1fr); }
  .lb-nav { top: auto; bottom: 20px; transform: none; }
  .sec-head { margin-bottom: 28px; }
  .tabs { width: 100%; }
  .footer-bottom { flex-direction: column; }
}

/* Cegah item grid melebar melebihi layar (konten nowrap) */
.hero-grid > *, .split > *, .split-wide > *, .news-layout > *, .welcome > *, .emblem-wrap > *, .cta-band > *, .grid > * { min-width: 0; }
@media (max-width: 720px) {
  .hero-trust { gap: 16px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; }
  .hero-trust strong { font-size: 1.3rem; }
  .hero-search { padding-left: 16px; }
}
.article-cover img { width: 100%; }
.video-feature .body .chip { align-self: flex-start; }
.video-feature .thumb img { position: absolute; inset: 0; }
