/* ==========================================================================
   SMA CAKRAWALA NUSANTARA — VISUAL STORYTELLING & MODERN CAMPUS UI
   Editorial Layout, Arch & Rounded Frames, Layered Animations, Zero Empty Space
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,700;1,9..144,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --forest: #12372a;
  --forest-deep: #0b241b;
  --forest-mid: #1d4e3d;
  --terracotta: #d96b27;
  --terracotta-hover: #b85417;
  --gold: #eab308;
  --cream: #fbf9f5;
  --cream-dark: #f2ede4;
  --sage-tint: #eaf2ee;
  --ink: #161e1b;
  --ink-muted: #4b5853;
  --white: #ffffff;
  --border: #e2dcd0;
  --shadow-sm: 0 6px 18px rgba(18, 55, 42, 0.06);
  --shadow-md: 0 16px 36px rgba(18, 55, 42, 0.12);
  --shadow-lg: 0 28px 56px rgba(18, 55, 42, 0.18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, .editorial-font {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
}

h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.35s var(--ease);
}

img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad {
  padding: 96px 0;
}

.bg-white { background-color: var(--white); }
.bg-cream { background-color: var(--cream); }
.bg-cream-dark { background-color: var(--cream-dark); }
.bg-sage { background-color: var(--sage-tint); }

/* Editorial Pill & Section Header */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--sage-tint);
  color: var(--forest);
  border: 1px solid rgba(18, 55, 42, 0.14);
  margin-bottom: 14px;
}

.pill-warm {
  background: rgba(217, 107, 39, 0.12);
  color: var(--terracotta);
  border-color: rgba(217, 107, 39, 0.25);
}

.section-head {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

/* Buttons & Micro-interactions */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.35s var(--ease);
}

.btn-primary {
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(18, 55, 42, 0.25);
}

.btn-primary:hover {
  background: var(--forest-deep);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(18, 55, 42, 0.35);
}

.btn-warm {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(217, 107, 39, 0.3);
}

.btn-warm:hover {
  background: var(--terracotta-hover);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--forest);
  border: 2px solid var(--forest);
}

.btn-outline:hover {
  background: var(--forest);
  color: var(--white);
}

.btn-pulse {
  animation: warmPulse 2.5s infinite;
}

@keyframes warmPulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 107, 39, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(217, 107, 39, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 107, 39, 0); }
}

/* ==========================================================================
   TOPBAR & STICKY NAVBAR (7 MENU UTAMA)
   ========================================================================== */
.topbar {
  background: var(--forest-deep);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  padding: 8px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 249, 245, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-md);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-emblem {
  width: 46px;
  height: 46px;
  border-radius: 14px 14px 4px 14px;
  background: linear-gradient(135deg, var(--forest), var(--forest-mid));
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.3rem;
}

.brand-title strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.12rem;
  color: var(--forest-deep);
  line-height: 1.15;
}

.brand-title span {
  font-size: 0.74rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--forest);
  background: var(--sage-tint);
}

.nav-link.nav-ppdb {
  background: var(--terracotta);
  color: var(--white) !important;
  padding: 10px 20px;
}

.nav-link.nav-ppdb:hover {
  background: var(--terracotta-hover);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--forest-deep);
  border-radius: 3px;
}

/* ==========================================================================
   HOME SECTION 1: HERO BANNER (ARCH FRAME + FLOATING PHOTO BADGES)
   ========================================================================== */
.hero-editorial {
  padding: 64px 0 96px;
  background: radial-gradient(circle at top right, #eaf2ee 0%, var(--cream) 55%);
  position: relative;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-editorial h1 {
  font-size: clamp(2.35rem, 4.3vw, 3.6rem);
  color: var(--forest-deep);
  margin-bottom: 20px;
}

.hero-editorial h1 em {
  color: var(--terracotta);
  font-style: italic;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--ink-muted);
  margin-bottom: 30px;
  max-width: 550px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-trust-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  max-width: fit-content;
}

.trust-avatars {
  display: flex;
}

.trust-avatars img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid var(--white);
  margin-left: -12px;
}

.trust-avatars img:first-child { margin-left: 0; }

/* Arch Frame Hero Visual */
.hero-arch-stage {
  position: relative;
  display: flex;
  justify-content: center;
}

.arch-frame {
  width: 100%;
  max-width: 470px;
  height: 540px;
  border-radius: 240px 240px 28px 28px;
  overflow: hidden;
  border: 8px solid var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.arch-frame img {
  height: 100%;
  transition: transform 0.6s ease;
}

.floating-photo-card {
  position: absolute;
  background: var(--white);
  padding: 10px;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: gentleFloat 4.5s ease-in-out infinite;
}

.floating-photo-card.card-top {
  top: 38px;
  left: -18px;
}

.floating-photo-card.card-bottom {
  bottom: 28px;
  right: -14px;
  animation-delay: 1.8s;
}

.floating-photo-card img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================================================
   HOME SECTION 2: KEUNGGULAN & ANGKA STATISTIK (4 KARTU BERFOTO)
   ========================================================================== */
.stats-4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--ease);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--terracotta);
}

.stat-img-box {
  height: 195px;
  overflow: hidden;
  position: relative;
}

.stat-img-box img {
  height: 100%;
  transition: transform 0.6s ease;
}

.stat-card:hover .stat-img-box img {
  transform: scale(1.08);
}

.stat-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 36, 27, 0.85);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.stat-content {
  padding: 22px;
}

.stat-val {
  font-family: 'Fraunces', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-content h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.stat-content p {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   HOME SECTION 3: PROGRAM UNGGULAN & ALUR BELAJAR (SPLIT SHOWCASE)
   ========================================================================== */
.split-showcase {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: center;
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.program-tab-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prog-tab-item {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--cream);
  cursor: pointer;
  transition: all 0.35s var(--ease);
  text-align: left;
}

.prog-tab-item.active,
.prog-tab-item:hover {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
  transform: translateX(6px);
}

.prog-tab-item h4 {
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.prog-tab-item p {
  font-size: 0.88rem;
  opacity: 0.85;
}

.showcase-display {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 460px;
}

.showcase-display img {
  height: 100%;
  transition: opacity 0.35s ease, transform 0.6s ease;
}

.showcase-caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(11, 36, 27, 0.95) 0%, rgba(11, 36, 27, 0.4) 70%, transparent 100%);
  padding: 36px 28px 26px;
  color: var(--white);
}

.showcase-caption h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

/* ==========================================================================
   HOME SECTION 4: SAMBUTAN KEPALA SEKOLAH & FILOSOFI
   ========================================================================== */
.principal-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.principal-collage {
  position: relative;
  padding-bottom: 36px;
}

.principal-main-frame {
  width: 84%;
  height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 6px solid var(--white);
}

.principal-main-frame img {
  height: 100%;
}

.principal-sub-frame {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 54%;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lg);
}

.principal-sub-frame img {
  height: 100%;
}

.editorial-quote {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--forest-deep);
  background: var(--sage-tint);
  padding: 22px 26px;
  border-left: 4px solid var(--terracotta);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 22px 0;
}

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--terracotta);
  position: relative;
  padding-bottom: 4px;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35%;
  height: 2.5px;
  background: var(--terracotta);
  transition: width 0.35s ease;
}

.link-underline:hover::after {
  width: 100%;
}

/* ==========================================================================
   HOME SECTION 5: KEHIDUPAN SISWA & FASILITAS PILIHAN (BENTO GRID)
   ========================================================================== */
.bento-campus {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 245px;
  gap: 20px;
}

.bento-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: block;
}

.bento-box.span-2-col { grid-column: span 2; }
.bento-box.span-2-row { grid-row: span 2; }

.bento-box img {
  height: 100%;
  transition: transform 0.65s var(--ease);
}

.bento-box:hover img {
  transform: scale(1.08);
}

.bento-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 36, 27, 0.9) 0%, rgba(11, 36, 27, 0.15) 65%, transparent 100%);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
}

.bento-tag {
  display: inline-block;
  width: fit-content;
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.bento-info h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.bento-arrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.3s ease;
}

.bento-box:hover .bento-arrow {
  transform: translateX(6px);
}

/* ==========================================================================
   HOME SECTION 6: PRESTASI TERBARU & DOKUMENTASI MOMEN (4 KARTU)
   ========================================================================== */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ach-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s var(--ease);
}

.ach-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.ach-thumb {
  height: 210px;
  overflow: hidden;
  position: relative;
}

.ach-thumb img {
  height: 100%;
  transition: transform 0.6s ease;
}

.ach-card:hover .ach-thumb img {
  transform: scale(1.08);
}

.ach-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
}

.ach-body {
  padding: 20px;
}

.ach-date {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.ach-body h4 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.ach-body p {
  font-size: 0.86rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   HOME SECTION 7: BANNER PPDB, PETA LOKASI & FOOTER
   ========================================================================== */
.ppdb-banner-card {
  background: linear-gradient(135deg, var(--forest-deep) 0%, var(--forest) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  box-shadow: var(--shadow-lg);
}

.ppdb-banner-left {
  padding: 54px 48px;
}

.ppdb-banner-left h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 16px;
}

.ppdb-banner-left p {
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 26px;
}

.ppdb-quick-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
  font-size: 0.9rem;
}

.ppdb-banner-right {
  display: flex;
  flex-direction: column;
}

.ppdb-banner-right img {
  height: 220px;
}

.ppdb-banner-right iframe {
  width: 100%;
  flex: 1;
  min-height: 200px;
  border: 0;
}

/* ==========================================================================
   SUBPAGE COMPONENTS (PROFIL, AKADEMIK, KEGIATAN, FASILITAS, PRESTASI, PPDB)
   ========================================================================== */
.subpage-hero {
  position: relative;
  padding: 90px 0;
  color: var(--white);
  background-size: cover;
  background-position: center;
}

.subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(11, 36, 27, 0.92) 0%, rgba(18, 55, 42, 0.76) 100%);
}

.subpage-hero .container {
  position: relative;
  z-index: 2;
}

.subpage-hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin-bottom: 12px;
}

.subpage-hero p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.06rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}

.filter-pill-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-pill-btn.active,
.filter-pill-btn:hover {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}

/* Accordion */
.acc-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  margin-bottom: 12px;
  overflow: hidden;
}

.acc-trigger {
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.acc-panel {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  color: var(--ink-muted);
  transition: max-height 0.35s ease;
}

.acc-box.open .acc-panel {
  max-height: 260px;
  padding-bottom: 18px;
}

/* Form */
.input-group { margin-bottom: 16px; }
.input-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.input-field {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s ease;
}

.input-field:focus {
  outline: none;
  border-color: var(--forest);
}

/* Footer & Floating Controls */
.site-footer {
  background: var(--forest-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 72px 0 28px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 38px;
  margin-bottom: 46px;
}

.site-footer h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a:hover {
  color: var(--gold);
  padding-left: 5px;
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.86rem;
}

.floating-tools {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-btn {
  background: #22c55e;
  color: var(--white);
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.35);
}

.wa-btn:hover {
  background: #16a34a;
  transform: translateY(-3px);
}

.scroll-top-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  border: none;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.scroll-top-btn.show {
  opacity: 1;
  pointer-events: auto;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 24, 19, 0.92);
  z-index: 2000;
  display: none;
  place-items: center;
  padding: 24px;
}

.lightbox.open { display: grid; }

.lightbox-box {
  max-width: 860px;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.lightbox-box img {
  max-height: 520px;
}

.lightbox-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-38px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-right {
  opacity: 0;
  transform: translateX(38px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in-view,
.reveal-left.in-view,
.reveal-right.in-view {
  opacity: 1;
  transform: translate(0, 0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-layout,
  .split-showcase,
  .principal-layout,
  .ppdb-banner-card {
    grid-template-columns: 1fr;
  }

  .stats-4-grid,
  .achievement-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-campus {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 840px) {
  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s var(--ease);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .stats-4-grid,
  .achievement-grid,
  .bento-campus,
  .footer-cols,
  .ppdb-quick-info {
    grid-template-columns: 1fr;
  }

  .bento-box.span-2-col,
  .bento-box.span-2-row {
    grid-column: span 1;
    grid-row: span 1;
  }

  .arch-frame { height: 420px; }
  .floating-photo-card.card-top { left: 8px; top: 12px; }
  .floating-photo-card.card-bottom { right: 8px; bottom: 12px; }
}
