/* ==========================================================================
   SMP Nur Hasan — Situs Publik
   Design system tulis tangan. Tanpa framework, tanpa build step, tanpa
   webfont eksternal: satu request CSS untuk seluruh situs.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Token
   -------------------------------------------------------------------------- */
:root {
  /* Warna merek — diturunkan dari warna dasar #0f376c (blue-600) */
  --blue-900: #071c36;
  --blue-800: #0b274c;
  --blue-700: #0d2f5c;
  --blue-600: #0f376c;
  --blue-500: #134586;
  --blue-400: #1a60bc;
  --blue-100: #c9ddf8;
  --blue-50: #e9f1fc;

  --gold-600: #a97b12;
  --gold-500: #d4a017;
  --gold-400: #e9b949;
  --gold-100: #fbf0d5;

  --ink-900: #0b1620;
  --ink-800: #16242f;
  --ink-700: #2b3b48;
  --ink-600: #46586a;
  --ink-500: #66798c;
  --ink-400: #93a3b3;
  --ink-300: #c3cddb;
  --ink-200: #e0e7ef;
  --ink-100: #eef2f7;
  --ink-50: #f7f9fc;
  --white: #fff;

  --danger: #c2352b;
  --danger-bg: #fdeceb;
  --info: #1d6fd0;
  --info-bg: #e8f1fd;
  --warn: #b4740b;
  --warn-bg: #fdf3e2;

  /* Semantik */
  --brand: var(--blue-600);
  --brand-dark: var(--blue-800);
  --accent: var(--gold-500);
  --body: var(--ink-700);
  --heading: var(--ink-900);
  --muted: var(--ink-500);
  --line: var(--ink-200);
  --surface: var(--white);
  --canvas: var(--ink-50);

  /* Tipografi */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.25rem, 0.9rem + 1vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.1rem + 1.5vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.3rem + 2.4vw, 2.75rem);
  --text-4xl: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);

  /* Ruang & bentuk */
  --wrap: 1200px;
  --wrap-narrow: 820px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  --section-y: clamp(3rem, 2rem + 4vw, 5.5rem);

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  --shadow-xs: 0 1px 2px rgba(11, 22, 32, 0.06);
  --shadow-sm: 0 2px 8px rgba(11, 22, 32, 0.07);
  --shadow: 0 8px 24px -8px rgba(11, 22, 32, 0.14);
  --shadow-lg: 0 24px 56px -20px rgba(11, 22, 32, 0.24);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 76px;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* `clip` menahan luapan horizontal tanpa menjadikan body kotak gulir —
     `hidden` akan mematahkan header position: sticky. */
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--heading);
  letter-spacing: -0.015em;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: var(--blue-800); }

img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li + li { margin-top: 0.35em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: var(--blue-100); color: var(--blue-900); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. Utilitas layout
   -------------------------------------------------------------------------- */
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - var(--gutter) * 2, var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--canvas); }
.section--brand { background: var(--blue-900); color: rgba(255, 255, 255, 0.82); }
.section--brand h2, .section--brand h3 { color: #fff; }

.grid { display: grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }

.stack > * + * { margin-top: 1rem; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.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;
}

.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 999;
  background: var(--brand); color: #fff; padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--r) var(--r); font-weight: 600;
}
.skip-link:focus { top: 0; color: #fff; }

/* --------------------------------------------------------------------------
   4. Tombol
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.72em 1.5em;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-full);
  font-size: var(--text-base); font-weight: 600; line-height: 1.2;
  letter-spacing: 0.01em; text-align: center; white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--ink-900); }
.btn--dark { --btn-bg: var(--ink-900); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--brand); --btn-bd: var(--ink-300); }
.btn--ghost:hover { --btn-bg: var(--blue-50); --btn-bd: var(--blue-400); }
.btn--light { --btn-bg: rgba(255, 255, 255, 0.14); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.4); }
.btn--light:hover { --btn-bg: #fff; --btn-fg: var(--blue-800); }
.btn--sm { padding: 0.5em 1.1em; font-size: var(--text-sm); }
.btn--lg { padding: 0.9em 2em; font-size: var(--text-md); }
.btn--block { display: flex; width: 100%; }

/* Tautan dengan panah */
.link-more {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 600; font-size: var(--text-sm);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.link-more::after { content: "→"; transition: transform 0.2s var(--ease); }
.link-more:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Chip, badge, meta
   -------------------------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.3em 0.85em;
  background: var(--blue-50); color: var(--blue-700);
  border-radius: var(--r-full);
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.chip--gold { background: var(--gold-100); color: var(--gold-600); }
.chip--ink { background: var(--ink-100); color: var(--ink-600); }
.chip--danger { background: var(--danger-bg); color: var(--danger); }
.chip--outline { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.chip--light { background: rgba(255, 255, 255, 0.16); color: #fff; }

.meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem;
  font-size: var(--text-sm); color: var(--muted);
}
.meta > span { display: inline-flex; align-items: center; gap: 0.4em; }
.meta svg { width: 1em; height: 1em; opacity: 0.7; flex: none; }

/* Judul bagian */
.section-head { margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem); }
.section-head--center { text-align: center; max-width: 680px; margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  margin-bottom: 0.8rem;
  font-family: var(--font-sans); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--accent); border-radius: 2px;
}
.section-head--center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: var(--text-md); margin-bottom: 0; }
.section--brand .eyebrow { color: var(--gold-400); }
.section--brand .section-head p { color: rgba(255, 255, 255, 0.72); }

.section-head--split {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1rem 2rem;
}
.section-head--split > div:first-child { max-width: 620px; }

/* --------------------------------------------------------------------------
   6. Topbar & header
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--blue-900);
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-xs);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 40px; flex-wrap: wrap;
}
.topbar__list { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 0.45em; }
.topbar__item svg { width: 13px; height: 13px; opacity: 0.7; }
.topbar a { color: inherit; }
.topbar a:hover { color: var(--gold-400); }

.topbar__socials { display: flex; gap: 0.35rem; }
.topbar__socials a {
  display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: var(--r-full); background: rgba(255, 255, 255, 0.08);
  transition: background 0.18s var(--ease);
}
.topbar__socials a:hover { background: var(--gold-500); color: var(--blue-900); }
.topbar__socials svg { width: 13px; height: 13px; }

/* Pemilih bahasa */
.langswitch { display: inline-flex; align-items: center; gap: 2px; padding: 2px; background: rgba(255, 255, 255, 0.1); border-radius: var(--r-full); }
.langswitch a {
  padding: 0.2em 0.7em; border-radius: var(--r-full);
  font-weight: 700; font-size: 11px; letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
}
.langswitch a.is-active { background: var(--gold-500); color: var(--blue-900); }
.langswitch a:hover { color: #fff; }
.langswitch a.is-active:hover { color: var(--blue-900); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}
.header.is-stuck { box-shadow: var(--shadow-sm); }

.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: var(--header-h);
}

/* min-width:0 memaksa flex item ini boleh menyusut di bawah lebar
   kontennya — tanpa ini, nama+tagline yang panjang mendorong lebar
   viewport mobile membesar alih-alih terpotong rapi dengan ellipsis. */
.brand { display: flex; align-items: center; gap: 0.75rem; flex: 1 1 auto; min-width: 0; }
.brand__logo {
  width: 46px; height: 46px; flex: none;
  border-radius: 12px; object-fit: contain;
  background: var(--blue-50);
}
.brand__mark {
  display: grid; place-items: center;
  width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--blue-600), var(--blue-800));
  color: #fff; font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700;
  letter-spacing: -0.02em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand__name {
  font-family: var(--font-serif); font-size: 1.0625rem; font-weight: 700;
  color: var(--heading); letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand__tag {
  display: block;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.header__actions { display: flex; align-items: center; gap: 0.6rem; flex: none; }

.icon-btn {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--r-full); color: var(--ink-700);
  transition: all 0.18s var(--ease);
}
.icon-btn:hover { border-color: var(--blue-400); color: var(--brand); background: var(--blue-50); }
.icon-btn svg { width: 18px; height: 18px; }

.nav-toggle { display: none; }

/* --------------------------------------------------------------------------
   7. Navigasi utama & mega menu
   -------------------------------------------------------------------------- */
.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; }

.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.6rem 0.85rem;
  border-radius: var(--r-sm);
  font-size: var(--text-base); font-weight: 600; color: var(--ink-700);
  white-space: nowrap;
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.nav__link:hover, .nav__item:hover > .nav__link { color: var(--brand); background: var(--blue-50); }
.nav__link.is-active { color: var(--brand); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.15rem;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav__caret { width: 12px; height: 12px; opacity: 0.5; transition: transform 0.2s var(--ease); }
.nav__item:hover .nav__caret { transform: rotate(180deg); }

/* Dropdown */
.nav__panel {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
  min-width: 260px; padding: 0.6rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.nav__item:hover > .nav__panel,
.nav__item:focus-within > .nav__panel { opacity: 1; visibility: visible; transform: translateY(0); }

.nav__panel ul { list-style: none; margin: 0; padding: 0; }
.nav__sublink {
  display: block; padding: 0.55rem 0.8rem;
  border-radius: var(--r-sm);
  font-size: var(--text-base); font-weight: 500; color: var(--ink-700);
}
.nav__sublink:hover { background: var(--blue-50); color: var(--brand); }
.nav__sublink small { display: block; font-size: var(--text-xs); color: var(--muted); font-weight: 400; }

/* Mega menu (kolom banyak) */
.nav__panel--mega {
  left: 50%; transform: translate(-50%, 8px);
  width: min(calc(100vw - 4rem), 780px);
  padding: 1.4rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem 1.5rem;
}
.nav__item:hover > .nav__panel--mega,
.nav__item:focus-within > .nav__panel--mega { transform: translate(-50%, 0); }
.nav__col-title {
  font-family: var(--font-sans); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  padding: 0 0.8rem; margin-bottom: 0.4rem;
}

/* Drawer mobile */
.drawer {
  position: fixed; inset: 0; z-index: 200;
  visibility: hidden; pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__scrim {
  position: absolute; inset: 0;
  background: rgba(4, 41, 31, 0.5); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity 0.28s var(--ease);
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(90vw, 380px); padding: 1.25rem;
  background: var(--surface); overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform 0.32s var(--ease);
  box-shadow: var(--shadow-lg);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }

.drawer__nav { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.drawer__nav li { margin: 0; border-bottom: 1px solid var(--ink-100); }
.drawer__nav a, .drawer__nav .drawer__parent {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  width: 100%; padding: 0.85rem 0.25rem;
  background: none; border: 0; text-align: left;
  font-size: var(--text-md); font-weight: 600; color: var(--ink-800);
}
.drawer__parent svg { width: 16px; height: 16px; opacity: 0.5; transition: transform 0.2s var(--ease); }
.drawer__parent[aria-expanded="true"] svg { transform: rotate(180deg); }
.drawer__sub { list-style: none; margin: 0; padding: 0 0 0.6rem 0.9rem; display: none; }
.drawer__sub.is-open { display: block; }
.drawer__sub li { border: 0; }
.drawer__sub a { padding: 0.5rem 0.25rem; font-size: var(--text-base); font-weight: 500; color: var(--ink-600); }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(460px, 72vh, 720px);
  display: grid;
  background: var(--blue-900);
  overflow: hidden;
  isolation: isolate;
}
.hero__slide {
  grid-area: 1 / 1;
  position: relative;
  display: grid; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }

.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide.is-active .hero__inner > * { animation: heroIn 0.7s var(--ease) backwards; }
.hero__slide.is-active .hero__inner > *:nth-child(2) { animation-delay: 0.1s; }
.hero__slide.is-active .hero__inner > *:nth-child(3) { animation-delay: 0.2s; }
.hero__slide.is-active .hero__inner > *:nth-child(4) { animation-delay: 0.3s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* Panel kaca di belakang teks saja — foto slider tetap tampil penuh &
   jernih di sekelilingnya, tanpa gradasi gelap yang menutupinya. */
.hero__inner {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
  max-width: 640px; margin-right: auto;
  margin-block: clamp(3rem, 6vw, 5.5rem);
  padding: clamp(1.75rem, 1.3rem + 2vw, 2.75rem) clamp(1.5rem, 1.1rem + 2vw, 2.5rem);
  color: rgba(255, 255, 255, 0.94);
  background: linear-gradient(160deg, rgba(7, 28, 54, 0.32), rgba(15, 55, 108, 0.2));
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-xl);
  box-shadow: 0 24px 48px -22px rgba(7, 28, 54, 0.6);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.35em 1em 0.35em 0.6em;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-full);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #fff;
  backdrop-filter: blur(6px);
}
.hero__eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-400); box-shadow: 0 0 0 4px rgba(233, 185, 73, 0.25);
}
.hero__title {
  margin: 1.1rem 0 0.9rem;
  font-size: var(--text-4xl); line-height: 1.08; color: #fff;
  letter-spacing: -0.025em;
}
.hero__title em { font-style: normal; color: var(--gold-400); }
.hero__text { font-size: var(--text-lg); max-width: 54ch; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero__dots {
  position: absolute; left: 0; right: 0; bottom: clamp(1.5rem, 4vw, 2.5rem); z-index: 5;
  display: flex; gap: 0.5rem;
  width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto;
}
.hero__dot {
  width: 34px; height: 4px; padding: 0; border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(4, 41, 31, 0.3);
  transition: all 0.25s var(--ease);
}
.hero__dot.is-active { background: var(--gold-400); border-color: transparent; width: 52px; }

/* Kartu info di bawah hero */
.quickbar {
  position: relative; z-index: 6;
  margin-top: calc(clamp(2rem, 5vw, 4rem) * -1);
}
.quickbar__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1px; background: var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.quickbar__item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.5rem 1.4rem; background: var(--surface);
  transition: background 0.2s var(--ease);
}
.quickbar__item:hover { background: var(--blue-50); }
.quickbar__icon {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--blue-50); color: var(--brand);
}
.quickbar__icon svg { width: 22px; height: 22px; }
.quickbar__item:nth-child(2) .quickbar__icon { background: var(--gold-100); color: var(--gold-600); }
.quickbar__item:nth-child(4) .quickbar__icon { background: var(--info-bg); color: var(--info); }
.quickbar__title { font-weight: 700; color: var(--heading); font-size: var(--text-md); line-height: 1.3; }
.quickbar__sub { font-size: var(--text-sm); color: var(--muted); }

/* --------------------------------------------------------------------------
   9. Kartu
   -------------------------------------------------------------------------- */
.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--ink-300); }

.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__media .chip { position: absolute; top: 0.85rem; left: 0.85rem; background: rgba(255, 255, 255, 0.94); }

.card__body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; gap: 0.6rem; }
.card__title { font-size: var(--text-lg); margin: 0; line-height: 1.32; }
.card__title a { color: var(--heading); }
.card__title a:hover { color: var(--brand); }
.card__text { font-size: var(--text-base); color: var(--muted); margin: 0; }
.card__foot {
  margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--ink-100);
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}

/* Kartu berita mendatar */
.card-row {
  display: grid; grid-template-columns: 108px 1fr; gap: 1rem; align-items: center;
  padding: 0.75rem 0; border-bottom: 1px solid var(--ink-100);
}
.card-row:last-child { border-bottom: 0; }
.card-row__media { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--ink-100); }
.card-row__media img { width: 100%; height: 100%; object-fit: cover; }
.card-row__title { font-size: var(--text-base); font-family: var(--font-sans); font-weight: 600; margin: 0 0 0.25rem; line-height: 1.4; }
.card-row__title a { color: var(--heading); }
.card-row__title a:hover { color: var(--brand); }

/* Kartu unggulan besar */
.feature-card {
  position: relative; display: flex; align-items: flex-end;
  min-height: 420px; border-radius: var(--r-lg); overflow: hidden;
  color: #fff; isolation: isolate;
}
.feature-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s var(--ease); }
.feature-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(4, 41, 31, 0.95) 8%, rgba(4, 41, 31, 0.55) 45%, rgba(4, 41, 31, 0.1) 100%);
}
.feature-card:hover img { transform: scale(1.05); }
.feature-card__body { padding: clamp(1.5rem, 3vw, 2.25rem); }
.feature-card__title { color: #fff; font-size: var(--text-2xl); margin-bottom: 0.5rem; }
.feature-card__title a { color: #fff; }
.feature-card .meta { color: rgba(255, 255, 255, 0.75); }

/* Kartu ikon (program / keunggulan) */
.icon-card {
  padding: 1.75rem 1.6rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: all 0.25s var(--ease);
}
.icon-card:hover { border-color: var(--blue-400); box-shadow: var(--shadow); transform: translateY(-4px); }
.icon-card__icon {
  display: grid; place-items: center; width: 54px; height: 54px;
  margin-bottom: 1.1rem; border-radius: 16px;
  background: linear-gradient(140deg, var(--blue-50), var(--blue-100));
  color: var(--brand);
}
.icon-card__icon svg { width: 26px; height: 26px; }
.icon-card h3 { font-size: var(--text-lg); margin-bottom: 0.4rem; }
.icon-card p { font-size: var(--text-base); color: var(--muted); margin: 0; }

/* Kartu guru — thumbnail kotak penuh, nama & jabatan di bawahnya */
.person {
  display: block; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.25s var(--ease);
}
.person:hover { border-color: var(--blue-400); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.person__photo {
  width: 100%; aspect-ratio: 1 / 1; margin: 0;
  overflow: hidden; position: relative;
  background: linear-gradient(140deg, var(--blue-100), var(--blue-50));
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 700; color: var(--blue-700);
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.person:hover .person__photo img { transform: scale(1.05); }
.person__body { padding: 1.25rem 1.35rem 1.5rem; text-align: center; }
.person__name { display: block; font-size: var(--text-lg); font-family: var(--font-sans); font-weight: 700; color: var(--heading); margin: 0 0 0.25rem; }
.person__role { display: block; font-size: var(--text-sm); color: var(--brand); font-weight: 600; }
.person__sub { display: block; font-size: var(--text-sm); color: var(--muted); margin-top: 0.15rem; }

/* Kartu profil besar (mis. sambutan kepala sekolah, detail guru) */
.person--feature { display: flex; flex-direction: column; }
.person--feature .person__photo { aspect-ratio: 4 / 3; }
.person--feature .person__body { text-align: left; }
.person--tint { background: var(--canvas); }

/* Item prestasi */
.trophy {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem;
  padding: 1.35rem 1.4rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: all 0.25s var(--ease);
}
.trophy:hover { border-color: var(--gold-400); box-shadow: var(--shadow); }
.trophy__medal {
  display: grid; place-items: center; width: 50px; height: 50px; flex: none;
  border-radius: 14px; background: var(--gold-100); color: var(--gold-600);
}
.trophy__medal svg { width: 24px; height: 24px; }
.trophy h3 { font-size: var(--text-md); font-family: var(--font-sans); margin-bottom: 0.3rem; line-height: 1.4; }
.trophy__meta { font-size: var(--text-sm); color: var(--muted); }

/* Item agenda */
.agenda {
  display: grid; grid-template-columns: 72px 1fr; gap: 1.1rem; align-items: start;
  padding: 1.15rem 0; border-bottom: 1px solid var(--ink-100);
}
.agenda:last-child { border-bottom: 0; }
.agenda__date {
  display: grid; place-items: center; padding: 0.6rem 0.3rem;
  background: var(--blue-50); border-radius: var(--r); text-align: center;
  border: 1px solid var(--blue-100);
}
.agenda__day { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--blue-700); line-height: 1; }
.agenda__month { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-600); margin-top: 0.25rem; }
.agenda h3 { font-size: var(--text-md); font-family: var(--font-sans); margin-bottom: 0.25rem; line-height: 1.4; }
.agenda h3 a { color: var(--heading); }
.agenda h3 a:hover { color: var(--brand); }

/* Galeri */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 0.85rem; }
.gallery-tile {
  position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden;
  background: var(--ink-100); cursor: zoom-in;
}
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-tile:hover img { transform: scale(1.08); }
.gallery-tile__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4, 41, 31, 0.85), transparent 55%);
  display: flex; align-items: flex-end; padding: 0.85rem;
  color: #fff; font-size: var(--text-sm); font-weight: 600;
  opacity: 0; transition: opacity 0.25s var(--ease);
}
.gallery-tile:hover .gallery-tile__overlay { opacity: 1; }
.gallery-tile--wide { grid-column: span 2; aspect-ratio: 2 / 1; }

/* Item dokumen */
.doc-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
  padding: 1.05rem 1.25rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: all 0.2s var(--ease);
}
.doc-item:hover { border-color: var(--blue-400); background: var(--blue-50); }
.doc-item__icon {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: var(--r-sm); background: var(--danger-bg); color: var(--danger);
  font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.doc-item__title { font-weight: 600; color: var(--heading); font-size: var(--text-base); }
.doc-item__meta { font-size: var(--text-xs); color: var(--muted); }

/* --------------------------------------------------------------------------
   10. Statistik & CTA
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; background: rgba(255, 255, 255, 0.12); }
.stat { padding: 1.75rem 1.25rem; text-align: center; background: var(--blue-900); }
.stat__num {
  font-family: var(--font-serif); font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 700; color: var(--gold-400); line-height: 1; letter-spacing: -0.02em;
}
.stat__label {
  margin-top: 0.5rem; font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.72); letter-spacing: 0.04em;
}

.cta-band {
  position: relative; overflow: hidden;
  padding: clamp(2.5rem, 2rem + 3vw, 4rem);
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--blue-800), var(--blue-600));
  color: rgba(255, 255, 255, 0.85);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem 2.5rem;
}
.cta-band::before {
  content: ""; position: absolute; top: -40%; right: -8%;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 185, 73, 0.25), transparent 65%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-band p { max-width: 52ch; margin: 0; }

/* --------------------------------------------------------------------------
   11. Halaman: hero kecil & breadcrumb
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative; isolation: isolate;
  padding-block: clamp(2.5rem, 2rem + 4vw, 4.5rem);
  background: var(--blue-900); color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 320px at 12% -10%, rgba(47, 169, 129, 0.35), transparent 70%),
    radial-gradient(700px 300px at 92% 120%, rgba(212, 160, 23, 0.22), transparent 70%);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; opacity: 0.22; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero h1 { color: #fff; margin-bottom: 0.5rem; }
.page-hero p { max-width: 62ch; margin: 0; }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  list-style: none; margin: 0 0 1rem; padding: 0;
  font-size: var(--text-sm); color: rgba(255, 255, 255, 0.6);
}
.crumbs li { margin: 0; display: inline-flex; align-items: center; gap: 0.5rem; }
.crumbs li + li::before { content: "/"; opacity: 0.45; }
.crumbs a { color: rgba(255, 255, 255, 0.82); }
.crumbs a:hover { color: var(--gold-400); }
.crumbs [aria-current] { color: var(--gold-400); }

/* --------------------------------------------------------------------------
   12. Tipografi artikel
   -------------------------------------------------------------------------- */
.prose { font-size: var(--text-md); line-height: 1.8; color: var(--ink-700); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: var(--text-2xl); margin-top: 2em; }
.prose h3 { font-size: var(--text-xl); margin-top: 1.7em; }
.prose h4 { font-size: var(--text-lg); margin-top: 1.5em; font-family: var(--font-sans); }
.prose img, .prose figure { border-radius: var(--r); margin-block: 1.8em; }
.prose figure figcaption { font-size: var(--text-sm); color: var(--muted); text-align: center; margin-top: 0.6em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li::marker { color: var(--brand); }
.prose blockquote {
  margin: 1.8em 0; padding: 1.1em 1.5em;
  border-left: 3px solid var(--accent); background: var(--gold-100);
  border-radius: 0 var(--r) var(--r) 0;
  font-family: var(--font-serif); font-size: 1.0625rem; font-style: italic; color: var(--ink-800);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { margin-block: 1.6em; font-size: var(--text-base); }
.prose th, .prose td { padding: 0.7em 0.9em; border: 1px solid var(--line); text-align: left; }
.prose thead th { background: var(--ink-50); font-weight: 700; color: var(--heading); }
.prose code {
  padding: 0.15em 0.4em; background: var(--ink-100); border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em;
}
.prose-scroll { overflow-x: auto; }

/* Tata letak isi + sidebar */
.layout-sidebar {
  display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 992px) {
  .layout-sidebar { grid-template-columns: minmax(0, 1fr) 330px; }
  .layout-sidebar--left { grid-template-columns: 300px minmax(0, 1fr); }
}
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.widget {
  padding: 1.4rem 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.widget--tint { background: var(--canvas); }
.widget__title {
  font-size: var(--text-md); font-family: var(--font-sans); font-weight: 700;
  padding-bottom: 0.75rem; margin-bottom: 1rem;
  border-bottom: 1px solid var(--line); position: relative;
}
.widget__title::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 42px; height: 2px;
  background: var(--accent);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget__link {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.55rem 0; border-bottom: 1px dashed var(--ink-200);
  font-size: var(--text-base); color: var(--ink-700); font-weight: 500;
}
.widget li:last-child .widget__link { border-bottom: 0; }
.widget__link:hover { color: var(--brand); padding-left: 0.3rem; }
.widget__count { font-size: var(--text-xs); color: var(--muted); background: var(--ink-100); padding: 0.1em 0.6em; border-radius: var(--r-full); }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* Berbagi */
.share { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.share__btn {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: var(--r-full); border: 1px solid var(--line);
  color: var(--ink-600); background: var(--surface);
  transition: all 0.18s var(--ease);
}
.share__btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.share__btn svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   13. Formulir
   -------------------------------------------------------------------------- */
.field { margin-bottom: 1.1rem; }
.label {
  display: block; margin-bottom: 0.4rem;
  font-size: var(--text-sm); font-weight: 600; color: var(--ink-800);
}
.label .req { color: var(--danger); }

.input, .textarea, .select {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--surface); color: var(--ink-800);
  border: 1px solid var(--ink-300); border-radius: var(--r);
  font-size: var(--text-base); line-height: 1.5;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(47, 169, 129, 0.18);
}
.textarea { min-height: 140px; resize: vertical; }
.select {
  appearance: none; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2366798c'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 14px;
}
.input.is-invalid, .textarea.is-invalid, .select.is-invalid { border-color: var(--danger); }
.error { display: block; margin-top: 0.35rem; font-size: var(--text-sm); color: var(--danger); }
.hint { display: block; margin-top: 0.35rem; font-size: var(--text-sm); color: var(--muted); }

/* Kotak pencarian */
.searchbox { position: relative; }
.searchbox .input { padding-left: 2.8rem; }
.searchbox svg {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--ink-400); pointer-events: none;
}

/* Notifikasi */
.alert {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 1rem 1.15rem; border-radius: var(--r);
  border: 1px solid; font-size: var(--text-base); margin-bottom: 1.25rem;
}
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert--success { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-800); }
.alert--error { background: var(--danger-bg); border-color: #f6cfcc; color: #8f2620; }
.alert--info { background: var(--info-bg); border-color: #cfe1f8; color: #16528f; }

/* --------------------------------------------------------------------------
   14. Paginasi, filter, kondisi kosong
   -------------------------------------------------------------------------- */
.pagination {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem;
  list-style: none; margin: 2.5rem 0 0; padding: 0;
}
.pagination li { margin: 0; }
.pagination a, .pagination span {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 0.75rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: var(--text-base); font-weight: 600; color: var(--ink-700);
  background: var(--surface);
  transition: all 0.16s var(--ease);
}
.pagination a:hover { border-color: var(--blue-400); background: var(--blue-50); color: var(--brand); }
.pagination .is-active span, .pagination [aria-current] {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.pagination .disabled span { opacity: 0.4; cursor: not-allowed; }

.filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter-pill {
  padding: 0.45em 1.1em; border-radius: var(--r-full);
  border: 1px solid var(--line); background: var(--surface);
  font-size: var(--text-sm); font-weight: 600; color: var(--ink-600);
  transition: all 0.16s var(--ease);
}
.filter-pill:hover { border-color: var(--blue-400); color: var(--brand); }
.filter-pill.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

.empty {
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; text-align: center;
  border: 1px dashed var(--ink-300); border-radius: var(--r-lg);
  background: var(--canvas); color: var(--muted);
}
.empty svg { width: 54px; height: 54px; margin: 0 auto 1rem; color: var(--ink-300); }
.empty h3 { font-size: var(--text-lg); margin-bottom: 0.4rem; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--blue-900); color: rgba(255, 255, 255, 0.64);
  font-size: var(--text-base);
  padding-top: clamp(3rem, 2rem + 4vw, 4.5rem);
}
.footer a { color: rgba(255, 255, 255, 0.72); }
.footer a:hover { color: var(--gold-400); }
.footer__grid {
  display: grid; gap: 2.5rem clamp(1.5rem, 1rem + 2vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  padding-bottom: 3rem;
}
.footer__grid > :first-child { grid-column: span 1; }
@media (min-width: 992px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; }
}
.footer__title {
  font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
  margin-bottom: 1.1rem;
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin: 0; }
.footer__list a { display: inline-block; padding: 0.32rem 0; }
.footer__list a:hover { transform: translateX(3px); }

.footer .brand__name { color: #fff; }
.footer .brand__tag { color: rgba(255, 255, 255, 0.5); }
.footer__about { margin-top: 1.1rem; max-width: 42ch; }

.footer__contact { list-style: none; margin: 0; padding: 0; }
.footer__contact li { display: flex; gap: 0.75rem; margin: 0 0 0.85rem; }
.footer__contact svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--gold-400); }

.footer__socials { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.footer__socials a {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: var(--r-full); background: rgba(255, 255, 255, 0.08);
  transition: all 0.18s var(--ease);
}
.footer__socials a:hover { background: var(--gold-500); color: var(--blue-900); transform: translateY(-2px); }
.footer__socials svg { width: 17px; height: 17px; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1.5rem; font-size: var(--text-sm);
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer__bottom li { margin: 0; }

/* Tombol kembali ke atas */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: var(--r-full);
  background: var(--brand); color: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all 0.25s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue-800); }
.to-top svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   16. Lightbox galeri
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center; padding: 1.5rem;
  background: rgba(4, 12, 9, 0.92);
  opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 82vh; border-radius: var(--r); object-fit: contain; }
.lightbox__caption { margin-top: 1rem; color: rgba(255, 255, 255, 0.8); font-size: var(--text-base); text-align: center; }
.lightbox__close, .lightbox__nav {
  position: absolute; display: grid; place-items: center;
  width: 46px; height: 46px; border: 0; border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.12); color: #fff;
  transition: background 0.18s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__nav--prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox svg { width: 20px; height: 20px; }

/* Sisip video responsif */
.ratio-16x9 { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--ink-900); }
.ratio-16x9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Peta */
.map-embed { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); line-height: 0; }
.map-embed iframe { width: 100%; height: 380px; border: 0; }

/* --------------------------------------------------------------------------
   17. Marquee pengumuman
   -------------------------------------------------------------------------- */
.ticker {
  display: flex; align-items: stretch;
  background: var(--gold-100); border-bottom: 1px solid var(--gold-400);
  font-size: var(--text-sm);
}
.ticker__label {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.6rem 1.1rem; flex: none;
  background: var(--gold-500); color: var(--ink-900);
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: var(--text-xs);
}
.ticker__label svg { width: 14px; height: 14px; }
.ticker__viewport { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker__track { display: flex; gap: 3rem; white-space: nowrap; animation: tickerScroll 38s linear infinite; padding-left: 1.5rem; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track a { color: var(--gold-600); font-weight: 600; }
.ticker__track a:hover { color: var(--ink-900); }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   18. Animasi saat masuk viewport
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* --------------------------------------------------------------------------
   19. Responsif
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
}

@media (max-width: 768px) {
  :root { --header-h: 66px; }
  .topbar__list--secondary { display: none; }
  .brand__logo, .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 0.95rem; }
  .brand__tag { font-size: 10px; }
  .hero__inner { margin-block: 2.5rem 4.5rem; }
  .quickbar { margin-top: 0; padding-top: 0; }
  .quickbar__grid { box-shadow: var(--shadow-sm); }
  .card-row { grid-template-columns: 88px 1fr; }
  .gallery-tile--wide { grid-column: span 1; aspect-ratio: 1; }
  .cta-band { text-align: center; justify-content: center; }
  .cta-band p { margin-inline: auto; }
  .footer__bottom { justify-content: center; text-align: center; }
}

@media (max-width: 520px) {
  .topbar__inner { justify-content: center; }
  .agenda { grid-template-columns: 60px 1fr; gap: 0.85rem; }
  .trophy { grid-template-columns: 1fr; }
  .doc-item { grid-template-columns: auto 1fr; }
  .doc-item .btn { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   20. Cetak
   -------------------------------------------------------------------------- */
@media print {
  .topbar, .header, .footer, .to-top, .share, .ticker, .hero__dots { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .wrap, .wrap-narrow { width: 100%; }
  a { text-decoration: underline; }
  .card, .widget { border: 1px solid #ccc; box-shadow: none; }
}
