/* ============================================================
   MTs Plus Nururrohmah — design system "Safa"
   Modern Islamic architecture and quiet confidence: ivory,
   charcoal, olive and citron; square joints; Manrope type.
   This file holds the tokens and the base components.
   safa.css loads after the page stylesheets and gives the
   components their Safa layout.
   ============================================================ */

:root {
  color-scheme: light;

  /* ---- Palette ---- */
  --c-primary: #4b5538;        /* olive */
  --c-primary-deep: #20271c;
  --c-primary-soft: #697451;
  --c-accent: #d9e48f;         /* citron — always with dark text */
  --c-accent-soft: #e9efc3;
  --c-on-accent: #20271c;
  --c-base: #f4f3ec;           /* ivory page */
  --c-base-deep: #eae9df;
  --c-paper: #fcfbf6;
  --c-ink: #242920;            /* charcoal */
  --c-ink-soft: #62685b;
  --c-line: #272f2028;
  --c-line-strong: #272f2060;
  --c-on-dark: #faf9ef;
  --c-on-dark-soft: #d3d7c7;
  --c-on-dark-line: #ffffff30;

  /* Quiet tiles: background + the text colour that passes on it. */
  --p1-bg: #e3e6d7; --p1-fg: #414d31;
  --p2-bg: #e9e7dc; --p2-fg: #635d46;
  --p3-bg: #e5eabf; --p3-fg: #48512a;
  --p4-bg: #dde3d6; --p4-fg: #45543b;

  /* Surface */
  --bg: var(--c-base);
  --surface: var(--c-paper);
  --on-surface: var(--c-ink);

  /* ---- Type ---- */
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-arabic: 'Amiri', 'Times New Roman', serif;

  /* ---- Shape: square joints ---- */
  --r-sm: 0px;
  --r-md: 0px;
  --r-lg: 0px;
  --r-xl: 0px;
  --r-pill: 999px;
  --blob: 0px;
  --shadow-soft: none;
  --shadow-lift: 0 12px 32px #20271c10;

  --container: 1400px;
  --gutter: 48px;

  --pattern-strength: 0.5;
  --density: 1;
  /* The one ornament: a fine geometric lattice. */
  --pattern-svg: repeating-conic-gradient(from 45deg, transparent 0deg 80deg, #ffffff1a 80deg 90deg);
}
html[data-pattern="none"] { --pattern-strength: 0; }
html[data-pattern="strong"] { --pattern-strength: 1; }
html[data-density="compact"] { --density: 0.75; }

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--on-surface);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: var(--r-sm); }
[x-cloak] { display: none !important; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--c-ink); color: var(--c-paper);
  padding: 10px 16px; border-radius: var(--r-pill); font-weight: 600;
}
.skip-link:focus { top: 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===== Rich text ===== */
.rich-text {
  width: 100%;
  max-width: 700px;
  line-height: 1.75;
}
.rich-text h2, .rich-text h3, .rich-text h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--c-ink);
  margin: 1.6em 0 0.5em;
}
.rich-text p { margin: 0 0 1em; }
.rich-text a { color: var(--c-primary); text-decoration: underline; text-decoration-color: var(--c-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rich-text ul, .rich-text ol { padding-left: 1.4em; margin: 0 0 1em; }
.rich-text li::marker { color: var(--c-primary); }
.rich-text blockquote {
  margin: 1.6em 0;
  padding: 20px 24px;
  background: var(--p1-bg);
  border-radius: var(--r-lg);
  color: var(--c-ink);
}
.rich-text .responsive-object { max-width: 100%; }

/* ===== Responsive embeds ===== */
.responsive-object { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.responsive-object iframe,
.responsive-object embed,
.responsive-object object {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; border-radius: var(--r-lg);
}

/* ===== Type scale ===== */
.h-display, .h-xl, .h-lg, .h-md {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--c-ink);
  text-wrap: balance;
  margin: 0;
}
.h-display { line-height: 1.02; font-size: clamp(2.6rem, 5.6vw, 4.8rem); }
.h-xl { line-height: 1.06; font-size: clamp(2rem, 3.8vw, 3.1rem); }
.h-lg { line-height: 1.15; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.h-md { line-height: 1.25; font-size: 1.3rem; font-weight: 600; }
.eyebrow {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: 10px;
}
.lede { font-size: 1.18rem; line-height: 1.6; color: var(--c-ink-soft); text-wrap: pretty; }
.arabic { font-family: var(--font-arabic); letter-spacing: 0; }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 880px; }
.section { padding-block: calc(96px * var(--density)); }
.section--tight { padding-block: calc(56px * var(--density)); }
/* A white sheet with rounded top corners that slides over the sky base. */
.section--sheet { background: var(--c-paper); border-radius: var(--r-xl) var(--r-xl) 0 0; }
.section--sheet + .section--sheet { border-radius: 0; }
.grid { display: grid; gap: 24px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 16px; }
.row--between { justify-content: space-between; }
.grid--split { grid-template-columns: 1fr 1.4fr; }
.grid--split > * { min-width: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  border: 2px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .18s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--c-primary); color: var(--c-on-dark); }
.btn--primary:hover { background: var(--c-primary-deep); box-shadow: var(--shadow-soft); }

.btn--accent, .btn--gold { background: var(--c-accent); color: var(--c-on-accent); }
.btn--accent:hover, .btn--gold:hover { background: var(--c-accent-soft); }

.btn--soft { background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-soft); }
.btn--soft:hover { color: var(--c-primary); }

.btn--ghost { background: transparent; color: var(--c-primary); border-color: var(--c-line-strong); }
.btn--ghost:hover { border-color: var(--c-primary); background: var(--c-paper); }

.btn--on-dark, .btn--ghost-light { background: rgba(255, 255, 255, 0.14); color: var(--c-on-dark); }
.btn--on-dark:hover, .btn--ghost-light:hover { background: rgba(255, 255, 255, 0.24); }

/* ===== Header: centered brand, sticky menu pill under it ===== */
.nav-root { display: contents; }   /* lets .nav stick to the page */
.masthead { padding-top: 22px; }
.masthead__inner { display: flex; justify-content: center; align-items: center; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.brand__mark {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--c-paper);
  box-shadow: var(--shadow-soft);
  display: grid; place-items: center;
  padding: 6px;
  flex-shrink: 0;
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-ink);
}
.brand__sub { font-size: 0.85rem; color: var(--c-ink-soft); margin-top: 2px; }
.nav {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 16px var(--gutter) 0;
  pointer-events: none;   /* only the pill takes clicks */
}
.nav__bar {
  pointer-events: auto;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 2px;
  padding: 6px;
  background: var(--c-paper);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-soft);
}
.nav__link {
  padding: 10px 16px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--c-ink);
  border-radius: var(--r-pill);
  transition: color .15s, background .15s;
}
.nav__link:hover { background: var(--c-base); color: var(--c-primary); }
.nav__link[aria-current="page"] { background: var(--c-primary); color: var(--c-on-dark); }
.nav__burger {
  display: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-paper);
  box-shadow: var(--shadow-soft);
  align-items: center; justify-content: center;
  color: var(--c-ink);
  flex-shrink: 0;
}

/* Daftar PPDB floats at the bottom right on every page except PPDB itself. */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 14px 24px;
  background: var(--c-accent); color: var(--c-on-accent);
  border-radius: var(--r-pill);
  font-weight: 600;
  box-shadow: var(--shadow-lift);
  transition: transform .18s ease, background .18s ease;
}
.fab:hover { background: var(--c-accent-soft); transform: translateY(-2px); }
.fab svg { width: 18px; height: 18px; }

/* Mobile menu: bottom sheet */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(23, 50, 58, 0.45);
  display: flex; align-items: flex-end;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.mobile-menu.open { visibility: visible; opacity: 1; transition: opacity .25s ease, visibility 0s; }
.mobile-menu__sheet {
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--c-paper);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 18px 20px 28px;
  transform: translateY(24px);
  transition: transform .25s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open .mobile-menu__sheet { transform: translateY(0); }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mobile-menu__close {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-base);
  display: grid; place-items: center;
}
.mobile-menu__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.mobile-menu__nav a {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--c-base);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}
.mobile-menu__nav a[aria-current="page"] { background: var(--p1-bg); color: var(--p1-fg); }

/* ===== Photo placeholder ===== */
.photo-placeholder {
  width: 100%; height: 100%;
  min-height: 160px;
  background-color: var(--p1-bg);
  display: grid; place-items: center;
  color: var(--p1-fg);
  font-size: 0.9rem; font-weight: 500;
  text-align: center; padding: 16px;
}
.photo-placeholder.light { background-color: var(--c-base-deep); color: var(--c-ink-soft); }

/* ===== Section header ===== */
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head__title { margin: 0; }
.sec-head__intro { color: var(--c-ink-soft); margin-top: 14px; text-wrap: pretty; }
.sec-head__intro p { margin: 0; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--row {
  max-width: none;
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: flex-end;
  gap: 20px 40px;
}
.sec-head--row > div:first-child { max-width: 680px; }
.sec-head--row > .sec-head__intro { margin: 0; }

/* ===== Hero: centered text over a wide photo band ===== */
.hero { position: relative; padding-block: clamp(40px, 6vw, 80px) clamp(56px, 6vw, 88px); }
.hero__text { max-width: 880px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__eyebrow {
  display: inline-block;
  background: var(--c-paper);
  color: var(--c-primary);
  font-size: 0.92rem; font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  margin-bottom: 22px;
  box-shadow: var(--shadow-soft);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  color: var(--c-ink);
  margin: 0 0 22px;
  text-wrap: balance;
}
.hero__title p { margin: 0; }
.hero__title em, .hero__title i {
  font-style: normal;
  color: var(--c-primary);
  background: linear-gradient(transparent 62%, var(--c-accent-soft) 62%);
  border-radius: 4px;
}
.hero__sub { font-size: 1.15rem; line-height: 1.65; color: var(--c-ink-soft); max-width: 38em; margin: 0 0 30px; text-wrap: pretty; }
.hero__sub p { margin: 0; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.hero__visual { position: relative; margin-top: clamp(40px, 5vw, 64px); }
.hero__band {
  aspect-ratio: 16 / 7;
  border-radius: 120px 120px var(--r-xl) var(--r-xl);
  overflow: hidden;
  background: var(--p1-bg);
}
.hero__band img { width: 100%; height: 100%; object-fit: cover; }
.hero__card {
  position: absolute; right: clamp(16px, 4vw, 48px); top: -28px;
  background: var(--c-paper);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-lift);
  display: flex; flex-direction: column; gap: 2px;
}
.hero__card-label { font-size: 0.82rem; color: var(--c-ink-soft); }
.hero__card-title { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: var(--c-ink); }
.hero__card-badge {
  margin-top: 8px; align-self: flex-start;
  background: var(--c-accent); color: var(--c-on-accent);
  font-size: 0.82rem; font-weight: 600;
  padding: 4px 12px; border-radius: var(--r-pill);
}
.hero__meta {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%);
  list-style: none; padding: 8px; margin: 0;
  display: flex; gap: 8px;
  background: var(--c-paper);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lift);
  white-space: nowrap;
}
.hero__meta li {
  border-radius: var(--r-pill);
  padding: 4px 16px 4px 4px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.92rem; color: var(--c-ink-soft);
}
.hero__meta strong {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem;
  min-width: 40px; height: 40px; padding: 0 10px;
  border-radius: var(--r-pill);
  display: inline-grid; place-items: center;
  background: var(--p1-bg); color: var(--p1-fg);
}

/* ===== Sekilas: bento ===== */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.bento__intro {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--c-paper);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.bento__text { color: var(--c-ink-soft); margin-top: 12px; }
.bento__text p { margin: 0; }
.bento__stat {
  border-radius: var(--r-xl);
  padding: 26px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  background: var(--p1-bg); color: var(--p1-fg);
  min-height: 170px;
}
.bento__stat:nth-child(3) { background: var(--p2-bg); color: var(--p2-fg); }
.bento__stat:nth-child(4) { background: var(--p3-bg); color: var(--p3-fg); }
.bento__stat:nth-child(5) { background: var(--p4-bg); color: var(--p4-fg); }
.bento__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  line-height: 1;
}
.bento__num small { font-size: 0.5em; margin-left: 2px; }
.bento__lbl { font-weight: 500; }

/* ===== Sambutan: speech bubble ===== */
.sambutan { margin: 0; display: flex; flex-direction: column; align-items: center; }
.sambutan__bubble {
  position: relative;
  margin: 0;
  background: var(--c-paper);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 48px);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.4;
  color: var(--c-ink);
  text-align: center;
  box-shadow: var(--shadow-soft);
  text-wrap: pretty;
}
.sambutan__bubble p { margin: 0; }
.sambutan__bubble::after {
  content: '';
  position: absolute; left: 50%; bottom: -14px;
  width: 30px; height: 30px;
  background: var(--c-paper);
  border-radius: 6px;
  transform: translateX(-50%) rotate(45deg);
}
.sambutan__who { margin-top: 32px; display: flex; align-items: center; gap: 14px; text-align: left; }
.sambutan__portrait {
  width: 72px; height: 72px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: var(--p2-bg);
  border: 4px solid var(--c-paper);
}
.sambutan__portrait img { width: 100%; height: 100%; object-fit: cover; }
.sambutan__name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.sambutan__role { display: block; font-size: 0.9rem; color: var(--c-ink-soft); }
.sambutan__more { margin-top: 28px; text-align: center; }
.sambutan__more summary {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 10px 20px; border-radius: var(--r-pill);
  background: var(--c-paper); color: var(--c-primary);
  font-weight: 600; cursor: pointer; list-style: none;
}
.sambutan__more summary::-webkit-details-marker { display: none; }
.sambutan__more[open] summary { margin-bottom: 20px; }
.sambutan__more .rich-text { margin: 0 auto; text-align: left; color: var(--c-ink-soft); }

/* ===== Programs: pastel cards ===== */
.programs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.program {
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex; flex-direction: column;
  background: var(--p1-bg);
  min-height: 260px;
  transition: transform .2s ease;
}
.program:hover { transform: translateY(-4px); }
.program:nth-child(4n+2) { background: var(--p2-bg); }
.program:nth-child(4n+3) { background: var(--p3-bg); }
.program:nth-child(4n+4) { background: var(--p4-bg); }
.program--featured { grid-column: span 2; background: var(--c-primary) !important; color: var(--c-on-dark); }
.program__top { display: flex; justify-content: space-between; align-items: center; }
.program__icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--c-paper); color: var(--c-ink);
  display: grid; place-items: center;
}
.program__icon svg { width: 24px; height: 24px; }
.program__num { font-family: var(--font-display); font-weight: 600; color: var(--c-ink-soft); }
.program__title { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; line-height: 1.15; margin: 22px 0 8px; color: var(--c-ink); }
.program__desc { color: var(--c-ink-soft); margin: 0; }
.program__desc p { margin: 0; }
.program--featured .program__num,
.program--featured .program__title { color: var(--c-on-dark); }
.program--featured .program__desc { color: var(--c-on-dark-soft); }
.program__meta { margin-top: auto; padding-top: 20px; display: flex; gap: 6px; flex-wrap: wrap; font-size: 0.85rem; }
.program__meta span { background: rgba(255, 255, 255, 0.7); color: var(--c-ink); padding: 4px 12px; border-radius: var(--r-pill); font-weight: 500; }
.program--featured .program__meta span { background: rgba(255, 255, 255, 0.16); color: var(--c-on-dark); }

/* ===== Fasilitas: sideways rail ===== */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 340px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 16px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  scrollbar-width: thin;
}
.rail__item { margin: 0; scroll-snap-align: start; }
.rail__img { aspect-ratio: 4 / 3; border-radius: var(--r-xl); overflow: hidden; background: var(--p1-bg); }
.rail__item:nth-child(4n+2) .rail__img { background: var(--p2-bg); }
.rail__item:nth-child(4n+3) .rail__img { background: var(--p3-bg); }
.rail__item:nth-child(4n+4) .rail__img { background: var(--p4-bg); }
.rail__img img { width: 100%; height: 100%; object-fit: cover; }
.rail__item figcaption { padding: 14px 6px 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.rail__label { font-size: 0.82rem; font-weight: 600; background: var(--p1-bg); color: var(--p1-fg); padding: 3px 12px; border-radius: var(--r-pill); }
.rail__name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; }

/* ===== Carousel ===== */
.carousel {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--p1-bg);
  outline: none;
}
.carousel:focus-visible { box-shadow: 0 0 0 4px var(--c-accent); }
.carousel__viewport { position: relative; aspect-ratio: 16 / 9; }
.carousel__slide { position: absolute; inset: 0; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel__slide--enter { animation: carousel-fade 0.6s ease both; }
@keyframes carousel-fade { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: scale(1); } }
.carousel__overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.carousel__content {
  flex: 0 1 560px;
  margin: 0 0 clamp(48px, 5vw, 64px) clamp(16px, 4vw, 40px);
  padding: clamp(16px, 2.4vw, 26px);
  background: var(--c-paper);
  color: var(--c-ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
}
.carousel__eyebrow { font-size: 0.88rem; font-weight: 600; color: var(--c-primary); margin-bottom: 6px; }
.carousel__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.8vw, 2rem); line-height: 1.15; margin: 0 0 8px; }
.carousel__caption { color: var(--c-ink-soft); text-wrap: pretty; }
.carousel__caption p:last-child { margin-bottom: 0; }
.carousel__cta { margin-top: 16px; }
.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%;
  color: var(--c-ink);
  background: var(--c-paper);
  box-shadow: var(--shadow-soft);
  transition: background 0.2s ease;
}
.carousel__arrow:hover { background: var(--c-accent); color: var(--c-on-accent); }
.carousel__arrow--prev { left: 16px; }
.carousel__arrow--next { right: 16px; }
.carousel__dots {
  position: absolute; left: 0; right: 0; bottom: 18px;
  display: flex; justify-content: center; gap: 8px; z-index: 2;
}
.carousel__dot {
  width: 10px; height: 10px; padding: 0; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.7);
  transition: width .2s ease, background .2s ease;
}
.carousel__dot.is-active { width: 28px; background: var(--c-paper); }

/* ===== PPDB banner ===== */
.ppdb {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 56px);
  background: var(--c-primary);
  color: var(--c-on-dark);
  overflow: hidden;
  isolation: isolate;
}
.ppdb::before {
  content: '';
  position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background-image: var(--pattern-svg);
  background-size: 18px 18px;
  opacity: var(--pattern-strength);
  z-index: -1;
}
.ppdb { text-align: center; display: flex; flex-direction: column; align-items: center; }
.ppdb__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--p3-bg); color: var(--p3-fg);
  padding: 6px 14px; border-radius: var(--r-pill);
  font-size: 0.9rem; font-weight: 600;
  margin-bottom: 18px;
}
.ppdb__badge svg { width: 16px; height: 16px; }
.ppdb__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
  margin: 0 0 14px;
  text-wrap: balance;
}
.ppdb__title p, .ppdb__sub p { margin: 0; }
.ppdb__title em, .ppdb__title i { font-style: normal; color: var(--c-accent-soft); }
.ppdb__title { max-width: 18em; }
.ppdb__sub { color: var(--c-on-dark-soft); max-width: 34em; text-wrap: pretty; }
.ppdb__ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.ppdb__count { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.ppdb__count-cell {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--c-paper); color: var(--c-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ppdb__count-num { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ppdb__count-lbl { font-size: 0.75rem; color: var(--c-ink-soft); margin-top: 4px; }
.ppdb__steps {
  width: 100%; text-align: left;
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.ppdb__step {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.ppdb__step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-paper); color: var(--c-primary-deep);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
  margin-bottom: 8px;
}
.ppdb__step strong { font-weight: 600; }
.ppdb__step span:last-child { font-size: 0.9rem; color: var(--c-on-dark-soft); }

/* ===== Kontak strip + tiles ===== */
.kontak-strip { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; align-items: stretch; }
.kontak-strip__cta {
  order: 2;
  background: var(--p2-bg);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 44px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.kontak-strip__cta .eyebrow { color: var(--p2-fg); margin: 0; }
.kontak-strip__intro { color: var(--c-ink-soft); }
.kontak-strip__intro p { margin: 0; }
.kontak-strip__cta .btn { margin-top: auto; }
.kontak__info { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kontak__row {
  background: var(--c-paper);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.kontak__row-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--p1-bg); color: var(--p1-fg);
  display: grid; place-items: center;
}
.kontak__row:nth-child(2) .kontak__row-icon { background: var(--p2-bg); color: var(--p2-fg); }
.kontak__row:nth-child(3) .kontak__row-icon { background: var(--p4-bg); color: var(--p4-fg); }
.kontak__row:nth-child(4) .kontak__row-icon { background: var(--p3-bg); color: var(--p3-fg); }
.kontak__row-icon svg { width: 22px; height: 22px; }
.kontak__row-lbl { font-size: 0.88rem; color: var(--c-ink-soft); font-weight: 500; }
.kontak__row-val { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--c-ink); margin-top: 2px; line-height: 1.35; overflow-wrap: anywhere; }
.kontak__row-val--small { font-family: var(--font-body); font-weight: 500; font-size: 0.95rem; }
.kontak__row-val a:hover { color: var(--c-primary); }

/* Kontak page: tiles on the left, form on the right */
.kontak { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.kontak__map {
  position: relative;
  min-height: 320px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background-color: var(--p1-bg);
  background-image: radial-gradient(circle, rgba(15, 107, 99, 0.18) 1.6px, transparent 1.8px);
  background-size: 22px 22px;
}
.kontak__pin { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.kontak__pin-dot {
  width: 40px; height: 40px;
  background: var(--c-accent);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: grid; place-items: center;
}
.kontak__pin-dot::after { content: ''; width: 12px; height: 12px; background: var(--c-paper); border-radius: 50%; }
.kontak__pin-label { background: var(--c-paper); padding: 6px 14px; border-radius: var(--r-pill); font-size: 0.88rem; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-soft); }
.kontak-form { order: -1; background: var(--surface); border-radius: var(--r-xl); padding: 36px; box-shadow: var(--shadow-soft); }

/* ===== Alumni strip (home) ===== */
.alumni-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.alumni-strip__card {
  background: var(--c-paper);
  border-radius: var(--r-xl);
  padding: 26px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.alumni-strip__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.alumni-strip__img {
  width: 104px; height: 104px; border-radius: 50%;
  overflow: hidden; margin-bottom: 12px;
  background: var(--p2-bg);
}
.alumni-strip__card:nth-child(even) .alumni-strip__img { background: var(--p4-bg); }
.alumni-strip__img img { width: 100%; height: 100%; object-fit: cover; }
.alumni-strip__name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.alumni-strip__headline { font-size: 0.88rem; color: var(--c-ink-soft); }
.alumni-strip__meta {
  margin-top: 8px; font-size: 0.8rem; font-weight: 600;
  background: var(--p1-bg); color: var(--p1-fg);
  padding: 3px 12px; border-radius: var(--r-pill);
}

/* ===== Footer: centered ===== */
.footer {
  background: var(--c-ink);
  color: var(--c-on-dark);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  margin-top: 24px;
  text-align: center;
  padding-bottom: 88px;   /* room for the floating PPDB button */
}
.footer__about { padding-top: 64px; display: flex; flex-direction: column; align-items: center; }
.footer__desc { color: var(--c-on-dark-soft); font-size: 0.98rem; max-width: 34em; margin: 0 0 22px; }
.footer__desc em { font-style: normal; color: var(--c-accent-soft); font-weight: 600; }
.footer__links {
  margin: 40px auto 0;
  padding: 10px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px;
  max-width: 980px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--r-xl);
}
.footer__links a { padding: 8px 14px; border-radius: var(--r-pill); color: var(--c-on-dark-soft); font-size: 0.95rem; transition: color .15s, background .15s; }
.footer__links a:hover { color: var(--c-on-dark); background: rgba(255, 255, 255, 0.1); }
.footer__address { margin: 32px auto 0; font-style: normal; color: var(--c-on-dark-soft); font-size: 0.95rem; line-height: 1.8; }
.footer__address a:hover { color: var(--c-accent-soft); }
.footer__email { overflow-wrap: anywhere; }
.footer__bottom {
  margin-top: 36px;
  border-top: 1px solid var(--c-on-dark-line);
  padding-top: 22px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.88rem; color: var(--c-on-dark-soft);
}
.footer__bottom .arabic { color: var(--c-accent-soft); font-size: 1.4rem; }

/* ===== Page header (inner pages): a rounded panel ===== */
.page-head { padding-top: 24px; }
.page-head__panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--p1-bg);
  border-radius: var(--r-xl);
  padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px);
}
.page-head__panel { text-align: center; }
.page-head__inner { position: relative; max-width: 820px; margin: 0 auto; }
.page-head__crumb {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 0.88rem; font-weight: 500;
  background: var(--c-paper);
  padding: 6px 14px; border-radius: var(--r-pill);
  margin-bottom: 18px;
  color: var(--c-ink-soft);
}
.page-head__crumb a:hover { color: var(--c-primary); }
.page-head__crumb .sep { opacity: 0.6; }
.page-head__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.04;
  margin: 0 0 14px;
  color: var(--c-ink);
  text-wrap: balance;
}
.page-head__sub { font-size: 1.12rem; color: var(--c-ink-soft); max-width: 36em; margin: 0 auto; text-wrap: pretty; }
.page-head__sub p { margin: 0; }

/* ===== Profil ===== */
.visi-card {
  background: var(--c-primary);
  color: var(--c-on-dark);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
}
.visi-card .label {
  display: inline-block;
  background: var(--c-accent); color: var(--c-on-accent);
  font-weight: 600; font-size: 0.9rem;
  padding: 4px 14px; border-radius: var(--r-pill);
  margin-bottom: 16px;
}
.visi-card .text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  line-height: 1.3;
  max-width: 30em; margin: 0 auto;
  text-wrap: balance;
}
.visi-card .text p { margin: 0; }
.misi-head { margin: 48px 0 20px; }
.misi-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.misi-list li {
  background: var(--c-paper);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  display: flex; gap: 16px; align-items: flex-start;
}
.misi-num {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--p2-bg); color: var(--p2-fg);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
}
.misi-list li:nth-child(4n+2) .misi-num { background: var(--p1-bg); color: var(--p1-fg); }
.misi-list li:nth-child(4n+3) .misi-num { background: var(--p3-bg); color: var(--p3-fg); }
.misi-list li:nth-child(4n+4) .misi-num { background: var(--p4-bg); color: var(--p4-fg); }
.misi-text { padding-top: 7px; }

/* Sejarah: cards on the left, sticky photo on the right */
.sejarah { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.sejarah__photo {
  position: sticky; top: 110px;
  aspect-ratio: 4 / 5;
  border-radius: var(--blob);
  overflow: hidden;
  background: var(--p2-bg);
}
.sejarah__photo img { width: 100%; height: 100%; object-fit: cover; }
.sejarah__photo .photo-placeholder { background: transparent; color: var(--p2-fg); }
.timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.timeline__item {
  background: var(--c-base);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
}
.timeline__year {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  background: var(--c-paper); color: var(--c-primary);
  padding: 6px 14px; border-radius: var(--r-pill);
  white-space: nowrap;
}
.timeline__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: 4px; }
.timeline__body { color: var(--c-ink-soft); font-size: 0.98rem; }
.timeline__body p { margin: 0; }

/* Struktur */
.struktur { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.person {
  background: var(--c-paper);
  border-radius: var(--r-xl);
  padding: 28px 18px;
  text-align: center;
}
.person__photo {
  display: block;
  width: 112px; height: 112px;
  border-radius: 50%;
  margin: 0 auto 16px;
  object-fit: cover;
  background: var(--p4-bg);
  border: 5px solid var(--c-base);
}
.person:nth-child(even) .person__photo { background: var(--p2-bg); }
.person__name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; }
.person__role { font-size: 0.9rem; color: var(--c-ink-soft); margin-top: 4px; }

/* ===== Akademik ===== */
.kurikulum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kurikulum__col { border-radius: var(--r-xl); padding: 28px; background: var(--p1-bg); }
.kurikulum__col:nth-child(3n+2) { background: var(--p2-bg); }
.kurikulum__col:nth-child(3n+3) { background: var(--p4-bg); }
.kurikulum__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.kurikulum__icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-paper); color: var(--c-ink);
  display: grid; place-items: center; flex-shrink: 0;
}
.kurikulum__name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin: 0; }
.kurikulum__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.kurikulum__list li { display: flex; gap: 10px; align-items: flex-start; }
.kurikulum__list svg { margin-top: 6px; flex-shrink: 0; color: var(--c-primary); }

.eskul { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 980px; }
.eskul__item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 8px;
  border-radius: var(--r-pill);
  background: var(--c-base);
}
.eskul__icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--p1-bg); color: var(--p1-fg);
  display: grid; place-items: center; flex-shrink: 0;
}
.eskul__item:nth-child(4n+2) .eskul__icon { background: var(--p2-bg); color: var(--p2-fg); }
.eskul__item:nth-child(4n+3) .eskul__icon { background: var(--p3-bg); color: var(--p3-fg); }
.eskul__item:nth-child(4n+4) .eskul__icon { background: var(--p4-bg); color: var(--p4-fg); }
.eskul__icon svg { width: 20px; height: 20px; }
.eskul__name { font-weight: 600; }
.eskul__cat { font-size: 0.82rem; color: var(--c-ink-soft); }
.eskul__cat::before { content: '· '; }

/* Jadwal: a vertical path */
.jadwal-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.jadwal-wrap__head { position: sticky; top: 110px; }
.jadwal { list-style: none; padding: 0; margin: 0; position: relative; }
.jadwal::before {
  content: ''; position: absolute; left: 50px; top: 24px; bottom: 24px;
  border-left: 3px dashed var(--c-line-strong);
}
.jadwal__row { position: relative; display: grid; grid-template-columns: 100px 1fr; gap: 18px; align-items: center; padding-block: 7px; }
.jadwal__time {
  position: relative; z-index: 1;
  justify-self: center;
  font-family: var(--font-display); font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: var(--c-primary); color: var(--c-on-dark);
  padding: 6px 12px; border-radius: var(--r-pill);
  white-space: nowrap;
}
.jadwal__act { background: var(--c-paper); border-radius: var(--r-lg); padding: 16px 20px; }
.jadwal__act-name { font-weight: 600; }
.jadwal__act-meta { font-size: 0.9rem; color: var(--c-ink-soft); }

/* ===== PPDB page ===== */
.alur {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  position: relative;
}
.alur::before {
  content: ''; position: absolute; left: 8%; right: 8%; top: 36px;
  border-top: 3px dashed var(--c-line-strong);
}
.alur__step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.alur__step-num {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--c-paper); color: var(--c-primary);
  border: 4px solid var(--c-base);
  box-shadow: var(--shadow-soft);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem;
  margin-bottom: 6px;
}
.alur__step:last-child .alur__step-num { background: var(--c-accent); color: var(--c-on-accent); }
.alur__step-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.alur__step-desc { font-size: 0.92rem; color: var(--c-ink-soft); }

.syarat-form { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.syarat-form__main .h-lg { margin-bottom: 22px; }
.syarat { position: sticky; top: 110px; background: var(--p3-bg); border-radius: var(--r-xl); padding: 30px; }
.syarat .eyebrow { color: var(--p3-fg); }
.syarat .h-md { margin-bottom: 18px; }
.syarat__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.syarat__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }
.syarat__check {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--c-paper); color: var(--p3-fg);
  display: grid; place-items: center;
}

/* PPDB form */
.formulir { background: var(--c-base); border-radius: var(--r-xl); padding: 32px; }
/* Stepper: a numbered circle per step, the label under it, a line joining them. */
.formulir__steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 2px dashed var(--c-line);
}
.formulir__step-pill {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 0;
  padding: 0 2px;
  text-align: center;
  cursor: default;
}
/* The line from the previous step's circle to this one. */
.formulir__step-pill:not(:first-of-type)::before {
  content: '';
  position: absolute; top: 21px; right: 50%;
  width: 100%; height: 3px;
  border-radius: var(--r-pill);
  background: var(--c-line-strong);
}
.formulir__step-pill.done::before,
.formulir__step-pill.active::before { background: var(--c-primary); }
.formulir__step-num {
  position: relative; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-paper); color: var(--c-ink-soft);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  font-variant-numeric: tabular-nums;
  transition: background .15s, color .15s, box-shadow .15s;
}
.formulir__step-lbl { font-size: 0.82rem; font-weight: 500; line-height: 1.25; color: var(--c-ink-soft); }
.formulir__step-pill.active .formulir__step-num { background: var(--c-primary); color: var(--c-on-dark); box-shadow: 0 0 0 5px rgba(15, 107, 99, 0.16); }
.formulir__step-pill.active .formulir__step-lbl { color: var(--c-ink); font-weight: 600; }
.formulir__step-pill.done { cursor: pointer; }
.formulir__step-pill.done .formulir__step-num { background: var(--p1-bg); color: var(--p1-fg); }
.formulir__step-pill.done:hover .formulir__step-num { background: var(--c-primary); color: var(--c-on-dark); }
.formulir__step-pill.done .formulir__step-lbl { color: var(--p1-fg); }
.formulir__step-pill:disabled { opacity: 1; }
.formulir__error { color: #a3261b; font-size: 0.9rem; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.92rem; font-weight: 500; color: var(--c-ink); }
.field input, .field select, .field textarea {
  font: inherit;
  min-height: 48px;
  padding: 12px 16px;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  background: var(--c-paper);
  color: var(--c-ink);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(15, 107, 99, 0.16);
}
.kontak-form .field input, .kontak-form .field select, .kontak-form .field textarea { background: var(--c-base); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.formulir__actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }

/* ===== Berita ===== */
.berita-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.berita-feature {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1.2fr 1fr;
  background: var(--surface);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: box-shadow .2s;
}
.berita-feature:hover { box-shadow: var(--shadow-lift); }
.berita-feature__img { background: var(--p1-bg); min-height: 280px; }
.berita-feature__img img { width: 100%; height: 100%; object-fit: cover; }
.berita-feature__body { padding: clamp(24px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.berita-feature__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.12; margin: 0; }
.berita-feature__title a:hover { color: var(--c-primary); }
.berita-feature__excerpt { color: var(--c-ink-soft); margin: 0; }
.berita-feature__meta { margin-top: auto; display: flex; gap: 8px; font-size: 0.88rem; color: var(--c-ink-soft); }

.berita-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 10px 10px 0;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.berita-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.berita-card__img { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--p1-bg); }
.berita-card:nth-child(3n) .berita-card__img { background: var(--p2-bg); }
.berita-card:nth-child(3n+1) .berita-card__img { background: var(--p4-bg); }
.berita-card__img img { width: 100%; height: 100%; object-fit: cover; }
.berita-card__body { padding: 16px 12px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.berita-card__cat {
  align-self: flex-start;
  font-size: 0.8rem; font-weight: 600;
  color: var(--p2-fg);
  background: var(--p2-bg);
  padding: 3px 12px;
  border-radius: var(--r-pill);
}
.berita-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; margin: 0; transition: color .15s; }
.berita-card:hover .berita-card__title { color: var(--c-primary); }
.berita-card__meta { font-size: 0.85rem; color: var(--c-ink-soft); margin-top: auto; }

.berita-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.berita-filters {
  position: sticky; top: 100px;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--c-paper);
  border-radius: var(--r-lg);
  padding: 10px;
}
.berita-filters .berita-filter { text-align: left; background: transparent; }
.berita-filters .berita-filter.active { background: var(--c-primary); }
.berita-filter {
  min-height: 44px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: var(--c-paper);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--c-ink-soft);
  transition: color .15s, background .15s;
}
.berita-filter:hover { color: var(--c-primary); }
.berita-filter.active { background: var(--c-primary); color: var(--c-on-dark); }

.berita-pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 44px; }
.berita-page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--c-paper);
  font-size: 0.95rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--c-ink-soft);
  transition: color .15s, background .15s;
}
.berita-page-link:hover { color: var(--c-primary); }
.berita-page-link.active { background: var(--c-primary); color: var(--c-on-dark); pointer-events: none; }
.berita-page-link--nav { color: var(--c-ink); padding: 0 18px; gap: 6px; }
.berita-page-gap { min-width: 24px; text-align: center; color: var(--c-ink-soft); user-select: none; }

/* ===== Motion preference ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .rail { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav__burger { display: inline-flex; }
  .masthead { position: sticky; top: 0; z-index: 50; padding: 10px 0; background: var(--c-base); }
  .masthead__inner { justify-content: space-between; gap: 12px; }
  .brand { flex-direction: row; text-align: left; gap: 10px; }
  .brand__mark { width: 44px; height: 44px; padding: 4px; }
  .brand__name { font-size: 1.1rem; }
  .berita-layout { grid-template-columns: 1fr; gap: 20px; }
  .berita-filters { position: static; flex-direction: row; flex-wrap: wrap; background: transparent; padding: 0; }
  .berita-filters .berita-filter { background: var(--c-paper); }
}
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__intro { grid-row: auto; }
  .programs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kontak-strip, .kontak { grid-template-columns: 1fr; }
  .kurikulum { grid-template-columns: 1fr; }
  .sejarah, .jadwal-wrap, .syarat-form { grid-template-columns: 1fr; gap: 28px; }
  .sejarah__photo { position: static; max-width: 380px; order: -1; }
  .jadwal-wrap__head, .syarat { position: static; }
  .berita-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .berita-feature { grid-template-columns: 1fr; }
  .grid--split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .section { padding-block: 56px; }
  .section--tight { padding-block: 36px; }
  .brand__sub { display: none; }
  .brand__name { font-size: 1rem; }
  .hero__band { aspect-ratio: 4 / 3; border-radius: 64px 64px var(--r-lg) var(--r-lg); }
  .hero__card { top: auto; bottom: 16px; right: 16px; }
  .hero__meta { position: static; transform: none; margin: 16px auto 0; width: max-content; max-width: 100%; flex-wrap: wrap; justify-content: center; border-radius: var(--r-lg); white-space: normal; }
  .fab { right: 12px; bottom: 12px; padding: 12px 20px; min-height: 52px; }
  .kontak-strip__cta, .kontak-form { order: 0; }
  .bento { gap: 10px; }
  .bento__stat { padding: 20px; min-height: 140px; border-radius: var(--r-lg); }
  .programs { grid-template-columns: 1fr; }
  .program--featured { grid-column: auto; }
  .program { min-height: 0; padding: 24px; }
  .kontak__info { grid-template-columns: 1fr; }
  .misi-list { grid-template-columns: 1fr; }
  .timeline__item { grid-template-columns: 1fr; gap: 10px; }
  .timeline__year { justify-self: start; }
  .jadwal::before { left: 40px; }
  .jadwal__row { grid-template-columns: 80px 1fr; gap: 12px; }
  .jadwal__time { font-size: 0.88rem; padding: 5px 10px; }
  .alur { grid-template-columns: 1fr; gap: 14px; }
  .alur::before { left: 35px; right: auto; top: 20px; bottom: 20px; border-top: 0; border-left: 3px dashed var(--c-line-strong); }
  .alur__step { display: grid; grid-template-columns: 72px 1fr; column-gap: 16px; row-gap: 2px; text-align: left; align-items: center; }
  .alur__step-num { grid-row: span 2; margin: 0; }
  .ppdb__count-cell { width: 68px; height: 68px; }
  .ppdb__count-num { font-size: 1.4rem; }
  .berita-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .columns-grid { grid-template-columns: 1fr !important; } /* the column count is inline, per block */
  .formulir, .kontak-form, .syarat { padding: 22px 16px; }
  .carousel__viewport { aspect-ratio: 4 / 3; }
  .carousel__arrow { width: 44px; height: 44px; }
  .carousel__arrow--prev { left: 8px; }
  .carousel__arrow--next { right: 8px; }
  .carousel__content { margin: 0 12px 40px; padding: 12px 14px; }
  .carousel__title { font-size: 1.05rem; }
  .carousel__caption { font-size: 0.85rem; }
  .carousel__cta { margin-top: 10px; }
}
@media (max-width: 480px) {
  .carousel__caption { display: none; }
  .hero__card { padding: 12px 16px; }
  .hero__card-title { font-size: 1.3rem; }
}
