/* ============================================================
   EkoByte School CMS — Public Stylesheet
   PHP 7.3 / CodeIgniter 3 MVP
   ============================================================ */

:root {
  /* Core palette */
  --navy:    #0c1c36;
  --navy2:   #17324d;
  --blue:    #8b0000;
  --blue-l:  #b91c1c;
  --teal:    #8b0000;
  --cyan:    #8b0000;
  --gold:    #c9a84c;
  --orange:  #ea580c;
  --white:   #ffffff;
  --off:     #f1f5f9;
  --gray:    #f7f8fa;
  --text:    #0f172a;
  --muted:   #64748b;
  --border:  #e4e8f0;
  --green:   #16a34a;
  --red:     #dc2626;
  --amber:   #d97706;

  /* Surfaces */
  --bg-page:  #f7f8fa;
  --bg-white: #ffffff;
  --bg-dark:  #1e0000;

  /* Shadows — layered for depth */
  --shadow-sm: 0 1px 4px rgba(12,28,54,.06), 0 4px 16px rgba(12,28,54,.06);
  --shadow:    0 4px 12px rgba(12,28,54,.08), 0 12px 32px rgba(12,28,54,.08);
  --shadow-md: 0 4px 12px rgba(12,28,54,.08), 0 12px 32px rgba(12,28,54,.08);
  --shadow-lg: 0 8px 24px rgba(12,28,54,.12), 0 24px 48px rgba(12,28,54,.10);

  /* Radius */
  --radius:    12px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg-page);
  line-height: 1.65;
  font-size: 16px;
}
/* ── Type scale ── */
/* Fraunces: display headings (h1, h2) */
h1, h2 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.025em;
}
/* DM Sans: UI headings (h3 downward) — explicit weight prevents browser 400 fallback */
h3 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
}
h4, h5, h6 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}
p { margin-bottom: 0; } /* prevent double margins */
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; }
.fi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Layout ── */
.container { width: min(1160px, 90vw); margin-inline: auto; }

/* ── Topbar ── */
.topbar {
  background: var(--bg-dark);
  color: rgba(255,255,255,.55);
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.topbar-item {
  display: inline-flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,.6);
  transition: color .15s;
  font-size: 11.5px;
}
.topbar-item:hover { color: #fff; }
.topbar-item .fi { font-size: 12px; }

.topbar-wa { color: #4ade80 !important; }
.topbar-wa:hover { color: #86efac !important; }

.topbar-divider {
  display: inline-block; width: 1px; height: 12px;
  background: rgba(255,255,255,.15); margin: 0 4px;
}

.topbar-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px;
  color: rgba(255,255,255,.55);
  transition: color .15s, background .15s;
}
.topbar-social:hover { color: #fff; background: rgba(255,255,255,.1); }
.topbar-social .fi { font-size: 14px; }

.topbar-ppdb {
  display: inline-flex; align-items: center;
  background: var(--orange, #ea580c); color: #fff !important;
  font-size: 11px; font-weight: 800; letter-spacing: .3px;
  padding: 3px 10px; border-radius: 999px;
  transition: background .15s, opacity .15s;
}
.topbar-ppdb:hover { opacity: .88; }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(15,23,42,.06);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }

/* Brand */
.brand { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--navy);
  color: #fff; font-weight: 900; font-size: 15px;
  display: grid; place-items: center; letter-spacing: -1px;
  flex-shrink: 0;
}
.logo-mark.lg { width: 52px; height: 52px; font-size: 18px; border-radius: 16px; }
.logo-mark-img { object-fit: contain; background: none; padding: 2px; }
.brand-text strong { display: block; color: var(--navy); font-size: 15px; line-height: 1.1; }
.brand-text small { color: var(--muted); font-size: 11.5px; }

/* Nav links */
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 14px;
  padding: 8px 12px; border-radius: 10px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow); display: none; padding: 14px 6px 8px; z-index: 110;
  flex-direction: column; gap: 6px;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown { display: flex; }
.nav-dropdown a { padding: 8px 12px; border-radius: 8px; color: var(--text); font-weight: 700; }
.nav-dropdown a:hover { background: var(--off); color: var(--navy); }
.nav a:hover, .nav a.active { background: var(--off); color: var(--navy); }

.btn-cta {
  background: var(--teal) !important; color: #fff !important;
  border: 2px solid var(--teal) !important;
  padding: 9px 20px !important; border-radius: var(--radius) !important;
  font-size: 13.5px !important; font-weight: 700 !important;
  letter-spacing: .01em;
}
.btn-cta:hover { background: #6b0000 !important; border-color: #6b0000 !important; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform .25s;
}
.nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 99; }

/* ── Buttons — Oxbridge style: near-square, navy, arrow slide ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy); color: #fff;
  border: 2px solid var(--navy); border-radius: var(--radius-md);
  padding: 12px 26px; font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700; font-size: 14px; letter-spacing: .01em;
  cursor: pointer; transition: background .18s ease, color .18s ease,
    border-color .18s ease, transform .2s cubic-bezier(.34,1.3,.64,1),
    box-shadow .2s ease;
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.btn:hover { background: #1e3a5f; border-color: #1e3a5f; }
/* Arrow animation — any btn whose last text node ends with → */
.btn-arrow::after {
  content: '→'; display: inline-block;
  transition: transform .22s ease; margin-left: 4px;
}
.btn-arrow:hover::after { transform: translateX(5px); }
/* Sizes */
.btn-lg { padding: 15px 34px; font-size: 15.5px; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--radius); }
/* Ghost: outline variant (Oxbridge secondary) */
.btn-ghost {
  background: transparent; border-color: var(--navy); color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: #fff; }
/* Outline alias (keeps backward compat) */
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
/* On teal/accent sections */
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.12); }
/* White button (on dark bg) */
.btn-white { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white:hover { background: #f0f4ff; }
/* Teal accent */
.btn-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-teal:hover { background: #6b0000; border-color: #6b0000; }
/* Full-width */
.btn-full { width: 100%; justify-content: center; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center;
  border-radius: 999px; padding: 3px 10px;
  font-size: 11.5px; font-weight: 700;
}
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-amber  { background: #fef3c7; color: #92400e; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-muted  { background: #f1f5f9; color: #475569; }

/* ── Eyebrow ── */
.eyebrow {
  display: inline-block; border-radius: 999px;
  padding: 5px 14px; font-size: 11px; font-weight: 800;
  letter-spacing: .6px; text-transform: uppercase;
  background: rgba(139,0,0,.09); color: var(--teal);
  margin-bottom: 14px;
}
.hero .eyebrow {
  background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.25);
  color: #e8d08a;
}

/* ── Hero (Flarion light style) ── */
.hero {
  background: var(--bg-white);
  color: var(--text);
  padding: 80px 0 0;
  overflow: hidden;
}

/* Centered intro block */
.hero-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 52px;
}
.hero-intro .eyebrow {
  background: rgba(139,0,0,.09);
  color: var(--teal);
  border: 1px solid rgba(139,0,0,.18);
}
.hero-intro h1 {
  font-size: clamp(36px, 5.5vw, 72px);
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.04;
  letter-spacing: -.035em;
  margin: 14px 0 18px;
}
.hero-intro h1 em { color: var(--teal); font-style: italic; }
.hero-intro p {
  font-size: 17px; color: var(--muted);
  max-width: 520px; margin: 0 auto 32px; line-height: 1.68;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 0; }

/* Media row: image + news panel */
.hero-media {
  display: grid;
  grid-template-columns: 1.1fr .85fr;
  gap: 20px;
  align-items: stretch;
}

/* Left: image with floating badges */
.hero-media-img { position: relative; }
.hero-photo-frame {
  min-height: 440px;
  border-radius: 20px 20px 0 0;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 -4px 32px rgba(12,28,54,.08);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
}
.hero-photo-frame:hover,
.hero-photo-frame:active {
  transform: scale(1.03);
  box-shadow: 0 12px 48px rgba(12,28,54,.18);
}
/* Subtle overlay for text legibility */
.hero-photo-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6,15,30,.45));
}

/* ── Floating stat badges (hfb) ── */
.hfb {
  position: absolute; z-index: 2;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.08);
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 2px;
  animation: hfbIn .65s cubic-bezier(.34,1.56,.64,1) both;
}
.hfb--tl { top: 22px; left: 22px; animation-delay: .7s; }
.hfb--bl { bottom: 28px; left: 22px; animation-delay: .8s; }
.hfb--br { bottom: 28px; right: 22px; animation-delay: .75s; }
/* Centered bottom badge */
.hfb--bc {
  bottom: 28px;
  left: 0; right: 0; margin-inline: auto;
  width: fit-content;
  flex-direction: row; align-items: center; gap: 10px;
  border-radius: 999px; padding: 10px 20px;
  animation-delay: .85s;
}
.hfb-accent { background: #22c55e; }
.hfb-accent .hfb-label { color: rgba(255,255,255,.78); }
.hfb-accent .hfb-value { color: #fff; }
.hfb-label { font-size: 10.5px; color: var(--muted); font-weight: 600; line-height: 1; }
.hfb-value {
  font-family: 'Fraunces', serif;
  font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.1;
}
.hfb-value sup { font-size: 14px; color: var(--gold); }
.hfb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.hfb span { font-size: 13px; font-weight: 700; color: var(--navy); }

/* ── Right: News panel ── */
.hero-news-panel {
  background: var(--bg-page);
  border-radius: 20px 20px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.hnp-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
}
.hnp-head span { font-weight: 800; font-size: 14.5px; color: var(--navy); }
.hnp-head a { font-size: 12.5px; color: var(--teal); font-weight: 700; white-space: nowrap; }
.hnp-item {
  display: grid; grid-template-columns: 74px 1fr;
  gap: 13px; align-items: center;
  padding: 15px 22px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.hnp-item:last-of-type { border-bottom: none; }
.hnp-item:hover { background: rgba(255,255,255,.7); }
.hnp-thumb {
  width: 74px; aspect-ratio: 4/3;
  border-radius: 10px; flex-shrink: 0;
  background-size: cover; background-position: center;
  background-color: var(--border);
}
.hnp-body strong {
  display: block; font-size: 13.5px; font-weight: 700;
  color: var(--navy); line-height: 1.35;
}
.hnp-body small { display: block; margin-top: 5px; font-size: 11.5px; color: var(--muted); }
.hnp-footer {
  margin-top: auto; padding: 16px 22px;
  border-top: 1px solid var(--border);
}

/* Dark CTA button */
.btn-dark {
  background: var(--navy) !important; color: #fff !important;
  border-color: var(--navy) !important;
}
.btn-dark:hover { background: #0f2640 !important; }

/* Latest news strip */
.latest-strip {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.latest-strip-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.latest-strip-head .eyebrow { margin-bottom: 8px; }
.latest-strip-head h2 {
  color: var(--navy);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.15;
}
.latest-strip-head > a {
  color: var(--teal);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}
.latest-news-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.latest-news-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.latest-news-item:hover {
  transform: translateY(-2px);
  border-color: rgba(139,0,0,.3);
  box-shadow: var(--shadow-md);
}
.latest-news-thumb {
  width: 108px;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
}
.latest-news-body strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.35;
}
.latest-news-body small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

/* ── Stats bar ── */
/* ── Why Us section — Flarion style ── */
.why-us-section { background: var(--bg-page); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-why { text-align: left; padding: 28px 24px; }
.card-why h3 { font-size: 17px; font-weight: 800; margin: 0 0 8px; line-height: 1.25; }
.card-why p  { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0; }
.why-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(15,118,110,.1);
  color: var(--teal);
  display: grid; place-items: center;
  font-size: 24px; margin: 0 0 18px;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.why-icon .fi { font-size: 24px; }
.card-why:hover .why-icon { transform: scale(1.13) rotate(-5deg); }
.why-icon--teal   { background: rgba(139,0,0,.1);  color: var(--teal); }
.why-icon--orange { background: rgba(234,88,12,.1);   color: var(--orange); }
.why-icon--green  { background: rgba(22,163,74,.1);   color: #16a34a; }

/* ── Stats ── */
.stats-bar { background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 0; }
.stats-grid {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 52px; text-align: center;
}
.stat-item strong {
  font-family: 'Fraunces', serif;
  font-size: 40px; color: var(--navy); font-weight: 700; line-height: 1;
}
.stat-item strong sup { font-size: 22px; color: var(--gold); vertical-align: super; }
.stat-item span   { font-size: 12.5px; color: var(--muted); margin-top: 6px; font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ── Sections ── */
.section { padding: 88px 0; background: var(--bg-white); }
.section-alt  { background: var(--bg-page); }
.section-gray { padding: 88px 0; background: var(--bg-page); }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-head h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  color: var(--navy); line-height: 1.14; margin: 10px 0 14px;
  letter-spacing: -.025em;
}
.section-head h2 em { color: var(--gold); font-style: italic; }
.section-head p { color: var(--muted); font-size: 16px; line-height: 1.65; }
.section-cta { text-align: center; margin-top: 44px; }

/* Section eyebrow — decorative lines on both sides */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--teal); font-size: 11.5px; font-weight: 800;
  letter-spacing: .8px; text-transform: uppercase; margin-bottom: 14px;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: ''; display: block; height: 1.5px; width: 22px;
  background: var(--teal); border-radius: 2px; flex-shrink: 0;
}

/* ── Card grids ── */
.card-grid { display: grid; gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ── Cards — Flarion style ── */
.card {
  background: var(--bg-white);
  border: none;
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s cubic-bezier(.22,1,.36,1), box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { color: var(--navy); margin: 0 0 8px; line-height: 1.3; font-size: 17px; font-weight: 800; }

.card-icon {
  width: 90px; height: 90px; border-radius: 22px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff; display: grid; place-items: center;
  font-size: 38px; font-weight: 900; margin-bottom: 22px;
  line-height: 1;
}
.card-icon .fi { font-size: 38px; }
.card-icon.featured { background: linear-gradient(135deg, var(--orange), #f59e0b); }
.card-cover {
  height: 160px; border-radius: 10px 10px 0 0;
  background-size: cover; background-position: center;
  margin: -22px -22px 20px;
}
.card-body { flex: 1; }
/* ── Program cards — Flarion style ── */
.card-program {
  display: flex; flex-direction: column;
  padding: 0; overflow: hidden;
  border-left: none;
  color: inherit; text-decoration: none;
}
.card-program:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(15,23,42,.12); }
.prog-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background-size: cover; background-position: center;
  flex-shrink: 0;
}
.prog-card-media--icon {
  background: linear-gradient(135deg, #082f28 0%, #0f766e 100%);
  display: flex; align-items: center; justify-content: center;
}
.prog-card-media--icon .fi { font-size: 56px; color: rgba(255,255,255,.4); }
.prog-type-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(15,23,42,.72); backdrop-filter: blur(6px);
  color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .6px;
  text-transform: uppercase; padding: 4px 10px;
  border-radius: 999px;
}
.prog-meta-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px 0;
  font-size: 12px; color: var(--muted);
}
.prog-meta-row span { display: flex; align-items: center; gap: 4px; }
.prog-meta-row .fi { font-size: 13px; color: var(--teal); }
.card-program .card-body {
  padding: 12px 20px 20px;
  display: flex; flex-direction: column; flex: 1;
}
.card-program h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; line-height: 1.3; color: var(--navy); }
.card-ekstra h3 { color: var(--navy); }
.prog-summary {
  color: var(--muted); font-size: 14px; line-height: 1.55;
  margin-bottom: 14px;
}
.prog-highlights {
  list-style: none; padding: 0; margin: 0 0 18px;
  border-top: 1px solid var(--border); padding-top: 12px;
  flex: 1;
}
.prog-highlights li {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 4px 0; font-size: 12.5px; color: var(--muted);
}
.prog-highlights li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0; margin-top: 6px;
}
.card-ekstra {
  display: flex; flex-direction: column;
  color: inherit; text-decoration: none;
}
.card-ekstra .card-icon { align-self: flex-start; }
.card-ekstra .card-body { flex: 1; }
/* Card seamless read-more link */
.card-read-more {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: auto; padding-top: 14px;
  font-size: 13.5px; font-weight: 700;
  color: var(--teal);
}
.card-arrow {
  display: inline-block;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.card-program:hover .card-arrow,
.card-ekstra:hover .card-arrow  { transform: translateX(5px); }

.ekstra-meta { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 12px; font-size: 13px; color: var(--muted); }
.ekstra-meta span { display: flex; align-items: center; gap: 6px; }
.ekstra-info-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ekstra-info-row:last-of-type { border-bottom: none; }
.ekstra-info-row .fi { font-size: 18px; color: var(--teal); margin-top: 2px; flex-shrink: 0; }
.ekstra-info-row small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.ekstra-info-row strong { font-size: 14px; }
.profile-intro {
  max-width: 900px;
  margin-bottom: 32px;
}
.profile-card .card-icon {
  font-size: 24px;
  letter-spacing: .5px;
}
.profile-card .card-icon .fi { font-size: 34px; }
/* ── News / post cards — Flarion style ── */
.card-post {
  overflow: hidden; display: flex; flex-direction: column;
  padding: 0;
  border-bottom: none;
}
.card-post .card-body { padding: 16px 18px 18px; }
.post-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
.post-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15,23,42,.35));
}
.post-date-overlay {
  position: absolute; z-index: 1;
  bottom: 10px; right: 10px;
  background: rgba(15,23,42,.65); backdrop-filter: blur(4px);
  color: rgba(255,255,255,.9); font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 6px; letter-spacing: .2px;
}
.thumb-badge {
  position: absolute; z-index: 1;
  top: 10px; left: 10px;
  background: var(--orange); color: #fff;
  border-radius: 999px; padding: 4px 10px;
  font-size: 11px; font-weight: 800;
}
.post-cat-strip {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.post-views {
  font-size: 11.5px; color: var(--muted);
  display: flex; align-items: center; gap: 4px;
}

.card-meta {
  display: flex; align-items: center; gap: 6px;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: 12px;
}
.cat-tag {
  display: inline-block; border-radius: 999px;
  padding: 3px 10px; font-size: 11px; font-weight: 700;
  background: color-mix(in srgb, var(--cat-color, var(--teal)) 14%, white);
  color: var(--cat-color, var(--teal));
  margin-bottom: 8px;
}

/* ── Featured news layout (home) ── */
.news-featured-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 20px;
  align-items: stretch;
}

/* Left: big featured card */
.news-feat-card {
  display: flex; flex-direction: column;
  padding: 0; overflow: hidden;
  height: 100%;
}
.news-feat-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
  flex-shrink: 0;
  transition: transform .55s cubic-bezier(.22,1,.36,1);
}
.news-feat-card:hover .news-feat-thumb { transform: scale(1.04); }
.news-feat-body {
  padding: 22px 24px 24px;
  display: flex; flex-direction: column; flex: 1;
}
.news-feat-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.news-feat-meta .cat-tag { margin-bottom: 0; }
.news-feat-body h3 {
  font-size: 22px; line-height: 1.3;
  margin-bottom: 10px;
}
.news-feat-body h3 a { color: var(--navy); text-decoration: none; }
.news-feat-body h3 a:hover { color: var(--teal); }
.news-feat-body > .muted { margin-bottom: 18px; flex: 1; }
.news-read-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--teal);
  text-decoration: none;
  transition: gap .2s ease;
}
.news-read-link:hover { gap: 10px; }

/* Right: stacked horizontal list — fills full height of featured card */
.news-list {
  display: flex; flex-direction: column;
  gap: 0;
  height: 100%;
}
.news-list-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
  align-items: stretch;
  flex: 1;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--border);
}
.news-list-item:last-child { border-bottom: none; }
/* Round corners only on first and last items to match parent card */
.news-list-item:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.news-list-item:last-child  { border-radius: 0 0 var(--radius-md) var(--radius-md); }
.news-list-item:first-child:last-child { border-radius: var(--radius-md); }

.news-list-thumb {
  display: block;
  background-size: cover; background-position: center;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
  flex-shrink: 0;
  min-height: 0;
}
.news-list-item:hover .news-list-thumb { transform: scale(1.05); }
.news-list-body {
  padding: 16px 20px;
  display: flex; flex-direction: column; justify-content: center;
}
.news-list-body h3 {
  font-size: 15.5px; line-height: 1.35;
  margin-top: 6px; margin-bottom: 0;
}
.news-list-body h3 a { color: var(--navy); text-decoration: none; }
.news-list-body h3 a:hover { color: var(--teal); }
.cat-tag--sm { font-size: 10px; padding: 2px 8px; }

/* ── Achievement cards ── */
/* ── Teacher grid — Flarion testimonials-inspired ── */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.teacher-grid--staff {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* Card: vertical — photo top, info bottom */
.teacher-card {
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(11,29,58,.07);
  transition: box-shadow .25s ease, transform .25s ease;
}
.teacher-card:hover {
  box-shadow: 0 10px 32px rgba(11,29,58,.13);
  transform: translateY(-4px);
}

/* Top: gradient bg + centered photo/initials */
.teacher-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy2) 100%);
  overflow: hidden;
}
.teacher-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Initials fallback — large, centred */
.teacher-avatar-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 800; color: rgba(255,255,255,.85);
  letter-spacing: -.02em;
}

/* Bottom: white info strip */
.teacher-body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 5px; text-align: center;
}
.teacher-name {
  font-size: 14.5px; font-weight: 800; color: var(--navy);
  line-height: 1.3; display: block;
}
.teacher-subject {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 12.5px; color: var(--teal); font-weight: 600;
}
.teacher-subject .fi { font-size: 11px; flex-shrink: 0; }

/* ── PPDB Steps ── */
.ppdb-steps-section { background: var(--off); }
.ppdb-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 48px 0 40px;
}
.ppdb-step {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 0 12px;
}
/* Icon box — first child, line passes through its centre */
.ppdb-step-icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 14px;
  position: relative; z-index: 1;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
}
.ppdb-step:hover .ppdb-step-icon { transform: translateY(-5px); }
/* Per-step accent colors — steps are now 1,2,3,4 (no connector siblings) */
.ppdb-step:nth-child(1) .ppdb-step-icon { background: #e8eeff; color: #4a6cf7; box-shadow: 0 4px 18px rgba(74,108,247,.15); }
.ppdb-step:nth-child(2) .ppdb-step-icon { background: #fff3e8; color: #f07a2a; box-shadow: 0 4px 18px rgba(240,122,42,.15); }
.ppdb-step:nth-child(3) .ppdb-step-icon { background: #e8f8ee; color: #22a85a; box-shadow: 0 4px 18px rgba(34,168,90,.15); }
.ppdb-step:nth-child(4) .ppdb-step-icon { background: #f3e8ff; color: #9b5cf6; box-shadow: 0 4px 18px rgba(155,92,246,.15); }
.ppdb-step:hover:nth-child(1) .ppdb-step-icon { box-shadow: 0 10px 28px rgba(74,108,247,.22); }
.ppdb-step:hover:nth-child(2) .ppdb-step-icon { box-shadow: 0 10px 28px rgba(240,122,42,.22); }
.ppdb-step:hover:nth-child(3) .ppdb-step-icon { box-shadow: 0 10px 28px rgba(34,168,90,.22); }
.ppdb-step:hover:nth-child(4) .ppdb-step-icon { box-shadow: 0 10px 28px rgba(155,92,246,.22); }

/* "LANGKAH 01" label — below icon */
.ppdb-step-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 6px;
  white-space: nowrap;
}

.ppdb-step-title {
  font-size: 15px; font-weight: 800;
  color: var(--navy); margin: 0 0 8px;
}
.ppdb-step-desc {
  font-size: 13.5px; font-weight: 400; color: var(--muted);
  line-height: 1.6; margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Connector line — pseudo-element at icon centre */
.ppdb-steps { position: relative; }
.ppdb-steps::before {
  content: '';
  position: absolute;
  top: 36px; /* half of 72px icon */
  left: calc(12px + 36px);  /* step padding + half icon */
  right: calc(12px + 36px);
  height: 1.5px;
  background: #c5cdd8;
  z-index: 0;
}

/* ── Home gallery carousel ── */
.gallery-carousel-section { overflow: hidden; }
.gallery-carousel {
  position: relative;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  margin: 0 0 8px;
}
.gallery-carousel.is-dragging { cursor: grabbing; }
.gallery-carousel-track {
  display: flex;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}
.gallery-carousel-track.no-transition { transition: none; }
.gallery-carousel-slide {
  flex: 0 0 calc(33.333% - 8px);
  margin-right: 12px;
}
.gallery-carousel-img {
  height: 300px;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.gallery-carousel-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,29,58,.6) 0%, transparent 55%);
  opacity: 0; transition: opacity .3s ease;
}
.gallery-carousel-slide:hover .gallery-carousel-img { transform: scale(1.02); }
.gallery-carousel-slide:hover .gallery-carousel-img::after { opacity: 1; }
.gallery-carousel-caption {
  position: absolute; bottom: 14px; left: 16px; right: 16px; z-index: 1;
  color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.4;
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.gallery-carousel-slide:hover .gallery-carousel-caption { opacity: 1; transform: none; }

/* Nav buttons */
.gallery-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: none;
  box-shadow: 0 4px 16px rgba(11,29,58,.18);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
  color: var(--navy); font-size: 18px;
  transition: background .18s, box-shadow .18s, transform .2s;
}
.gallery-carousel-btn:hover {
  background: var(--navy); color: #fff;
  box-shadow: 0 6px 20px rgba(11,29,58,.28);
}
.gallery-carousel-btn--prev { left: 16px; }
.gallery-carousel-btn--next { right: 16px; }
.gallery-carousel-btn:disabled { opacity: .35; pointer-events: none; }

/* Dots */
.gallery-carousel-dots {
  display: flex; justify-content: center; gap: 6px; margin-top: 16px;
}
.gallery-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border); border: none; padding: 0; cursor: pointer;
  transition: background .2s, transform .2s;
}
.gallery-dot.active {
  background: var(--navy); transform: scale(1.3);
}

@media (max-width: 768px) {
  .gallery-carousel-slide { flex: 0 0 calc(50% - 6px); }
  .gallery-carousel-img { height: 220px; }
}
@media (max-width: 480px) {
  .gallery-carousel-slide { flex: 0 0 calc(85% - 6px); }
  .gallery-carousel-img { height: 200px; }
  .gallery-carousel-btn { display: none; }
}

.card-achievement {
  display: grid;
  grid-template-columns: 156px 1fr;
  align-items: stretch;
  gap: 18px;
  padding: 16px;
}
.ach-thumb {
  min-height: 140px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
}
.ach-icon {
  width: 68px; height: 68px; border-radius: 18px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--amber), #fbbf24);
  color: #fff; display: grid; place-items: center;
  font-size: 30px; font-weight: 900;
  line-height: 1;
}
.ach-body { align-self: center; }
.ach-body h3 { font-size: 17px; font-weight: 800; margin: 0 0 6px; line-height: 1.3; }
.rank-badge {
  display: inline-block; background: var(--teal); color: #fff;
  padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  margin-bottom: 6px;
}

/* ── Sambutan Kepala Sekolah (Flarion accordion layout) ── */
.principal-section { overflow: hidden; }

.principal-grid {
  display: grid;
  grid-template-columns: 1fr .78fr;
  gap: 64px;
  align-items: center;
}

/* ── Kiri: konten ── */
.principal-left { }
.principal-left .eyebrow { margin-bottom: 14px; }
.principal-left h2 { margin-bottom: 12px; }
.principal-intro {
  font-size: 15.5px; color: var(--muted);
  line-height: 1.65; margin-bottom: 28px;
}

/* Accordion */
.ks-accordion { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }

.ks-item { border-radius: 14px; overflow: hidden; }

.ks-trigger {
  width: 100%; display: flex; align-items: center; gap: 14px;
  background: var(--bg-page); border: none; border-radius: 14px;
  padding: 15px 18px; cursor: pointer; text-align: left;
  transition: background .18s;
}
.ks-trigger:hover { background: #e9eaed; }
.ks-item.is-open .ks-trigger {
  background: var(--bg-page);
  border-radius: 14px 14px 0 0;
}

.ks-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
  background: rgba(15,23,42,.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--navy);
  transition: background .18s, color .18s;
}
.ks-item.is-open .ks-icon { background: var(--teal); color: #fff; }

.ks-title {
  flex: 1; font-size: 15px; font-weight: 700;
  color: var(--navy); line-height: 1;
}

.ks-chevron {
  color: var(--muted); font-size: 18px; flex-shrink: 0;
  transition: transform .28s cubic-bezier(.22,1,.36,1);
  display: flex;
}
.ks-item.is-open .ks-chevron { transform: rotate(180deg); }

.ks-body {
  background: var(--bg-page);
  border-radius: 0 0 14px 14px;
  /* indent body text to align under title (40px icon + 14px gap + 18px padding) */
  padding: 2px 18px 18px 72px;
  font-size: 15px; line-height: 1.78; color: var(--text);
}
.ks-body p { margin-bottom: 10px; }
.ks-body p:last-child { margin-bottom: 0; }

/* Tanda tangan */
.ks-sig {
  display: flex; flex-direction: column; gap: 2px;
  padding-top: 22px; border-top: 1px solid var(--border);
}
.ks-since {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; color: var(--muted);
  margin-bottom: 8px;
}
.ks-since .fi { color: var(--teal); }
.ks-sig strong { font-size: 15px; font-weight: 800; color: var(--navy); }
.ks-sig small  { font-size: 12.5px; color: var(--muted); margin-top: 1px; }

/* ── Kanan: foto besar ── */
.principal-right { }
.principal-big-photo {
  width: 100%; aspect-ratio: 4/5;
  border-radius: 28px;
  background-size: cover; background-position: center top;
  box-shadow: var(--shadow-lg);
}
.principal-big-photo--empty {
  background: var(--off);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; color: var(--border);
}

/* ── CTA strip ── */
.cta-strip {
  background:
    radial-gradient(ellipse 60% 120% at 90% 50%, rgba(255,255,255,.06), transparent),
    linear-gradient(135deg, #6b0000 0%, #8b0000 100%);
  color: #fff; padding: 80px 0;
}
.cta-strip-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-strip h2 { font-size: clamp(22px, 3vw, 34px); margin-bottom: 8px; }
.cta-strip p { color: rgba(255,255,255,.75); }

/* ── Page hero ── */
.page-hero {
  background: linear-gradient(160deg, #1a0000 0%, #5a0000 55%, #8b0000 100%);
  color: #fff; padding: 64px 0;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
/* Page-hero entrance: stagger children on page load */
.page-hero > .container > * {
  animation: fadeUp .55s cubic-bezier(.22,1,.36,1) both;
}
.page-hero > .container > *:nth-child(1) { animation-delay: .05s; }
.page-hero > .container > *:nth-child(2) { animation-delay: .13s; }
.page-hero > .container > *:nth-child(3) { animation-delay: .21s; }
.page-hero > .container > *:nth-child(4) { animation-delay: .29s; }
.page-hero > .container > *:nth-child(5) { animation-delay: .37s; }
.page-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.12;
  margin: 12px 0 10px;
}
.page-hero p  { color: rgba(255,255,255,.75); max-width: 640px; font-size: 16px; line-height: 1.65; }
.page-hero-icon {
  width: 86px; height: 86px; border-radius: 24px;
  background: rgba(255,255,255,.12); color: #9beafe;
  display: grid; place-items: center;
  font-size: 38px; font-weight: 900; margin-bottom: 16px;
  line-height: 1;
}
.page-hero-icon .fi { font-size: 38px; }
.breadcrumb-back {
  display: inline-block; color: rgba(255,255,255,.65); font-size: 13px;
  margin-bottom: 14px;
}
.breadcrumb-back:hover { color: #fff; }

/* ── Hero variant: Program ── */
.page-hero--programs {
  background: linear-gradient(160deg, #1a0000 0%, #5a0000 55%, #8b0000 100%);
}
.page-hero--programs .eyebrow {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
}
.page-hero--programs .page-hero-icon {
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* ── Hero variant: Berita ── */
.page-hero--news {
  background: linear-gradient(160deg, #1a0000 0%, #5a0000 55%, #8b0000 100%);
}
.page-hero--news .eyebrow {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
}
.page-hero--news .page-hero-icon {
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* ── Content layout (detail pages) ── */
.content-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
.content-main { min-width: 0; }
.prose {
  font-size: 16.5px; line-height: 1.78;
  color: var(--text);
}
.prose h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700; letter-spacing: -.02em;
  color: var(--navy); margin: 36px 0 14px; line-height: 1.2;
}
.prose h3 {
  font-size: 18px; font-weight: 800;
  color: var(--navy); margin: 28px 0 10px; line-height: 1.3;
}
.prose p     { margin-bottom: 18px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 18px; }
.prose ol    { list-style-type: decimal; }
.prose ul    { list-style-type: disc; }
.prose li    { margin-bottom: 6px; }
.prose strong { color: var(--navy); }
.prose u     { text-decoration: underline; }
.prose s     { text-decoration: line-through; }
.prose blockquote {
  border-left: 3px solid var(--blue);
  margin: 24px 0; padding: 12px 0 12px 20px;
  color: var(--muted); font-style: italic;
}
.prose a     { color: var(--blue); text-decoration: underline; }

/* Quill alignment classes */
.prose .ql-align-center  { text-align: center; }
.prose .ql-align-right   { text-align: right; }
.prose .ql-align-justify { text-align: justify; }

.prose figure { margin: 28px 0; }
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.prose figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}
/* ── Profil — sub-section nav cards ── */
.profile-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.profile-nav-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  text-decoration: none;
  transition: border-color .18s, box-shadow .18s, transform .2s cubic-bezier(.34,1.3,.64,1);
  border-top: 3px solid var(--teal);
}
.profile-nav-card:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 28px rgba(11,29,58,.09);
  transform: translateY(-3px);
}
.profile-nav-icon {
  font-size: 24px; color: var(--teal);
  flex-shrink: 0; line-height: 1;
}
.profile-nav-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 3px;
}
.profile-nav-body strong {
  font-size: 15px; font-weight: 800; color: var(--navy);
  display: block;
}
.profile-nav-body span {
  font-size: 13px; color: var(--muted); line-height: 1.4;
}
.profile-nav-arrow {
  font-size: 14px; color: var(--muted); flex-shrink: 0;
  transition: transform .2s ease, color .18s;
}
.profile-nav-card:hover .profile-nav-arrow {
  transform: translateX(4px); color: var(--teal);
}

/* ── Profil — identity strip ── */
.profile-id-strip {
  background: #1c1200; padding: 28px 0;
}
.profile-id-inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
}
.profile-id-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 40px; text-align: center;
}
.profile-id-label {
  font-size: 11px; color: rgba(201,168,76,.65);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}
.profile-id-value {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px; font-weight: 700; color: #c9a84c;
  letter-spacing: -.02em; line-height: 1.1;
}
.profile-id-divider {
  width: 1px; height: 36px;
  background: rgba(201,168,76,.2); flex-shrink: 0;
}

/* ── Profil — principal section ── */
.principal-profile-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px; align-items: center;
}
.principal-profile-photo {
  width: 100%; aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.principal-profile-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.principal-profile-placeholder {
  width: 100%; height: 100%;
  background: var(--off);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; color: var(--muted);
}
.principal-profile-body h2 {
  margin: 8px 0 4px; font-size: clamp(22px, 3vw, 32px);
}
.principal-profile-title {
  color: var(--teal); font-weight: 600; font-size: 14.5px; margin: 0 0 24px;
}
.principal-profile-quote {
  border-left: 3px solid var(--teal);
  margin: 0; padding: 16px 0 16px 24px;
  font-size: 15.5px; line-height: 1.78; color: var(--text);
  font-style: italic;
}

/* ── Profil — org chart ── */
.org-chart-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.org-chart-wrap img {
  display: block; width: 100%; height: auto;
}

/* ── Sejarah — stat strip ── */
.sejarah-stat-strip {
  background: #1c1200;
  padding: 36px 0;
}
.sejarah-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.sejarah-stat {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 48px; text-align: center;
}
.sejarah-stat-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; color: #c9a84c;
  letter-spacing: -.03em; line-height: 1;
}
.sejarah-stat-label {
  font-size: 12.5px; color: rgba(201,168,76,.65);
  font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
}
.sejarah-stat-divider {
  width: 1px; height: 44px;
  background: rgba(201,168,76,.2);
  flex-shrink: 0;
}

/* ── Sejarah — timeline ── */
.sejarah-timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 32px;
}
/* Vertical line */
.sejarah-timeline::before {
  content: '';
  position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), var(--navy));
  border-radius: 2px;
}
/* Each h3 = milestone marker */
.sejarah-timeline h3 {
  position: relative;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 700;
  color: var(--navy);
  margin: 48px 0 10px;
  padding-left: 24px;
  line-height: 1.2;
}
.sejarah-timeline h3:first-child { margin-top: 0; }
/* Dot on the line */
.sejarah-timeline h3::before {
  content: '';
  position: absolute; left: -37px; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--teal);
}
/* Year pill — the text before "—" gets teal accent */
.sejarah-timeline h3 em,
.sejarah-timeline h3 strong { color: var(--teal); }
/* Body paragraph */
.sejarah-timeline p {
  color: var(--text); line-height: 1.78;
  font-size: 15.5px; padding-left: 24px;
  margin: 0 0 4px;
}

/* ── Visi & Misi layout ── */
.vm-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Visi block */
.vm-visi {
  background: linear-gradient(135deg, #1a0000 0%, #8b0000 100%);
  border-radius: 24px;
  padding: 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.vm-visi::before {
  content: '"';
  position: absolute;
  top: -20px; right: 32px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 240px; font-weight: 700;
  color: rgba(255,255,255,.05);
  line-height: 1;
  pointer-events: none;
}
.vm-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 800; letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.vm-visi .vm-label { color: rgba(255,255,255,.6); }
.vm-label-icon {
  width: 32px; height: 32px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.vm-visi .vm-label-icon { background: rgba(255,255,255,.12); color: #fff; }
.vm-visi-quote {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -.01em;
  color: #fff;
  margin: 0 0 32px;
  padding: 0;
  border: none;
  font-style: italic;
}
.vm-visi-pillars {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.vm-pillar {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px; font-weight: 700;
  backdrop-filter: blur(4px);
}
.vm-pillar .fi { font-size: 13px; color: var(--gold); }

/* Misi block */
.vm-misi {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 48px;
}
.vm-misi .vm-label { color: var(--muted); }
.vm-misi .vm-label-icon { background: rgba(139,0,0,.1); color: var(--teal); }
.vm-misi-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0;
}
.vm-misi-list li {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.vm-misi-list li:last-child { border-bottom: none; }
.vm-misi-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px; font-weight: 700;
  color: var(--teal);
  opacity: .35;
  line-height: 1;
  min-width: 40px;
  flex-shrink: 0;
  letter-spacing: -.02em;
}
.vm-misi-list li:hover .vm-misi-num { opacity: 1; transition: opacity .3s; }
.vm-misi-list li div strong {
  display: block;
  font-size: 16px; font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}
.vm-misi-list li div p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 700px) {
  .vm-visi { padding: 28px 24px; }
  .vm-misi { padding: 28px 24px; }
  .vm-visi-quote { font-size: 20px; }
  .vm-misi-num { font-size: 22px; min-width: 32px; }
}

/* ── Highlight list ── */
.highlight-list { list-style: none; padding: 0; }
.highlight-list li {
  padding: 8px 0 8px 30px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.highlight-list li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--blue); font-weight: 900;
}
.article-body { overflow-wrap: break-word; }
.page-body { max-width: 900px; overflow-wrap: break-word; }
.page-body--wide { max-width: 860px; overflow-wrap: break-word; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,.6);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { color: rgba(255,255,255,.4); }

/* ── Article meta bar (white strip below hero) ── */
.article-meta-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.article-meta-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.article-meta-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.article-meta-pills .cat-tag { margin-bottom: 0; }
.article-meta-pills .thumb-badge { border-radius: 999px; padding: 4px 12px; font-size: 11px; }
.article-meta-info {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.article-meta-info span { display: flex; align-items: center; gap: 5px; }
.article-meta-info .fi { font-size: 13px; }

/* ── Cover image ── */
.article-meta-top { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.article-byline { color: rgba(255,255,255,.65); font-size: 13.5px; margin-top: 10px; }
.article-cover-section { background: var(--bg-white); padding: 28px 0 0; }
.article-cover {
  min-height: 400px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
}
.section--no-cover { padding-top: 40px; }

/* ── Social share ── */
.article-share {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.article-share-label { font-size: 13px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.article-share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.share-wa   { background: #25d366; color: #fff; }
.share-fb   { background: #1877f2; color: #fff; }
.share-copy { background: var(--bg-page); color: var(--navy); border-color: var(--border); }
.share-copied { background: var(--teal) !important; color: #fff !important; border-color: var(--teal) !important; }

/* ── Sidebar card ── */
.sidebar-card h4 { font-size: 14px; font-weight: 800; margin-bottom: 12px; color: var(--navy); }

/* ── Related items (sidebar) ── */
.related-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: opacity .15s;
}
.related-item:hover { opacity: .75; }
.related-item:last-child { border-bottom: none; }
.related-item strong { display: block; font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--navy); }
.related-item small  { font-size: 12px; color: var(--muted); margin-top: 3px; display: block; }
.related-thumb {
  width: 62px; height: 48px;
  border-radius: 8px; flex-shrink: 0;
  background-size: cover; background-position: center;
  border: 1px solid var(--border);
}
.related-thumb--icon {
  background: var(--bg-page);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--teal);
}

/* ── Filters ── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn {
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  border: 2px solid var(--border); background: #fff; color: var(--text);
  cursor: pointer; transition: all .15s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--cat-color, var(--teal)); border-color: var(--cat-color, var(--teal)); color: #fff;
}

/* ── Contact page ── */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; }
.info-row { display: flex; gap: 14px; margin-bottom: 20px; }
.info-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.info-row strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.info-row a { color: var(--blue); }

/* ── Forms ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; color: var(--navy); line-height: 1.3; }
.required { color: var(--red); }
.form-section-title {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--navy); font-size: 20px; font-weight: 700;
  letter-spacing: -.02em; margin: 6px 0 18px;
}
.form-section-title:not(:first-child) {
  border-top: 1px solid var(--border); padding-top: 24px; margin-top: 26px;
}
input, select, textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 12px;
  padding: 11px 14px; font: inherit; font-size: 14.5px;
  background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
textarea { min-height: 100px; resize: vertical; }

/* ── Input prefix ── */
.input-prefix-wrap { position: relative; }
.input-prefix-wrap input { padding-left: 40px; }
.input-prefix {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 15px; pointer-events: none;
  display: flex; align-items: center;
}

/* ── PPDB Hero ── */
.ppdb-hero {
  background: linear-gradient(160deg, #050d1c 0%, var(--navy) 60%, #0f2640 100%);
  padding: 52px 0 42px; color: #fff;
}
.ppdb-hero-inner { text-align: center; }
.ppdb-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 99px; padding: 5px 16px;
  font-size: 13px; font-weight: 700; letter-spacing: .4px;
  color: #e0f2fe; margin-bottom: 16px;
}
.ppdb-hero h1 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700; letter-spacing: -.025em; line-height: 1.14;
  margin-bottom: 10px;
}
.ppdb-hero p  { color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.65; }

/* ── Step bar ── */
.ppdb-steps-bar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 16px 0; position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 8px rgba(15,23,42,.06);
}
.ppdb-steps {
  display: flex; align-items: center; justify-content: center; gap: 0;
}
.ppdb-step {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.ppdb-step.active { color: var(--blue); }
.ppdb-step.done   { color: var(--green); }
.ppdb-step-num {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  background: var(--border); color: var(--muted);
  flex-shrink: 0; transition: all .2s;
}
.ppdb-step.active .ppdb-step-num {
  background: var(--blue); color: #fff;
}
.ppdb-step.done .ppdb-step-num {
  background: var(--green); color: #fff;
}
.ppdb-step-line {
  flex: 1; min-width: 48px; max-width: 80px; height: 2px;
  background: var(--border); margin: 0 8px;
}
.ppdb-step-line.done { background: var(--green); }

/* ── PPDB Layout ── */
.ppdb-section { padding-top: 32px; }
.ppdb-layout {
  display: grid; grid-template-columns: 300px 1fr; gap: 28px;
  align-items: start;
}

/* ── Sidebar ── */
.ppdb-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 76px; }
.ppdb-info-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: 16px;
  padding: 20px;
}
.ppdb-info-icon { font-size: 22px; color: var(--blue); margin-bottom: 10px; }
.ppdb-info-card h3 { font-size: 15px; color: var(--navy); margin-bottom: 10px; }
.ppdb-info-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ppdb-info-list li {
  font-size: 13.5px; color: var(--muted); padding-left: 18px; position: relative; line-height: 1.5;
}
.ppdb-info-list li::before {
  content: '•'; position: absolute; left: 4px; color: var(--blue); font-weight: 900;
}
.ppdb-program-picks {
  background: #fff; border: 1.5px solid var(--border); border-radius: 16px; padding: 18px;
}
.ppdb-program-picks h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 12px; }
.ppdb-prog-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px;
}
.ppdb-prog-item:last-child { border-bottom: none; padding-bottom: 0; }
.ppdb-prog-num {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--navy); color: #fff;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.ppdb-contact-card {
  background: #eff6ff; border: 1.5px solid #bfdbfe; border-radius: 16px; padding: 18px;
}
.ppdb-contact-card h4 { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.ppdb-wa-btn {
  display: flex; align-items: center; gap: 7px;
  background: #16a34a; color: #fff; border-radius: 10px;
  padding: 9px 14px; font-size: 13.5px; font-weight: 700;
  transition: background .15s;
}
.ppdb-wa-btn:hover { background: #15803d; }

/* ── Form sections ── */
.ppdb-form-wrap { display: flex; flex-direction: column; gap: 20px; }
.ppdb-form-section {
  background: #fff; border: 1.5px solid var(--border); border-radius: 18px;
  overflow: hidden;
}
.ppdb-section-head {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; background: var(--gray);
  border-bottom: 1.5px solid var(--border);
}
.ppdb-section-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--navy); color: #fff;
  font-size: 16px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.ppdb-section-head h2 { font-size: 16px; color: var(--navy); margin-bottom: 2px; }
.ppdb-section-head p  { font-size: 13px; color: var(--muted); }
.ppdb-fields { padding: 22px; }

/* ── Program radio cards ── */
.ppdb-program-radios { display: flex; flex-direction: column; gap: 10px; }
.ppdb-radio-card {
  display: block; border: 2px solid var(--border); border-radius: 14px;
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.ppdb-radio-card:hover { border-color: var(--blue-l); }
.ppdb-radio-card.selected {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(139,0,0,.1);
}
.ppdb-radio-card input { display: none; }
.ppdb-radio-inner {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
}
.ppdb-radio-num {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--gray); color: var(--muted);
  font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.ppdb-radio-card.selected .ppdb-radio-num { background: var(--blue); color: #fff; }
.ppdb-radio-inner span { flex: 1; font-size: 14.5px; font-weight: 600; color: var(--navy); }
.ppdb-radio-check {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--border); color: transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; transition: all .15s;
}
.ppdb-radio-card.selected .ppdb-radio-check {
  background: var(--blue); border-color: var(--blue); color: #fff;
}

/* ── Submit area ── */
.ppdb-submit-area {
  background: #fff; border: 1.5px solid var(--border); border-radius: 18px;
  padding: 22px; display: flex; align-items: center; gap: 18px;
}
.ppdb-disclaimer { flex: 1; font-size: 13px; color: var(--muted); }
.ppdb-submit-btn { white-space: nowrap; padding: 13px 28px; font-size: 15px; }

/* ── Bukti (Receipt) ── */
.bukti-wrap {
  background: #fff; border: 1.5px solid var(--border); border-radius: 20px;
  overflow: hidden; box-shadow: var(--shadow);
}
.bukti-nomor-card {
  background: linear-gradient(135deg, #050d1c 0%, var(--navy) 100%);
  padding: 28px 32px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.bukti-nomor-label {
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 6px;
}
.bukti-nomor-value {
  font-size: 34px; font-weight: 900; letter-spacing: -1px;
  color: #fff; line-height: 1;
}
.bukti-nomor-meta { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 6px; }
.bukti-nomor-right { display: flex; gap: 8px; flex-shrink: 0; }
.btn-copy-num {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  color: #fff; border-radius: 10px; padding: 8px 14px;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.btn-copy-num:hover { background: rgba(255,255,255,.25); }
.bukti-nomor-card .btn-ghost {
  background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff;
}
.bukti-nomor-card .btn-ghost:hover { background: rgba(255,255,255,.22); }

.bukti-status {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 32px; border-bottom: 1.5px solid var(--border);
  background: var(--gray);
}
.bukti-status-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 5px;
}
.bukti-status strong { display: block; font-size: 14.5px; margin-bottom: 4px; }
.bukti-status p { font-size: 13.5px; color: var(--muted); }
.status-new      .bukti-status-dot { background: var(--amber); }
.status-read     .bukti-status-dot { background: var(--blue); }
.status-accepted .bukti-status-dot { background: var(--green); }
.status-rejected .bukti-status-dot { background: var(--red); }
.status-new      { background: #fffbeb; border-bottom-color: #fde68a; }
.status-read     { background: #eff6ff; border-bottom-color: #bfdbfe; }
.status-accepted { background: #f0fdf4; border-bottom-color: #bbf7d0; }
.status-rejected { background: #fef2f2; border-bottom-color: #fecaca; }

.bukti-body { padding: 0 32px 24px; }
.bukti-section { padding-top: 24px; }
.bukti-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
  color: var(--muted); margin-bottom: 12px;
  padding-bottom: 10px; border-bottom: 1.5px solid var(--border);
}
.bukti-table { width: 100%; border-collapse: collapse; }
.bukti-table tr:last-child td,
.bukti-table tr:last-child th { border-bottom: none; }
.bukti-table th, .bukti-table td {
  padding: 10px 0; border-bottom: 1px solid var(--border);
  text-align: left; vertical-align: top; font-size: 14px;
}
.bukti-table th { width: 200px; color: var(--muted); font-weight: 500; padding-right: 16px; }
.bukti-table td { color: var(--text); font-weight: 600; }

.bukti-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 32px; border-top: 1.5px solid var(--border);
  background: var(--gray);
}
.bukti-footer-meta {
  display: flex; align-items: center; gap: 7px;
  font-size: 13.5px; color: var(--muted);
}
.bukti-footer-actions { display: flex; gap: 10px; }

/* ── Alerts ── */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 16px; border-radius: 12px; margin-bottom: 18px;
  font-weight: 600; font-size: 14px;
}
.alert-icon { font-size: 16px; flex-shrink: 0; }
.alert-close {
  margin-left: auto; background: none; border: none;
  font-size: 18px; cursor: pointer; opacity: .6;
}
.alert-close:hover { opacity: 1; }
.alert-success { background: #dcfce7; color: #15803d; }
.alert-error   { background: #fee2e2; color: #991b1b; }
.alert-info    { background: #dbeafe; color: #1e40af; }
.alert-warning { background: #fef9c3; color: #92400e; }
/* Inline field validation errors */
.field-error-msg {
  display: block;
  color: #dc2626;
  font-size: 12.5px;
  font-weight: 500;
  margin-top: 5px;
}
.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .12) !important;
}
.ppdb-radio-card.radio-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, .15) !important;
}

/* ── Footer ── */
.footer { background: #1e0000; color: #94a3b8; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: 40px; margin-bottom: 36px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-brand { flex-direction: row; gap: 16px; align-items: flex-start; }
.footer-col h4 { color: rgba(255,255,255,.35); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px; }
.footer-col a  { color: rgba(255,255,255,.52); font-size: 13.5px; }
.footer-col a:hover { color: #e2e8f0; }
.footer-col strong { color: #e2e8f0; }
.footer-address { font-size: 13.5px; line-height: 1.6; }
.social-links { display: flex; gap: 12px; margin-top: 8px; }
.social-links a { color: #64748b; }
.social-links a:hover { color: #e2e8f0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 20px; font-size: 13px; color: rgba(255,255,255,.28); }
.footer-note { margin-top: 4px; color: rgba(255,255,255,.22); }
.footer-bottom b { color: var(--gold); }

/* ── Misc helpers ── */
.muted { color: var(--muted); }
.empty-state { color: var(--muted); text-align: center; padding: 40px; font-style: italic; }

/* ════════════════════════════════════════════
   SUBTLE ANIMATIONS
════════════════════════════════════════════ */

/* — Keyframes — */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes hfbIn {
  from { opacity: 0; transform: scale(.76) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes hfbFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* — Hero intro: staggered fade-up on page load — */
.hero-intro .eyebrow { animation: fadeUp .50s cubic-bezier(.22,1,.36,1) both  .05s; }
.hero-intro h1       { animation: fadeUp .65s cubic-bezier(.22,1,.36,1) both  .15s; }
.hero-intro p        { animation: fadeUp .65s cubic-bezier(.22,1,.36,1) both  .25s; }
.hero-cta            { animation: fadeUp .65s cubic-bezier(.22,1,.36,1) both  .35s; }
/* Media row: left image slides up, right panel slides in */
.hero-media-img      { animation: fadeUp .75s cubic-bezier(.22,1,.36,1) both  .45s; }
.hero-news-panel     { animation: slideInRight .70s cubic-bezier(.22,1,.36,1) both .55s; }
/* Floating badges bounce in (individual delays set inline in HTML) */
/* After load, badges float gently */
.hfb--tl { animation: hfbIn .65s cubic-bezier(.34,1.56,.64,1) both .70s,
                       hfbFloat 4.5s ease-in-out 1.5s infinite; }
.hfb--bl { animation: hfbIn .65s cubic-bezier(.34,1.56,.64,1) both .80s,
                       hfbFloat 5.5s ease-in-out 2.0s infinite; }
.hfb--br { animation: hfbIn .65s cubic-bezier(.34,1.56,.64,1) both .75s,
                       hfbFloat 5.0s ease-in-out 1.7s infinite; }
.hfb--bc { animation: hfbIn .65s cubic-bezier(.34,1.56,.64,1) both .85s,
                       hfbFloat 6.0s ease-in-out 2.3s infinite; }

/* — Scroll reveal system — */
/* JS adds .anim-el + direction class, then deferred observer adds .anim-visible */
.anim-el {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity .65s cubic-bezier(.22,1,.36,1),
              transform .65s cubic-bezier(.22,1,.36,1);
}
.anim-up    { transform: translateY(28px); }
.anim-left  { transform: translateX(-38px); }
.anim-right { transform: translateX(38px); }
.anim-scale { transform: scale(.93); }

.anim-el.anim-visible {
  opacity: 1;
  transform: none;
}

/* Restore hover-lift after reveal (inline delay cleared by JS after animation) */
.anim-el.anim-visible.card-program:hover    { transform: translateY(-4px); }
.anim-el.anim-visible.card-achievement:hover { transform: translateY(-3px); }
.anim-el.anim-visible.card:hover            { transform: translateY(-3px); }

/* — Why-us icon: scale + slight tilt on hover — */
.why-icon { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.card-why:hover .why-icon { transform: scale(1.13) rotate(-5deg); }

/* — Card image zoom on hover — */
.card-post { overflow: hidden; }
.post-thumb {
  transition: transform .55s cubic-bezier(.22,1,.36,1),
              box-shadow .55s ease;
  will-change: transform;
}
.card-post:hover .post-thumb { transform: scale(1.05); }

.card-program { overflow: hidden; }
.card-cover {
  transition: transform .55s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}
.card-program:hover .card-cover { transform: scale(1.06); }

/* — Achievement card hover lift — */
.card-achievement {
  transition: transform .3s cubic-bezier(.22,1,.36,1),
              box-shadow .3s ease;
}
.card-achievement:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* — Smooth accordion with max-height transition — */
.ks-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .45s cubic-bezier(.22,1,.36,1),
              opacity .35s ease;
}
.ks-item.is-open .ks-body {
  max-height: 600px;
  opacity: 1;
}
/* First item starts open — ensure it shows without JS needing to trigger */
.ks-item.is-open .ks-body { max-height: 600px; opacity: 1; }

/* — Navbar shrink on scroll — */
.navbar {
  transition: padding .3s cubic-bezier(.22,1,.36,1),
              box-shadow .3s ease,
              background .3s ease;
}
.navbar.scrolled {
  padding-top: 6px;
  padding-bottom: 6px;
  box-shadow: 0 2px 20px rgba(12,28,54,.10);
}

/* — Scroll progress bar — */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  z-index: 9999;
  transition: width .1s linear;
  pointer-events: none;
}

/* — Section eyebrow line grow (only for section headings, not hero) — */
.section-head .eyebrow,
.principal-left .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-head .eyebrow::before,
.section-head .eyebrow::after,
.principal-left .eyebrow::before,
.principal-left .eyebrow::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--teal);
  border-radius: 2px;
  transition: width .55s cubic-bezier(.22,1,.36,1);
}
.section-head .eyebrow.line-visible::before,
.section-head .eyebrow.line-visible::after,
.principal-left .eyebrow.line-visible::before,
.principal-left .eyebrow.line-visible::after { width: 22px; }

/* — Button: subtle lift on hover (Animation System v2) — */
.btn:hover  { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.14); }
.btn:active { transform: translateY(0) !important; transition-duration: .06s; }
/* Nav CTA: no lift (sits inside fixed navbar) */
.btn-cta:hover { transform: none !important; box-shadow: none !important; }

/* — Respect user's reduced-motion preference — */
@media (prefers-reduced-motion: reduce) {
  .anim-el { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-intro .eyebrow, .hero-intro h1, .hero-intro p,
  .hero-cta, .hero-media-img, .hero-news-panel,
  .hfb, .hfb--tl, .hfb--bl, .hfb--br, .hfb--bc { animation: none !important; }
  .why-icon { transition: none !important; }
  .post-thumb, .card-cover { transition: none !important; }
  .ks-body { transition: max-height .2s ease, opacity .2s ease; }
  .btn { transition: background .15s, color .15s, border-color .15s !important;
         transform: none !important; box-shadow: none !important; }
  #scroll-progress { display: none; }
  .section-head .eyebrow::before, .section-head .eyebrow::after,
  .principal-left .eyebrow::before, .principal-left .eyebrow::after { transition: none !important; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  /* Hapus backdrop-filter di mobile — mencegah navbar jadi containing block
     untuk position:fixed, yang menyebabkan nav overlay ter-clip di dalam navbar */
  .navbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }

  .nav { display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    flex-direction: column; background: #fff; z-index: 101;
    padding: 20px; gap: 4px; overflow-y: auto;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(15,23,42,.12);
  }
  .nav.open { display: flex; }
  .nav a { font-size: 16px; padding: 12px 16px; border-radius: 10px; }
  .nav-toggle { display: flex; }
  .hero { padding: 56px 0 0; }
  .hero-intro { margin-bottom: 36px; }
  .hero-media { grid-template-columns: 1fr; gap: 16px; }
  .hero-photo-frame { min-height: 300px; border-radius: 16px 16px 0 0; }
  .hero-news-panel { border-radius: 16px 16px 0 0; }
  .hfb--br { display: none; } /* hide right badge on mobile */
  .principal-grid { grid-template-columns: 1fr; gap: 36px; }
  .principal-right { order: -1; } /* foto di atas di mobile */
  .principal-big-photo { aspect-ratio: 16/9; border-radius: 20px; }
  .ks-body { padding-left: 18px; } /* buang indent di mobile */
  .latest-news-row { grid-template-columns: 1fr; }
  .news-featured-grid { grid-template-columns: 1fr; }
  .news-feat-thumb { aspect-ratio: 16/9; }
  .news-list { gap: 12px; height: auto; }
  .news-list-item { grid-template-columns: 120px 1fr; flex: none; border-radius: var(--radius-md) !important; border-bottom: none; box-shadow: var(--shadow-sm); }
  .news-list-thumb { min-height: 110px; }
  .card-achievement { grid-template-columns: 132px 1fr; }
  .profile-nav-grid { grid-template-columns: 1fr; }
  .profile-id-item { padding: 8px 20px; }
  .profile-id-divider { display: none; }
  .profile-id-value { font-size: 18px; }
  .principal-profile-grid { grid-template-columns: 1fr; gap: 32px; }
  .principal-profile-photo { max-width: 220px; margin: 0 auto; aspect-ratio: 1/1; border-radius: 50%; }
  .principal-profile-body { text-align: center; }
  .principal-profile-quote { text-align: left; }
  .sejarah-stat { padding: 10px 24px; }
  .sejarah-stat-divider { display: none; }
  .sejarah-timeline { padding-left: 24px; }
  .sejarah-timeline h3 { padding-left: 18px; font-size: 16px; }
  .sejarah-timeline h3::before { left: -29px; }
  .sejarah-timeline p { padding-left: 18px; font-size: 14.5px; }
  .teacher-grid,
  .teacher-grid--staff { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .teacher-body { padding: 12px 14px 14px; }
  .ppdb-steps { flex-wrap: wrap; gap: 24px; }
  .ppdb-steps::before { display: none; }
  .ppdb-step { flex: 0 0 calc(50% - 12px); }
  .ppdb-step-connector { display: none; }
  .receipt-grid { grid-template-columns: 1fr; }
  .receipt-head, .receipt-foot { align-items: flex-start; flex-direction: column; }
  .stats-grid { flex-wrap: wrap; }
  .stat-divider { display: none; }
  .stat-item { padding: 20px 30px; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  /* PPDB responsive */
  .ppdb-layout { grid-template-columns: 1fr; }
  .ppdb-sidebar { position: static; }
  .ppdb-steps-bar .ppdb-step span { display: none; }
  .ppdb-steps-bar { padding: 12px 0; }
  .ppdb-submit-area { flex-direction: column; align-items: flex-start; }
  .bukti-nomor-card { flex-direction: column; align-items: flex-start; gap: 14px; }
  .bukti-nomor-value { font-size: 26px; }
  .bukti-body { padding: 0 18px 20px; }
  .bukti-footer { flex-direction: column; align-items: flex-start; }
  .bukti-table th { width: 140px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { flex-direction: column; }
  .cta-strip-inner { flex-direction: column; text-align: center; }
  .topbar-left { display: none; }
  .topbar-inner { justify-content: center; }
  .topbar-ppdb { font-size: 12px; padding: 4px 12px; }
}

/* ── Print helpers ── */
.print-only { display: none !important; }

@media print {
  @page { size: A5 landscape; margin: 0; }

  /* Hide all chrome */
  .topbar, .navbar, .nav-backdrop, .ppdb-hero, .ppdb-steps-bar,
  footer, .footer, .no-print, .alert,
  .bukti-status, .bukti-footer { display: none !important; }

  /* Show print-only elements */
  .print-only       { display: block !important; }
  .print-letterhead { display: flex  !important; }
  .print-sign       { display: grid  !important; }

  body { font-size: 9.5pt; color: #000; background: #fff; }
  main, .section { padding: 0; margin: 0; }
  .container { max-width: 100%; padding: 0; margin: 0; }

  /* Strip card chrome */
  .bukti-wrap {
    border: none; border-radius: 0; box-shadow: none;
    break-inside: avoid; page-break-inside: avoid;
  }

  /* Registration number bar */
  .bukti-nomor-card {
    background: none !important; color: #000 !important;
    padding: 7pt 0; border-bottom: 1.5pt solid #000;
    display: block;
  }
  .bukti-nomor-label { color: #555 !important; font-size: 7.5pt; }
  .bukti-nomor-value { font-size: 18pt; color: #000 !important; margin-bottom: 2pt; }
  .bukti-nomor-meta  { color: #555 !important; font-size: 7.5pt; }

  /* Body — two-column side by side */
  .bukti-body {
    padding: 0; margin-top: 6pt;
    display: grid; grid-template-columns: 1fr 1fr; gap: 12pt;
  }
  .bukti-section { padding-top: 0; }
  .bukti-section-title {
    font-size: 7.5pt; color: #555; padding-bottom: 2pt;
    border-bottom: .5pt solid #999; margin-bottom: 3pt;
  }
  .bukti-table { width: 100%; border-collapse: collapse; }
  .bukti-table th,
  .bukti-table td {
    padding: 2.5pt 0; border-bottom: .4pt solid #ddd;
    font-size: 8pt; vertical-align: top; text-align: left;
  }
  .bukti-table th {
    width: 46%; color: #444; font-weight: 600;
    white-space: nowrap; padding-right: 4pt;
  }
  .bukti-table td { font-weight: 400; }
  .bukti-table tr:last-child th,
  .bukti-table tr:last-child td { border-bottom: none; }

  /* Print letterhead */
  .print-letterhead {
    display: flex; align-items: center; gap: 10pt;
    padding-bottom: 7pt; margin-bottom: 5pt;
    border-bottom: 2pt solid #000;
  }
  .print-letterhead-logo {
    width: 34pt; height: 34pt; border-radius: 5pt;
    background: #0b1d3a !important; color: #fff !important;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
    display: flex; align-items: center; justify-content: center;
    font-size: 12pt; font-weight: 900; flex-shrink: 0; letter-spacing: -1pt;
  }
  .print-letterhead-text strong { display: block; font-size: 11pt; color: #000; }
  .print-letterhead-text span   { font-size: 7.5pt; color: #444; }
  .print-letterhead-title { margin-left: auto; text-align: right; }
  .print-letterhead-title h2 { font-size: 11pt; color: #000; margin: 0; }
  .print-letterhead-title small { font-size: 7.5pt; color: #555; }

  /* Signature — never split */
  .print-sign {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16pt;
    margin-top: 8pt; padding-top: 7pt; border-top: .5pt solid #ccc;
    break-inside: avoid; page-break-inside: avoid;
  }
  .print-sign-box { font-size: 8.5pt; break-inside: avoid; page-break-inside: avoid; }
  .print-sign-box strong { display: block; margin-bottom: 16pt; }
  .print-sign-line { border-top: 1pt solid #000; padding-top: 3pt; font-size: 8pt; color: #444; }
}
@media (max-width: 600px) {
  .card-grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 48px; }
  .hero-photo-frame { min-height: 220px; }
  .hero-latest-item { grid-template-columns: 68px 1fr; padding: 11px 14px; }
  .hero-latest-thumb { width: 68px; }
  .latest-strip-head { align-items: flex-start; flex-direction: column; }
  .latest-news-item { grid-template-columns: 92px 1fr; }
  .latest-news-thumb { width: 92px; }
  .card-achievement { grid-template-columns: 1fr; }
  .ach-thumb { min-height: 190px; }
  .section { padding: 52px 0; }
}
