/* =========================================================
   Tema Beranda 2026 - SMA IT Raudhatul Ulum
   Warna utama: biru navy + emas (mengikuti banner SPMB)
   ========================================================= */
:root {
  --navy-950: #061528;
  --navy-900: #0a1f3c;
  --navy-800: #0b2a52;
  --navy-700: #123a6b;
  --navy-500: #1f5aa6;
  --navy-100: #e6eef9;
  --gold: #f4b22e;
  --gold-600: #dc9612;
  --gold-100: #fdf1d6;
  --ink: #0e1a2b;
  --muted: #56657a;
  --line: #e3e9f2;
  --soft: #f4f7fc;
  --white: #fff;
  --wa: #25d366;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(10, 31, 60, .25);
  --shadow-lg: 0 24px 60px -20px rgba(10, 31, 60, .35);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M40 8l9.4 22.6L72 40l-22.6 9.4L40 72l-9.4-22.6L8 40l22.6-9.4z'/%3E%3Cpath d='M17.4 17.4h45.2v45.2H17.4z' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='9'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; margin-top: 32px; }

/* ---------- Ikon ---------- */
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ic--lg { width: 26px; height: 26px; }
svg use { pointer-events: none; }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 2px solid transparent; transition: transform .2s, background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: var(--navy-900); box-shadow: 0 10px 24px -10px rgba(244, 178, 46, .8); }
.btn--gold:hover { background: #ffc24a; }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: #fff; color: var(--navy-900); }
.btn--outline { color: var(--navy-800); border-color: var(--navy-800); }
.btn--outline:hover { background: var(--navy-800); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa .ic { stroke: none; }
.btn .ic { width: 18px; height: 18px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-500); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.eyebrow--light { color: var(--gold); }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-950); color: rgba(255, 255, 255, .78); font-size: 13px; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar__info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar__info span, .topbar__info a { display: inline-flex; align-items: center; gap: 6px; }
.topbar__info .ic { width: 14px; height: 14px; color: var(--gold); }
.topbar__social { display: flex; gap: 6px; }
.topbar__social a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; transition: background .2s, color .2s; }
.topbar__social a:hover { background: var(--gold); color: var(--navy-900); }
.topbar__social .ic { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(10, 31, 60, .45); border-color: var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { flex: none; }
.brand__logo { height: 46px; width: auto; max-width: none; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__list > li { position: relative; }
.nav__list > li > a, .nav__toggle { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--ink); background: none; border: 0; transition: color .2s, background .2s; }
.nav__list > li > a:hover, .nav__toggle:hover, .nav__list > li > a.is-active { color: var(--navy-500); background: var(--navy-100); }
.nav__toggle .ic { width: 15px; height: 15px; transition: transform .2s; }
.sub { position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; background: #fff; border-radius: 14px; padding: 8px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.sub a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 500; }
.sub a:hover { background: var(--soft); color: var(--navy-500); }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .nav__toggle .ic { transform: rotate(180deg); }
.nav__cta-mobile { display: none; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy-800); place-items: center; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; }
.hero__slides { position: relative; min-height: clamp(560px, 82vh, 760px); }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease; display: flex; align-items: center; }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6, 21, 40, .95) 0%, rgba(10, 31, 60, .85) 45%, rgba(18, 58, 107, .45) 100%); }
.hero__slide::after { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 80px; mask-image: linear-gradient(90deg, #000 0%, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%); }
.hero__content { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 140px; }
.hero__title { font-size: clamp(34px, 5.6vw, 64px); font-weight: 800; max-width: 760px; margin-bottom: 18px; }
.hero__lead { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, .82); max-width: 560px; margin-bottom: 32px; }
.hero__btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__slide.is-active .hero__content > * { animation: rise .8s both; }
.hero__slide.is-active .hero__title { animation-delay: .1s; }
.hero__slide.is-active .hero__lead { animation-delay: .2s; }
.hero__slide.is-active .hero__btns { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero__nav { position: absolute; z-index: 3; left: 0; right: 0; bottom: 110px; display: flex; align-items: center; gap: 14px; }
.hero__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; display: grid; place-items: center; transition: background .2s; }
.hero__arrow:hover { background: rgba(255, 255, 255, .15); }
.hero__dots { display: flex; gap: 8px; }
.hero__dots button { width: 10px; height: 10px; padding: 0; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .4); transition: width .3s, background .3s; }
.hero__dots button.is-active { width: 30px; background: var(--gold); }

/* ---------- Statistik ---------- */
.stats { position: relative; z-index: 5; margin-top: -72px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { display: flex; align-items: center; gap: 16px; padding: 28px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__ic { width: 52px; height: 52px; padding: 13px; border-radius: 14px; background: var(--navy-100); color: var(--navy-500); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.stat strong { display: block; font-size: 30px; font-weight: 800; color: var(--navy-800); line-height: 1.1; }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- Section umum ---------- */
.section { padding: 96px 0; }
.section--soft { background: var(--soft); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section__head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; color: var(--navy-900); }
.section__head p { color: var(--muted); font-size: 17px; }
.section__head .eyebrow { justify-content: center; }

/* ---------- SPMB ---------- */
.spmb { padding-top: 110px; }
.spmb__banner { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); transition: transform .3s; }
.spmb__banner:hover { transform: translateY(-4px); }
.spmb__body { margin-top: 48px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.step:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-4px); }
.step__no { position: absolute; top: 20px; right: 22px; font-size: 44px; font-weight: 800; color: var(--navy-100); line-height: 1; }
.step__ic { width: 48px; height: 48px; padding: 12px; border-radius: 12px; background: var(--gold-100); color: var(--gold-600); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.step h3 { font-size: 18px; color: var(--navy-900); }
.step p { font-size: 14.5px; color: var(--muted); margin: 0; }
.spmb__cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 40px; }

/* ---------- Keunggulan ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: #fff; border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature__ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--navy-700), var(--navy-500)); color: #fff; margin-bottom: 20px; box-shadow: 0 12px 24px -12px rgba(31, 90, 166, .8); }
.feature__ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 19px; color: var(--navy-900); }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- Kegiatan pondok ---------- */
.kg-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 260px 260px; gap: 18px; }
.kg { position: relative; border-radius: var(--radius); overflow: hidden; background-color: var(--navy-700); background-size: cover; background-position: center; display: flex; align-items: flex-end; color: #fff; isolation: isolate; transition: transform .3s; }
.kg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 21, 40, 0) 25%, rgba(6, 21, 40, .92) 100%); transition: background .3s; }
.kg:hover { transform: translateY(-4px); }
.kg:hover::before { background: linear-gradient(180deg, rgba(10, 31, 60, .25) 0%, rgba(6, 21, 40, .95) 100%); }
.kg--big { grid-column: span 2; grid-row: span 2; }
.kg__body { padding: 24px; }
.kg__tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--gold); color: var(--navy-900); padding: 5px 12px; border-radius: 99px; margin-bottom: 12px; }
.kg__tag .ic { width: 14px; height: 14px; }
.kg h3 { font-size: 20px; margin-bottom: 6px; }
.kg--big h3 { font-size: clamp(24px, 2.6vw, 32px); }
.kg p { font-size: 14.5px; color: rgba(255, 255, 255, .82); margin: 0; }
.kg--big p { font-size: 16px; max-width: 460px; }

/* ---------- Prestasi ---------- */
.prestasi { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.prestasi::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 80px; opacity: .9; }
.prestasi::after { content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -200px; background: radial-gradient(circle, rgba(244, 178, 46, .18), transparent 65%); }
.prestasi .container { position: relative; z-index: 1; }
.prestasi__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.prestasi__intro h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; }
.prestasi__intro p { color: rgba(255, 255, 255, .78); font-size: 17px; }
.prestasi__big { display: flex; align-items: baseline; gap: 12px; margin: 28px 0; }
.prestasi__big strong { font-size: 64px; font-weight: 800; color: var(--gold); line-height: 1; }
.prestasi__big strong::after { content: "+"; }
.prestasi__big span { color: rgba(255, 255, 255, .8); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 16px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .22); font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, .05); }
.alumni { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.alumni__card { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy-800); box-shadow: var(--shadow-lg); aspect-ratio: 3 / 4; }
.alumni__card:nth-child(2) { transform: translateY(40px); }
.alumni__card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.alumni__card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 18px 18px; background: linear-gradient(180deg, transparent, rgba(6, 21, 40, .95)); display: flex; flex-direction: column; gap: 2px; }
.alumni__badge { align-self: flex-start; font-size: 11px; font-weight: 700; background: var(--gold); color: var(--navy-900); padding: 3px 10px; border-radius: 99px; margin-bottom: 6px; }
.alumni__card strong { font-size: 18px; }
.alumni__card span:last-child { font-size: 14px; color: rgba(255, 255, 255, .8); }
.kampus { margin-top: 100px; text-align: center; }
.kampus h3 { font-size: 18px; font-weight: 600; color: rgba(255, 255, 255, .75); margin-bottom: 24px; }
.kampus__logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.kampus__logos img { height: 64px; width: auto; background: #fff; border-radius: 14px; padding: 8px 14px; }

/* ---------- Kata mereka ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; }
.quotes > .quote:last-child { grid-column: span 2; }
.quote--lead { grid-row: span 2; background: linear-gradient(160deg, var(--navy-800), var(--navy-700)); color: #fff; border: 0; position: relative; overflow: hidden; }
.quote--lead::after { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 70px; opacity: .8; pointer-events: none; }
.quote__ic { width: 36px; height: 36px; fill: var(--gold); stroke: none; margin-bottom: 16px; }
.quote p { font-size: 16px; color: var(--muted); flex: 1; }
.quote--lead p { font-size: 21px; line-height: 1.55; color: #fff; font-weight: 500; }
.quote footer { display: flex; flex-direction: column; margin-top: 12px; }
.quote footer strong { color: var(--navy-900); }
.quote--lead footer strong { color: var(--gold); }
.quote footer span { font-size: 14px; color: var(--muted); }
.quote--lead footer span { color: rgba(255, 255, 255, .7); }

/* ---------- Fasilitas ---------- */
.facilities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.facility { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.facility:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.facility img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--navy-100); }
.facility div { padding: 18px 20px 22px; }
.facility h3 { font-size: 18px; color: var(--navy-900); margin-bottom: 4px; }
.facility span { font-size: 14px; color: var(--muted); }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-500); }
.link-more:hover { gap: 12px; }
.link-more .ic { transition: transform .2s; }

/* ---------- Galeri ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery__item { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-100); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.06); }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-800), var(--navy-500)); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 80px; }
.cta-band__in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 64px; padding-bottom: 64px; }
.cta-band__ar { font-family: "Amiri", serif; font-size: 26px; color: var(--gold); margin: 0 0 6px; text-align: left; }
.cta-band h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
.cta-band p { color: rgba(255, 255, 255, .82); margin: 0; }
.cta-band__btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .72); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 72px; padding-bottom: 40px; }
.footer__logo { height: 48px; width: auto; background: #fff; border-radius: 12px; padding: 6px 12px; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer__links li + li { margin-top: 10px; }
.footer__links a:hover, .footer__contact a:hover { color: var(--gold); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact li + li { margin-top: 14px; }
.footer__contact .ic { color: var(--gold); margin-top: 3px; }
.footer__social { display: flex; gap: 10px; margin-top: 8px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s, color .2s; }
.footer__social a:hover { background: var(--gold); color: var(--navy-900); }
.footer__map iframe { width: 100%; height: 240px; border: 0; border-radius: var(--radius); filter: grayscale(.3); }
.footer__bottom { margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; font-size: 14px; text-align: center; }

/* ---------- Tombol melayang ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7); animation: pulse 2.4s infinite; }
.wa-float svg { width: 30px; height: 30px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 50% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } }
.to-top { position: fixed; right: 26px; bottom: 92px; z-index: 60; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--navy-800); color: #fff; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .25s; }
.to-top.is-show { opacity: 1; visibility: visible; }

/* ---------- Animasi muncul saat scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsif
   ========================================================= */
/* Header laptop: menu tetap satu baris */
.nav__list > li > a, .nav__toggle { white-space: nowrap; }
@media (max-width: 1440px) {
  .brand__logo { height: 38px; }
  .header__in { gap: 14px; }
  .nav__list > li > a, .nav__toggle { padding: 9px 8px; font-size: 14.5px; }
}
@media (max-width: 1180px) and (min-width: 993px) {
  .nav__list > li.nav-opt { display: none; }
}
@media (max-width: 992px) {
  .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .burger { display: grid; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); background: #fff; padding: 90px 20px 24px; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .3s ease, visibility .3s; overflow-y: auto; z-index: 70; }
  .nav:not(.is-open) { visibility: hidden; }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__list > li > a, .nav__toggle { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 16px; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; min-width: 0; }
  .has-sub.is-open .sub { display: block; }
  .has-sub:hover .nav__toggle .ic { transform: none; }
  .has-sub.is-open .nav__toggle .ic { transform: rotate(180deg); }
  .nav__cta-mobile { display: block; margin-top: 16px; }
  .nav__list > li.nav__cta-mobile > a { background: var(--gold); color: var(--navy-900); justify-content: center; }
  .burger { position: relative; z-index: 80; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(6, 21, 40, .5); z-index: 45; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features, .quotes { grid-template-columns: repeat(2, 1fr); }
  .quote--lead { grid-row: auto; grid-column: span 2; }
  .quotes > .quote:last-child { grid-column: auto; }
  .kg-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 340px 230px 230px; }
  .facilities { grid-template-columns: repeat(2, 1fr); }
  .prestasi__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta-band__in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .topbar__info span { display: none; }
  .hide-sm { display: none; }
  .header__in { min-height: 66px; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand__logo { height: auto; max-height: 38px; max-width: 100%; }
  .hero__slides { min-height: 600px; }
  .hero__content { padding-bottom: 150px; }
  .hero__btns { gap: 10px; }
  .hero__btns .btn { flex: 1 1 auto; padding: 13px 18px; }
  .hero__arrow { display: none; }
  .hero__nav { bottom: 96px; }
  .section { padding: 72px 0; }
  .spmb { padding-top: 80px; }
  .stat { padding: 18px 14px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .stat__ic { width: 42px; height: 42px; padding: 10px; }
  .stat strong { font-size: 24px; }
  .steps, .features, .quotes, .facilities { grid-template-columns: 1fr; }
  .quote--lead, .quotes > .quote:last-child { grid-column: auto; }
  .kg-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: auto; }
  .kg { min-height: 240px; }
  .kg--big { grid-column: auto; grid-row: auto; min-height: 360px; }
  .alumni__badge { font-size: 10px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .alumni__card:nth-child(2) { transform: translateY(24px); }
  .prestasi__big strong { font-size: 52px; }
  .kampus { margin-top: 72px; }
  .kampus__logos img { height: 52px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .spmb__cta .btn, .cta-band__btns .btn { flex: 1 1 100%; }
  .cta-band__btns { width: 100%; }
}

/* =========================================================
   Halaman formulir SPMB (/ppdb-online)
   ========================================================= */
.page-hero { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; padding: 64px 0 56px; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 80px; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; max-width: 760px; }
.page-hero p { color: rgba(255, 255, 255, .8); max-width: 640px; margin: 0; }
.req { color: #e5484d; font-weight: 700; }
.spmb-form { padding-top: 48px; }
.spmb-form__wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.alert { grid-column: 1 / -1; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 15px; }
.alert--error { background: #fdecec; color: #8c1d20; border: 1px solid #f5c2c4; }
.ff { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ff__card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 8px; min-width: 0; }
.ff__card legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; color: var(--navy-900); margin-bottom: 20px; padding: 0; }
.ff__card legend + * { clear: both; }
.ff__no { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--navy-800); color: var(--gold); font-size: 15px; flex: none; }
.ff__note { font-size: 14px; color: var(--muted); margin: -8px 0 16px; }
.ff__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.ff__row { margin-bottom: 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ff__row > label, .ff__label { font-weight: 600; font-size: 15px; color: var(--ink); }
.ff__hint { color: var(--muted); font-size: 13px; margin-top: -2px; }
.ff input[type=text], .ff input[type=tel], .ff input[type=date], .ff textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--soft); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, background .2s, box-shadow .2s; }
.ff textarea { resize: vertical; min-height: 110px; }
.ff input:focus, .ff textarea:focus { outline: none; background: #fff; border-color: var(--navy-500); box-shadow: 0 0 0 4px rgba(31, 90, 166, .12); }
.has-error input, .has-error textarea { border-color: #e5484d; background: #fff8f8; }
.ff__err { color: #c62a2f; font-size: 13px; font-weight: 600; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice--grid { display: grid; grid-template-columns: 1fr 1fr; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--soft); font-size: 15px; transition: .15s; height: 100%; }
.choice span::before { content: ""; width: 18px; height: 18px; flex: none; border: 2px solid #9aa8bb; border-radius: 50%; background: #fff; transition: .15s; }
.choice input[type=checkbox] + span::before { border-radius: 5px; }
.choice input:checked + span { border-color: var(--navy-500); background: var(--navy-100); color: var(--navy-800); font-weight: 600; }
.choice input:checked + span::before { border-color: var(--navy-500); background: var(--navy-500); box-shadow: inset 0 0 0 3px #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.has-error .choice span { border-color: #f5c2c4; }
.ff__other { margin-top: 10px; }
.ff__submit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ff__submit p { margin: 0; font-size: 14px; color: var(--muted); }
.ff__submit .btn[disabled] { opacity: .7; cursor: wait; transform: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.spmb-side { position: sticky; top: 100px; }
.spmb-side__card { background: var(--navy-900); color: #fff; border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; }
.spmb-side__card::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 70px; pointer-events: none; }
.spmb-side__card h3 { font-size: 18px; position: relative; }
.spmb-side__card p { font-size: 14px; color: rgba(255, 255, 255, .75); position: relative; }
.spmb-side__card li { position: relative; }
.spmb-side__card li + li { margin-top: 8px; }
.spmb-side__card a { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .07); transition: background .2s; }
.spmb-side__card a:hover { background: var(--wa); }
.spmb-side__card .ic { color: var(--wa); stroke: none; }
.spmb-side__card a:hover .ic { color: #fff; }
.done { max-width: 640px; margin: 0 auto; text-align: center; background: #fff; border-radius: var(--radius); padding: 48px 32px; box-shadow: var(--shadow); }
.done__ic { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; background: #e7f8ee; color: #1a9f53; display: grid; place-items: center; }
.done__ic svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.done h1 { font-size: clamp(24px, 3vw, 32px); color: var(--navy-900); font-weight: 800; }
.done p { color: var(--muted); }
.done__tip { font-size: 14px; background: var(--gold-100); color: #7a5208; padding: 10px 14px; border-radius: 10px; }
.done__btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 992px) {
  .spmb-form__wrap { grid-template-columns: 1fr; }
  .spmb-side { position: static; }
}
@media (max-width: 640px) {
  .page-hero { padding: 44px 0 40px; }
  .ff__card { padding: 20px 18px 4px; }
  .ff__grid, .choice--grid { grid-template-columns: 1fr; }
  .ff__submit { flex-direction: column; align-items: stretch; text-align: center; }
  .done { padding: 36px 20px; }
  .done__btns .btn { flex: 1 1 100%; }
}

/* =========================================================
   Halaman dalam (Profil, Visi-Misi, Struktur, Sarpras, Guru, Siswa, Info SPMB)
   ========================================================= */
.crumb { display: flex; align-items: center; gap: 6px; font-size: 14px; color: rgba(255, 255, 255, .7); margin-bottom: 14px; }
.crumb a:hover { color: var(--gold); }
.crumb .ic { width: 14px; height: 14px; }
.crumb span { color: var(--gold); font-weight: 600; }
.subnav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 76px; z-index: 20; }
.subnav__in { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav a { padding: 16px 14px; font-weight: 600; font-size: 15px; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.subnav a:hover { color: var(--navy-500); }
.subnav a.is-active { color: var(--navy-800); border-bottom-color: var(--gold); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.page-side { position: sticky; top: 150px; display: flex; flex-direction: column; gap: 18px; }
.prose { font-size: 17px; line-height: 1.85; color: #253247; }
.prose p { margin: 0 0 1.2em; text-align: justify; }
.prose strong, .prose b { color: var(--navy-900); }
.prose img { border-radius: var(--radius-sm); margin: 1em 0; }
.side-photos { display: grid; gap: 12px; }
.side-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--navy-100); }
.side-card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.side-card h3 { font-size: 18px; color: var(--navy-900); }
.side-card p { display: flex; gap: 8px; font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }
.side-card p .ic { color: var(--navy-500); margin-top: 3px; }
.side-card .btn { margin-top: 10px; }
.side-card--dark { background: var(--navy-900); border: 0; color: #fff; position: relative; overflow: hidden; }
.side-card--dark::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 70px; pointer-events: none; }
.side-card--dark > * { position: relative; }
.side-card--dark h3 { color: #fff; }
.side-card--dark p { color: rgba(255, 255, 255, .75); display: block; }
.visi { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; border-radius: var(--radius); padding: 48px clamp(24px, 5vw, 64px); text-align: center; position: relative; overflow: hidden; margin-bottom: 80px; }
.visi::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 80px; }
.visi > * { position: relative; }
.visi .eyebrow { justify-content: center; }
.visi blockquote { margin: 0; font-size: clamp(22px, 3vw, 34px); font-weight: 700; line-height: 1.4; }
.visi blockquote p { margin: 0; }
.section__head--sm { margin-bottom: 36px; }
.misi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; counter-reset: none; }
.misi li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.misi__no { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--gold-100); color: var(--gold-600); display: grid; place-items: center; font-weight: 800; }
.misi p { margin: 0; font-size: 16px; }
.chart-img { margin: 0; background: #fff; border-radius: var(--radius); padding: clamp(12px, 3vw, 32px); box-shadow: var(--shadow); text-align: center; }
.chart-img img { margin: 0 auto; }
.chart-img figcaption { font-size: 13px; color: var(--muted); margin-top: 12px; }
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.checklist .ic { color: #1a9f53; margin-top: 3px; }
.checklist--plain { grid-template-columns: 1fr; gap: 8px; }
.checklist--plain li { border: 0; padding: 4px 0; background: none; }
.list-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.list-tools p { margin: 0; color: var(--muted); }
.list-tools strong { color: var(--navy-900); }
.search { font: inherit; font-size: 16px; padding: 12px 16px 12px 42px; border: 1.5px solid var(--line); border-radius: 999px; min-width: min(320px, 100%); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2356657a' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 16px center; }
.search:focus { outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 4px rgba(31, 90, 166, .12); }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.people li { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.people__av { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-700), var(--navy-500)); color: #fff; font-weight: 700; font-size: 15px; }
.people__name { font-weight: 600; color: var(--navy-900); }
.empty { text-align: center; color: var(--muted); padding: 30px 0; }
.kelas-list { display: grid; gap: 12px; }
.kelas, .acc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.kelas summary, .acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 18px 20px; font-weight: 700; color: var(--navy-900); }
.kelas summary::-webkit-details-marker, .acc summary::-webkit-details-marker { display: none; }
.kelas summary span, .acc summary span { flex: 1; }
.kelas summary small { color: var(--muted); font-weight: 500; }
.kelas summary .ic, .acc summary .ic { transition: transform .2s; color: var(--navy-500); }
.kelas[open] summary .ic, .acc[open] summary .ic { transform: rotate(180deg); }
.kelas[open] summary, .acc[open] summary { border-bottom: 1px solid var(--line); }
.kelas ol { padding: 14px 20px 18px 44px; list-style: decimal; columns: 2; column-gap: 40px; }
.kelas li { padding: 4px 0; break-inside: avoid; }
.accordion { display: grid; gap: 12px; margin-top: 28px; }
.acc__body { padding: 16px 20px 20px; }
.muted { color: var(--muted); margin: 0; }
.page-side .btn + .btn { margin-top: 10px; }
@media (max-width: 992px) {
  .page-grid { grid-template-columns: 1fr; }
  .page-side { position: static; }
  .side-photos { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .subnav { top: 76px; }
}
@media (max-width: 640px) {
  .subnav { top: 66px; }
  .misi, .checklist, .people { grid-template-columns: 1fr; }
  .kelas ol { columns: 1; }
  .prose { font-size: 16px; }
  .prose p { text-align: left; }
  .visi { margin-bottom: 56px; }
}
[hidden] { display: none !important; }
