/* ==========================================================================
   Template Website Sekolah — Klasik Modern
   Palet: Biru dongker (navy) + emas + krem
   ========================================================================== */

:root {
  --navy-900: #0b1f38;
  --navy-800: #102a4c;
  --navy-700: #16365f;
  --navy-600: #1f4778;
  --gold-500: #c9a24b;
  --gold-400: #d8b866;
  --gold-100: #f5ecd6;
  --cream: #faf7f0;
  --paper: #ffffff;
  --ink: #1f2933;
  --muted: #5f6b7a;
  --line: #e6e1d4;
  --maroon: #8a1c1c;

  --font-serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --shadow-sm: 0 2px 8px rgba(11, 31, 56, .06);
  --shadow: 0 10px 30px rgba(11, 31, 56, .10);
  --container: 1200px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-500); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--navy-900);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 700;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s;
}
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); color: var(--navy-900); transform: translateY(-2px); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-600); color: #fff; }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy-900); }
.btn-outline-navy { border-color: var(--navy-800); color: var(--navy-800); }
.btn-outline-navy:hover { background: var(--navy-800); color: #fff; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-900);
  color: rgba(255,255,255,.8);
  font-size: .82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  gap: 1rem;
}
.topbar-info, .topbar-social { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: .4rem; }
.topbar-info .icon { color: var(--gold-500); }
.topbar a { color: rgba(255,255,255,.8); }
.topbar a:hover { color: var(--gold-400); }
.topbar-social { gap: .9rem; }
.topbar-social a { display: inline-flex; }

/* ---------- Header / brand ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--gold-500);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .9rem; color: inherit; }
.brand:hover { color: inherit; }
.brand-logo { width: 58px; height: 58px; flex-shrink: 0; }
.brand-text strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy-900);
  line-height: 1.15;
  letter-spacing: .01em;
}
.brand-text small {
  display: block;
  font-size: .76rem;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Navigasi ---------- */
.main-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: .2rem; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .6rem .85rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy-800);
  border-radius: var(--radius);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a { color: var(--gold-500); }
.main-nav > ul > li.active > a { position: relative; }
.main-nav > ul > li.active > a::after {
  content: "";
  position: absolute;
  left: .85rem; right: .85rem; bottom: .2rem;
  height: 2px;
  background: var(--gold-500);
}
.main-nav .caret { width: .7em; height: .7em; transition: transform .2s; }
.main-nav .nav-cta > a { background: var(--navy-800); color: #fff !important; margin-left: .4rem; }
.main-nav .nav-cta > a:hover { background: var(--gold-500); color: var(--navy-900) !important; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  list-style: none;
  margin: 0;
  padding: .5rem 0;
  background: var(--paper);
  border-top: 3px solid var(--gold-500);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s;
  z-index: 50;
}
.dropdown a {
  display: block;
  padding: .55rem 1.2rem;
  font-size: .9rem;
  color: var(--ink);
}
.dropdown a:hover { background: var(--cream); color: var(--navy-700); padding-left: 1.5rem; }
.has-dropdown:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover .caret { transform: rotate(180deg); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .5rem;
  cursor: pointer;
  color: var(--navy-800);
}
.nav-toggle .icon { width: 26px; height: 26px; }

/* ---------- Running text / ticker ---------- */
.ticker {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.ticker .container { display: flex; align-items: stretch; }
.ticker-label {
  background: var(--maroon);
  color: #fff;
  font-weight: 700;
  padding: .55rem 1rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.ticker-track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker-move {
  display: inline-flex;
  gap: 3rem;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker 35s linear infinite;
}
.ticker-move a { color: var(--navy-800); }
.ticker-move a::before { content: "◆"; color: var(--gold-500); margin-right: .6rem; font-size: .7em; }
.ticker-track:hover .ticker-move { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: 620px; overflow: hidden; background: var(--navy-900); }
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
}
.slide.active { opacity: 1; z-index: 1; }
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,31,56,.92) 0%, rgba(11,31,56,.7) 45%, rgba(11,31,56,.25) 100%);
}
.slide-content { position: relative; z-index: 2; max-width: 640px; color: #fff; }
.slide-content .eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold-400);
  border-left: 3px solid var(--gold-500);
  padding-left: .8rem;
  margin-bottom: 1.2rem;
}
.slide-content h1, .slide-content h2 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: 1rem;
}
.slide-content h1 em, .slide-content h2 em { color: var(--gold-400); font-style: italic; }
.slide-content p { font-size: 1.1rem; color: rgba(255,255,255,.85); max-width: 540px; margin-bottom: 2rem; }
.slide-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.slide .slide-content { opacity: 0; transform: translateY(30px); transition: all .9s .3s; }
.slide.active .slide-content { opacity: 1; transform: none; }

.hero-nav {
  position: absolute;
  bottom: 96px;
  left: 0; right: 0;
  z-index: 3;
}
.hero-dots { display: flex; gap: .6rem; }
.hero-dots button {
  width: 34px; height: 4px;
  border: 0;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  padding: 0;
  transition: all .3s;
}
.hero-dots button.active { background: var(--gold-500); width: 56px; }
.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}
.hero-arrow:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

/* ---------- Kartu layanan cepat (menumpuk di hero) ---------- */
.quick-links { position: relative; z-index: 5; margin-top: -80px; }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
.quick-item {
  padding: 2rem 1.6rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border-right: 1px solid var(--line);
  color: inherit;
  transition: background .25s;
}
.quick-item:last-child { border-right: 0; }
.quick-item:hover { background: var(--navy-800); color: #fff; }
.quick-item:hover h4 { color: #fff; }
.quick-item:hover p { color: rgba(255,255,255,.75); }
.quick-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .25s;
}
.quick-icon .icon { width: 24px; height: 24px; }
.quick-item:hover .quick-icon { background: var(--gold-500); }
.quick-item h4 { font-size: 1.08rem; margin-bottom: .2rem; transition: color .25s; }
.quick-item p { font-size: .87rem; color: var(--muted); margin: 0; transition: color .25s; }

/* ---------- Section umum ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--cream); }
.section-navy { background: var(--navy-900); color: rgba(255,255,255,.85); }
.section-navy h2, .section-navy h3 { color: #fff; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 3.2rem; }
.section-head.left { text-align: left; margin-left: 0; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: .8rem;
}
.kicker::before, .kicker::after { content: ""; width: 28px; height: 1px; background: var(--gold-500); }
.section-head.left .kicker::before { display: none; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.section-head p { color: var(--muted); }
.section-navy .section-head p { color: rgba(255,255,255,.7); }

.ornament { display: flex; justify-content: center; align-items: center; gap: .5rem; color: var(--gold-500); margin: .4rem 0 1rem; }
.ornament span { width: 50px; height: 1px; background: currentColor; }
.ornament i { width: 8px; height: 8px; transform: rotate(45deg); border: 1px solid currentColor; }
.section-head.left .ornament { justify-content: flex-start; }

/* ---------- Sambutan kepala sekolah ---------- */
.welcome-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 4rem; align-items: center; }
.principal-photo { position: relative; padding: 0 0 24px 24px; }
.principal-photo::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 75%; height: 80%;
  border: 2px solid var(--gold-500);
  border-radius: var(--radius);
}
.principal-photo img { position: relative; border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.principal-badge {
  position: absolute;
  right: -20px; bottom: 50px;
  background: var(--navy-800);
  color: #fff;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold-500);
}
.principal-badge strong { display: block; font-family: var(--font-serif); font-size: 1.05rem; }
.principal-badge small { color: var(--gold-400); font-size: .8rem; }
.welcome-text blockquote {
  margin: 0 0 1.4rem;
  padding: 0 0 0 1.4rem;
  border-left: 3px solid var(--gold-500);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--navy-700);
  line-height: 1.6;
}
.welcome-text p { color: var(--muted); }
.signature { margin-top: 1.6rem; display: flex; align-items: center; gap: 1rem; }
.signature-line { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 2rem; color: var(--navy-700); line-height: 1; }
.signature small { display: block; color: var(--muted); font-size: .85rem; }

/* ---------- Statistik ---------- */
.stats {
  background:
    linear-gradient(rgba(11,31,56,.93), rgba(11,31,56,.93)),
    url("../img/pattern.svg");
  color: #fff;
  padding: 70px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item { position: relative; }
.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1rem; top: 15%;
  height: 70%; width: 1px;
  background: rgba(201,162,75,.35);
}
.stat-item .icon { width: 40px; height: 40px; color: var(--gold-500); margin: 0 auto .8rem; stroke-width: 1.5; }
.stat-number { font-family: var(--font-serif); font-size: 2.8rem; font-weight: 700; color: #fff; line-height: 1; }
.stat-label { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-top: .5rem; }

/* ---------- Program unggulan ---------- */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.program-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  position: relative;
  transition: all .3s;
  overflow: hidden;
}
.program-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s;
}
.program-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); border-color: transparent; }
.program-card:hover::before { transform: scaleX(1); }
.program-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold-500);
  color: var(--navy-800);
  border-radius: 50%;
  margin-bottom: 1.3rem;
  position: relative;
}
.program-icon::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--gold-100);
  z-index: 0;
}
.program-icon .icon { width: 28px; height: 28px; position: relative; z-index: 1; stroke-width: 1.6; }
.program-card h3 { font-size: 1.25rem; }
.program-card p { color: var(--muted); font-size: .94rem; }
.link-more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; color: var(--navy-700); }
.link-more .icon { transition: transform .2s; }
.link-more:hover .icon { transform: translateX(4px); }

/* ---------- Berita ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.news-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .3s;
  display: flex;
  flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.news-thumb { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-date {
  position: absolute;
  left: 16px; bottom: 0;
  background: var(--gold-500);
  color: var(--navy-900);
  text-align: center;
  padding: .45rem .8rem;
  line-height: 1.1;
  font-weight: 700;
}
.news-date b { display: block; font-family: var(--font-serif); font-size: 1.4rem; }
.news-date small { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.news-body { padding: 1.5rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.news-meta { display: flex; gap: 1rem; font-size: .8rem; color: var(--muted); margin-bottom: .6rem; flex-wrap: wrap; }
.news-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.news-meta .tag { color: var(--maroon); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.news-body h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.news-body h3 a { color: var(--navy-900); }
.news-body h3 a:hover { color: var(--gold-500); }
.news-body p { color: var(--muted); font-size: .92rem; flex: 1; }

/* ---------- Agenda + pengumuman ---------- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.panel {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  background: var(--navy-800);
  color: #fff;
  border-bottom: 3px solid var(--gold-500);
}
.panel-head h3 { color: #fff; font-size: 1.15rem; margin: 0; display: flex; align-items: center; gap: .6rem; }
.panel-head h3 .icon { color: var(--gold-400); }
.panel-head a { color: var(--gold-400); font-size: .85rem; font-weight: 600; }
.panel-head a:hover { color: #fff; }
.panel-body { padding: .5rem 1.5rem; }

.agenda-item { display: flex; gap: 1.1rem; padding: 1.1rem 0; border-bottom: 1px dashed var(--line); }
.agenda-item:last-child { border-bottom: 0; }
.agenda-date {
  width: 64px;
  flex-shrink: 0;
  text-align: center;
  border: 1px solid var(--gold-500);
  border-radius: var(--radius);
  overflow: hidden;
}
.agenda-date b { display: block; font-family: var(--font-serif); font-size: 1.5rem; color: var(--navy-800); padding: .3rem 0 .1rem; }
.agenda-date small { display: block; background: var(--gold-500); color: var(--navy-900); font-size: .7rem; font-weight: 700; text-transform: uppercase; padding: .15rem 0; }
.agenda-item h4 { font-size: 1rem; margin-bottom: .25rem; font-family: var(--font-sans); font-weight: 700; }
.agenda-item p { font-size: .84rem; color: var(--muted); margin: 0; display: flex; gap: 1rem; flex-wrap: wrap; }
.agenda-item p span { display: inline-flex; align-items: center; gap: .3rem; }

.announce-item { display: flex; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.announce-item:last-child { border-bottom: 0; }
.announce-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.announce-item h4 { font-size: .98rem; margin-bottom: .2rem; font-family: var(--font-sans); font-weight: 600; }
.announce-item h4 a { color: var(--ink); }
.announce-item h4 a:hover { color: var(--gold-500); }
.announce-item small { color: var(--muted); font-size: .8rem; }
.badge-new {
  display: inline-block;
  background: var(--maroon);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: .05rem .45rem;
  border-radius: 3px;
  margin-left: .3rem;
  vertical-align: middle;
  letter-spacing: .05em;
}

/* ---------- Prestasi ---------- */
.achieve-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.achieve-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,162,75,.3);
  border-radius: var(--radius);
  padding: 2rem 1.4rem;
  text-align: center;
  transition: all .3s;
}
.achieve-card:hover { background: rgba(201,162,75,.1); border-color: var(--gold-500); transform: translateY(-4px); }
.achieve-card .medal {
  width: 70px; height: 70px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f3dc98, var(--gold-500) 60%, #9b7a2c);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-900);
  box-shadow: 0 0 0 6px rgba(201,162,75,.15);
}
.achieve-card .medal .icon { width: 32px; height: 32px; stroke-width: 1.6; }
.achieve-card h4 { color: #fff; font-size: 1.05rem; margin-bottom: .4rem; }
.achieve-card p { font-size: .85rem; color: rgba(255,255,255,.65); margin: 0; }
.achieve-card .level { display: inline-block; margin-top: .8rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-400); font-weight: 700; }

/* ---------- Galeri ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 12px;
}
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item::after {
  content: attr(data-caption);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.1rem;
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
  background: linear-gradient(to top, rgba(11,31,56,.85), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover img { transform: scale(1.08); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,15,28,.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 2rem;
  flex-direction: column;
  gap: 1rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 80vh; max-width: 90vw; border: 4px solid #fff; }
.lightbox p { color: #fff; margin: 0; font-family: var(--font-serif); font-size: 1.1rem; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Testimoni ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.testi-card {
  background: var(--paper);
  padding: 2.2rem 1.8rem 1.8rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testi-card::before {
  content: "\201C";
  position: absolute;
  top: -10px; right: 22px;
  font-family: var(--font-serif);
  font-size: 6rem;
  color: var(--gold-100);
  line-height: 1;
}
.testi-card p { font-style: italic; color: var(--muted); position: relative; }
.testi-person { display: flex; gap: .9rem; align-items: center; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.testi-person img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-500); }
.testi-person strong { display: block; font-family: var(--font-serif); color: var(--navy-900); }
.testi-person small { color: var(--muted); font-size: .82rem; }

/* ---------- CTA PPDB / SPMB ---------- */
.cta {
  position: relative;
  background: linear-gradient(120deg, var(--navy-800), var(--navy-600));
  color: #fff;
  padding: 70px 0;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 60px solid rgba(201,162,75,.12);
}
.cta .container { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .4rem; }
.cta h2 em { color: var(--gold-400); }
.cta p { color: rgba(255,255,255,.8); margin: 0; max-width: 620px; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Mitra / logo strip ---------- */
.partners { padding: 46px 0; border-bottom: 1px solid var(--line); }
.partner-row { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.partner-row span {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: #a7a091;
  letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: color .2s;
}
.partner-row span:hover { color: var(--navy-700); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); font-size: .92rem; }
.footer-top { padding: 70px 0 50px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.site-footer h4 {
  color: #fff;
  font-size: 1.12rem;
  margin-bottom: 1.3rem;
  padding-bottom: .7rem;
  position: relative;
}
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--gold-500); }
.footer-brand { display: flex; gap: .8rem; align-items: center; margin-bottom: 1.1rem; }
.footer-brand .brand-logo { width: 52px; height: 52px; }
.footer-brand strong { font-family: var(--font-serif); color: #fff; font-size: 1.2rem; line-height: 1.2; display: block; }
.footer-brand small { color: var(--gold-400); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: rgba(255,255,255,.72); display: inline-flex; align-items: center; gap: .4rem; }
.footer-links a::before { content: "›"; color: var(--gold-500); font-weight: 700; }
.footer-links a:hover { color: var(--gold-400); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .85rem; }
.footer-contact .icon { color: var(--gold-500); margin-top: .3rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.footer-social a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.footer-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  height: 160px;
  background: #13304f url("../img/map.svg") center/cover;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  margin-top: 1rem;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.3rem 0; font-size: .85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--gold-400); }

.back-to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all .3s;
  z-index: 90;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--navy-800); color: #fff; }

/* ==========================================================================
   Halaman dalam
   ========================================================================== */
.page-banner {
  position: relative;
  padding: 90px 0 80px;
  background: var(--navy-800) url("../img/hero-2.svg") center/cover;
  color: #fff;
  text-align: center;
}
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(11,31,56,.86); }
.page-banner .container { position: relative; }
.page-banner h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: .6rem; }
.breadcrumb { display: flex; justify-content: center; gap: .5rem; list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--gold-500); }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb li:last-child { color: var(--gold-400); }

.content-layout { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; align-items: start; }

.side-widget { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.8rem; }
.side-widget h4 { font-size: 1.1rem; padding-bottom: .7rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line); position: relative; }
.side-widget h4::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 50px; height: 2px; background: var(--gold-500); }
.side-menu { list-style: none; margin: 0; padding: 0; }
.side-menu a { display: flex; justify-content: space-between; padding: .65rem 0; border-bottom: 1px dashed var(--line); color: var(--ink); font-size: .93rem; }
.side-menu li:last-child a { border-bottom: 0; }
.side-menu a:hover, .side-menu a.active { color: var(--gold-500); }
.side-menu a span { color: var(--muted); font-size: .82rem; }
.search-box { display: flex; }
.search-box input { flex: 1; padding: .7rem .9rem; border: 1px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); font: inherit; font-size: .9rem; }
.search-box input:focus { outline: none; border-color: var(--gold-500); }
.search-box button { border: 0; background: var(--navy-800); color: #fff; padding: 0 1rem; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; }
.recent-post { display: flex; gap: .8rem; margin-bottom: 1rem; }
.recent-post:last-child { margin-bottom: 0; }
.recent-post img { width: 76px; height: 60px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.recent-post a { font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.4; display: block; }
.recent-post a:hover { color: var(--gold-500); }
.recent-post small { color: var(--muted); font-size: .78rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-cloud a { font-size: .8rem; padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); }
.tag-cloud a:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.news-list .news-card { flex-direction: row; margin-bottom: 1.8rem; }
.news-list .news-thumb { width: 300px; flex-shrink: 0; aspect-ratio: auto; }

.pagination { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.pagination a {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
}
.pagination a:hover, .pagination a.active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* Profil */
.prose h2 { font-size: 1.7rem; margin-top: .4rem; }
.prose h3 { font-size: 1.3rem; margin-top: 2rem; }
.prose p { color: #46505c; }
.prose ul { padding-left: 1.2rem; color: #46505c; }
.prose li { margin-bottom: .4rem; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; margin: 1.8rem 0; }
.vm-card { border: 1px solid var(--line); border-top: 4px solid var(--gold-500); border-radius: var(--radius); padding: 1.8rem; background: var(--paper); }
.vm-card.navy { background: var(--navy-800); border-color: var(--navy-800); border-top-color: var(--gold-500); color: rgba(255,255,255,.85); }
.vm-card.navy h3 { color: #fff; }
.vm-card h3 { margin-top: 0; display: flex; align-items: center; gap: .6rem; }
.vm-card h3 .icon { color: var(--gold-500); }
.vm-card ol { padding-left: 1.2rem; margin: 0; }
.vm-card li { margin-bottom: .5rem; }
.vm-card.navy p { color: rgba(255,255,255,.88); }
.profil-sambutan { grid-template-columns: 1fr 1.6fr; gap: 2.5rem; margin-bottom: 3rem; }
.vm-quote { font-family: var(--font-serif); font-size: 1.3rem; font-style: italic; line-height: 1.6; }

.timeline { position: relative; margin: 1.5rem 0 0; padding-left: 2rem; border-left: 2px solid var(--gold-100); }
.timeline-item { position: relative; padding-bottom: 1.6rem; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-2rem - 8px); top: .35rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--gold-500);
}
.timeline-item b { font-family: var(--font-serif); color: var(--gold-500); font-size: 1.1rem; }
.timeline-item p { margin: .2rem 0 0; }

.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.staff-card { text-align: center; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: all .3s; }
.staff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.staff-card img { width: 100%; aspect-ratio: 1/1.1; object-fit: cover; }
.staff-card div { padding: 1rem .8rem 1.2rem; border-top: 3px solid var(--gold-500); }
.staff-card strong { display: block; font-family: var(--font-serif); color: var(--navy-900); font-size: 1.02rem; }
.staff-card small { color: var(--muted); font-size: .82rem; }

.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.4rem; }
.facility-item { display: flex; gap: .8rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; font-size: .93rem; color: var(--navy-800); background: var(--paper); }
.facility-item .icon { color: var(--gold-500); width: 22px; height: 22px; }

/* Kontak */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; }
.contact-card { display: flex; gap: 1rem; padding: 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.1rem; }
.contact-card .quick-icon { background: var(--navy-800); color: var(--gold-400); }
.contact-card h4 { font-size: 1.05rem; margin-bottom: .2rem; }
.contact-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.form-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.4rem; border-top: 4px solid var(--gold-500); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .4rem; color: var(--navy-800); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: .93rem;
  background: var(--cream);
  transition: border-color .2s, background .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--gold-500); background: #fff; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-success { display: none; padding: 1rem 1.2rem; background: #e9f5ec; border-left: 4px solid #2e7d4f; color: #1f5b38; border-radius: var(--radius); margin-bottom: 1.2rem; }
.map-box { height: 380px; border-radius: var(--radius); overflow: hidden; background: #dfe6ee url("../img/map.svg") center/cover; display: flex; align-items: center; justify-content: center; }
.map-box span { background: var(--navy-800); color: #fff; padding: .7rem 1.2rem; border-radius: var(--radius); font-size: .9rem; box-shadow: var(--shadow); }

/* ---------- Animasi muncul saat scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s, transform .8s; }
.reveal.visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsif
   ========================================================================== */
@media (max-width: 1100px) {
  .main-nav > ul > li > a { padding: .6rem .6rem; font-size: .88rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    width: 300px; max-width: 85vw;
    height: 100vh;
    background: var(--paper);
    box-shadow: var(--shadow);
    transform: translateX(100%);
    transition: transform .3s;
    overflow-y: auto;
    padding: 80px 1.2rem 2rem;
    z-index: 200;
  }
  .main-nav.open { transform: none; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li > a { justify-content: space-between; padding: .85rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav > ul > li.active > a::after { display: none; }
  .main-nav .nav-cta > a { margin: 1rem 0 0; justify-content: center; border-radius: var(--radius); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; display: none; padding: 0 0 0 .8rem; background: var(--cream); }
  .has-dropdown.open > .dropdown { display: block; }
  .has-dropdown:hover > .dropdown { transform: none; }
  .has-dropdown.open .caret { transform: rotate(180deg); }
  .nav-overlay { position: fixed; inset: 0; background: rgba(11,31,56,.5); z-index: 150; display: none; }
  .nav-overlay.show { display: block; }

  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-item:nth-child(2) { border-right: 0; }
  .quick-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .welcome-grid, .info-grid, .contact-grid, .content-layout, .profil-sambutan { grid-template-columns: 1fr; }
  .welcome-grid { gap: 3rem; }
  .principal-photo { max-width: 440px; }
  .program-grid, .news-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .achieve-grid, .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .stat-item:nth-child(2)::after { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .facility-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .topbar-info span:nth-child(n+2) { display: none; }
  .brand-text strong { font-size: 1.1rem; }
  .brand-text small { font-size: .68rem; }
  .brand-logo { width: 46px; height: 46px; }
  .site-header .container { min-height: 72px; }
  .hero { height: 600px; }
  .quick-links { margin-top: -40px; }
  .hero-arrow { display: none; }
  .hero-nav { bottom: 56px; }
  .section { padding: 64px 0; }
  .quick-grid, .program-grid, .news-grid, .testi-grid, .vm-grid, .form-row { grid-template-columns: 1fr; }
  .quick-item { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .quick-item:last-child { border-bottom: 0; }
  .principal-badge { right: 0; }
  .gallery-grid { grid-auto-rows: 150px; }
  .gallery-item.wide { grid-column: span 2; }
  .footer-top { grid-template-columns: 1fr; }
  .news-list .news-card { flex-direction: column; }
  .news-list .news-thumb { width: 100%; aspect-ratio: 16/10; }
  .staff-grid, .facility-grid { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-move { padding-left: 0; }
}
