/* ==========================================================================
   Website Madrasah — gaya tampilan publik (biru-putih)
   Ubah warna utama cukup di bagian :root di bawah ini.
   ========================================================================== */
:root {
  --navy: #0A2F6B;
  --navy-2: #13408A;
  --blue: #1557C0;
  --blue-l: #86B4EA;
  --sky: #EEF4FD;
  --sky-2: #DCE8FA;
  --sky-3: #F7FAFE;
  --line: #D6E3F7;
  --line-2: #B9D0F3;
  --ink: #13233F;
  --text: #34476A;
  --muted: #4A5B78;
  --gold: #E7B53C;
  --gold-d: #C38E22;
  --danger: #B42318;
  --danger-bg: #FDE7E7;
  --success: #1B6B3A;
  --success-bg: #E4F3EA;
  --warn: #7A4300;
  --warn-bg: #FFF1DC;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(10, 47, 107, 0.12);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--navy); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[x-cloak] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* ---------- Tata letak ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.bg-sky { background: var(--sky); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.flex { display: flex; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-48 { gap: 48px; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1 1 0; min-width: 0; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; } .mb-40 { margin-bottom: 40px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.xs { font-size: 13px; }
.bold { font-weight: 700; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split-top { align-items: flex-start; }
.grid { display: grid; gap: 20px; }
.grid-160 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.grid-200 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid-220 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid-240 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-260 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-300 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-gap-14 { gap: 14px; }

/* ---------- Tipografi ---------- */
.eyebrow { font-size: 14px; font-weight: 700; color: var(--blue); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.bg-navy .eyebrow { color: #9CC0F5; }
.h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 800; line-height: 1.12; }
.h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.h3 { font-size: 22px; font-weight: 800; }
.lead { font-size: 18px; line-height: 1.7; color: var(--text); }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.section-head p { margin-top: 10px; color: var(--muted); }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px; border-radius: 12px;
  font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; text-align: center; transition: transform .15s, box-shadow .15s, background .15s; line-height: 1.3; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #0F4AA8; color: #fff; box-shadow: 0 10px 22px rgba(21, 87, 192, .28); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line-2); }
.btn-outline:hover { color: var(--navy); border-color: var(--blue); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { color: var(--navy); background: #F0C452; }
.btn-danger { background: #fff; color: var(--danger); border-color: #F1C7C7; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.link-underline { font-weight: 700; border-bottom: 2px solid currentColor; padding-bottom: 2px; }

/* ---------- Bilah atas & navigasi ---------- */
.topbar { background: var(--navy); color: #DCE7FA; font-size: 13px; }
.topbar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 9px; padding-bottom: 9px; }
.topbar a { color: #DCE7FA; }
.navbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); border: 3px solid var(--gold); display: flex; align-items: center;
  justify-content: center; font-size: 15px; font-weight: 800; color: #fff; flex-shrink: 0; overflow: hidden; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-weight: 800; font-size: 18px; color: var(--navy); line-height: 1.2; }
.brand-sub { font-size: 12px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px 20px; font-size: 15px; font-weight: 600; flex-wrap: wrap; }
.nav a { color: var(--ink); padding: 6px 0; }
.nav a.active { color: var(--blue); }
.nav .btn { padding: 10px 18px; min-height: 44px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.nav a.btn-outline { color: var(--navy); }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; cursor: pointer;
  align-items: center; justify-content: center; color: var(--navy); }
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 24px 20px; gap: 2px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--sky); }
  .nav .btn { margin-top: 10px; }
  .navbar .container { position: relative; }
}

/* ---------- Hero beranda ---------- */
.hero { background: var(--sky); }
.hero .container { padding-top: 64px; padding-bottom: 72px; }
.hero-badge { align-self: flex-start; background: #fff; color: var(--navy); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 700; }
.hero-img { width: 100%; height: 440px; object-fit: cover; border-radius: 24px; box-shadow: 0 24px 48px rgba(10, 47, 107, .18); }
.stats { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 6px; }
.stat-num { font-size: 30px; font-weight: 800; color: var(--blue); line-height: 1.1; }
.stat-label { font-size: 14px; color: var(--muted); }
.strip { background: var(--blue); color: #fff; }
.strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.strip a { color: #fff; }

/* ---------- Kartu ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card-flat { background: var(--sky); border-radius: var(--radius); padding: 24px; }
.card-media { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-media img { width: 100%; height: 170px; object-fit: cover; }
.card-media .body { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-weight: 800; font-size: 18px; color: var(--navy); line-height: 1.35; }
.card-text { font-size: 15px; line-height: 1.6; color: var(--muted); }
a.card-media, a.card { color: var(--ink); transition: transform .15s, box-shadow .15s; }
a.card-media:hover, a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.icon-box { width: 48px; height: 48px; border-radius: 12px; background: var(--sky-2); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.abbr-box { width: 44px; height: 44px; border-radius: 12px; background: var(--sky); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.quick { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); min-height: 72px; }
.quick:hover { border-color: var(--blue); color: var(--ink); box-shadow: 0 10px 24px rgba(10, 47, 107, .08); }
.quick strong { display: block; font-size: 15px; }
.quick span.d { display: block; font-size: 13px; color: var(--muted); }
.card-dark { background: var(--navy-2); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card-dark .meta { font-size: 13px; font-weight: 700; color: #BFD6F8; }
.card-dark .title { font-size: 19px; font-weight: 800; color: #fff; }
.card-dark .who { font-size: 15px; color: #DCE7FA; }

/* ---------- Lencana / status ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--sky); color: var(--navy); white-space: nowrap; }
.pill-blue { background: var(--blue); color: #fff; }
.pill-success { background: var(--success-bg); color: var(--success); }
.pill-warning { background: var(--warn-bg); color: var(--warn); }
.pill-danger { background: var(--danger-bg); color: var(--danger); }
.pill-gray { background: #EEF0F4; color: #45506A; }
.pill-info { background: var(--sky-2); color: var(--navy); }
.chip { display: inline-block; background: var(--sky); color: var(--navy); padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }

/* ---------- Sambutan / visi ---------- */
.portrait { width: 100%; height: 420px; object-fit: cover; object-position: top; border-radius: 20px; }
.visi-band { background: var(--blue); color: #fff; border-radius: 22px; padding: 36px; }
.visi-band .text { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; line-height: 1.45; }
.list-num { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--text); line-height: 1.6; }
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list div { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { flex-shrink: 0; margin-top: 3px; color: var(--blue); }

/* ---------- Halaman dalam: kepala halaman ---------- */
.page-head { background: var(--navy); color: #fff; }
.page-head .container { padding-top: 52px; }
.page-head h1 { color: #fff; font-size: clamp(30px, 4.5vw, 44px); margin-bottom: 10px; }
.page-head .crumb { font-size: 14px; color: #BFD6F8; margin-bottom: 10px; }
.page-head .crumb a { color: #BFD6F8; }
.page-head p.sub { color: #DCE7FA; font-size: 17px; max-width: 760px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-top: 24px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { color: #DCE7FA; padding: 14px 18px; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.tabs a:hover, .tabs a.active { color: #fff; border-bottom-color: #fff; }
.page-head .pad { height: 40px; }

/* ---------- Tabel ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.table th { background: var(--sky); text-align: left; padding: 13px 18px; font-weight: 700; color: var(--navy); }
.table td { padding: 13px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.table tr:hover td { background: var(--sky-3); }
.kv { display: flex; flex-wrap: wrap; border-top: 1px solid #E6EEFA; }
.kv:first-child { border-top: 0; }
.kv .k { flex: 1 1 240px; padding: 14px 22px; font-weight: 700; background: var(--sky-3); }
.kv .v { flex: 2 1 320px; padding: 14px 22px; color: var(--text); }

/* ---------- Formulir ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.label { font-weight: 600; font-size: 14px; color: var(--ink); }
.label .req { color: var(--danger); }
.input, .select, .textarea { width: 100%; font-size: 15px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; min-height: 46px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 100px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21, 87, 192, .15); }
.input.invalid, .select.invalid, .textarea.invalid { border-color: var(--danger); }
.error { color: var(--danger); font-size: 13px; font-weight: 600; }
.hint { color: var(--muted); font-size: 13px; }
.upload { border: 1px dashed #9DB8E3; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--sky-3); }
.upload input[type=file] { font-size: 13px; }
.upload .ok { color: var(--success); font-size: 13px; font-weight: 700; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); }
.form-card { border: 1px solid var(--line); border-radius: 20px; padding: 28px; background: #fff; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.alert { border-radius: 14px; padding: 16px 18px; font-size: 15px; line-height: 1.6; }
.alert-info { background: var(--sky); color: var(--navy); }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-danger { background: var(--danger-bg); color: var(--danger); }
.alert-warning { background: var(--warn-bg); color: var(--warn); }
.loading-dot { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Pilihan (jalur, rating) ---------- */
.choice { text-align: left; cursor: pointer; border-radius: 18px; padding: 22px; border: 2px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--blue-l); }
.choice.selected { border-color: var(--blue); background: var(--sky); }
.choice .t { font-weight: 800; font-size: 19px; color: var(--navy); }
.choice .d { font-size: 15px; line-height: 1.6; color: var(--muted); }
.choice .n { font-size: 13px; font-weight: 700; color: var(--blue); }

/* ---------- Langkah formulir ---------- */
.steps { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.step { flex: 1 1 170px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; min-height: 50px; font-weight: 700; font-size: 14px; color: var(--ink); }
.step .num { width: 30px; height: 30px; border-radius: 50%; background: var(--sky-2); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.step.done .num, .step.current .num { background: var(--blue); color: #fff; }
.step.current { background: var(--sky); border-color: var(--line-2); }
button.step { cursor: pointer; text-align: left; }

/* ---------- Alur bernomor ---------- */
.flow { display: flex; flex-direction: column; gap: 16px; }
.flow-item { display: flex; gap: 14px; align-items: flex-start; }
.flow-num { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }

/* ---------- Linimasa ---------- */
.timeline { border-left: 2px solid var(--line-2); margin-left: 8px; }
.timeline-item { position: relative; padding: 0 0 22px 24px; }
.timeline-item::before { content: ''; position: absolute; left: -9px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line-2); }
.timeline-item .y { font-weight: 800; color: var(--blue); }
.timeline-item .e { font-size: 15px; color: var(--text); }

/* ---------- Struktur organisasi ---------- */
.org { display: flex; flex-direction: column; align-items: center; }
.org-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; width: 100%; }
.org-line { width: 2px; height: 28px; background: #9DB8E3; }
.org-box { background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 20px; text-align: center; min-width: 200px; flex: 0 1 230px; }
.org-box .r { font-size: 13px; color: var(--muted); }
.org-box .n { font-weight: 800; }
.org-box.top { background: var(--navy); color: #fff; border-color: var(--navy); }
.org-box.top .r { color: #BFD6F8; }
.org-box.dash { border-style: dashed; }
.org-sub { width: 100%; max-width: 1000px; border-top: 2px solid #9DB8E3; padding-top: 24px; }
.org-mini { background: var(--sky-3); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-align: center; }
.org-mini .r { font-size: 12px; color: var(--muted); }
.org-mini .n { font-size: 14px; font-weight: 700; color: var(--navy); }

/* ---------- Guru ---------- */
.person { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.person img { width: 100%; height: 240px; object-fit: cover; object-position: top; background: var(--sky-2); }
.person .body { padding: 16px; }
.person .n { font-weight: 800; }
.person .p { font-size: 14px; color: var(--blue); font-weight: 600; }
.person .d { font-size: 13px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn { font-size: 14px; font-weight: 700; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--navy); cursor: pointer; min-height: 44px; }
.filter-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Galeri ---------- */
.gallery-item { margin: 0; position: relative; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: var(--sky-2); }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; display: inline-flex; }
.gallery-item figcaption span { background: #fff; color: var(--navy); font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.lightbox { position: fixed; inset: 0; background: rgba(6, 23, 55, .88); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox img { max-height: 82vh; border-radius: 14px; }
.lightbox .cap { color: #fff; text-align: center; margin-top: 12px; font-weight: 600; }
.lightbox .close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 12px; border: 0; background: #fff; color: var(--navy); font-size: 24px; cursor: pointer; }

/* ---------- Agenda ---------- */
.date-box { width: 56px; height: 56px; flex-shrink: 0; border-radius: 12px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; color: var(--blue); font-size: 18px; line-height: 1.1; }
.date-box span { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.agenda-item { display: flex; gap: 14px; align-items: center; }

/* ---------- Testimoni ---------- */
.quote-card { border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 18px; background: #fff; }
.quote-card p { font-size: 17px; line-height: 1.7; color: var(--text); }
.avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--sky-2); }

/* ---------- CTA ---------- */
.cta { background: var(--blue); border-radius: 28px; padding: 52px 40px; color: #fff; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta h2 { color: #fff; }
.cta p { color: #E4EEFD; font-size: 17px; line-height: 1.6; margin-top: 8px; }

/* ---------- Unduhan ---------- */
.doc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.doc .ext { width: 44px; height: 44px; border-radius: 10px; background: var(--sky); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; flex-shrink: 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--blue); }

/* ---------- FAQ ---------- */
details.faq { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #fff; }
details.faq summary { font-weight: 700; cursor: pointer; }
details.faq p { margin-top: 10px; color: var(--muted); line-height: 1.6; }

/* ---------- Berita ---------- */
.post-meta { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.prose { font-size: 17px; line-height: 1.8; color: var(--text); }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3 { margin: 1.4em 0 .6em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.prose img { border-radius: 14px; margin: 1em 0; height: auto; }
.prose a { text-decoration: underline; }
.prose blockquote { margin: 1em 0; padding: 12px 18px; border-left: 4px solid var(--blue); background: var(--sky); border-radius: 0 12px 12px 0; }
.article-cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: 20px; margin-bottom: 28px; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 36px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--navy); background: #fff; }
.pagination .active { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination .disabled { opacity: .45; }

/* ---------- Kontak ---------- */
.map { width: 100%; height: 340px; border: 0; border-radius: 20px; object-fit: cover; background: var(--sky-2); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #DCE7FA; }
.footer .container { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; padding-top: 52px; padding-bottom: 32px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer a { color: #DCE7FA; }
.footer a:hover { color: #fff; }
.footer .links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-bottom { border-top: 1px solid #23498A; text-align: center; padding: 18px 24px; font-size: 13px; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; background: #1B6B3A; color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; box-shadow: 0 12px 28px rgba(0, 0, 0, .25); }
.wa-float:hover { color: #fff; background: #155a30; }

/* ---------- Hasil / sukses ---------- */
.success-box { border: 1px solid var(--line); border-radius: 20px; padding: 40px 28px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; background: #fff; }
.success-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--sky-2); display: flex; align-items: center; justify-content: center; color: var(--blue); }
.code-box { font-size: clamp(22px, 4vw, 30px); font-weight: 800; letter-spacing: .06em; color: var(--blue); background: var(--sky); padding: 12px 24px; border-radius: 14px; }
.result { margin-top: 24px; background: #fff; border-radius: 18px; padding: 24px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; border: 1px solid var(--line); }

/* ---------- Penginstal ---------- */
.install-wrap { min-height: 100vh; background: var(--sky); display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.install-card { width: 100%; max-width: 720px; background: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero .container { padding-top: 40px; padding-bottom: 48px; }
  .hero-img { height: 280px; }
  .portrait { height: 360px; }
  .cta { padding: 36px 24px; }
  .form-card { padding: 20px; }
  .visi-band { padding: 26px; }
  .wa-float span { display: none; }
}

@media print {
  .no-print, .navbar, .topbar, .footer, .wa-float { display: none !important; }
}
