/* =========================================================
   SMA NUSANTARA UNGGUL - STYLESHEET UTAMA
   Modern School Portal | Full Visual & Interactive Animations
   ========================================================= */

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

:root {
  --primary: #0f3d68;
  --primary-dark: #092642;
  --primary-light: #1a5b96;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --emerald: #059669;
  --bg-light: #f8fafc;
  --bg-soft: #eef4fa;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 4px 12px rgba(15, 61, 104, 0.06);
  --shadow-md: 0 12px 30px rgba(15, 61, 104, 0.12);
  --shadow-lg: 0 24px 48px rgba(15, 61, 104, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.35s 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;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.22;
  color: var(--text-dark);
}

.serif-accent {
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

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

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

.bg-soft {
  background-color: var(--bg-soft);
}

.bg-light {
  background-color: var(--bg-light);
}

/* Badges & Section Headers */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: rgba(15, 61, 104, 0.08);
  color: var(--primary);
  margin-bottom: 14px;
}

.badge-accent {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.section-header {
  max-width: 720px;
  margin-bottom: 48px;
}

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

.section-header h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  margin-bottom: 14px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(15, 61, 104, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(15, 61, 104, 0.35);
}

.btn-accent {
  background: var(--accent);
  color: var(--text-dark);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-3px);
}

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

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

.btn-pulse {
  animation: pulseGlow 2.4s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

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

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

.topbar-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

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

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

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.brand-text span {
  display: block;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--primary-dark);
  line-height: 1.1;
}

.brand-text small {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

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

.nav-link {
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(15, 61, 104, 0.07);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 13px;
  right: 13px;
  height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  background: var(--accent);
  color: var(--text-dark) !important;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: var(--white) !important;
}

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

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 3px;
  transition: var(--transition);
}

/* =========================================================
   SECTION 1: HERO BANNER (BERANDA)
   ========================================================= */
.hero {
  position: relative;
  padding: 70px 0 90px;
  background: linear-gradient(135deg, #f0f6fc 0%, #ffffff 60%, #fef9ec 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  margin-bottom: 18px;
  color: var(--primary-dark);
}

.hero-title span {
  color: var(--primary-light);
  position: relative;
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 560px;
}

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

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

.avatar-stack {
  display: flex;
}

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

.avatar-stack img:first-child {
  margin-left: 0;
}

.hero-visual {
  position: relative;
}

.hero-main-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.4;
  position: relative;
}

.hero-main-photo img {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

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

.floating-badge.top-left {
  top: 24px;
  left: -24px;
}

.floating-badge.bottom-right {
  bottom: 24px;
  right: -20px;
  animation-delay: 1.5s;
}

.floating-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

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

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

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

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

.stat-photo-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

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

.stat-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(9, 38, 66, 0.85);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.stat-body {
  padding: 22px;
}

.stat-number {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-body h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

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

/* =========================================================
   SECTION 3: BENTO GRID PROGRAM UNGGULAN
   ========================================================= */
.bento-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 22px;
}

.bento-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}

.bento-item:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.bento-item.featured {
  grid-row: span 2;
}

.bento-item.wide {
  grid-column: span 2;
}

.bento-item img {
  width: 100%;
  height: 100%;
  transition: transform 0.7s ease;
}

.bento-item:hover img {
  transform: scale(1.07);
}

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 38, 66, 0.92) 0%, rgba(9, 38, 66, 0.25) 60%, transparent 100%);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
}

.bento-overlay h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.bento-overlay p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 12px;
}

.bento-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
}

/* =========================================================
   SECTION 4: SPOTLIGHT SAMBUTAN & BUDAYA SEKOLAH
   ========================================================= */
.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

.spotlight-photos {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: center;
}

.principal-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
  border: 1px solid var(--border);
}

.principal-card img {
  height: 360px;
  width: 100%;
}

.principal-info {
  padding: 16px;
  background: var(--primary-dark);
  color: var(--white);
}

.principal-info h4 {
  color: var(--white);
  font-size: 1rem;
}

.principal-info span {
  font-size: 0.82rem;
  color: var(--accent);
}

.culture-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 310px;
  margin-top: 45px;
}

.culture-photo img {
  height: 100%;
  width: 100%;
}

.quote-box {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 22px 0;
  font-style: italic;
  color: var(--primary-dark);
  font-weight: 500;
}

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

.animated-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40%;
  height: 3px;
  background: var(--accent);
  transition: width 0.35s ease;
}

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

/* =========================================================
   SECTION 5: ETALASE FASILITAS SEKOLAH (INTERACTIVE TABS)
   ========================================================= */
.facility-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.fac-tab-btn {
  padding: 11px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.fac-tab-btn.active,
.fac-tab-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.facility-showcase {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 28px;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.facility-main-view {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 430px;
}

.facility-main-view img {
  width: 100%;
  height: 100%;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.facility-caption-box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(9, 38, 66, 0.95), transparent);
  padding: 32px 26px 22px;
  color: var(--white);
}

.facility-caption-box h3 {
  color: var(--white);
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.facility-thumbs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
}

.fac-thumb {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-light);
}

.fac-thumb.active,
.fac-thumb:hover {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.fac-thumb img {
  width: 74px;
  height: 58px;
  border-radius: 8px;
  flex-shrink: 0;
}

.fac-thumb h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.fac-thumb span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =========================================================
   SECTION 6: KEHIDUPAN SISWA (MARQUEE FOTO BERJALAN)
   ========================================================= */
.marquee-wrapper {
  overflow: hidden;
  padding: 14px 0;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: scrollMarquee 36s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-card {
  width: 310px;
  height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.marquee-card img {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

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

.marquee-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 38, 66, 0.9) 0%, transparent 65%);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  transform: translateY(10px);
  transition: var(--transition);
}

.marquee-card:hover .marquee-caption {
  transform: translateY(0);
}

.marquee-caption span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
}

.marquee-caption h4 {
  color: var(--white);
  font-size: 1.05rem;
}

/* =========================================================
   SECTION 7: BERITA & PRESTASI TERBARU
   ========================================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.news-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

.news-card:hover .news-thumb img {
  transform: scale(1.07);
}

.news-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 999px;
}

.news-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.news-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.news-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex: 1;
}

/* =========================================================
   SECTION 8: BANNER PPDB, LOKASI & CTA PENUTUP
   ========================================================= */
.ppdb-cta-section {
  position: relative;
  background: linear-gradient(125deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  box-shadow: var(--shadow-lg);
}

.ppdb-cta-content {
  padding: 56px 48px;
}

.ppdb-cta-content h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.ppdb-cta-content p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 26px;
  font-size: 1.02rem;
}

.ppdb-cta-visual {
  position: relative;
  min-height: 360px;
}

.ppdb-cta-visual img {
  width: 100%;
  height: 100%;
}

.location-pill {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.88rem;
}

/* =========================================================
   SUBPAGE HERO & GENERAL COMPONENTS (HALAMAN 2 - 7)
   ========================================================= */
.page-banner {
  position: relative;
  padding: 86px 0;
  color: var(--white);
  background-size: cover;
  background-position: center;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 38, 66, 0.92) 0%, rgba(15, 61, 104, 0.78) 100%);
}

.page-banner .container {
  position: relative;
  z-index: 2;
}

.page-banner h1 {
  color: var(--white);
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin-bottom: 12px;
}

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

/* Grid Cards for Teachers, Programs, Gallery */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

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

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

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

.card-visual:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-visual-img {
  height: 230px;
  overflow: hidden;
  position: relative;
}

.card-visual-img img {
  width: 100%;
  height: 100%;
  transition: transform 0.55s ease;
}

.card-visual:hover .card-visual-img img {
  transform: scale(1.07);
}

.card-visual-body {
  padding: 22px;
}

/* Filter Buttons */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

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

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

.accordion-header {
  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(--text-dark);
  cursor: pointer;
  text-align: left;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 22px;
  color: var(--text-muted);
}

.accordion-item.open .accordion-body {
  max-height: 260px;
  padding-bottom: 18px;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 20, 38, 0.9);
  z-index: 2000;
  display: none;
  place-items: center;
  padding: 24px;
}

.lightbox-modal.active {
  display: grid;
}

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

.lightbox-content img {
  width: 100%;
  max-height: 520px;
}

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

/* Form Inputs */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

/* =========================================================
   FOOTER & FLOATING WHATSAPP
   ========================================================= */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 70px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer h4 {
  color: var(--white);
  font-size: 1.08rem;
  margin-bottom: 18px;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
}

.wa-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 999;
  background: #25d366;
  color: var(--white);
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.wa-float:hover {
  background: #1ebe5d;
  transform: translateY(-4px);
}

/* =========================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid,
  .spotlight-grid,
  .facility-showcase,
  .ppdb-cta-section {
    grid-template-columns: 1fr;
  }

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

  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .bento-item.featured,
  .bento-item.wide {
    grid-column: span 2;
    grid-row: span 1;
    height: 280px;
  }

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

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

  .nav-menu {
    position: fixed;
    top: 78px;
    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: var(--transition);
  }

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

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

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

  .bento-item.featured,
  .bento-item.wide {
    grid-column: span 1;
  }

  .floating-badge.top-left {
    left: 12px;
    top: 12px;
  }

  .floating-badge.bottom-right {
    right: 12px;
    bottom: 12px;
  }
}
