/* ==========================================================================
   SC Pemkab HTML — Desain 02 "Merah Putih"
   Nasionalis modern dengan aksen pita (ribbon).
   Template oleh sharecode.id — MIT License
   ========================================================================== */

/* ---------- Font (self-host, lihat NOTICE.md) ---------- */
@font-face { font-family: "Lora"; src: url("../fonts/lora-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Variabel tema (ganti di sini) ---------- */
:root {
  --red: #b71c1c;
  --red-dark: #7f1212;
  --red-deep: #5a0b0b;
  --red-soft: #fdecec;
  --red-tint: #f7d4d4;
  --white: #ffffff;
  --grey: #f5f5f5;
  --grey-2: #ebebeb;
  --line: #e1e1e1;
  --ink: #1c1c1e;
  --ink-2: #3a3a3d;
  --muted: #5f5f66;
  --gold: #c8a24a;
  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", "Segoe UI", Arial, sans-serif;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 10px 30px -12px rgba(60, 10, 10, .25);
  --shadow-sm: 0 4px 14px -6px rgba(0, 0, 0, .18);
  --container: 1240px;
  --header-h: 84px;
}

/* ---------- Reset ringan ---------- */
*, *::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: 15.5px; line-height: 1.7;
  color: var(--ink-2); background: var(--white); overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.on-red :focus-visible, .stat-band :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--red); color: #fff; padding: 10px 16px; font-weight: 600; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section--grey { background: var(--grey); }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }

/* ---------- Pita bendera (strip merah-putih) ---------- */
.flagbar { height: 8px; background: linear-gradient(var(--red) 0 50%, #fff 50% 100%); border-bottom: 1px solid var(--line); }

/* ---------- Tombol ---------- */
.btn {
  --bg: var(--red); --fg: #fff;
  display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.5em; border: 2px solid var(--bg);
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: .92rem; letter-spacing: .02em;
  border-radius: var(--radius); cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; color: var(--red); }
.btn--ghost:hover { background: var(--red); border-color: var(--red); }
.btn--white { --bg: #fff; --fg: var(--red); }
.btn--white:hover { background: var(--red-deep); border-color: #fff; color: #fff; }
.btn--sm { padding: .55em 1em; font-size: .82rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: .9rem; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Label pita (ciri khas desain) ---------- */
.pita {
  display: inline-flex; align-items: center; gap: .5em; padding: .42em 1.4em; background: var(--red); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%, 10px 50%);
}
.pita--white { background: #fff; color: var(--red); }
.pita--dark { background: var(--ink); }
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 720px; }
.sec-head h2 { margin: .5em 0 .3em; }
.sec-head p { color: var(--muted); margin: 0; }
.sec-head--center { text-align: center; margin-inline: auto; }
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; flex-wrap: wrap; }
.sec-head--row > div { max-width: 640px; }
.dwiwarna { display: block; width: 72px; height: 6px; margin-top: 14px; background: linear-gradient(90deg, var(--red) 0 50%, var(--line) 50%); }
.sec-head--center .dwiwarna { margin-inline: auto; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #d6d6d9; font-size: .78rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.topbar li { display: inline-flex; align-items: center; gap: 6px; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--red-tint); }
.topbar .icon { width: 14px; height: 14px; color: #ff8a80; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-social { display: flex; gap: 4px; }
.topbar-social a { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.topbar-social a:hover { background: var(--red); color: #fff; }
.topbar-social .icon { color: inherit; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -10px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); transition: min-height .25s; }
.site-header.is-scrolled .header-inner { min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand img { width: 50px; height: 56px; transition: width .25s, height .25s; }
.site-header.is-scrolled .brand img { width: 42px; height: 47px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.brand-text strong { font-family: var(--font-head); font-size: 1.28rem; }

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav li { position: relative; }
.main-nav a, .main-nav .nav-toggle {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; color: var(--ink); font-weight: 600; font-size: .84rem;
  background: none; border: 0; cursor: pointer; position: relative; border-radius: var(--radius);
}
.main-nav a:hover, .main-nav .nav-toggle:hover { color: var(--red); }
.main-nav .icon { width: 14px; height: 14px; }
/* menu aktif: pita kecil menggantung */
.main-nav > ul > li.active > a, .main-nav > ul > li.active > .nav-toggle { color: var(--red); }
.main-nav > ul > li.active > a::after, .main-nav > ul > li.active > .nav-toggle::after {
  content: ""; position: absolute; left: 50%; bottom: -14px; width: 16px; height: 18px; transform: translateX(-50%);
  background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
}
.site-header.is-scrolled .main-nav > ul > li.active > a::after,
.site-header.is-scrolled .main-nav > ul > li.active > .nav-toggle::after { bottom: -10px; }
.dropdown {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 12px); left: 0; min-width: 220px;
  background: #fff; border-top: 3px solid var(--red); box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.dropdown a { display: flex; width: 100%; padding: 9px 12px; font-weight: 500; }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--red-soft); color: var(--red); }
.has-dd:hover .dropdown, .has-dd:focus-within .dropdown, .has-dd.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.header-cta { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; transition: .2s;
}
.icon-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.menu-btn { display: none; }

/* Panel pencarian */
.search-panel { background: var(--grey); border-top: 1px solid var(--line); display: none; }
.search-panel.open { display: block; }
.search-panel form { display: flex; gap: 10px; padding: 16px 0; }
.search-panel input { flex: 1; }

/* Menu mobile (di luar header) */
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; width: min(88vw, 380px); background: #fff; z-index: 120; transform: translateX(100%);
  transition: transform .3s ease; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.2); visibility: hidden;
}
.mobile-menu.open { transform: none; visibility: visible; }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.mobile-menu-head strong { font-family: var(--font-head); font-size: 1.1rem; color: var(--ink); }
.mobile-menu nav { overflow-y: auto; padding: 10px 20px 30px; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li a { display: block; padding: 11px 0; border-bottom: 1px solid var(--grey-2); color: var(--ink); font-weight: 600; }
.mobile-menu li a[aria-current="page"] { color: var(--red); }
.mobile-menu li a[aria-current="page"]::before { content: ""; display: inline-block; width: 8px; height: 12px; margin-right: 8px; background: var(--red); clip-path: polygon(0 0,100% 0,100% 100%,50% 70%,0 100%); }
.mobile-menu .group-title { display: block; margin: 16px 0 2px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.mobile-menu ul ul a { padding-left: 14px; font-weight: 500; }
.overlay { position: fixed; inset: 0; background: rgba(20, 5, 5, .55); z-index: 110; opacity: 0; visibility: hidden; transition: .3s; }
.overlay.open { opacity: 1; visibility: visible; }

/* ---------- Form ---------- */
.input, input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea {
  width: 100%; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(183, 28, 28, .14); }
textarea { min-height: 140px; resize: vertical; }
label { font-weight: 600; font-size: .86rem; color: var(--ink); display: block; margin-bottom: 6px; }
.field { margin-bottom: 18px; }
.field .error-msg { display: none; color: var(--red); font-size: .8rem; margin-top: 4px; font-weight: 500; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); background: #fff8f8; }
.field.invalid .error-msg { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); }

/* ---------- Hero beranda ---------- */
.hero { position: relative; background: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; min-height: 600px; }
.hero-copy { position: relative; z-index: 2; padding: 72px 56px 96px 0; display: flex; flex-direction: column; justify-content: center; }
.hero-copy h1 { margin: 22px 0 18px; }
.hero-copy h1 em { font-style: normal; color: var(--red); position: relative; white-space: nowrap; }
.hero-copy h1 em::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.08em; height: .28em; z-index: -1;
  background: url("../img/pita-sapuan.svg") center / 100% 100% no-repeat; opacity: .9;
}
.hero-copy .lead { font-size: 1.05rem; color: var(--muted); max-width: 540px; }
.hero-search { display: flex; margin-top: 18px; max-width: 560px; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; box-shadow: 6px 6px 0 var(--red); }
.hero-search input { border: 0; padding: 1em 1.1em; box-shadow: none !important; }
.hero-search button { border: 0; background: var(--ink); color: #fff; padding: 0 22px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.hero-search button:hover { background: var(--red); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; font-size: .82rem; align-items: center; }
.hero-tags span { color: var(--muted); font-weight: 600; }
.hero-tags a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 30px; color: var(--ink-2); font-weight: 500; }
.hero-tags a:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.hero-visual { position: relative; background: var(--red); clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); margin-right: calc((100vw - min(100vw - 40px, var(--container))) / -2); }
.hero-visual::before { content: ""; position: absolute; inset: 0; background: url("../img/pola-bintang.svg") 0 0 / 120px; opacity: .14; }
.hero-slider { position: absolute; inset: 56px 56px 96px 22%; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transform: scale(.97) rotate(-1deg); transition: opacity .8s, transform .8s; margin: 0; }
.hero-slide.is-active { opacity: 1; transform: rotate(-2deg); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; border: 10px solid #fff; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); background: #fff; }
.hero-slide figcaption {
  position: absolute; left: -28px; bottom: 26px; background: #fff; color: var(--ink); padding: 12px 18px 12px 22px; max-width: 78%;
  font-size: .82rem; font-weight: 600; box-shadow: var(--shadow-sm); border-left: 6px solid var(--ink);
}
.hero-slide figcaption small { display: block; color: var(--red); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.hero-dots { position: absolute; right: 56px; bottom: 44px; display: flex; gap: 8px; z-index: 3; }
.hero-dots button { width: 30px; height: 6px; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; transition: .3s; }
.hero-dots button[aria-selected="true"] { background: #fff; width: 48px; }
.hero-arrows { position: absolute; left: 22%; bottom: 30px; display: flex; gap: 8px; z-index: 3; }
.hero-arrows button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.hero-arrows button:hover { background: #fff; color: var(--red); }
/* Pita melambai di bawah hero */
.pita-wave { height: 70px; background: url("../img/pita-gelombang.svg") center / 100% 100% no-repeat; margin-top: -48px; position: relative; z-index: 3; }

/* ---------- Layanan cepat (kartu pita) ---------- */
.layanan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tag-card {
  position: relative; display: flex; gap: 16px; align-items: center; padding: 22px 34px 22px 22px; background: #fff; color: var(--ink);
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 50%, 100% 100%, 0 100%); transition: transform .25s, background .25s, color .25s;
  border-left: 5px solid var(--red);
}
.tag-card:hover { background: var(--red); color: #fff; transform: translateX(6px); }
.tag-card .num { position: absolute; right: 30px; top: 8px; font-family: var(--font-head); font-size: .8rem; color: var(--muted); }
.tag-card:hover .num { color: rgba(255,255,255,.75); }
.tag-ico { width: 52px; height: 52px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); border-radius: 50%; flex: none; transition: .25s; }
.tag-ico .icon { width: 26px; height: 26px; }
.tag-card:hover .tag-ico { background: #fff; }
.tag-card h3 { font-family: var(--font-body); font-size: .95rem; margin: 0 0 2px; color: inherit; }
.tag-card p { margin: 0; font-size: .78rem; color: var(--muted); line-height: 1.45; }
.tag-card:hover p { color: rgba(255,255,255,.85); }

/* ---------- Sambutan ---------- */
.sambutan { display: grid; grid-template-columns: 420px 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.potret { position: relative; }
.potret img { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--grey); position: relative; z-index: 1; }
.potret::before { content: ""; position: absolute; inset: 26px -26px -26px 26px; border: 3px solid var(--red); }
.potret .selempang {
  position: absolute; z-index: 2; left: -18px; bottom: 34px; background: var(--red); color: #fff; padding: 12px 34px 12px 22px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 50%, 100% 100%, 0 100%); box-shadow: var(--shadow);
}
.potret .selempang::before { content: ""; position: absolute; left: 0; bottom: -12px; border: 9px solid transparent; border-top-color: var(--red-deep); border-right-color: var(--red-deep); }
.potret .selempang strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.potret .selempang span { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.kutipan { font-family: var(--font-head); font-size: clamp(1.25rem, 2.2vw, 1.65rem); line-height: 1.5; color: var(--ink); position: relative; padding-left: 0; margin: 22px 0; font-weight: 600; }
.kutipan::before { content: "\201C"; font-size: 6rem; line-height: 1; color: var(--red); position: absolute; left: -10px; top: -46px; opacity: .2; }
.ttd { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.ttd img { width: 140px; }
.ttd small { display: block; color: var(--muted); }

/* ---------- Statistik (pita merah) ---------- */
.stat-band { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.stat-band::before { content: ""; position: absolute; inset: 0; background: url("../img/pola-bintang.svg") 0 0 / 110px; opacity: .1; }
.stat-band .container { position: relative; }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: 40px 20px; text-align: center; border-left: 1px solid rgba(255,255,255,.25); }
.stat:first-child { border-left: 0; }
.stat .val { font-family: var(--font-head); font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 700; line-height: 1; display: block; }
.stat .lbl { display: block; margin-top: 10px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.stat .icon { width: 28px; height: 28px; margin: 0 auto 12px; opacity: .85; }

/* ---------- Kartu berita ---------- */
.news-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; }
.news-feature { display: grid; grid-template-columns: 1fr; gap: 22px; }
.news-main { position: relative; display: block; color: inherit; }
.news-main .thumb { overflow: hidden; aspect-ratio: 16/9; background: var(--grey); }
.news-main img, .news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-main:hover img, .news-card:hover .thumb img { transform: scale(1.05); }
.news-main .body { background: #fff; margin: -70px 40px 0 0; position: relative; padding: 26px 28px 8px 0; border-top: 5px solid var(--red); padding-left: 28px; box-shadow: var(--shadow-sm); padding-bottom: 22px; }
.news-main h3 { font-size: 1.55rem; margin: 10px 0; }
.news-main:hover h3 { color: var(--red); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .78rem; color: var(--muted); align-items: center; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta .icon { width: 14px; height: 14px; color: var(--red); }
.cat { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.news-mini-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.news-card { display: flex; flex-direction: column; background: #fff; color: inherit; border-bottom: 3px solid transparent; transition: border-color .25s, box-shadow .25s; }
.news-card:hover { border-bottom-color: var(--red); box-shadow: var(--shadow-sm); color: inherit; }
.news-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--grey); position: relative; }
.news-card .thumb .pita { position: absolute; left: 0; top: 14px; font-size: .62rem; padding: .35em 1.2em .35em .9em; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%); }
.news-card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card h3 { font-size: 1.06rem; margin: 0; }
.news-card:hover h3 { color: var(--red); }
.news-card p { font-size: .86rem; color: var(--muted); margin: 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

/* Panel pengumuman */
.panel { background: #fff; border: 1px solid var(--line); }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 0 18px 0 0; background: var(--ink); color: #fff; }
.panel-head h3 { color: #fff; margin: 0; font-size: 1.05rem; padding: 14px 30px 14px 18px; background: var(--red); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%); display: flex; align-items: center; gap: 8px; }
.panel-head a { color: #fff; font-size: .8rem; font-weight: 600; }
.panel-head a:hover { color: var(--red-tint); }
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li { display: flex; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--grey-2); }
.notice-list li:last-child { border-bottom: 0; }
.notice-list .tgl { flex: none; width: 54px; text-align: center; border: 1.5px solid var(--red); line-height: 1.1; padding: 6px 0; }
.notice-list .tgl b { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--red); }
.notice-list .tgl small { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.notice-list a { color: var(--ink); font-weight: 600; font-size: .9rem; line-height: 1.45; }
.notice-list a:hover { color: var(--red); }
.notice-list .meta { margin-top: 4px; }
.badge { display: inline-block; font-size: .66rem; font-weight: 700; padding: 2px 8px; border-radius: 3px; background: var(--red-soft); color: var(--red); letter-spacing: .04em; text-transform: uppercase; }
.badge--dark { background: var(--ink); color: #fff; }
.badge--grey { background: var(--grey-2); color: var(--ink-2); }

/* ---------- Agenda (rosette tanggal) ---------- */
.agenda-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.agenda-track::before { content: ""; position: absolute; left: 0; right: 0; top: 44px; height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0 14px, transparent 14px 22px); }
.agenda-item { position: relative; text-align: center; padding: 0 6px; }
.rosette { position: relative; width: 90px; height: 90px; margin: 0 auto 30px; display: grid; place-items: center; z-index: 1; }
.rosette::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--red-tint); }
.rosette::after { content: ""; position: absolute; left: 50%; top: 70px; width: 46px; height: 40px; transform: translateX(-50%); z-index: -1; background: var(--red-dark); clip-path: polygon(0 0, 44% 0, 44% 100%, 22% 80%, 0 100%, 0 0, 56% 0, 100% 0, 100% 100%, 78% 80%, 56% 100%); }
.rosette span { position: relative; color: #fff; line-height: 1; }
.rosette b { display: block; font-family: var(--font-head); font-size: 1.9rem; }
.rosette small { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.agenda-item h3 { font-size: 1.02rem; margin: 0 0 8px; }
.agenda-item .meta { justify-content: center; }

/* ---------- Wisata (geser horizontal) ---------- */
.wisata-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 30%); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; scrollbar-width: thin; scrollbar-color: var(--red) var(--grey-2); }
.wisata-card { scroll-snap-align: start; position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; color: #fff; background: var(--ink); }
.wisata-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.wisata-card:hover img { transform: scale(1.06); }
.wisata-card .cap { position: absolute; inset: auto 0 0 0; padding: 70px 22px 22px; background: linear-gradient(transparent, rgba(30, 4, 4, .88)); }
.wisata-card h3 { color: #fff; margin: 6px 0 2px; font-size: 1.3rem; }
.wisata-card .meta { color: rgba(255,255,255,.85); }
.wisata-card .meta .icon { color: #ff8a80; }
.wisata-card .pita { position: absolute; top: 18px; left: 0; z-index: 1; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%); padding-left: 1em; }
.scroll-ctrl { display: flex; gap: 8px; }

/* ---------- CTA pita ---------- */
.cta-pita { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cta-pita::after { content: ""; position: absolute; right: -60px; top: -40px; width: 520px; height: 260px; background: url("../img/pita-sapuan.svg") center / contain no-repeat; opacity: .5; transform: rotate(-12deg); }
.cta-pita .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 54px 0; position: relative; z-index: 1; flex-wrap: wrap; }
.cta-pita h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-pita p { margin: 0; color: #cfcfd4; }

/* ---------- Header halaman dalam ---------- */
.page-hero { position: relative; background: var(--grey); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; right: -4%; top: 0; bottom: 0; width: 48%; background: var(--red); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.page-hero::after { content: ""; position: absolute; right: -4%; top: 0; bottom: 0; width: 48%; background: url("../img/pola-bintang.svg") 0 0 / 100px; opacity: .14; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.page-hero .container { position: relative; z-index: 1; padding: 56px 0 64px; }
.page-hero-inner { max-width: 640px; }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 14px 0 10px; }
.page-hero p { color: var(--muted); margin: 0; max-width: 560px; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: .8rem; font-weight: 600; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb [aria-current] { color: var(--red); }
.page-hero-emblem { position: absolute; right: 7%; top: 50%; transform: translateY(-50%); width: 170px; z-index: 1; opacity: .95; filter: drop-shadow(0 18px 30px rgba(0,0,0,.3)); }

/* ---------- Konten umum ---------- */
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
.prose h2 { font-size: 1.7rem; margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; }
.prose img { margin: 1.5em 0; }
.prose blockquote { margin: 1.6em 0; padding: 20px 26px; border-left: 6px solid var(--red); background: var(--red-soft); font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); }
.prose ul li::marker { color: var(--red); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.frame-img { position: relative; }
.frame-img img { position: relative; z-index: 1; width: 100%; }
.frame-img::after { content: ""; position: absolute; left: -16px; bottom: -16px; width: 60%; height: 60%; background: var(--red); }
.sidebar { position: sticky; top: 100px; display: grid; gap: 24px; }
.side-box { background: var(--grey); padding: 24px; border-top: 4px solid var(--red); }
.side-box h3 { font-size: 1.1rem; margin-bottom: 14px; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links a { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); font-weight: 500; font-size: .9rem; }
.side-links a:hover { color: var(--red); }

/* Tabel */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--grey-2); vertical-align: top; }
thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
tbody tr:nth-child(even) { background: #fafafa; }
tbody tr:hover { background: var(--red-soft); }
td.num, th.num { text-align: right; white-space: nowrap; }
.empty-state { display: none; padding: 30px; text-align: center; color: var(--muted); background: var(--grey); }
.empty-state.show { display: block; }

/* Toolbar filter */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.search-box { position: relative; flex: 1 1 280px; max-width: 420px; }
.search-box .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input { padding-left: 42px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 16px; border: 1.5px solid var(--line); background: #fff; border-radius: 30px; font-weight: 600; font-size: .8rem; cursor: pointer; transition: .2s; }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.active, .chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }

/* Tab */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.tab-btn { padding: 14px 22px; border: 0; background: none; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--muted); position: relative; white-space: nowrap; }
.tab-btn[aria-selected="true"] { color: var(--red); }
.tab-btn[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; background: var(--red); }
.tab-panel[hidden] { display: none; }

/* Akordeon */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; background: none; border: 0; text-align: left; font-weight: 600; font-size: 1rem; color: var(--ink); cursor: pointer; }
.acc-btn .plus { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1.5px solid var(--red); position: relative; transition: .25s; }
.acc-btn .plus::before, .acc-btn .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--red); transform: translate(-50%, -50%); transition: .25s; }
.acc-btn .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-btn[aria-expanded="true"] { color: var(--red); }
.acc-btn[aria-expanded="true"] .plus { background: var(--red); }
.acc-btn[aria-expanded="true"] .plus::before { background: #fff; }
.acc-btn[aria-expanded="true"] .plus::after { opacity: 0; }
.acc-panel { overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.acc-panel > div { padding: 0 4px 22px; color: var(--muted); }

/* Visi misi & lambang */
.visi-box { background: var(--red); color: #fff; padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.visi-box::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 200px; height: 200px; background: url("../img/pola-bintang.svg") 0 0 / 80px; opacity: .2; }
.visi-box h3 { color: #fff; font-size: 1.6rem; line-height: 1.4; }
.misi-list { counter-reset: misi; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.misi-list li { counter-increment: misi; display: flex; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); }
.misi-list li::before { content: counter(misi, decimal-leading-zero); font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--red); line-height: 1.2; }
.lambang-grid { display: grid; grid-template-columns: 320px 1fr; gap: 50px; align-items: center; }
.lambang-grid .emblem-big { background: var(--grey); padding: 40px; }
.arti-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; list-style: none; padding: 0; margin: 0; }
.arti-list li { padding: 16px 18px; border-left: 4px solid var(--red); background: var(--grey); font-size: .9rem; }
.arti-list b { display: block; color: var(--ink); margin-bottom: 2px; }
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 82px; top: 6px; bottom: 6px; width: 2px; background: var(--red-tint); }
.timeline li { display: grid; grid-template-columns: 70px 1fr; gap: 34px; padding-bottom: 28px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 76px; top: 8px; width: 14px; height: 14px; background: var(--red); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--red); transform: rotate(45deg); }
.timeline .yr { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--red); text-align: right; }
.timeline h3 { font-size: 1.05rem; margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--muted); font-size: .92rem; }
.geo-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.batas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.batas div { padding: 14px 16px; background: #fff; border: 1px solid var(--line); }
.batas small { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.batas b { color: var(--ink); font-size: .92rem; }

/* Pejabat & OPD */
.pejabat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pejabat { background: #fff; text-align: center; position: relative; border: 1px solid var(--line); }
.pejabat img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; background: var(--grey); }
.pejabat .info { padding: 30px 20px 24px; position: relative; }
.pejabat .info .pita { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.pejabat h3 { font-size: 1.15rem; margin-bottom: 4px; }
.pejabat p { margin: 0; color: var(--muted); font-size: .86rem; }
.opd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.opd-card { padding: 22px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; position: relative; transition: .25s; }
.opd-card:hover { border-color: var(--red); box-shadow: var(--shadow-sm); }
.opd-card::before { content: ""; position: absolute; right: 18px; top: -1px; width: 18px; height: 24px; background: var(--red); clip-path: polygon(0 0,100% 0,100% 100%,50% 74%,0 100%); }
.opd-card h3 { font-family: var(--font-body); font-size: .98rem; margin: 0; padding-right: 30px; }
.opd-card p { margin: 0; font-size: .82rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.opd-card p .icon { width: 15px; height: 15px; margin-top: 4px; color: var(--red); }
.struktur { display: grid; gap: 0; justify-items: center; }
.struktur .row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; position: relative; }
.struktur .node { padding: 12px 20px; background: #fff; border: 2px solid var(--red); font-weight: 600; font-size: .85rem; text-align: center; min-width: 180px; }
.struktur .node.top { background: var(--red); color: #fff; }
.struktur .node small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; }
.struktur .node.top small { color: rgba(255,255,255,.85); }
.struktur .line { width: 2px; height: 26px; background: var(--red); margin: 0; }

/* Layanan publik */
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.svc { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 26px; background: #fff; border: 1px solid var(--line); position: relative; }
.svc .tag-ico { width: 64px; height: 64px; }
.svc h3 { margin-bottom: 6px; }
.svc p { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.svc ul { margin: 0 0 12px; font-size: .86rem; }
.alur { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: alur; }
.alur li { list-style: none; counter-increment: alur; text-align: center; padding: 0 14px; position: relative; }
.alur li::before { content: counter(alur); display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 16px; background: #fff; border: 3px solid var(--red); border-radius: 50%; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--red); position: relative; z-index: 1; }
.alur li::after { content: ""; position: absolute; top: 28px; left: 50%; width: 100%; height: 3px; background: var(--red-tint); }
.alur li:last-child::after { display: none; }
.alur h3 { font-size: 1rem; margin-bottom: 4px; }
.alur p { font-size: .84rem; color: var(--muted); margin: 0; }
.alur-wrap { padding: 0; margin: 0; }

/* Agenda list */
.agenda-list { display: grid; gap: 16px; }
.agenda-row { display: grid; grid-template-columns: 100px 1fr auto; gap: 24px; align-items: center; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--red); }
.agenda-row .tgl { text-align: center; line-height: 1.1; }
.agenda-row .tgl b { display: block; font-family: var(--font-head); font-size: 2.2rem; color: var(--red); }
.agenda-row .tgl small { font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.agenda-row h3 { margin-bottom: 6px; font-size: 1.1rem; }
.agenda-row.past { opacity: .62; border-left-color: var(--muted); }

/* Pengumuman list */
.doc-list { display: grid; gap: 14px; }
.doc-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 18px; align-items: center; padding: 18px 20px; background: #fff; border: 1px solid var(--line); transition: .2s; }
.doc-item:hover { border-color: var(--red); }
.doc-item .file-ico { width: 54px; height: 62px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); font-weight: 700; font-size: .7rem; }
.doc-item h3 { font-family: var(--font-body); font-size: .98rem; margin: 0 0 4px; }

/* Galeri */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; grid-auto-flow: dense; }
.g-item { position: relative; display: block; overflow: hidden; aspect-ratio: 1; background: var(--grey); cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.g-item.wide { grid-column: span 2; aspect-ratio: 2.05 / 1; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g-item:hover img { transform: scale(1.07); }
.g-item .g-cap { position: absolute; inset: auto 0 0 0; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(40,5,5,.85)); color: #fff; font-size: .82rem; font-weight: 600; text-align: left; transform: translateY(100%); transition: .3s; }
.g-item:hover .g-cap, .g-item:focus-visible .g-cap { transform: none; }
.g-item[hidden] { display: none; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.video-card { background: #fff; border: 1px solid var(--line); }
.video-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; aspect-ratio: 16/9; overflow: hidden; background: var(--ink); }
.video-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.video-btn:hover img { transform: scale(1.05); opacity: .85; }
.video-btn .play { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; transform: translate(-50%, -50%); background: var(--red); color: #fff; display: grid; place-items: center; border-radius: 50%; box-shadow: 0 0 0 10px rgba(255,255,255,.3); transition: .3s; }
.video-btn:hover .play { box-shadow: 0 0 0 16px rgba(255,255,255,.25); }
.video-btn .play .icon { width: 28px; height: 28px; fill: currentColor; margin-left: 4px; }
.video-btn .durasi { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.75); color: #fff; font-size: .72rem; padding: 2px 8px; font-weight: 600; }
.video-card .body { padding: 18px 20px; }
.video-card h3 { font-size: 1.02rem; margin-bottom: 6px; }

/* Modal / lightbox */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 3, 3, .92); }
.modal.open { display: flex; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; z-index: 2; }
.modal-close:hover { background: #fff; color: var(--red); }
.lb-figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lb-figure img { max-height: 78vh; width: auto; margin: 0 auto; background: #fff; border: 6px solid #fff; }
.lb-figure figcaption { color: #fff; margin-top: 14px; font-weight: 500; }
.lb-figure figcaption small { display: block; color: #ffb4ab; letter-spacing: .1em; text-transform: uppercase; font-size: .7rem; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-nav:hover { background: var(--red); border-color: var(--red); }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.video-frame { width: min(1000px, 100%); aspect-ratio: 16/9; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

/* Kontak */
.kontak-grid { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: start; }
.kontak-card { background: var(--red); color: #fff; padding: 34px; position: relative; overflow: hidden; }
.kontak-card h2, .kontak-card h3 { color: #fff; }
.kontak-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.kontak-card li { display: flex; gap: 14px; }
.kontak-card .icon { width: 22px; height: 22px; margin-top: 3px; }
.kontak-card a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.kontak-card small { display: block; opacity: .8; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.form-card { background: #fff; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-wrap { margin-top: 0; border-top: 6px solid var(--red); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* Wisata halaman */
.wisata-list { display: grid; gap: 34px; }
.wisata-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: #fff; border: 1px solid var(--line); }
.wisata-row:nth-child(even) .wisata-img { order: 2; }
.wisata-img { position: relative; min-height: 320px; overflow: hidden; }
.wisata-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wisata-body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.fasilitas { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.fasilitas span { font-size: .76rem; padding: 4px 10px; background: var(--grey); border-radius: 3px; font-weight: 500; }

/* Berita detail */
.article-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.article-cover { margin: 26px 0; }
.share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 30px 0; }
.share span { font-weight: 600; font-size: .86rem; margin-right: 6px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { font-size: .78rem; padding: 4px 12px; background: var(--grey); color: var(--ink-2); font-weight: 500; }
.tag-list a:hover { background: var(--red); color: #fff; }
.related-mini { display: grid; gap: 16px; }
.related-mini a { display: grid; grid-template-columns: 84px 1fr; gap: 12px; color: var(--ink); font-weight: 600; font-size: .86rem; line-height: 1.4; }
.related-mini img { width: 84px; height: 64px; object-fit: cover; }
.related-mini a:hover { color: var(--red); }

/* PPID */
.ppid-intro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ppid-box { padding: 26px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); }
.ppid-box h3 { font-size: 1.08rem; }
.ppid-box p { font-size: .88rem; color: var(--muted); margin: 0; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { width: 42px; height: 42px; display: grid; place-items: center; border: 1.5px solid var(--line); font-weight: 600; color: var(--ink); }
.pagination .current { background: var(--red); border-color: var(--red); color: #fff; }
.pagination a:hover { border-color: var(--red); color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--red-deep); color: #f1d6d6; position: relative; }
.site-footer::before { content: ""; display: block; height: 10px; background: linear-gradient(var(--red) 0 50%, #fff 50%); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 44px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; font-family: var(--font-body); letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; }
.site-footer h3::after { content: ""; display: block; width: 36px; height: 3px; background: #fff; margin-top: 10px; }
.site-footer a { color: #f1d6d6; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.footer-brand img { width: 54px; }
.footer-brand strong { font-family: var(--font-head); color: #fff; font-size: 1.25rem; display: block; line-height: 1.2; }
.footer-brand small { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.footer-links a::before { content: "\203A"; margin-right: 8px; color: #ff8a80; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: .88rem; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact .icon { width: 16px; height: 16px; margin-top: 4px; color: #ff8a80; }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; }
.footer-social a:hover { background: #fff; color: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 20px 0; font-size: .8rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom a { color: #fff; font-weight: 600; }

/* Kembali ke atas */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 56px; border: 0; background: var(--red); color: #fff; cursor: pointer; display: grid; place-items: center; padding-bottom: 8px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red-dark); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); z-index: 300; background: var(--ink); color: #fff; padding: 14px 22px 14px 18px; border-left: 6px solid var(--red); box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; opacity: 0; visibility: hidden; transition: .35s; max-width: calc(100% - 40px); font-size: .9rem; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .icon { color: #81c784; }

/* 404 */
.notfound { text-align: center; padding: clamp(60px, 10vw, 120px) 0; }
.notfound .big { font-family: var(--font-head); font-size: clamp(6rem, 18vw, 12rem); line-height: 1; color: var(--red); font-weight: 700; position: relative; display: inline-block; }
.notfound .big::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 10%; height: 28%; background: url("../img/pita-sapuan.svg") center / 100% 100% no-repeat; z-index: -1; opacity: .35; }

/* ---------- Animasi muncul ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsif ---------- */
@media (max-width: 1180px) {
  .main-nav a, .main-nav .nav-toggle { padding: 10px 8px; font-size: .8rem; }
  .layanan-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .main-nav, .header-cta .btn { display: none; }
  .menu-btn { display: grid; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 52px 0 40px; }
  .hero-visual { clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%); margin: 0 -20px; height: 460px; }
  .hero-slider { inset: 60px 40px 90px 40px; }
  .hero-arrows { left: 40px; }
  .hero-dots { right: 40px; }
  .pita-wave { margin-top: -30px; height: 50px; }
  .sambutan, .news-layout, .two-col, .kontak-grid, .lambang-grid, .geo-grid { grid-template-columns: 1fr; }
  .potret { max-width: 380px; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: 0; }
  .stat { border-top: 1px solid rgba(255,255,255,.2); }
  .agenda-track { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .agenda-track::before { display: none; }
  .news-grid, .pejabat-grid, .opd-grid, .video-grid, .ppid-intro { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .sidebar { position: static; }
  .alur { grid-template-columns: 1fr; gap: 22px; }
  .alur li { display: grid; grid-template-columns: 58px 1fr; gap: 0 18px; text-align: left; padding: 0; }
  .alur li::before { margin: 0; grid-row: span 2; }
  .alur li::after { left: 28px; top: 58px; width: 3px; height: calc(100% - 36px); }
  .page-hero::before, .page-hero::after { width: 34%; }
  .page-hero-emblem { width: 110px; right: 4%; }
  .wisata-scroller { grid-auto-columns: minmax(260px, 45%); }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .topbar ul li:not(:first-child) { display: none; }
  .brand-text strong { font-size: 1.05rem; }
  .brand img { width: 40px; height: 45px; }
  .header-inner { gap: 10px; min-height: 70px; }
  .layanan-grid, .news-mini-list, .news-grid, .pejabat-grid, .opd-grid, .video-grid, .svc-list, .ppid-intro, .form-grid, .arti-list, .batas, .split { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(4) { border-left: 1px solid rgba(255,255,255,.25); }
  .stat:last-child { grid-column: span 2; }
  .agenda-track { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .g-item.wide { grid-column: span 2; }
  .hero-visual { height: 340px; }
  .hero-slider { inset: 46px 22px 76px 22px; }
  .hero-slide figcaption { left: -8px; font-size: .74rem; max-width: 88%; }
  .hero-arrows { left: 22px; bottom: 18px; } .hero-arrows button { width: 38px; height: 38px; }
  .hero-dots { right: 22px; bottom: 32px; }
  .hero-search { box-shadow: 4px 4px 0 var(--red); }
  .hero-search button span { display: none; }
  .news-main .body { margin: -40px 14px 0 0; padding: 18px; }
  .news-main h3 { font-size: 1.2rem; }
  .agenda-row { grid-template-columns: 70px 1fr; padding: 16px; gap: 14px; }
  .agenda-row > :last-child { grid-column: 1 / -1; }
  .doc-item { grid-template-columns: 44px 1fr; }
  .doc-item .file-ico { width: 44px; height: 52px; }
  .doc-item > :last-child { grid-column: 1 / -1; }
  .wisata-row { grid-template-columns: 1fr; }
  .wisata-row:nth-child(even) .wisata-img { order: 0; }
  .wisata-img { min-height: 220px; }
  .page-hero::before, .page-hero::after { width: 22%; }
  .page-hero-emblem { display: none; }
  .page-hero .container { padding: 40px 0 46px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .timeline::before { left: 62px; } .timeline li { grid-template-columns: 50px 1fr; gap: 26px; } .timeline li::before { left: 56px; }
  .struktur .node { min-width: 0; width: 100%; }
  .struktur .row { flex-direction: column; width: 100%; }
  .lb-nav { top: auto; bottom: 18px; transform: none; }
  th, td { padding: 10px 12px; }
  .cta-pita::after { display: none; }
  .wisata-scroller { grid-auto-columns: 82%; }
}

/* ---------- Penyesuaian akhir ---------- */
.hero-copy > .pita, .wisata-body > .pita { align-self: flex-start; }
.hero-visual { margin-right: 0; clip-path: polygon(14% 0, 300% 0, 300% 100%, 0 100%); }
.hero-visual::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 50vw; background: var(--red); z-index: -1; }
.hero-visual::before { right: -50vw; }
.hero-slider { inset: 64px 80px 130px 20%; }
.hero-arrows { bottom: 66px; }
.hero-dots { right: 80px; bottom: 82px; }
@media (max-width: 1024px) {
  .hero-visual { margin: 0 -20px; }
  .hero-slider { inset: 60px 40px 100px 40px; }
  .hero-dots { right: 40px; }
}
@media (max-width: 720px) {
  .hero-slider { inset: 46px 22px 86px 22px; }
  .hero-arrows { bottom: 30px; }
  .hero-dots { right: 22px; bottom: 44px; }
}
@media (max-width: 720px) {
  .hero-visual { height: 300px; }
  .hero-slide figcaption { display: none; }
  .topbar ul li:first-child { font-size: .72rem; }
  .tag-card { padding: 16px 30px 16px 16px; }
}
.ppid-box h3 { display: flex; align-items: center; gap: 10px; }
.ppid-box h3 .icon { color: var(--red); }
@media (max-width: 720px) {
  .page-hero::before, .page-hero::after { width: 10px; clip-path: none; right: 0; }
  .page-hero-inner { padding-right: 14px; }
  table { min-width: 680px; }
}
@media (max-width: 720px) {
  .potret::before { inset: 14px -10px -14px 14px; }
  .potret .selempang { left: -8px; }
}
