/* =========================================================================
   MTs Al-Ulfah 5 — Sistem Desain & Gaya Situs Publik
   -------------------------------------------------------------------------
    1. Token (warna, tipografi, spasi, radius, bayangan)
    2. Reset & dasar
    3. Tata letak (container, section, grid)
    4. Tipografi & judul section
    5. Komponen: tombol, badge, chip, kartu, icon-box, avatar, alert,
       formulir, tabel, tabs, accordion, paginasi, breadcrumb, timeline,
       steps, stepper, statistik, slider, carousel, empty state, prose
    6. Header & navigasi
    7. Page hero (judul halaman dalam)
    8. Hero beranda
    9. Footer & tombol kembali ke atas
   10. Utilitas
   11. Animasi & preferensi gerak
   12. Komponen halaman publik (beranda, profil, kurikulum, berita, kontak)
   ========================================================================= */

/* 1. TOKEN ================================================================ */
:root {
  /* Palet biru (warna utama) */
  --blue-950: #061a3a;
  --blue-900: #0a2a5e;   /* header/footer gelap */
  --blue-800: #0e3a7e;
  --blue-700: #1349a0;
  --blue-600: #1a5fd0;   /* warna utama */
  --blue-500: #2f7ae5;
  --blue-400: #5b9bf0;
  --blue-300: #93c0f8;   /* biru muda aksen */
  --blue-200: #c3dcfc;
  --blue-100: #e3eefe;
  --blue-50:  #f2f7ff;
  --sky-500:  #0ea5e9;
  --sky-400:  #38bdf8;
  --sky-100:  #e0f2fe;

  /* Abu netral */
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Status */
  --success-50: #ecfdf3;  --success-600: #16a34a; --success-700: #15803d;
  --warning-50: #fffbeb;  --warning-500: #f59e0b; --warning-700: #b45309;
  --danger-50:  #fef2f2;  --danger-500:  #ef4444; --danger-600:  #dc2626; --danger-700: #b91c1c;
  --gold-400:   #fbbf24;  --gold-100:    #fef3c7;

  /* Semantik */
  --color-primary: var(--blue-600);
  --color-heading: #0d1f3f;
  --color-text: var(--gray-700);
  --color-text-muted: #56657a;
  --color-bg: #ffffff;
  --color-bg-soft: #f5f8fd;
  --color-border: #e3e8f0;
  --color-surface: #ffffff;

  /* Tipografi */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', 'Scheherazade New', serif;
  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
  --fs-3xl: clamp(1.75rem, 1.35rem + 1.8vw, 2.5rem);
  --fs-4xl: clamp(2.1rem, 1.45rem + 3vw, 3.5rem);

  /* Bentuk & kedalaman */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --shadow-xs: 0 1px 2px rgba(13, 31, 63, .06);
  --shadow-sm: 0 1px 2px rgba(13, 31, 63, .04), 0 4px 12px -2px rgba(13, 31, 63, .06);
  --shadow: 0 2px 4px rgba(13, 31, 63, .04), 0 12px 28px -8px rgba(13, 31, 63, .12);
  --shadow-lg: 0 4px 8px rgba(13, 31, 63, .04), 0 24px 48px -12px rgba(13, 31, 63, .2);
  --shadow-blue: 0 10px 24px -8px rgba(26, 95, 208, .5);

  /* Tata letak */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 1.5rem);
  --header-h: 76px;

  /* Gerak */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. RESET & DASAR ======================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  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(--fs-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
hr { border: 0; border-top: 1px solid var(--color-border); margin: 2rem 0; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
::selection { background: var(--blue-200); color: var(--blue-950); }

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--color-heading);
}
h1 { font-size: var(--fs-4xl); font-weight: 800; }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 1rem; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }
.icon-xl { width: 40px; height: 40px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  background: var(--blue-900);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

main:focus { outline: none; }
/* Pengaman: dekorasi/animasi tidak boleh melebarkan halaman di HP (clip tidak mengganggu position: sticky) */
main { overflow-x: clip; }

/* 3. TATA LETAK =========================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: calc(860px + var(--gutter) * 2); }
.container-wide { max-width: calc(1360px + var(--gutter) * 2); }

.section { padding-block: clamp(3.5rem, 7vw, 6rem); position: relative; }
.section-sm { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-soft { background: var(--color-bg-soft); }
.section-blue { background: var(--blue-50); }
.section-dark {
  background: var(--blue-900);
  color: rgba(255, 255, 255, .8);
  isolation: isolate;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/pattern.svg") center / 96px;
}

.grid { display: grid; gap: var(--grid-gap, 1.5rem); }
.grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 260px)), 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 960px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
  .split-wide-right { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
  .split-top { align-items: start; }
}

.layout-sidebar { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) {
  .layout-sidebar { grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; }
  .sticky-side { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* 4. TIPOGRAFI & JUDUL SECTION ============================================ */
.section-head {
  max-width: 720px;
  margin: 0 auto clamp(2rem, 4vw, 3.25rem);
  text-align: center;
}
.section-head-left { margin-inline: 0; text-align: left; }
.section-head-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  max-width: none;
  text-align: left;
}
.section-head-split > div { max-width: 640px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .75rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before,
.section-head:not(.section-head-left):not(.section-head-split) .eyebrow::after {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: .7;
}

.section-title {
  margin: 0 0 .75rem;
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--color-heading);
}
.section-lead { margin: 0; font-size: var(--fs-md); color: var(--color-text-muted); }
.section-dark .section-title,
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--blue-300); }
.section-dark .section-lead { color: rgba(255, 255, 255, .75); }

.lead { font-size: var(--fs-md); color: var(--color-text-muted); }
.text-gradient {
  background: linear-gradient(120deg, var(--blue-600), var(--sky-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.arabic {
  font-family: var(--font-arabic);
  direction: rtl;
  font-size: 1.75rem;
  line-height: 2;
  color: var(--blue-900);
}

/* 5. KOMPONEN ============================================================= */

/* --- Tombol --- */
.btn {
  --btn-bg: var(--blue-600);
  --btn-color: #fff;
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.35rem;
  min-height: 46px;
  border: 1.5px solid var(--btn-border);
  border-radius: var(--radius-full);
  background: var(--btn-bg);
  color: var(--btn-color);
  font: 600 .9375rem/1.2 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn:hover { color: var(--btn-color); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; }

.btn-primary { box-shadow: var(--shadow-blue); }
.btn-primary:hover { --btn-bg: var(--blue-700); }
.btn-secondary { --btn-bg: var(--blue-100); --btn-color: var(--blue-800); }
.btn-secondary:hover { --btn-bg: var(--blue-200); }
.btn-outline { --btn-bg: transparent; --btn-color: var(--blue-700); --btn-border: var(--blue-200); }
.btn-outline:hover { --btn-bg: var(--blue-50); --btn-border: var(--blue-500); }
.btn-light { --btn-bg: #fff; --btn-color: var(--blue-800); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35); }
.btn-light:hover { --btn-bg: var(--blue-50); }
.btn-outline-light { --btn-bg: transparent; --btn-color: #fff; --btn-border: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { --btn-bg: rgba(255, 255, 255, .12); --btn-border: #fff; }
.btn-ghost { --btn-bg: transparent; --btn-color: var(--gray-700); }
.btn-ghost:hover { --btn-bg: var(--gray-100); --btn-color: var(--blue-700); }
.btn-success { --btn-bg: var(--success-600); }
.btn-success:hover { --btn-bg: var(--success-700); }
.btn-danger { --btn-bg: var(--danger-600); }
.btn-danger:hover { --btn-bg: var(--danger-700); }
.btn-danger-soft { --btn-bg: var(--danger-50); --btn-color: var(--danger-700); }
.btn-danger-soft:hover { --btn-bg: #fee2e2; }

.btn-sm { padding: .45rem .95rem; min-height: 38px; font-size: .875rem; }
.btn-sm .icon { width: 16px; height: 16px; }
.btn-lg { padding: .95rem 1.75rem; min-height: 54px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: 44px; min-height: 44px; height: 44px; }
.btn-icon.btn-sm { width: 36px; height: 36px; min-height: 36px; }

.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; box-shadow: none; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--btn-color);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn-group { display: flex; flex-wrap: wrap; gap: .75rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  color: var(--blue-600);
  text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .7rem;
  border-radius: var(--radius-full);
  background: var(--blue-100);
  color: var(--blue-800);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
}
.badge .icon { width: 13px; height: 13px; }
.badge-solid   { background: var(--blue-600); color: #fff; }
.badge-sky     { background: var(--sky-100); color: #075985; }
.badge-success { background: var(--success-50); color: var(--success-700); }
.badge-warning { background: var(--warning-50); color: var(--warning-700); }
.badge-danger  { background: var(--danger-50); color: var(--danger-700); }
.badge-gray    { background: var(--gray-100); color: var(--gray-700); }
.badge-gold    { background: var(--gold-100); color: #92400e; }
.badge-white   { background: rgba(255, 255, 255, .95); color: var(--blue-800); box-shadow: var(--shadow-xs); }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* --- Chip (filter) --- */
.chip-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--gray-700);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--blue-300); color: var(--blue-700); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.chip-count { padding: 0 .45rem; border-radius: var(--radius-full); background: rgba(13, 31, 63, .07); font-size: .75rem; }
.chip.is-active .chip-count, .chip[aria-pressed="true"] .chip-count { background: rgba(255, 255, 255, .22); }

/* --- Kartu --- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-200); }
.card-flat { box-shadow: none; }
.card-pad { padding: clamp(1.25rem, 3vw, 1.75rem); }

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--blue-100);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-hover:hover .card-media img { transform: scale(1.05); }
.card-media .badge { position: absolute; top: .875rem; left: .875rem; }

.card-body { display: flex; flex: 1; flex-direction: column; gap: .6rem; padding: 1.35rem 1.5rem 1.5rem; }
.card-title { margin: 0; font-size: 1.125rem; line-height: 1.4; }
.card-title a { color: var(--color-heading); text-decoration: none; }
.card-title a:hover { color: var(--blue-600); }
.card-text { margin: 0; font-size: .9375rem; color: var(--color-text-muted); }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  font-size: .8125rem;
  color: var(--color-text-muted);
}
.card-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.card-meta .icon { width: 14px; height: 14px; }
.card-footer { margin-top: auto; padding: 1rem 1.5rem; border-top: 1px solid var(--color-border); }
.card-body > .link-arrow { margin-top: auto; padding-top: .35rem; }

/* Seluruh kartu dapat diklik lewat tautan judulnya. */
.stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* --- Icon box & feature card --- */
.icon-box {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-600);
  transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.icon-box .icon { width: 26px; height: 26px; }
.icon-box-sm { width: 40px; height: 40px; border-radius: 11px; }
.icon-box-sm .icon { width: 20px; height: 20px; }
.icon-box-lg { width: 64px; height: 64px; border-radius: 18px; }
.icon-box-lg .icon { width: 30px; height: 30px; }
.icon-box-solid {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.icon-box-light { background: rgba(255, 255, 255, .12); color: #fff; }

.feature-card { padding: clamp(1.5rem, 3vw, 2rem); gap: 1rem; }
.feature-card h3 { margin: .25rem 0 0; font-size: 1.125rem; }
.feature-card p { margin: 0; color: var(--color-text-muted); font-size: .9375rem; }
.feature-card:hover .icon-box { background: var(--blue-600); color: #fff; transform: rotate(-6deg); }
.feature-card > .badge { align-self: flex-start; margin-top: auto; }

/* --- Avatar --- */
.avatar {
  --size: 48px;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  object-fit: cover;
}
.avatar-initials {
  background: var(--avatar-bg, var(--blue-600));
  color: #fff;
  font-size: calc(var(--size) * .38);
  font-weight: 700;
  letter-spacing: .02em;
  user-select: none;
}
.avatar-sm  { --size: 36px; }
.avatar-lg  { --size: 72px; }
.avatar-xl  { --size: 112px; }
.avatar-2xl { --size: 140px; }
.avatar-ring { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--blue-100); }

/* --- Alert --- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1rem;
  padding: .9rem 1.1rem;
  border: 1px solid;
  border-radius: var(--radius);
  font-size: .9375rem;
}
.alert > .icon { width: 20px; height: 20px; margin-top: 2px; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert ul { margin: .35rem 0 0; padding-left: 1.1rem; }
.alert-info    { background: var(--blue-50);    border-color: var(--blue-200); color: var(--blue-900); }
.alert-info > .icon    { color: var(--blue-600); }
.alert-success { background: var(--success-50); border-color: #bbf7d0;        color: #14532d; }
.alert-success > .icon { color: var(--success-600); }
.alert-warning { background: var(--warning-50); border-color: #fde68a;        color: #713f12; }
.alert-warning > .icon { color: var(--warning-500); }
.alert-error   { background: var(--danger-50);  border-color: #fecaca;        color: #7f1d1d; }
.alert-error > .icon   { color: var(--danger-600); }

/* --- Formulir --- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  margin-bottom: .45rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-800);
}
.form-label .req { margin-left: 2px; color: var(--danger-600); }
.form-label .opt { margin-left: 4px; font-weight: 500; color: var(--color-text-muted); }
.form-control {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
  font-size: .9375rem;
  line-height: 1.5;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-control::placeholder { color: var(--gray-400); }
.form-control:hover { border-color: var(--gray-300); }
.form-control:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47, 122, 229, .15); }
.form-control.is-invalid { border-color: var(--danger-500); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 4px rgba(239, 68, 68, .15); }
.form-control:disabled, .form-control[readonly] { background: var(--gray-50); color: var(--gray-500); }
textarea.form-control { min-height: 140px; resize: vertical; line-height: 1.6; }
select.form-control {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
}
input[type="date"].form-control, input[type="datetime-local"].form-control { min-height: 48px; }
.form-control-sm { min-height: 40px; padding: .5rem .8rem; font-size: .875rem; }
.form-hint { margin: .4rem 0 0; font-size: .8125rem; color: var(--color-text-muted); }
.form-error { margin: .4rem 0 0; font-size: .8125rem; font-weight: 500; color: var(--danger-600); }

.form-row { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 1.25rem; }
@media (min-width: 640px) {
  .form-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.form-check { display: flex; align-items: flex-start; gap: .6rem; font-size: .9375rem; cursor: pointer; }
.form-check input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--blue-600); }
.form-check-inline { display: inline-flex; margin-right: 1.25rem; }

.input-icon { position: relative; }
.input-icon > .icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 18px;
  height: 18px;
  color: var(--gray-400);
  transform: translateY(-50%);
  pointer-events: none;
}
.input-icon > .form-control { padding-left: 2.8rem; }

.file-drop {
  position: relative;
  padding: 1.25rem;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  text-align: center;
  transition: border-color .2s, background-color .2s;
}
.file-drop:hover, .file-drop.is-dragover, .file-drop:focus-within { border-color: var(--blue-400); background: var(--blue-50); }
.file-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop .icon { width: 28px; height: 28px; margin: 0 auto .5rem; color: var(--blue-500); }
.file-drop-title { font-weight: 600; color: var(--color-heading); font-size: .9375rem; }
.file-drop-hint { font-size: .8125rem; color: var(--color-text-muted); }
.file-drop.has-file { border-style: solid; border-color: var(--success-600); background: var(--success-50); }
.file-drop.has-file .icon { color: var(--success-600); }

/* Kolom jebakan anti-spam */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* --- Tabel --- */
.table-wrap {
  /* relative: elemen absolut di dalam tabel (mis. .sr-only) tetap terkurung area gulir */
  position: relative;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
}
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th, .table td { padding: .85rem 1.1rem; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: middle; }
.table thead th {
  background: var(--blue-50);
  color: var(--blue-900);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table-hover tbody tr { transition: background-color .15s; }
.table-hover tbody tr:hover { background: var(--gray-50); }
.table-striped tbody tr:nth-child(even) { background: #fafbfd; }
.table tfoot td { background: var(--gray-50); font-weight: 700; color: var(--color-heading); }
.table .num, .table .text-center { text-align: center; }
.table-compact th, .table-compact td { padding: .6rem .85rem; }

/* --- Tabs --- */
.tab-list {
  display: flex;
  gap: .25rem;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 2rem;
  padding: .3rem;
  overflow-x: auto;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  scrollbar-width: none;
}
.tab-list::-webkit-scrollbar { display: none; }
.tab-list-center { margin-inline: auto; }
.tab-btn {
  padding: .6rem 1.2rem;
  border: 0;
  border-radius: var(--radius-full);
  background: none;
  color: var(--gray-600);
  font: 600 .9rem/1.3 var(--font-sans);
  white-space: nowrap;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.tab-btn:hover { color: var(--blue-700); }
.tab-btn[aria-selected="true"] { background: #fff; color: var(--blue-700); box-shadow: var(--shadow-sm); }
.tab-panel[hidden] { display: none; }
.js .tab-panel { animation: fadeIn .35s var(--ease); }

/* --- Accordion --- */
.accordion { display: flex; flex-direction: column; gap: .75rem; }
.accordion-item {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.accordion-item.is-open { border-color: var(--blue-200); box-shadow: var(--shadow-sm); }
.accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 1.35rem;
  border: 0;
  background: none;
  color: var(--color-heading);
  font: 600 1rem/1.45 var(--font-sans);
  text-align: left;
}
.accordion-btn:hover { color: var(--blue-700); }
.accordion-btn .icon { flex: none; color: var(--blue-600); transition: transform .3s var(--ease); }
.accordion-item.is-open .accordion-btn .icon { transform: rotate(180deg); }
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .35s var(--ease), visibility 0s .35s;
}
.accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .35s var(--ease), visibility 0s;
}
.accordion-panel > div { overflow: hidden; }
.accordion-content { padding: 0 1.35rem 1.25rem; color: var(--color-text-muted); }
.accordion-content > :last-child { margin-bottom: 0; }
.no-js .accordion-panel { grid-template-rows: 1fr; visibility: visible; }

/* --- Paginasi --- */
.pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
.page-link {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 .75rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  color: var(--gray-700);
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, color .2s, background-color .2s;
}
a.page-link:hover { border-color: var(--blue-300); color: var(--blue-700); }
.page-link.is-active { border-color: var(--blue-600); background: var(--blue-600); color: #fff; }
.page-link.is-disabled { opacity: .45; }
.page-link.is-gap { border-color: transparent; background: none; }
.page-link .icon { width: 18px; height: 18px; }

/* --- Breadcrumb --- */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .875rem;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: .4rem; color: rgba(255, 255, 255, .7); }
.breadcrumb li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: .35rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: .6;
}
.breadcrumb a { display: inline-flex; align-items: center; gap: .35rem; color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; font-weight: 600; }
.breadcrumb .icon { width: 15px; height: 15px; }

/* --- Timeline --- */
.timeline { position: relative; margin: 0; padding: 0 0 0 2rem; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 7px;
  width: 2px;
  background: linear-gradient(var(--blue-300), var(--blue-100));
}
.timeline-item { position: relative; padding-bottom: 1.75rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -2rem;
  width: 16px;
  height: 16px;
  border: 3px solid var(--blue-600);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px var(--blue-50);
}
.timeline-date {
  display: inline-block;
  margin-bottom: .4rem;
  padding: .15rem .65rem;
  border-radius: var(--radius-full);
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: .8125rem;
  font-weight: 700;
}
.timeline-title { margin: 0 0 .25rem; font-size: 1.0625rem; }
.timeline-text { margin: 0; font-size: .9375rem; color: var(--color-text-muted); }

/* --- Steps (alur bernomor) --- */
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  counter-increment: step;
  transition: border-color .3s, box-shadow .3s;
}
.step:hover { border-color: var(--blue-200); box-shadow: var(--shadow); }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--blue-100);
}
.step h3 { margin: 1rem 0 .35rem; font-size: 1.0625rem; }
.step p { margin: 0; font-size: .9375rem; color: var(--color-text-muted); }

/* --- Stepper (progres formulir multi-langkah) --- */
.stepper {
  display: flex;
  gap: .25rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: stepper;
}
.stepper-item {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  text-align: center;
  color: var(--gray-500);
  counter-increment: stepper;
}
.stepper-item::before {
  content: counter(stepper);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--gray-200);
  border-radius: 50%;
  background: #fff;
  color: var(--gray-500);
  font-weight: 700;
  transition: background-color .3s, border-color .3s, color .3s, box-shadow .3s;
}
.stepper-item::after {
  content: "";
  position: absolute;
  top: 19px;
  left: calc(50% + 24px);
  right: calc(-50% + 24px);
  height: 2px;
  background: var(--gray-200);
  transition: background-color .3s;
}
.stepper-item:last-child::after { display: none; }
.stepper-item.is-active { color: var(--blue-700); }
.stepper-item.is-active::before { border-color: var(--blue-600); background: var(--blue-600); color: #fff; box-shadow: 0 0 0 5px var(--blue-100); }
.stepper-item.is-done { color: var(--blue-700); }
.stepper-item.is-done::before { content: "\2713"; border-color: var(--blue-600); background: var(--blue-50); color: var(--blue-700); }
.stepper-item.is-done::after { background: var(--blue-600); }
@media (max-width: 639.98px) {
  .stepper-label { display: none; }
  .stepper-item.is-active .stepper-label { display: block; }
}

/* --- Statistik --- */
.stat { padding: 1.5rem 1rem; text-align: center; }
.stat .icon-box { margin: 0 auto 1rem; }
.stat-value {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--blue-700);
  font-variant-numeric: tabular-nums;
}
.stat-label { margin-top: .5rem; font-size: .9375rem; font-weight: 500; color: var(--color-text-muted); }
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.stats-bar .stat + .stat { border-left: 1px solid var(--color-border); }
.stats-bar .stat:nth-child(3) { border-left: 0; }
.stats-bar .stat:nth-child(n+3) { border-top: 1px solid var(--color-border); }
@media (min-width: 768px) {
  .stats-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats-bar .stat:nth-child(3) { border-left: 1px solid var(--color-border); }
  .stats-bar .stat:nth-child(n+3) { border-top: 0; }
}

/* --- Slider (fade) --- */
.slider { position: relative; overflow: hidden; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s var(--ease), visibility 0s .9s;
}
.slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transition: opacity .9s var(--ease), visibility 0s;
}
.slider-dots { display: flex; align-items: center; gap: .5rem; }
.slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .45);
  transition: width .3s var(--ease), background-color .3s;
}
.slider-dot:hover { background: rgba(255, 255, 255, .75); }
.slider-dot.is-active { width: 30px; background: #fff; }
.slider-nav { display: flex; gap: .5rem; }
.slider-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transition: background-color .2s, border-color .2s;
}
.slider-btn:hover { border-color: #fff; background: rgba(255, 255, 255, .22); }
.slider-btn-dark { border-color: var(--color-border); background: #fff; color: var(--blue-700); box-shadow: var(--shadow-sm); }
.slider-btn-dark:hover { border-color: var(--blue-300); background: var(--blue-50); }

/* --- Carousel (geser horizontal) --- */
.carousel-track {
  --item: 85%;
  display: grid;
  grid-auto-columns: var(--item);
  grid-auto-flow: column;
  gap: 1.25rem;
  overflow-x: auto;
  padding: .25rem .25rem 1rem;
  margin: -.25rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
@media (min-width: 640px)  { .carousel-track { --item: calc((100% - 1.25rem) / 2); } }
@media (min-width: 1024px) { .carousel-track { --item: calc((100% - 2.5rem) / 3); } }

/* --- Empty state --- */
.empty-state {
  padding: 3rem 1.5rem;
  border: 1.5px dashed var(--gray-200);
  border-radius: var(--radius-lg);
  background: #fff;
  text-align: center;
  color: var(--color-text-muted);
}
.empty-state .icon-box { margin: 0 auto 1rem; }
.empty-state h3 { margin: 0 0 .35rem; font-size: 1.125rem; }
.empty-state p { margin: 0 auto; max-width: 420px; }

/* --- Prose (isi artikel) --- */
.prose { font-size: 1.0625rem; line-height: 1.8; color: var(--gray-700); }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.6em; font-size: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--blue-600); text-decoration: underline; }
.prose strong { color: var(--gray-900); }
.prose img { border-radius: var(--radius-lg); }
.prose blockquote {
  margin: 1.5em 0;
  padding: 1rem 1.25rem 1rem 1.5rem;
  border-left: 4px solid var(--blue-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--blue-50);
  color: var(--blue-900);
  font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { padding: .6rem .8rem; border: 1px solid var(--color-border); }

/* --- Daftar centang --- */
.list-check { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.list-check li { position: relative; padding-left: 2rem; }
.list-check li::before {
  content: "";
  position: absolute;
  top: .2em;
  left: 0;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a5fd0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.section-dark .list-check li::before { background-color: rgba(255, 255, 255, .15); }

/* --- Peta & video responsif --- */
.embed {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
}
.embed iframe { width: 100%; height: 100%; border: 0; }

/* --- Key-value (identitas) --- */
.kv { display: grid; margin: 0; }
.kv-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .15rem 1.5rem;
  padding: .85rem 0;
  border-bottom: 1px dashed var(--color-border);
}
.kv-row:last-child { border-bottom: 0; }
.kv dt { font-size: .875rem; font-weight: 500; color: var(--color-text-muted); }
.kv dd { margin: 0; font-weight: 600; color: var(--color-heading); }
@media (min-width: 640px) { .kv-row { grid-template-columns: 200px minmax(0, 1fr); } }

/* 6. HEADER & NAVIGASI ==================================================== */
.topbar {
  background: var(--blue-950);
  color: rgba(255, 255, 255, .75);
  font-size: .8125rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
}
.topbar-info, .topbar-right { display: flex; align-items: center; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.topbar-info li, .topbar-right > a { display: inline-flex; align-items: center; gap: .4rem; }
.topbar a { color: inherit; text-decoration: none; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 14px; height: 14px; color: var(--blue-300); }
.topbar-social { display: flex; gap: .15rem; }
.topbar-social a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; }
.topbar-social a:hover { background: rgba(255, 255, 255, .1); }
.topbar-divider { width: 1px; height: 16px; background: rgba(255, 255, 255, .2); }
@media (max-width: 767.98px) { .topbar { display: none; } }
@media (max-width: 1099.98px) { .topbar-hide-md { display: none !important; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
/* Latar blur di pseudo-elemen agar tidak mengganggu panel menu (position: fixed) */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}
.site-header.is-scrolled { border-bottom-color: var(--color-border); box-shadow: 0 6px 24px -12px rgba(13, 31, 63, .18); }

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

.brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: .75rem;
  color: var(--color-heading);
  text-decoration: none;
}
.brand:hover { color: var(--color-heading); }
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.125rem; font-weight: 800; letter-spacing: -.01em; }
.brand-text small { font-size: .72rem; font-weight: 500; letter-spacing: .02em; color: var(--color-text-muted); }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-text small { color: rgba(255, 255, 255, .6); }

.primary-nav { display: flex; align-items: center; gap: 1rem; }
.nav-list { display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.nav-item { position: relative; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .55rem .85rem;
  border: 0;
  border-radius: var(--radius-full);
  background: none;
  color: var(--gray-700);
  font: 600 .9375rem/1.3 var(--font-sans);
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav-link:hover, .nav-item.is-open > .nav-link { color: var(--blue-700); background: var(--blue-50); }
.nav-link.is-active { color: var(--blue-700); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--blue-600);
  transform: translateX(-50%);
}
.nav-link .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.nav-item.is-open > .nav-link .icon { transform: rotate(180deg); }
.nav-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sky-400);
  animation: pulse-dot 2s infinite;
}

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 310px;
  margin: 0;
  padding: .5rem;
  list-style: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
}
.dropdown::before { content: ""; position: absolute; top: -14px; right: 0; left: 0; height: 14px; }
.nav-item.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .2s, transform .25s var(--ease), visibility 0s;
}
.dropdown-link {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .7rem .8rem;
  border-radius: var(--radius);
  color: var(--color-text);
  text-decoration: none;
  transition: background-color .2s;
}
.dropdown-link:hover, .dropdown-link.is-active { background: var(--blue-50); color: var(--color-text); }
.dropdown-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-700);
  transition: background-color .2s, color .2s;
}
.dropdown-icon .icon { width: 19px; height: 19px; }
.dropdown-link:hover .dropdown-icon { background: var(--blue-600); color: #fff; }
.dropdown-link strong { display: block; font-size: .9375rem; font-weight: 600; color: var(--color-heading); }
.dropdown-link small { display: block; font-size: .8125rem; color: var(--color-text-muted); }

.nav-actions { display: flex; align-items: center; gap: .5rem; }
.nav-btn-desc { display: none; font-weight: 500; } /* keterangan nama aplikasi, hanya di menu mobile */
/* Laptop kecil: header diringkas agar tombol E-Learning & RDM tetap muat */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .site-header .brand-text small { display: none; }
  .nav-link { padding-inline: .6rem; }
  .nav-actions .btn-sm { padding-inline: .85rem; }
}

.nav-toggle {
  position: relative;
  z-index: 102;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
}
.nav-toggle-bars { position: relative; width: 20px; height: 14px; }
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--color-heading);
  transition: top .3s var(--ease), transform .3s var(--ease), opacity .2s;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.nav-overlay { display: none; }

@media (max-width: 1023.98px) {
  :root { --header-h: 68px; }
  .brand img { width: 40px; height: 40px; }
  .brand-text strong { font-size: 1.05rem; }
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 101;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: min(360px, 88vw);
    padding: calc(var(--header-h) + .5rem) 1.25rem 1.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    box-shadow: var(--shadow-lg);
    visibility: hidden;
    transform: translateX(100%);
    transition: transform .35s var(--ease), visibility 0s .35s;
  }
  .nav-open .primary-nav { visibility: visible; transform: none; transition: transform .35s var(--ease), visibility 0s; }

  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
    display: block;
    background: rgba(6, 26, 58, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility 0s .3s;
  }
  .nav-open .nav-overlay { opacity: 1; visibility: visible; transition: opacity .3s, visibility 0s; }
  .nav-open { overflow: hidden; }

  .nav-list { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav-link { justify-content: space-between; width: 100%; padding: .8rem .9rem; border-radius: var(--radius); font-size: 1rem; }
  .nav-link.is-active { background: var(--blue-50); }
  .nav-link.is-active::after { display: none; }

  .dropdown {
    position: static;
    display: none;
    min-width: 0;
    padding: .25rem 0 .5rem .5rem;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .dropdown::before { display: none; }
  .nav-item.is-open > .dropdown { display: block; transform: none; }

  .nav-actions { flex-direction: column; align-items: stretch; padding-top: 1rem; border-top: 1px solid var(--color-border); }
  .nav-actions .btn { width: 100%; }
  .nav-actions .nav-btn-desc { display: inline; }
}
@media (max-width: 380px) {
  .brand-text small { display: none; }
}

/* 7. PAGE HERO (judul halaman dalam) ====================================== */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(3.5rem, 8vw, 5.5rem);
  background: linear-gradient(135deg, var(--blue-950) 0%, var(--blue-800) 55%, var(--blue-600) 100%);
  color: #fff;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/pattern.svg") center / 96px;
}
.page-hero::after {
  content: "";
  position: absolute;
  top: -200px;
  right: -160px;
  z-index: -1;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 192, 248, .32), transparent 65%);
}
.page-hero-title { max-width: 860px; margin: 1.1rem 0 .6rem; font-size: var(--fs-4xl); color: #fff; }
.page-hero-lead { max-width: 680px; margin: 0; font-size: var(--fs-md); color: rgba(255, 255, 255, .82); }

/* 8. HERO BERANDA ========================================================= */
.hero { position: relative; background: var(--blue-950); color: #fff; }
.hero .slide { display: flex; align-items: center; min-height: clamp(560px, 86vh, 780px); }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 8s ease-out;
}
.slide.is-active .hero-bg img { transform: scale(1); }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 26, 58, .94) 0%, rgba(10, 42, 94, .78) 45%, rgba(10, 42, 94, .2) 100%),
    linear-gradient(0deg, rgba(6, 26, 58, .6) 0%, transparent 35%);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; padding-block: 5rem 9rem; }
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .95rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .1);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero-label .nav-pulse { background: var(--blue-300); }
.hero-title { margin: 1.25rem 0 1rem; font-size: var(--fs-4xl); line-height: 1.12; letter-spacing: -.025em; color: #fff; }
.hero-text { max-width: 580px; margin: 0 0 2rem; font-size: var(--fs-md); color: rgba(255, 255, 255, .85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero .hero-content > * { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero .slide.is-active .hero-content > * { opacity: 1; transform: none; }
.hero .slide.is-active .hero-content > :nth-child(2) { transition-delay: .12s; }
.hero .slide.is-active .hero-content > :nth-child(3) { transition-delay: .24s; }
.hero .slide.is-active .hero-content > :nth-child(4) { transition-delay: .36s; }
.hero-controls { position: absolute; right: 0; bottom: 6.5rem; left: 0; z-index: 2; }
.hero-controls .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
@media (max-width: 639.98px) {
  .hero-controls .slider-nav { display: none; }
  .hero-content { padding-block: 4rem 8.5rem; }
}

/* 9. FOOTER =============================================================== */
.site-footer {
  position: relative;
  isolation: isolate;
  padding-top: clamp(3.5rem, 6vw, 5rem);
  background: var(--blue-950);
  color: rgba(255, 255, 255, .72);
  font-size: .9375rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/pattern.svg") center / 96px;
  opacity: .7;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.45fr .8fr .9fr 1.25fr; gap: 3rem; } }
.footer-about p { margin: 1.25rem 0 1.5rem; max-width: 360px; }
.footer-title {
  position: relative;
  margin: 0 0 1.25rem;
  padding-bottom: .75rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
}
.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  border-radius: 3px;
  background: var(--blue-400);
}
.footer-list { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.footer-list a { color: rgba(255, 255, 255, .72); text-decoration: none; transition: color .2s, padding-left .2s; }
.footer-list a:hover { padding-left: 4px; color: #fff; }
.footer-contact li { display: flex; gap: .75rem; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--blue-300); }
.footer-contact a { padding-left: 0 !important; }

.social-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.social-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transition: background-color .2s, transform .2s var(--ease);
}
.social-link:hover { background: var(--blue-600); color: #fff; transform: translateY(-2px); }
.social-link .icon { width: 18px; height: 18px; }

.footer-bottom { padding: 1.25rem 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8125rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.footer-bottom p { margin: 0; }
.footer-inline { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.footer-inline a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.footer-inline a:hover { color: #fff; }

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--blue-600);
  color: #fff;
  box-shadow: var(--shadow-blue);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s, background-color .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease), background-color .2s; }
.back-to-top:hover { background: var(--blue-700); }

/* 10. UTILITAS ============================================================ */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted) !important; }
.text-primary { color: var(--blue-600) !important; }
.text-white { color: #fff !important; }
.text-success { color: var(--success-700) !important; }
.text-danger { color: var(--danger-600) !important; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.nowrap { white-space: nowrap; }

.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }   .mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: .25rem !important; }  .mb-1 { margin-bottom: .25rem !important; }
.mt-2 { margin-top: .5rem !important; }   .mb-2 { margin-bottom: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }    .mb-3 { margin-bottom: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }  .mb-4 { margin-bottom: 1.5rem !important; }
.mt-5 { margin-top: 2rem !important; }    .mb-5 { margin-bottom: 2rem !important; }
.mt-6 { margin-top: 3rem !important; }    .mb-6 { margin-bottom: 3rem !important; }

.text-left { text-align: left !important; }
.card-heading { display: flex; align-items: center; gap: .55rem; margin: 0 0 1rem; font-size: 1.05rem; }
.card-heading > .icon { color: var(--blue-600); }
.subheading { margin: 0 0 .75rem; font-size: 1.05rem; }
.section-title-sm { font-size: var(--fs-2xl); }
.eyebrow-light { color: var(--blue-300); }
.grid-tight { --grid-gap: 1rem; }
.grid-loose { --grid-gap: 2rem; }
.mx-auto { margin-inline: auto; }
.object-right { object-position: 78% 50%; }
.max-w-sm { width: 100%; max-width: 420px; }
.max-w-md { max-width: 560px; }
.max-w-lg { max-width: 820px; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem; } .gap-3 { gap: 1rem; } .gap-4 { gap: 1.5rem; }
.flex-1 { flex: 1; min-width: 0; }
.w-100 { width: 100%; }
.rounded { border-radius: var(--radius-lg); }
.shadow { box-shadow: var(--shadow); }
.overflow-hidden { overflow: hidden; }
.divider { height: 1px; margin: 1.5rem 0; background: var(--color-border); border: 0; }

@media (max-width: 639.98px)  { .hide-sm { display: none !important; } }
@media (max-width: 1023.98px) { .hide-md { display: none !important; } }
@media (min-width: 1024px)    { .show-md { display: none !important; } }

/* 11. ANIMASI ============================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal="left"]  { transform: translateX(-32px); }
.js [data-reveal="right"] { transform: translateX(32px); }
.js [data-reveal="zoom"]  { transform: scale(.94); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (max-width: 1023.98px) {
  /* Di layar kecil, animasi dari samping diganti dari bawah agar tidak menggeser lebar halaman */
  .js [data-reveal="left"]:not(.is-visible),
  .js [data-reveal="right"]:not(.is-visible) { transform: translateY(28px); }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(56, 189, 248, .6); }
  70%  { box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* 12. KOMPONEN HALAMAN PUBLIK ============================================= */

/* --- Sub-navigasi anchor (lengket di bawah header) --- */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, .96);
}
.subnav-list {
  display: flex;
  gap: .25rem;
  margin: 0;
  padding: .6rem 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}
.subnav-list::-webkit-scrollbar { display: none; }
.subnav-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border-radius: var(--radius-full);
  color: var(--gray-600);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.subnav-link .icon { width: 16px; height: 16px; }
.subnav-link:hover { background: var(--blue-50); color: var(--blue-700); }
.subnav-link.is-active { background: var(--blue-600); color: #fff; }
.has-subnav [id] { scroll-margin-top: calc(var(--header-h) + 72px); }

.stats-overlap { position: relative; z-index: 3; margin-top: -4.5rem; padding-top: 0; }

/* --- Foto berbingkai (sambutan, sejarah) --- */
.photo-frame { position: relative; isolation: isolate; max-width: 480px; margin-inline: auto; }
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 28px -22px -22px 28px;
  z-index: -1;
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
}
.photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-xl);
  background: var(--blue-100);
  box-shadow: var(--shadow-lg);
}
.photo-frame-wide img { aspect-ratio: 4 / 3; }
.photo-badge {
  position: absolute;
  bottom: 32px;
  left: -18px;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1.15rem;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.photo-badge strong { display: block; font-size: .95rem; color: var(--color-heading); line-height: 1.3; }
.photo-badge small { display: block; font-size: .8rem; color: var(--color-text-muted); }
@media (max-width: 639.98px) {
  .photo-frame::before { inset: 18px -10px -10px 18px; }
  .photo-badge { left: 12px; bottom: 16px; }
}

.signature {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.75rem 0 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.signature strong { display: block; color: var(--color-heading); }
.signature div > span { font-size: .875rem; color: var(--color-text-muted); }
.quote-icon { width: 44px; height: 44px; color: var(--blue-200); }

/* --- Banner CTA (PMB) --- */
.cta-band {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-500) 100%);
  color: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-lg);
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/pattern.svg") center / 96px; }
.cta-band::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 192, 248, .35), transparent 65%);
}
.cta-band h2 { margin: 1rem 0 .6rem; font-size: var(--fs-2xl); color: #fff; }
.cta-band p { max-width: 640px; margin: 0; }
.cta-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; font-size: .9rem; font-weight: 600; }
.cta-meta li { display: inline-flex; align-items: center; gap: .45rem; }
.cta-meta .icon { width: 18px; height: 18px; color: var(--blue-300); }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 960px) {
  .cta-band { grid-template-columns: minmax(0, 1fr) auto; }
  .cta-band-actions { flex-direction: column; }
}

/* --- Berita --- */
.news-layout { display: grid; align-items: start; gap: 1.5rem; }
@media (min-width: 1024px) { .news-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem; } }
.news-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 640px) {
  .news-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-main > .news-card-featured { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
  .news-card-featured { flex-direction: row; }
  .news-card-featured .card-media { flex: 0 0 50%; aspect-ratio: auto; min-height: 300px; }
  .news-card-featured .card-body { justify-content: center; padding: 2rem; }
  .news-card-featured .card-title { font-size: 1.4rem; }
}
.news-card .card-media .badge { z-index: 2; }

.news-compact { display: flex; align-items: center; gap: .9rem; }
.news-compact + .news-compact { margin-top: 1rem; }
.news-compact-thumb { flex: none; width: 76px; height: 60px; overflow: hidden; border-radius: 10px; background: var(--blue-100); }
.news-compact-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-compact-title { margin: 0 0 .25rem; font-size: .9rem; line-height: 1.4; }
.news-compact-title a { color: var(--color-heading); text-decoration: none; }
.news-compact-title a:hover { color: var(--blue-600); }
.news-compact-meta { display: flex; align-items: center; gap: .35rem; margin: 0; font-size: .78rem; color: var(--color-text-muted); }
.news-compact-meta .icon { width: 13px; height: 13px; }

/* --- Widget sidebar --- */
.widget {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.widget + .widget { margin-top: 1.5rem; }
.widget-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.0625rem;
}
.widget-title .icon { color: var(--blue-600); }
.widget-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: rgba(255, 255, 255, .85);
}
.widget-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/pattern.svg") center / 96px; }
.widget-cta h3 { color: #fff; font-size: 1.15rem; margin: .75rem 0 .4rem; }
.widget-cta p { font-size: .9rem; }

.announce-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.announce-item { display: flex; align-items: flex-start; gap: .9rem; }
.announce-item a { display: block; color: var(--color-heading); font-size: .9375rem; font-weight: 600; line-height: 1.45; text-decoration: none; }
.announce-item a:hover { color: var(--blue-600); }
.announce-item small { font-size: .8rem; color: var(--color-text-muted); }
.date-block {
  flex: none;
  width: 56px;
  padding: .45rem 0;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-700);
  line-height: 1.1;
  text-align: center;
}
.date-block strong { display: block; font-size: 1.35rem; font-weight: 800; }
.date-block span { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.category-list { margin: 0; padding: 0; list-style: none; }
.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem .75rem;
  border-radius: var(--radius);
  color: var(--gray-700);
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.category-list a:hover, .category-list a.is-active { background: var(--blue-50); color: var(--blue-700); }
.category-list a.is-active { font-weight: 700; }

.search-form { display: flex; gap: .5rem; }
.search-form .input-icon { flex: 1; min-width: 0; }

/* --- Galeri & lightbox --- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Mosaic (beranda): HP 1 foto lebar + 4 kecil, tablet/desktop 3x3 dengan foto pertama besar */
.gallery-mosaic { grid-auto-rows: 150px; }
.gallery-mosaic .gallery-item { aspect-ratio: auto; }
.gallery-mosaic .gallery-item:first-child { grid-column: span 2; }
.gallery-mosaic .gallery-item:nth-child(n + 6) { display: none; }
@media (min-width: 768px) {
  .gallery-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 200px; }
  .gallery-mosaic .gallery-item:first-child { grid-row: span 2; }
  .gallery-mosaic .gallery-item:nth-child(6) { display: block; }
}
@media (min-width: 1024px) { .gallery-mosaic { grid-auto-rows: 230px; } }
.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--blue-100);
  color: #fff;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  background: linear-gradient(to top, rgba(6, 26, 58, .88), rgba(6, 26, 58, 0) 60%);
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay, .gallery-item:focus-visible .gallery-overlay { opacity: 1; }
.gallery-zoom {
  display: grid;
  place-items: center;
  align-self: flex-end;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
}
.gallery-zoom .icon { width: 18px; height: 18px; }
.gallery-caption strong { display: block; font-size: .95rem; line-height: 1.3; }
.gallery-caption small { font-size: .78rem; opacity: .8; }
@media (hover: none) {
  .gallery-overlay { opacity: 1; background: linear-gradient(to top, rgba(6, 26, 58, .8), rgba(6, 26, 58, 0) 50%); }
  .gallery-zoom { display: none; }
  .gallery-overlay { justify-content: flex-end; }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 4.5rem 1rem;
  background: rgba(4, 12, 28, .92);
  animation: fadeIn .25s var(--ease);
}
.lightbox-figure { display: flex; flex-direction: column; align-items: center; gap: .9rem; max-width: min(1100px, 100%); margin: 0; }
.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 11rem);
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.lightbox-figure figcaption { max-width: 720px; color: rgba(255, 255, 255, .9); font-size: .95rem; text-align: center; }
.lightbox-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transition: background-color .2s;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, .24); }
.lightbox-btn svg { width: 22px; height: 22px; }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { top: 50%; left: 1rem; transform: translateY(-50%); }
.lightbox-next { top: 50%; right: 1rem; transform: translateY(-50%); }
.lightbox-counter { position: absolute; top: 1.6rem; left: 1.25rem; color: rgba(255, 255, 255, .75); font-size: .875rem; font-weight: 600; }
@media (max-width: 639.98px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; transform: none; }
}
.lightbox-open { overflow: hidden; }

/* --- Testimoni --- */
.testimonial { gap: 1.25rem; padding: 1.75rem; }
.testimonial blockquote { margin: 0; color: var(--gray-700); line-height: 1.75; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}
.testimonial-author strong { display: block; font-size: .95rem; color: var(--color-heading); }
.testimonial-author div > span { font-size: .82rem; color: var(--color-text-muted); }

/* --- Tonggak sejarah --- */
.milestones { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .milestones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .milestones { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.milestone {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.milestone:hover { border-color: var(--blue-200); box-shadow: var(--shadow); transform: translateY(-3px); }
.milestone-year {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--blue-600);
}
.milestone-year::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--blue-200), transparent); }
.milestone h3 { margin: 0 0 .35rem; font-size: 1rem; }
.milestone p { margin: 0; font-size: .9rem; color: var(--color-text-muted); }

/* --- Fasilitas --- */
.facility-card .card-media { aspect-ratio: 4 / 3; }
.facility-card .card-body { padding-top: 0; }
.facility-icon { position: relative; z-index: 2; margin-top: -26px; border: 3px solid #fff; }
.facility-card h3 { margin: .35rem 0 0; font-size: 1.05rem; }

/* --- Kartu sorotan (akreditasi, dsb.) --- */
.highlight-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-950));
  color: rgba(255, 255, 255, .82);
  text-align: center;
}
.highlight-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/pattern.svg") center / 96px; }
.highlight-card h3 { color: #fff; }
.highlight-grade {
  margin: .5rem 0 .25rem;
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, #fff, var(--blue-200));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.highlight-card .icon-box { margin: 0 auto; }

/* --- Visi, misi, nilai --- */
.vision-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--blue-50), #fff 65%);
  box-shadow: var(--shadow);
  text-align: center;
}
.vision-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/pattern-blue.svg") center / 96px; }
.vision-card .quote-icon { margin: 0 auto; width: 56px; height: 56px; color: var(--blue-300); }
.vision-text {
  max-width: 880px;
  margin: 1rem auto 0;
  font-size: clamp(1.3rem, 1rem + 1.5vw, 2rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.01em;
  color: var(--blue-900);
}

.numbered-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: num;
}
@media (min-width: 768px) { .numbered-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.numbered-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  counter-increment: num;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.numbered-item::before {
  content: counter(num, decimal-leading-zero);
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
}
.numbered-item:hover { border-color: var(--blue-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.numbered-item p { margin: .55rem 0 0; }

.motto { margin: 0; font-size: clamp(1.4rem, 1rem + 2vw, 2.25rem); font-weight: 800; line-height: 1.3; color: #fff; }
.grid-5 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.value-card {
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .06);
  text-align: center;
  transition: background-color .3s, transform .3s var(--ease);
}
.value-card:hover { background: rgba(255, 255, 255, .1); transform: translateY(-4px); }
.value-card .icon-box { margin: 0 auto; }
.value-card.text-left .icon-box { margin: 0; }
.value-card h3 { margin: 1rem 0 .4rem; font-size: 1.125rem; color: #fff; }
.value-card p { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .72); }
/* Huruf akronim (mis. KAPPAH) sebagai lambang kartu nilai */
.value-letter {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto;
  border-radius: var(--radius);
  background: #fff;
  color: var(--blue-800);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

/* Teks panjang dua kolom (sejarah) */
.prose-columns p { margin: 0 0 1rem; break-inside: avoid; }
@media (min-width: 1024px) { .prose-columns { column-count: 2; column-gap: 3rem; } }

/* --- Kurikulum --- */
.table-curriculum th.jp, .table-curriculum td.jp { width: 92px; text-align: center; }
.table-curriculum .table-group td {
  background: var(--gray-50);
  color: var(--blue-800);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.subject-card { flex-direction: row; align-items: flex-start; gap: 1rem; padding: 1.25rem; }
.subject-card h3 { margin: 0 0 .25rem; font-size: 1rem; }
.subject-card p { margin: 0; font-size: .875rem; color: var(--color-text-muted); }
.subject-card .badge { margin-top: .6rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.tag-cloud li { padding: .5rem 1rem; border: 1px solid var(--blue-200); border-radius: var(--radius-full); background: #fff; color: var(--blue-800); font-size: .875rem; font-weight: 600; }

.ekskul-card { gap: .85rem; padding: 1.5rem; }
.ekskul-head { display: flex; align-items: center; gap: .9rem; }
.ekskul-head h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.ekskul-card > p { margin: 0; font-size: .9rem; color: var(--color-text-muted); }
.ekskul-meta {
  display: grid;
  gap: .4rem;
  margin: auto 0 0;
  padding: .9rem 0 0;
  border-top: 1px dashed var(--color-border);
  list-style: none;
  font-size: .85rem;
  color: var(--color-text-muted);
}
.ekskul-meta li { display: flex; align-items: center; gap: .5rem; }
.ekskul-meta .icon { width: 15px; height: 15px; color: var(--blue-500); }

.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0 0 1.5rem; padding: 0; list-style: none; font-size: .85rem; color: var(--color-text-muted); }
.legend li { display: inline-flex; align-items: center; gap: .45rem; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cal); }
.cal-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.cal-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: .3rem 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--cal);
  border-radius: var(--radius);
  background: #fff;
}
@media (min-width: 640px) { .cal-item { grid-template-columns: 230px minmax(0, 1fr) auto; } }
.cal-date { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 700; color: var(--blue-900); }
.cal-date .icon { width: 16px; height: 16px; color: var(--cal); }
.cal-name { color: var(--color-heading); font-weight: 500; }
.cal-penting  { --cal: var(--blue-600); }
.cal-kegiatan { --cal: var(--sky-500); }
.cal-ujian    { --cal: var(--warning-500); }
.cal-libur    { --cal: var(--danger-500); }

/* --- Profil kepala madrasah --- */
.profile-photo { overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius-xl); background: var(--blue-100); box-shadow: var(--shadow-lg); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-plate {
  position: relative;
  margin: -2.75rem 1.25rem 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}
.profile-plate strong { display: block; color: var(--color-heading); line-height: 1.35; }
.profile-plate span { font-size: .85rem; color: var(--color-text-muted); }
.quote-block {
  position: relative;
  margin: 1.5rem 0;
  padding: 1.35rem 1.5rem 1.35rem 4rem;
  border-radius: var(--radius-lg);
  background: var(--blue-50);
  color: var(--blue-900);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.5;
}
.quote-block .icon { position: absolute; top: 1.35rem; left: 1.25rem; width: 28px; height: 28px; color: var(--blue-400); }
.letter { padding: clamp(1.75rem, 5vw, 3.5rem); }
.letter p { font-size: 1.0625rem; line-height: 1.85; }
.letter .arabic { margin-bottom: 1.5rem; text-align: center; }
.award-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.award-list li { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.15rem; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: #fff; }
.award-list strong { display: block; color: var(--color-heading); font-size: .95rem; }
.award-list div > span { font-size: .82rem; color: var(--color-text-muted); }
.icon-box-gold { background: linear-gradient(135deg, var(--gold-100), #fde68a); color: #b45309; }

/* --- Guru & tendik --- */
.filter-bar {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) { .filter-bar { grid-template-columns: minmax(0, 1fr) 240px auto; align-items: center; } }
.result-info { margin: 0 0 1.25rem; font-size: .9rem; color: var(--color-text-muted); }
.result-info strong { color: var(--color-heading); }

.staff-card { text-align: center; }
.staff-card-top {
  position: relative;
  height: 84px;
  background: url("../img/pattern.svg") center / 96px, linear-gradient(135deg, var(--blue-600), var(--blue-900));
}
.staff-card-pimpinan .staff-card-top { background: url("../img/pattern.svg") center / 96px, linear-gradient(135deg, var(--sky-500), var(--blue-800)); }
.staff-card-tendik .staff-card-top { background: url("../img/pattern.svg") center / 96px, linear-gradient(135deg, var(--blue-400), var(--blue-700)); }
.staff-card .avatar { --size: 104px; position: relative; z-index: 1; margin: -56px auto 0; box-shadow: 0 0 0 5px #fff; }
.staff-card .card-body { align-items: center; gap: .35rem; padding-top: 1rem; }
.staff-name { margin: .25rem 0 0; font-size: 1rem; line-height: 1.35; }
.staff-role { margin: 0; font-size: .85rem; color: var(--color-text-muted); }
.staff-edu { width: 100%; margin: auto 0 0; padding-top: .75rem; border-top: 1px dashed var(--color-border); font-size: .78rem; color: var(--gray-500); }

/* --- Program --- */
.target-card { padding: 2rem 1.5rem; text-align: center; }
.target-label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted); }
.target-juz { margin: .5rem 0; font-size: 2.75rem; font-weight: 800; line-height: 1; color: var(--blue-600); }
.target-card p { margin: 0; font-size: .9rem; color: var(--color-text-muted); }

.method-list { display: grid; gap: .85rem; margin: 0; padding: 0; list-style: none; }
.method-list li { display: flex; gap: .9rem; align-items: flex-start; }
.method-list strong { display: block; color: var(--color-heading); }
.method-list div > span { font-size: .9rem; color: var(--color-text-muted); }

.schedule { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .schedule { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .schedule { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.schedule-item {
  padding: 1.35rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .06);
}
.schedule-time {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .2rem .7rem;
  border-radius: var(--radius-full);
  background: rgba(147, 192, 248, .18);
  color: var(--blue-200);
  font-size: .85rem;
  font-weight: 700;
}
.schedule-time .icon { width: 14px; height: 14px; }
.schedule-item h3 { margin: .8rem 0 .3rem; font-size: 1rem; color: #fff; }
.schedule-item p { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .7); }

.mini-card { flex-direction: row; align-items: center; gap: .9rem; padding: 1rem 1.15rem; }
.mini-card strong { display: block; font-size: .95rem; line-height: 1.3; color: var(--color-heading); }
.mini-card span:not(.icon-box) { font-size: .78rem; color: var(--color-text-muted); }

.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.mini-stat { padding: 1.1rem 1.25rem; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: #fff; }
.mini-stat strong { display: block; font-size: 1.75rem; font-weight: 800; line-height: 1.1; color: var(--blue-700); }
.mini-stat span { font-size: .85rem; color: var(--color-text-muted); }

.achievement { flex-direction: row; align-items: flex-start; gap: 1rem; padding: 1.25rem; }
.achievement h3 { margin: .1rem 0 .25rem; font-size: 1rem; line-height: 1.4; }
.achievement p { margin: 0; font-size: .875rem; color: var(--color-text-muted); }
.achievement-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }

/* --- Artikel berita --- */
.article-hero { padding-bottom: clamp(6.5rem, 12vw, 9rem); }
.article-hero .page-hero-title { font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.75rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.25rem; font-size: .9rem; color: rgba(255, 255, 255, .82); }
.article-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.article-meta .icon { width: 16px; height: 16px; color: var(--blue-300); }
.article-cover {
  position: relative;
  z-index: 2;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-top: calc(-1 * clamp(5rem, 10vw, 7.25rem));
  border-radius: var(--radius-xl);
  background: var(--blue-100);
  box-shadow: var(--shadow-lg);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding-bottom: clamp(3rem, 6vw, 5rem); }
.article-body > .prose:first-child { margin-top: 2.25rem; }
.article-lead { margin: 2.25rem 0 1.5rem; padding-left: 1.25rem; border-left: 4px solid var(--blue-500); font-size: 1.15rem; font-weight: 500; line-height: 1.7; color: var(--gray-800); }
.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.share-label { margin-right: .5rem; font-size: .9rem; font-weight: 700; color: var(--color-heading); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--gray-700);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, color .2s, background-color .2s;
}
.share-btn:hover { border-color: var(--blue-300); background: var(--blue-50); color: var(--blue-700); }
.share-btn .icon { width: 16px; height: 16px; }
.post-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 2rem; }
@media (min-width: 640px) { .post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-nav a {
  display: block;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.post-nav a:hover { border-color: var(--blue-300); box-shadow: var(--shadow-sm); }
.post-nav small {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .35rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.post-nav small .icon { width: 14px; height: 14px; }
.post-nav strong { display: block; font-size: .95rem; line-height: 1.4; color: var(--color-heading); }
.post-nav .post-next { text-align: right; }
.post-nav .post-next small { justify-content: flex-end; }

/* --- Kontak --- */
.contact-card { gap: .5rem; padding: 1.5rem; }
.contact-card-title { margin: .75rem 0 .15rem; font-size: 1rem; }
.contact-card p { margin: 0; font-size: .9rem; color: var(--color-text-muted); }
.contact-card .link-arrow { font-size: .9rem; }
@media (max-width: 639.98px) {
  /* HP: ikon di kiri agar empat kartu tidak terlalu panjang */
  .contact-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; row-gap: .2rem; padding: 1.1rem 1.25rem; }
  .contact-card .icon-box { grid-row: span 3; }
  .contact-card-title { margin: 0; }
  .contact-card .link-arrow { margin-top: .25rem; }
}
.hours-list { margin: 0; padding: 0; list-style: none; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: .9rem;
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list strong { font-weight: 600; color: var(--color-heading); }
.hours-list .is-closed { color: var(--danger-600); font-weight: 600; }

/* 13. PMB ONLINE ========================================================== */
.text-upper { text-transform: uppercase; }
.d-block { display: block; }

/* --- Panel status pendaftaran --- */
.pmb-status-wrap { position: relative; z-index: 3; margin-top: -3rem; padding-top: 0; }
.pmb-status {
  display: grid;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 1024px) { .pmb-status { grid-template-columns: minmax(0, 1.4fr) auto auto; gap: 2.5rem; } }
.pmb-status-stats { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 0; }
.pmb-status-stats dt { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); }
.pmb-status-stats dd { margin: .15rem 0 0; font-size: 1.75rem; font-weight: 800; line-height: 1.1; color: var(--blue-700); }
.pmb-status-stats small { font-size: .85rem; font-weight: 600; color: var(--color-text-muted); }
.pmb-status-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 1024px) { .pmb-status-actions { flex-direction: column; } }

.doc-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.doc-list li { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; }
.doc-list strong { display: block; font-size: .95rem; color: var(--color-heading); }
.doc-list span:not(.icon-box):not(.badge) { display: block; font-size: .82rem; color: var(--color-text-muted); }
.icon-box-ok { background: var(--success-50); color: var(--success-600); }

.wave-card { gap: .5rem; padding: 1.5rem; }
.wave-card h3 { font-size: 1.1rem; }
.wave-card.is-active { border-color: var(--blue-300); box-shadow: 0 0 0 4px var(--blue-100), var(--shadow); }
.wave-date { display: flex; align-items: center; gap: .45rem; margin: .5rem 0 0; font-weight: 600; color: var(--blue-800); }
.wave-date .icon { width: 16px; height: 16px; color: var(--blue-500); }

.bank-info { display: grid; gap: .75rem; margin: 0; }
.bank-info dt { font-size: .78rem; color: rgba(255, 255, 255, .65); }
.bank-info dd { margin: 0; font-weight: 700; color: #fff; }
.bank-number { font-size: 1.5rem; letter-spacing: .06em; }

.contact-person { flex-direction: row; align-items: center; gap: .9rem; padding: 1rem 1.15rem; }
.contact-person strong { display: block; font-size: .95rem; color: var(--color-heading); }
.contact-person span { font-size: .82rem; color: var(--color-text-muted); }

/* --- Formulir multi-langkah --- */
.pmb-form .stepper { margin-bottom: 1.5rem; }
.pmb-form .stepper-item.is-done { cursor: pointer; }
.pmb-form:not(.is-enhanced) .stepper,
.pmb-form:not(.is-enhanced) [data-step-next],
.pmb-form:not(.is-enhanced) [data-step-prev] { display: none; }
.pmb-form:not(.is-enhanced) .form-step + .form-step { margin-top: 1.5rem; }
.pmb-form.is-enhanced .form-step:not(.is-current) { display: none; }
.form-step { margin: 0; border: 1px solid var(--color-border); min-width: 0; }
.js .pmb-form .form-step.is-current { animation: fadeIn .35s var(--ease); }
.form-step-title {
  float: left;
  width: 100%;
  margin: 0 0 1.5rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-heading);
}
.form-step-title + * { clear: left; }
.form-step-title:focus { outline: none; }
.form-step-title small {
  display: block;
  margin-bottom: .2rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.form-subtitle {
  margin: 1.5rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--color-border);
  font-size: 1rem;
  color: var(--blue-800);
}
.form-step-title + .form-subtitle { margin-top: 0; padding-top: 0; border-top: 0; }
.form-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.form-check-box {
  padding: .75rem 1.1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 500;
}
.form-check-box:has(input:checked) { border-color: var(--blue-500); background: var(--blue-50); }

.choice-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
@media (min-width: 640px) { .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice-card { position: relative; display: block; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: .85rem;
  height: 100%;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.choice-body .icon-box { grid-row: span 2; }
.choice-body strong { color: var(--color-heading); font-size: .95rem; }
.choice-body small { font-size: .8rem; line-height: 1.45; color: var(--color-text-muted); }
.choice-card:hover .choice-body { border-color: var(--blue-300); }
.choice-card input:checked + .choice-body { border-color: var(--blue-600); background: var(--blue-50); box-shadow: 0 0 0 3px var(--blue-100); }
.choice-card input:checked + .choice-body .icon-box { background: var(--blue-600); color: #fff; }
.choice-card input:focus-visible + .choice-body { outline: 3px solid var(--blue-400); outline-offset: 2px; }
[aria-invalid="true"] .choice-body, .choice-card input[aria-invalid="true"] + .choice-body { border-color: var(--danger-500); }

.upload-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1.25rem; }
@media (min-width: 640px) { .upload-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.file-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; min-height: 148px; }
.file-drop.is-invalid { border-color: var(--danger-500); background: var(--danger-50); }
.file-drop-preview { display: grid; place-items: center; }
.file-drop-preview img { width: 64px; height: 80px; margin-bottom: .4rem; border-radius: 8px; object-fit: cover; box-shadow: var(--shadow-sm); }
.file-drop-title { word-break: break-all; }

.summary-box { padding: 1.25rem; border: 1px solid var(--blue-100); border-radius: var(--radius-lg); background: var(--blue-50); }
.summary-list { display: grid; gap: 0; margin: 0; }
.summary-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .1rem 1rem;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--blue-200);
  font-size: .9rem;
}
.summary-list > div:last-child { border-bottom: 0; }
.summary-list dt { color: var(--color-text-muted); }
.summary-list dd { margin: 0; font-weight: 600; color: var(--color-heading); }
@media (min-width: 640px) { .summary-list > div { grid-template-columns: 180px minmax(0, 1fr); } }

/* --- Hasil: sukses & cek status --- */
.result-card { padding: clamp(1.5rem, 4vw, 2.75rem); }
.success-mark {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--success-600);
  color: #fff;
  box-shadow: 0 0 0 10px var(--success-50), 0 16px 32px -12px rgba(22, 163, 74, .6);
  animation: pop .6s var(--ease);
}
.success-mark .icon { width: 42px; height: 42px; stroke-width: 3; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: none; opacity: 1; } }
.regno-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  margin: 1.25rem 0 1.5rem;
  padding: 1.25rem 2rem;
  border: 2px dashed var(--blue-300);
  border-radius: var(--radius-lg);
  background: var(--blue-50);
}
.regno-label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-700); }
.regno-value { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.25rem); font-weight: 800; letter-spacing: .04em; color: var(--blue-900); }
.next-steps { display: grid; gap: .85rem; margin: 0; padding-left: 1.25rem; }
.next-steps strong { display: block; color: var(--color-heading); }
.next-steps span { font-size: .9rem; color: var(--color-text-muted); }

.status-form { align-items: end; }
.status-form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }

.result-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--color-border); }
.result-name { margin: .15rem 0; font-size: var(--fs-xl); }
.tracker { margin: 1.75rem 0; }
.stepper-item.is-error { color: var(--danger-600); }
.stepper-item.is-error::before { content: "!"; border-color: var(--danger-500); background: var(--danger-500); color: #fff; box-shadow: 0 0 0 5px var(--danger-50); }

.status-panel { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem; border: 1px solid; border-radius: var(--radius-lg); }
.status-panel h3 { margin: 0 0 .25rem; font-size: 1.1rem; }
.status-panel p { margin: 0; font-size: .95rem; }
.status-note { margin-top: .85rem; padding: .85rem 1rem; border-radius: var(--radius); background: rgba(255, 255, 255, .75); font-size: .92rem; }
.status-menunggu     { border-color: #fde68a; background: var(--warning-50); }
.status-menunggu .icon-box { background: #fef3c7; color: var(--warning-700); }
.status-perbaikan    { border-color: #fecaca; background: var(--danger-50); }
.status-perbaikan .icon-box { background: #fee2e2; color: var(--danger-600); }
.status-diverifikasi { border-color: #bae6fd; background: var(--sky-100); }
.status-diverifikasi .icon-box { background: #fff; color: #0369a1; }
.status-diterima     { border-color: #bbf7d0; background: var(--success-50); }
.status-diterima .icon-box { background: #dcfce7; color: var(--success-700); }
.status-ditolak      { border-color: var(--gray-200); background: var(--gray-50); }
.status-ditolak .icon-box { background: var(--gray-100); color: var(--gray-600); }

/* --- Lembar cetak bukti pendaftaran --- */
.print-page { background: var(--gray-100); }
.print-toolbar { display: flex; justify-content: center; gap: .75rem; padding: 1rem; }
.print-sheet {
  width: 100%;
  max-width: 210mm;
  margin: 0 auto 2rem;
  padding: 14mm 16mm;
  background: #fff;
  box-shadow: var(--shadow);
  color: #111;
  font-size: 10.5pt;
  line-height: 1.5;
}
.kop { display: flex; align-items: center; gap: 1rem; padding-bottom: .75rem; border-bottom: 3px double #0a2a5e; }
.kop img { width: 72px; height: 72px; }
.kop h1 { margin: .1rem 0; font-size: 15pt; letter-spacing: .02em; color: #0a2a5e; }
.kop p { margin: 0; font-size: 8.5pt; color: #333; }
.kop-yayasan { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.print-title { margin: 1.25rem 0 1rem; font-size: 13pt; text-align: center; color: #0a2a5e; }
.print-title small { font-size: 10pt; font-weight: 500; color: #333; }
.print-body { display: flex; align-items: flex-start; gap: 1.25rem; }
.print-main { flex: 1; min-width: 0; }
.print-regno { display: flex; align-items: baseline; gap: .75rem; margin-bottom: .75rem; padding: .5rem .75rem; border: 1.5px solid #0a2a5e; border-radius: 6px; }
.print-regno span { font-size: 9pt; }
.print-regno strong { font-size: 15pt; letter-spacing: .05em; color: #0a2a5e; }
.print-table { width: 100%; border-collapse: collapse; }
.print-table th, .print-table td { padding: .3rem .4rem; border-bottom: 1px solid #ddd; text-align: left; vertical-align: top; }
.print-table th { width: 38%; font-weight: 600; color: #333; }
.print-photo { display: grid; place-items: center; flex: none; width: 30mm; height: 40mm; overflow: hidden; border: 1px solid #999; color: #777; font-size: 8pt; text-align: center; }
.print-photo img { width: 100%; height: 100%; object-fit: cover; }
.print-subtitle { margin: 1rem 0 .4rem; font-size: 10.5pt; color: #0a2a5e; }
.print-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 1rem; margin: 0; padding: 0; list-style: none; }
.print-checklist .box { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-right: .4rem; border: 1px solid #333; font-size: 9pt; line-height: 1; }
.print-notes { margin-top: 1rem; padding: .6rem .8rem; border: 1px solid #ccc; border-radius: 6px; background: #f8fafc; font-size: 9pt; }
.print-notes ol { margin: .25rem 0 0; padding-left: 1.1rem; }
.print-sign { display: flex; justify-content: flex-end; margin-top: 1.25rem; text-align: center; }
.print-sign p { margin: 0; }
.sign-space { height: 52px; }
.print-footer { margin: 1.5rem 0 0; font-size: 7.5pt; text-align: center; color: #777; }
@media (max-width: 639.98px) {
  .print-sheet { padding: 1.25rem; font-size: 10pt; }
  .print-body { flex-direction: column-reverse; align-items: center; }
  .print-checklist { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .topbar, .site-header, .site-footer, .back-to-top, .nav-overlay { display: none !important; }
  @page { size: A4; margin: 0; }
  .print-page { background: #fff; }
  .print-toolbar { display: none !important; }
  .print-sheet { margin: 0; box-shadow: none; max-width: none; }
  .subnav, .share-bar, .post-nav { display: none !important; }
  body { color: #000; }
  .page-hero { padding: 1rem 0; background: none; color: #000; }
  .page-hero-title { color: #000; }
}
