/* ==========================================================================
   Landing page "/" - tema madrasah (hijau tua + emas + krem)
   Diadaptasi dari mockup 2026-10-24_Mockup-Landing-Page-Tema-Madrasah.html
   Dipakai khusus oleh application/views/kemenag/landing.php
   ========================================================================== */

:root {
  --green-900: #063d22;
  --green-800: #0a5230;
  --green-700: #0f6b3e;
  --green-600: #17844e;
  --green-100: #dff1e6;
  --green-50:  #eff8f2;
  --gold-600:  #a67c0f;
  --gold-500:  #c9a227;
  --gold-300:  #e6cd7a;
  --gold-100:  #f7edc9;
  --cream:     #fbf8ee;
  --paper:     #ffffff;
  --ink:       #17261d;
  --muted:     #5a6b60;
  --line:      #e3e8dc;
  --shadow:    0 10px 30px -12px rgba(6, 61, 34, .25);
  --radius:    18px;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Lora", Georgia, serif;
  --font-ar:   "Amiri", "Traditional Arabic", serif;
  --pattern: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'><g fill='none' stroke='%23c9a227' stroke-opacity='.28' stroke-width='1.2'><path d='M32 6 L38 20 L52 14 L46 28 L60 32 L46 36 L52 50 L38 44 L32 58 L26 44 L12 50 L18 36 L4 32 L18 28 L12 14 L26 20 Z'/></g></svg>");
  color-scheme: light;
}

/* Tema gelap: warna dasar ditukar, aksen emas/hijau tetap */
html[data-theme="dark"] {
  color-scheme: dark;
  --green-900: #041f12;
  --green-800: #07341f;
  --green-700: #0d5c37;
  --green-600: #177c4a;
  --green-100: #16352a;
  --green-50:  #0f241c;
  --gold-600:  #d8b24a;
  --gold-500:  #e0bc55;
  --gold-300:  #f0d98f;
  --gold-100:  #2c2718;
  --cream:     #0a1410;
  --paper:     #101f18;
  --ink:       #e8f1ea;
  --muted:     #a7bdb0;
  --line:      #23382c;
  --shadow:    0 14px 36px -16px rgba(0, 0, 0, .75);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left)); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 8px; }

/* Topbar */
.topbar { background: var(--green-900); color: #d6ead9; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 7px; flex-wrap: wrap; }
.topbar .pill { display: inline-flex; gap: 6px; align-items: center; }
.topbar b { color: var(--gold-300); font-weight: 600; }

/* Navbar */
header.nav { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 238, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand .logo { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--green-700); border: 2px solid var(--gold-500); display: grid; place-items: center; color: var(--gold-300); font-family: var(--font-ar); font-size: 26px; }
.brand .t1 { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--green-800); line-height: 1.15; white-space: nowrap; }
.brand .t2 { font-size: 12px; color: var(--muted); }
.menu { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 15px; color: var(--green-800); }
.menu a:hover { color: var(--gold-600); }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: 12px 22px; border-radius: 999px; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-gold { background: var(--gold-500); color: var(--green-900); box-shadow: 0 6px 16px -6px rgba(166, 124, 15, .7); }
.btn-gold:hover { background: var(--gold-300); transform: translateY(-2px); }
.btn-green { background: var(--green-700); color: #fff; }
.btn-green:hover { background: var(--green-600); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* Hero */
.hero { position: relative; background: linear-gradient(160deg, var(--green-900) 0%, var(--green-700) 70%, var(--green-600) 100%); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 64px 64px; opacity: .9; mask-image: linear-gradient(90deg, transparent 0%, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: 64px 96px; }
.bismillah { font-family: var(--font-ar); font-size: clamp(26px, 4vw, 38px); color: var(--gold-300); margin-bottom: 14px; direction: rtl; text-align: left; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(230, 205, 122, .5); color: #f7edcf; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 700; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--gold-300); }
.hero p.lede { font-size: 18px; color: #d9efe0; max-width: 54ch; margin-bottom: 28px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); }
.hero-stats b { display: block; font-family: var(--font-head); font-size: 28px; color: var(--gold-300); }
.hero-stats span { font-size: 13px; color: #cfe6d6; }
.hero-art { position: relative; justify-self: center; width: min(100%, 420px); }
.arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 24px 24px; overflow: hidden; border: 6px solid var(--gold-500); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); background: var(--green-800); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-2 { position: absolute; width: 38%; right: -6%; bottom: -8%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 5px solid var(--cream); box-shadow: var(--shadow); }
.arch-2 img { width: 100%; height: 100%; object-fit: cover; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 48px; background: var(--cream); clip-path: ellipse(60% 100% at 50% 100%); }

/* Info strip */
.strip { position: relative; z-index: 2; margin-top: -48px; }
.strip .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.strip .card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; }
.strip a.card:hover { border-color: var(--gold-300); }
.strip .ic { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; }
.strip .lbl { font-size: 12px; color: var(--muted); }
.strip .val { font-weight: 700; color: var(--green-800); font-size: 15px; line-height: 1.3; }

/* Section umum */
section.s { padding-block: 84px 0; scroll-margin-top: 80px; }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head .kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-600); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.sec-head .kicker::before, .sec-head .kicker::after { content: "✦"; color: var(--gold-500); }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); color: var(--green-800); margin-bottom: 10px; }
.sec-head p { color: var(--muted); max-width: 58ch; margin-inline: auto; }

/* Program peminatan */
.jur { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.jur .card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; display: block; }
.jur .card::after { content: ""; position: absolute; right: -24px; top: -24px; width: 110px; height: 110px; background-image: var(--pattern); background-size: 64px; opacity: .8; }
.jur .card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-300); }
.jur .kode { display: inline-grid; place-items: center; min-width: 56px; height: 56px; padding-inline: 12px; border-radius: 16px; background: var(--green-700); color: var(--gold-300); font-weight: 800; font-size: 18px; margin-bottom: 16px; }
.jur h3 { font-size: 20px; color: var(--green-800); margin-bottom: 8px; }
.jur p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.jur .more { color: var(--green-700); font-weight: 700; font-size: 14px; }

/* Program keagamaan (khas madrasah) */
.relig { background: var(--green-900); color: #e6f3ea; position: relative; margin-top: 84px; padding-block: 72px; overflow: hidden; scroll-margin-top: 80px; }
.relig::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 64px; opacity: .55; }
.relig .wrap { position: relative; }
.relig .sec-head h2 { color: #fff; }
.relig .sec-head p { color: #b9d6c3; }
.relig .sec-head .kicker { color: var(--gold-300); }
.relig .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.relig .item { background: rgba(255, 255, 255, .07); border: 1px solid rgba(230, 205, 122, .35); border-radius: var(--radius); padding: 22px 20px; }
.relig .item .ar { font-family: var(--font-ar); font-size: 30px; color: var(--gold-300); line-height: 1.2; margin-bottom: 8px; }
.relig .item h3 { font-size: 18px; color: #fff; margin-bottom: 6px; }
.relig .item p { font-size: 14px; color: #bcd9c6; }

/* Fasilitas */
.fas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fas .card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; text-align: center; transition: transform .2s, box-shadow .2s; }
.fas .card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.fas .ic { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); display: grid; place-items: center; }
.fas h4 { font-size: 17px; color: var(--green-800); margin-bottom: 4px; }
.fas p { font-size: 14px; color: var(--muted); }

/* Visi misi */
.vm { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.vm .photo { position: relative; }
.vm .photo .frame { aspect-ratio: 5 / 4; border-radius: 24px; overflow: hidden; border: 6px solid var(--paper); box-shadow: var(--shadow); }
.vm .photo img { width: 100%; height: 100%; object-fit: cover; }
.vm .photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold-500); border-radius: 24px; z-index: -1; }
.vm h2 { font-size: clamp(26px, 3.6vw, 36px); color: var(--green-800); margin-bottom: 20px; }
.vm .box { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--gold-500); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; }
.vm .box h4 { font-size: 16px; color: var(--green-700); margin-bottom: 6px; }
.vm ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--muted); }
.vm .more { display: inline-block; margin-top: 4px; color: var(--green-700); font-weight: 700; font-size: 14px; }

/* Berita */
.news { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.news article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.news .thumb { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--green-700), var(--green-600)); background-size: cover; background-position: center; position: relative; overflow: hidden; }
.news .thumb::after { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 64px; opacity: .9; }
.news .thumb.has-img::after { opacity: .28; }
.news .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news .tag { align-self: flex-start; background: var(--gold-100); color: var(--gold-600); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.news h3 { font-size: 18px; color: var(--green-800); }
.news h3 a:hover { color: var(--gold-600); }
.news p { font-size: 14px; color: var(--muted); }
.news time { margin-top: auto; font-size: 12px; color: var(--muted); }
.news article:first-child h3 { font-size: 22px; }
.news .empty { grid-column: 1 / -1; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: 36px; text-align: center; color: var(--muted); }

/* Agenda */
.agenda { margin-top: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.agenda .head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.agenda .head h3 { font-size: 20px; color: var(--green-800); }
.agenda .head a { color: var(--green-700); font-weight: 700; font-size: 14px; }
.agenda ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.agenda li { display: grid; grid-template-columns: 74px 1fr; gap: 16px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.agenda li:first-child { padding-top: 0; border-top: 0; }
.agenda .date { background: var(--green-100); color: var(--green-800); border-radius: 12px; text-align: center; padding: 6px 4px; font-weight: 700; font-size: 12px; line-height: 1.25; }
.agenda .date b { display: block; font-family: var(--font-head); font-size: 22px; color: var(--green-700); }
.agenda .tema { color: var(--green-800); font-weight: 600; font-size: 15px; }
.agenda .tema:hover { color: var(--gold-600); }
.agenda .ket { font-size: 13px; color: var(--muted); }

/* PMBM */
.ppdb { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ppdb .card { border-radius: var(--radius); padding: 32px 30px; position: relative; overflow: hidden; }
.ppdb .card.a { background: var(--green-700); color: #fff; }
.ppdb .card.b { background: var(--gold-100); color: var(--green-900); border: 1px solid var(--gold-300); }
.ppdb .card::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 160px; height: 160px; background-image: var(--pattern); background-size: 64px; opacity: .8; }
.ppdb h3 { font-size: 24px; margin-bottom: 16px; }
.ppdb .card.a h3 { color: var(--gold-300); }
.ppdb ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; position: relative; z-index: 1; }
.ppdb li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.ppdb li::before { content: "✓"; font-weight: 800; color: var(--gold-500); }
.ppdb .card.b li::before { color: var(--green-700); }
.ppdb .btn { position: relative; z-index: 1; }

/* CTA */
.cta-band { position: relative; margin-top: 84px; background: var(--green-800); color: #fff; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 64px; opacity: .6; }
.cta-band .wrap { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding-block: 64px; }
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.cta-band h2 em { font-style: normal; color: var(--gold-300); }
.cta-band p { color: #cfe6d6; margin-bottom: 24px; max-width: 50ch; }
.cta-band .pic { aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; border: 5px solid var(--gold-500); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .6); }
.cta-band .pic img { width: 100%; height: 100%; object-fit: cover; }

/* Footer */
footer { background: var(--green-900); color: #b9d6c3; padding-block: 48px 24px; font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
footer h5 { margin: 0 0 12px; font-family: var(--font-head); color: var(--gold-300); font-size: 16px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a:hover { color: #fff; }
footer .ar { font-family: var(--font-ar); font-size: 24px; color: var(--gold-300); margin-bottom: 8px; }
footer .copy { padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; }

/* Responsif */
@media (max-width: 960px) {
  .hero .wrap, .vm, .cta-band .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: min(70%, 320px); }
  .strip .grid, .relig .grid, .fas { grid-template-columns: repeat(2, 1fr); }
  .jur, .stars { grid-template-columns: 1fr; }
  .news { grid-template-columns: 1fr; }
  .ppdb { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .menu a.l { display: none; }
}
@media (max-width: 520px) {
  .strip .grid, .relig .grid, .fas, footer .cols { grid-template-columns: 1fr; }
  .topbar .hide-sm { display: none; }
  .hero .wrap { padding-block: 40px 80px; }
  .brand .t2 { display: none; }
  .agenda li { grid-template-columns: 64px 1fr; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ==========================================================================
   Logo, ikon navigasi, tombol tema, bottom nav, dan scroll-to-top
   ========================================================================== */

.brand .logo { background: #fff; padding: 3px; overflow: hidden; }
.brand .logo img { width: 100%; height: 100%; object-fit: contain; }

.menu a.l { display: inline-flex; align-items: center; gap: 7px; }
.menu a.l svg, .menu .btn svg { width: 17px; height: 17px; flex: none; }
.menu .btn svg { width: 16px; height: 16px; }
.menu a.l.is-active { color: var(--gold-600); }

.theme-toggle {
  width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  color: var(--green-700); cursor: pointer; transition: transform .18s, border-color .18s, color .18s;
}
.theme-toggle:hover { transform: translateY(-2px) rotate(-8deg); border-color: var(--gold-300); color: var(--gold-600); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: block; }
html[data-theme="dark"] .theme-toggle .moon { display: none; }

.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm svg { width: 16px; height: 16px; }

/* Kartu berita: seluruh area kartu bisa diklik */
.news article { position: relative; cursor: pointer; transition: transform .22s, box-shadow .22s, border-color .22s; }
.news article:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-300); }
.news .body { position: relative; pointer-events: none; }
.news .card-hit { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.news .card-hit:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

/* Animasi masuk hero */
@keyframes lpFadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes lpBlurIn { from { opacity: 0; filter: blur(10px); transform: translateY(-8px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes lpFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes lpFloatSmall { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes lpDrift { from { background-position: 0 0; } to { background-position: 128px 128px; } }
@keyframes lpPulse { 0%, 100% { box-shadow: 0 6px 16px -6px rgba(166, 124, 15, .7); } 50% { box-shadow: 0 10px 26px -6px rgba(201, 162, 39, .85); } }
@keyframes lpShine { from { background-position: -160% 0; } to { background-position: 260% 0; } }
@keyframes lpSpin { to { transform: rotate(360deg); } }

.hero .bismillah { animation: lpBlurIn .9s .05s both; }
.hero .eyebrow { animation: lpFadeUp .7s .22s both; position: relative; overflow: hidden; }
.hero .eyebrow::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  background-size: 220% 100%; animation: lpShine 5.5s 2s ease-in-out infinite; pointer-events: none;
}
.hero h1 { animation: lpFadeUp .8s .32s both; }
.hero p.lede { animation: lpFadeUp .8s .46s both; }
.hero .cta { animation: lpFadeUp .8s .6s both; }
.hero-stats { animation: lpFadeUp .8s .74s both; }
.hero-art { animation: lpFadeUp .9s .38s both; }
.hero .arch { animation: lpFloat 7s 1.6s ease-in-out infinite; }
.hero .arch-2 { animation: lpFloatSmall 5.5s 1.2s ease-in-out infinite; }
.hero::before { animation: lpDrift 46s linear infinite; }
.hero .btn-gold { animation: lpPulse 4s 2.4s ease-in-out infinite; }

/* Animasi saat scroll */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .75s cubic-bezier(.22, 1, .36, 1); transition-delay: var(--d, 0s); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.js .reveal-left { transform: translateX(-26px); }
html.js .reveal-right { transform: translateX(26px); }
html.js .reveal-left.is-visible, html.js .reveal-right.is-visible { transform: none; }

/* Bottom nav (mobile) */
.bottom-nav { display: none; }
@media (max-width: 960px) {
  body { padding-bottom: 84px; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--paper);
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 28px -22px rgba(0, 0, 0, .55);
  }
  .bottom-nav a {
    display: grid; justify-items: center; gap: 3px; padding: 6px 2px;
    border-radius: 12px; color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.1;
    transition: color .15s, background .15s;
  }
  .bottom-nav a svg { width: 21px; height: 21px; }
  .bottom-nav a.is-active, .bottom-nav a:hover { color: var(--green-700); background: var(--green-100); }
  html[data-theme="dark"] .bottom-nav a.is-active, html[data-theme="dark"] .bottom-nav a:hover { color: var(--gold-300); }
  .topbar .hide-sm { display: none; }
  .nav .menu { gap: 10px; }
  .news .card-hit { z-index: 4; }
}

/* Tombol kembali ke atas */
.to-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; padding: 0; line-height: 0;
  background: var(--green-700); color: #fff; box-shadow: 0 12px 26px -12px rgba(6, 61, 34, .8);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.to-top:hover { background: var(--green-600); transform: translateY(-2px) scale(1.04); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; display: block; }
@media (max-width: 960px) { .to-top { bottom: 88px; right: 14px; } }

/* Ornamen berputar di sekitar foto hero */
.hero-orbit {
  position: absolute; left: 50%; top: 50%; width: 116%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border: 2px dashed rgba(230, 205, 122, .38);
  border-radius: 50%; pointer-events: none; animation: lpSpin 60s linear infinite;
}
.hero-orbit::before, .hero-orbit::after {
  content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold-300); box-shadow: 0 0 14px rgba(230, 205, 122, .9);
}
.hero-orbit::before { top: 4%; left: 22%; }
.hero-orbit::after { bottom: 6%; right: 18%; }

.more svg, .agenda .head a svg, .vm .more svg { width: 16px; height: 16px; vertical-align: -3px; }

/* Lompat ke konten */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 18px;
  background: var(--green-700); color: #fff; border-radius: 999px; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* Aksesibilitas */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html[data-theme="dark"] { --green-800: #d8f1e2; }

/* Penyesuaian kontras mode gelap */
html[data-theme="dark"] header.nav { background: var(--paper); background: color-mix(in srgb, var(--paper) 94%, transparent); }
html[data-theme="dark"] .cta-band { background: var(--green-900); }
html[data-theme="dark"] .ppdb .card.b { color: var(--ink); }
html[data-theme="dark"] .ppdb .card.b li::before { color: var(--gold-500); }
html[data-theme="dark"] .jur .more,
html[data-theme="dark"] .vm .box h4,
html[data-theme="dark"] .vm .more,
html[data-theme="dark"] .agenda .head a,
html[data-theme="dark"] .agenda .date b,
html[data-theme="dark"] .strip .ic,
html[data-theme="dark"] .main--breadcrumb .breadcrumb a,
html[data-theme="dark"] .post--item .post--action a,
html[data-theme="dark"] .post--single .post--content a,
html[data-theme="dark"] .pub-article .content a,
html[data-theme="dark"] .pub-download .ic,
html[data-theme="dark"] .pub-tags a,
html[data-theme="dark"] .tags--widget li a,
html[data-theme="dark"] .links--widget li a,
html[data-theme="dark"] .block-content .more { color: #8bd6ad; }
html[data-theme="dark"] .post--tags li a { color: var(--gold-300); background: var(--gold-100); }
html[data-theme="dark"] .brand .t1 { white-space: nowrap; }
html[data-theme="dark"] .theme-toggle { color: var(--gold-300); background: rgba(255, 255, 255, .05); border-color: rgba(240, 217, 143, .35); }

@media (max-width: 960px) {
  .menu a.l { display: none !important; }
  .nav .wrap { gap: 8px; }
  body { overflow-x: hidden; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand > span:last-child { min-width: 0; }
  .brand .t1 { font-size: 15px; max-width: none; overflow: hidden; text-overflow: ellipsis; display: block; }
  .menu { flex: none; }
  .menu .btn-sm { padding: 8px 13px; }
}
@media (max-width: 560px) {
  .brand .logo { width: 38px; height: 38px; }
  .brand .t1 { font-size: 13.5px; max-width: none; }
  .menu { gap: 7px; }
  .menu .btn-sm .label { display: none; }
  .menu .btn-sm { padding: 9px 11px; border-radius: 50%; }
  .topbar .wrap { justify-content: center; }
  .topbar .pill b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .bismillah, .hero .eyebrow, .hero h1, .hero p.lede, .hero .cta, .hero-stats, .hero-art,
  .hero .arch, .hero .arch-2, .hero::before, .hero .btn-gold, .hero .eyebrow::after { animation: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}


