:root {
  --navy:   #002855;
  --navy2:  #003a7a;
  --gold:   #c9920a;
  --gold2:  #f0b429;
  --cream:  #fdf8f0;
  --dark:   #0a0f1e;
  --darkcard: #111827;
  --text:   #1a1a2e;
  --muted:  #64748b;
  --white:  #ffffff;
  --border: #e5e7eb;
  --success:#16a34a;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: #f8fafc;
  overflow-x: hidden;
}
body.dark {
  background: var(--dark);
  color: #e2e8f0;
}

h1,h2,h3,h4 { font-family: 'Playfair Display', serif; }

/* ── TOP BAR ── */
.topbar {
  background: var(--navy);
  color: #cbd5e1;
  font-size: 0.78rem;
  padding: 0.45rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.topbar a { color: #cbd5e1; text-decoration: none; }
.topbar a:hover { color: var(--gold2); }
.topbar .top-left, .topbar .top-right { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.topbar .gold { color: var(--gold2); margin-right: 0.3rem; }
.lang-select {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.78rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  outline: none;
}
.theme-btn {
  background: none; border: none; cursor: pointer;
  color: var(--gold2); font-size: 1rem;
  padding: 0.2rem; transition: transform 0.3s;
}
.theme-btn:hover { transform: rotate(20deg); }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,40,85,0.08);
  transition: background 0.3s, box-shadow 0.3s;
}
body.dark nav { background: #0f172a; box-shadow: 0 2px 20px rgba(0,0,0,0.4); }
nav.scrolled { box-shadow: 0 4px 30px rgba(0,40,85,0.15); }

.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none;
}
.nav-logo img { height: 44px; width: 44px; object-fit: contain; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-text .main { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: var(--navy); }
body.dark .nav-logo-text .main { color: var(--gold2); }
.nav-logo-text .sub { font-size: 0.62rem; font-weight: 500; color: var(--gold); letter-spacing: 0.04em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 0.2rem; }
.nav-item { position: relative; }
.nav-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 500;
  color: var(--text); padding: 0.5rem 0.8rem; border-radius: 6px;
  display: flex; align-items: center; gap: 0.3rem;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
body.dark .nav-btn { color: #e2e8f0; }
.nav-btn:hover, .nav-btn.active { color: var(--navy); background: #f0f4ff; }
body.dark .nav-btn:hover, body.dark .nav-btn.active { color: var(--gold2); background: rgba(255,255,255,0.05); }
.nav-btn .chevron { font-size: 0.65rem; transition: transform 0.2s; }
.nav-item:hover .chevron { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 10px 10px;
  min-width: 220px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all 0.22s cubic-bezier(0.22,1,0.36,1);
  z-index: 200;
}
body.dark .dropdown { background: #1e293b; border-color: #334155; }
.nav-item:hover .dropdown, .dropdown.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 1.1rem; font-size: 0.85rem; color: var(--text);
  text-decoration: none; transition: background 0.15s, color 0.15s;
}
body.dark .dropdown a { color: #e2e8f0; }
.dropdown a:hover { background: #f0f4ff; color: var(--navy); }
body.dark .dropdown a:hover { background: rgba(255,255,255,0.06); color: var(--gold2); }
.dropdown a i { width: 16px; color: var(--gold); font-size: 0.8rem; }

.enroll-cta {
  background: var(--navy); color: #fff !important;
  padding: 0.55rem 1.3rem; border-radius: 50px;
  font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
  box-shadow: 0 4px 14px rgba(0,40,85,0.3);
  white-space: nowrap;
}
.enroll-cta:hover { background: var(--gold) !important; color: var(--navy) !important; transform: translateY(-2px) !important; box-shadow: 0 6px 20px rgba(201,146,10,0.4) !important; }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.3rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: all 0.3s; }
body.dark .hamburger span { background: #e2e8f0; }

/* Mobile Menu */
.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,40,85,0.97); z-index: 2000;
  flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a, .mobile-menu button.mob-link {
  font-family: 'Playfair Display', serif; font-size: 1.6rem; color: #fff;
  text-decoration: none; transition: color 0.2s; background: none; border: none; cursor: pointer;
}
.mobile-menu a:hover { color: var(--gold2); }
.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  z-index: 2010;
  transition: all 0.3s ease;
}

.mobile-close:hover, .mobile-close:focus {
  background: var(--gold2);
  color: var(--navy);
  border-color: var(--gold2);
  transform: rotate(90deg);
  outline: none;
}
.mobile-enroll { margin-top: 1rem; background: var(--gold2); color: var(--navy) !important; padding: 0.8rem 2.5rem; border-radius: 50px; font-weight: 700; font-size: 1rem !important; }

/* ── HERO ── */
.hero {
  position: relative; height: 92vh; min-height: 580px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0,40,85,0.82) 0%, rgba(0,20,50,0.65) 60%, rgba(201,146,10,0.25) 100%);
}
.hero-content {
  position: relative; z-index: 10;
  max-width: 860px; padding: 2rem 1.5rem;
  color: #fff;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: var(--gold2); padding: 0.35rem 1rem; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1.5rem; backdrop-filter: blur(8px);
}
.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 800; line-height: 1.08;
  margin-bottom: 1.2rem; text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-content h1 em { color: var(--gold2); font-style: normal; }
.hero-content p {
  font-size: clamp(1rem, 2.2vw, 1.3rem); opacity: 0.9;
  max-width: 640px; margin: 0 auto 2.5rem; line-height: 1.6;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold2); color: var(--navy); font-weight: 700;
  padding: 0.85rem 2.2rem; border-radius: 50px; text-decoration: none;
  font-size: 0.95rem; transition: all 0.25s; letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(240,180,41,0.4);
}
.btn-primary:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 8px 30px rgba(240,180,41,0.5); }
.btn-ghost {
  border: 2px solid rgba(255,255,255,0.6); color: #fff;
  padding: 0.85rem 2.2rem; border-radius: 50px; text-decoration: none;
  font-size: 0.95rem; font-weight: 600; transition: all 0.25s; backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; transform: translateY(-3px); }

/* Slide indicators */
.hero-dots { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 20; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; transition: all 0.3s; }
.hero-dot.active { background: var(--gold2); width: 28px; border-radius: 4px; }

/* Scroll indicator */
.scroll-hint {
  position: absolute; bottom: 2.5rem; right: 3rem; z-index: 20;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  color: rgba(255,255,255,0.6); font-size: 0.7rem; letter-spacing: 0.1em;
}
.scroll-hint .line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6));
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100%{ opacity:0.3; } 50%{ opacity:1; } }

/* ── STATS TICKER ── */
.stats-bar {
  background: var(--navy); color: #fff;
  padding: 1.4rem 2rem;
}
.stats-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; text-align: center;
}
.stat-item { padding: 0 1rem; border-right: 1px solid rgba(255,255,255,0.15); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 800; color: var(--gold2); }
.stat-label { font-size: 0.78rem; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── SECTION HELPERS ── */
.section { padding: 6rem 1.5rem; }
.section-sm { padding: 4rem 1.5rem; }
.container { max-width: 1280px; margin: 0 auto; }
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--gold); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.8rem;
}
.section-label::before, .section-label::after {
  content: ''; display: block; width: 28px; height: 1px; background: var(--gold);
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: var(--navy); line-height: 1.15;
  margin-bottom: 1rem;
}
body.dark .section-title { color: #fff; }
.section-sub { font-size: 1.05rem; color: var(--muted); max-width: 580px; line-height: 1.7; }
body.dark .section-sub { color: #94a3b8; }
                                                                                                                                                                                                                                                                                                                                                                                                        
.tutorial-section { background: #f3f6ff; }
body.dark .tutorial-section { background: #111827; }
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.tutorial-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.6rem;
  box-shadow: 0 18px 45px rgba(0, 40, 85, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
body.dark .tutorial-card { background: #111827; box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35); }
.tutorial-card:hover { transform: translateY(-4px); box-shadow: 0 22px 60px rgba(0, 40, 85, 0.14); }
.tutorial-step {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px; background: var(--gold2); color: var(--navy); font-weight: 800;
  margin-bottom: 1rem; font-size: 1rem;
}
.tutorial-card h3 { margin-bottom: 0.8rem; font-size: 1.05rem; }
.tutorial-card p { color: var(--muted); line-height: 1.8; font-size: 0.95rem; }
body.dark .tutorial-card p { color: #cbd5e1; }

@media (max-width: 980px) {
  .tutorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .tutorial-grid { grid-template-columns: 1fr; }
}

/* ── REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1); }
.reveal.up { transform: translateY(50px); }
.reveal.left { transform: translateX(-60px); }
.reveal.right { transform: translateX(60px); }
.reveal.visible { opacity: 1; transform: none; }

/* ── ABOUT SECTION ── */
.about-section { background: #fff; }
body.dark .about-section { background: var(--darkcard); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img-stack { position: relative; height: 480px; }
.about-img-main {
  position: absolute; top: 0; left: 0; width: 75%; height: 85%;
  object-fit: cover; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,40,85,0.2);
}
.about-img-secondary {
  position: absolute; bottom: 0; right: 0; width: 55%; height: 55%;
  object-fit: cover; border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,40,85,0.15);
  border: 4px solid #fff;
}
body.dark .about-img-secondary { border-color: #1e293b; }
.about-badge-float {
  position: absolute; top: 50%; left: 70%; transform: translate(-50%, -50%);
  background: var(--navy); color: #fff; padding: 1rem 1.4rem;
  border-radius: 12px; text-align: center; z-index: 5;
  box-shadow: 0 8px 30px rgba(0,40,85,0.4);
}
.about-badge-float .num { font-family: 'Playfair Display',serif; font-size: 1.8rem; font-weight: 800; color: var(--gold2); }
.about-badge-float .lbl { font-size: 0.7rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.05em; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.about-stat {
  text-align: center; padding: 1.2rem; background: #f8faff; border-radius: 12px;
  border-bottom: 3px solid var(--gold2);
}
body.dark .about-stat { background: #1e293b; }
.about-stat .val { font-family: 'Playfair Display',serif; font-size: 1.9rem; font-weight: 800; color: var(--navy); }
body.dark .about-stat .val { color: var(--gold2); }
.about-stat .key { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── VIDEO SECTION ── */
.video-section { background: var(--navy); position: relative; overflow: hidden; }
.video-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(201,146,10,0.15) 0%, transparent 70%);
}
.video-wrapper {
  max-width: 900px; margin: 0 auto;
  position: relative;
}
.video-frame {
  position: relative; padding-bottom: 56.25%;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.video-frame iframe, .video-frame video {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none;
}
.video-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #001a44, #002d6b);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; cursor: pointer;
  transition: opacity 0.4s;
}
.video-placeholder.hidden { opacity: 0; pointer-events: none; }
.play-btn {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--gold2); display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--navy);
  box-shadow: 0 0 0 0 rgba(240,180,41,0.5);
  animation: pulse 2s infinite;
  transition: transform 0.2s;
}
.play-btn:hover { transform: scale(1.1); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(240,180,41,0.5); }
  70% { box-shadow: 0 0 0 20px rgba(240,180,41,0); }
  100% { box-shadow: 0 0 0 0 rgba(240,180,41,0); }
}

/* ── PROGRAMS ── */
.programs-section { background: var(--cream); }
body.dark .programs-section { background: #0d1829; }
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.program-card {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #fff; box-shadow: 0 4px 24px rgba(0,40,85,0.08);
  transition: transform 0.3s, box-shadow 0.3s; cursor: default;
}
body.dark .program-card { background: #1e293b; }
.program-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(0,40,85,0.18); }
.program-img { width: 100%; height: 200px; object-fit: cover; }
.program-body { padding: 1.8rem; }
.program-icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold2); font-size: 1.2rem; margin-bottom: 1rem;
  margin-top: -2rem; position: relative; z-index: 2;
  box-shadow: 0 4px 16px rgba(0,40,85,0.3);
}
.program-card h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: 0.6rem; }
body.dark .program-card h3 { color: #fff; }
.program-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
body.dark .program-card p { color: #94a3b8; }
.program-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; color: var(--gold); font-weight: 600; font-size: 0.85rem; text-decoration: none; transition: gap 0.2s; }
.program-link:hover { gap: 0.7rem; }

/* ── WHY CHOOSE US ── */
.why-section { background: #fff; }
body.dark .why-section { background: var(--dark); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.why-items { display: flex; flex-direction: column; gap: 1.5rem; }
.why-item {
  display: flex; align-items: flex-start; gap: 1.2rem;
  padding: 1.4rem; border-radius: 12px; background: #f8faff;
  border-left: 4px solid var(--gold);
  transition: transform 0.2s, box-shadow 0.2s;
}
body.dark .why-item { background: #1e293b; }
.why-item:hover { transform: translateX(6px); box-shadow: 0 4px 20px rgba(0,40,85,0.1); }
.why-icon {
  width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  color: var(--gold2); font-size: 1.1rem;
}
.why-item h4 { font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 0.3rem; }
body.dark .why-item h4 { color: #fff; }
.why-item p { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
body.dark .why-item p { color: #94a3b8; }
.why-img-col { position: relative; }
.why-img-main {
  width: 100%;
  max-height: 520px;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.why-overlay-card {
  position: absolute; bottom: 2rem; left: -2rem;
  background: var(--gold2); padding: 1.4rem 1.8rem;
  border-radius: 12px; max-width: 240px;
  box-shadow: 0 12px 40px rgba(201,146,10,0.35);
}
.why-overlay-card p { font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.why-overlay-card span { font-size: 0.78rem; color: rgba(0,40,85,0.7); }

/* ── CALENDAR + EVENTS ── */
.calendar-section { background: var(--cream); }
body.dark .calendar-section { background: #0d1829; }
.cal-events-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: start; }

.calendar-card {
  background: #fff; border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,40,85,0.1);
  overflow: hidden;
}
body.dark .calendar-card { background: #1e293b; }
.cal-header {
  background: var(--navy); color: #fff;
  padding: 1.2rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.cal-header h3 { font-size: 1.1rem; }
.cal-nav-btn {
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  width: 32px; height: 32px; border-radius: 8px;
  cursor: pointer; font-size: 0.9rem; transition: background 0.2s;
}
.cal-nav-btn:hover { background: var(--gold2); color: var(--navy); }
.cal-body { padding: 1.2rem; }
.cal-weekdays {
  display: grid; grid-template-columns: repeat(7,1fr);
  gap: 2px; text-align: center;
  font-size: 0.7rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}
.cal-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; border-radius: 8px; cursor: pointer;
  position: relative; transition: all 0.15s; color: var(--text);
}
body.dark .cal-day { color: #e2e8f0; }
.cal-day:hover { background: #f0f4ff; }
body.dark .cal-day:hover { background: rgba(255,255,255,0.06); }
.cal-day.today { background: var(--navy); color: #fff; font-weight: 700; }
.cal-day.has-event::after {
  content: ''; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; background: var(--gold2); border-radius: 50%;
}
.cal-day.today.has-event::after { background: var(--gold2); }
.cal-day.other-month { opacity: 0.3; }

.events-card {
  background: #fff; border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,40,85,0.1);
}
body.dark .events-card { background: #1e293b; }
.events-header {
  padding: 1.4rem 1.5rem 0.8rem;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
body.dark .events-header { border-color: #334155; }
.events-header h3 { font-size: 1.15rem; color: var(--navy); }
body.dark .events-header h3 { color: #fff; }
.view-all-link { font-size: 0.8rem; color: var(--gold); font-weight: 600; text-decoration: none; }
.event-list { padding: 0.5rem 0; }
.event-item {
  display: flex; gap: 1rem; padding: 1rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}
body.dark .event-item { border-color: #334155; }
.event-item:hover { background: #f8faff; }
body.dark .event-item:hover { background: rgba(255,255,255,0.03); }
.event-date {
  flex-shrink: 0; width: 50px; height: 55px;
  background: var(--navy); border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff;
}
.event-date .day { font-family: 'Playfair Display',serif; font-size: 1.4rem; font-weight: 800; line-height: 1; color: var(--gold2); }
.event-date .month { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; }
.event-info h4 { font-family: 'DM Sans',sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; }
body.dark .event-info h4 { color: #e2e8f0; }
.event-info p { font-size: 0.8rem; color: var(--muted); }
.event-tag {
  display: inline-block; padding: 0.15rem 0.6rem;
  border-radius: 50px; font-size: 0.7rem; font-weight: 600;
  margin-top: 0.3rem;
}
.tag-academic { background: #dbeafe; color: #1d4ed8; }
.tag-sports { background: #dcfce7; color: #16a34a; }
.tag-holiday { background: #fef9c3; color: #a16207; }
.tag-event { background: #fce7f3; color: #9d174d; }

/* ── GALLERY ── */
.gallery-section { background: #fff; }
body.dark .gallery-section { background: var(--darkcard); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}
.gallery-item {
  position: relative; border-radius: 12px; overflow: hidden;
  cursor: pointer;
}
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; min-height: 180px; }
.gallery-item:first-child img { min-height: 360px; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(0,40,85,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
  color: #fff; font-size: 1.5rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── ENROLLMENT FORM ── */
.enroll-section { background: var(--navy); position: relative; overflow: hidden; }
.enroll-section::before {
  content: ''; position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,180,41,0.12) 0%, transparent 70%);
}
.enroll-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.enroll-info { color: #fff; }
.enroll-info .section-label { color: var(--gold2); }
.enroll-info .section-label::before, .enroll-info .section-label::after { background: var(--gold2); }
.enroll-info .section-title { color: #fff; margin-bottom: 1rem; }
.enroll-info p { color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 2rem; }
.enroll-features { display: flex; flex-direction: column; gap: 0.8rem; }
.enroll-feat { display: flex; align-items: center; gap: 0.8rem; color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.enroll-feat i { color: var(--gold2); }

.form-card {
  background: #fff; border-radius: 20px; padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.form-card h3 { font-size: 1.5rem; color: var(--navy); margin-bottom: 0.4rem; }
.form-card p { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--navy); text-transform: uppercase; letter-spacing: 0.04em; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem; border: 1.5px solid #e2e8f0;
  border-radius: 10px; font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; color: var(--text); background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none; width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,40,85,0.1);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-submit {
  width: 100%; padding: 1rem; background: var(--navy);
  color: #fff; border: none; border-radius: 50px;
  font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: all 0.25s; letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(0,40,85,0.3); margin-top: 0.5rem;
}
.form-submit:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,146,10,0.4); }
.form-submit:active { transform: translateY(0); }
.form-success {
  display: none; padding: 1.2rem; background: #dcfce7;
  border-radius: 12px; border: 1px solid #86efac;
  text-align: center; color: var(--success); font-weight: 600; margin-top: 1rem;
}
.form-success.visible { display: block; }
.form-error-msg {
  color: #dc2626; font-size: 0.75rem; margin-top: 0.2rem; display: none;
}
.form-error-msg.visible { display: block; }

/* ── TESTIMONIALS ── */
.testi-section { background: var(--cream); }
body.dark .testi-section { background: #0d1829; }
.testi-carousel { position: relative; overflow: hidden; }
.testi-track { display: flex; transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); }
.testi-slide { flex: 0 0 calc(33.33% - 1rem); margin-right: 1.5rem; }
.testi-card {
  background: #fff; border-radius: 16px; padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,40,85,0.08);
  height: 100%; display: flex; flex-direction: column;
}
body.dark .testi-card { background: #1e293b; }
.testi-stars { color: var(--gold2); margin-bottom: 1rem; letter-spacing: 2px; }
.testi-card blockquote { font-size: 0.92rem; color: var(--text); line-height: 1.7; flex: 1; font-style: italic; }
body.dark .testi-card blockquote { color: #e2e8f0; }
.testi-author { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid #f1f5f9; }
body.dark .testi-author { border-color: #334155; }
.testi-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--navy2)); display: flex; align-items: center; justify-content: center; color: var(--gold2); font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.testi-name { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
body.dark .testi-name { color: #fff; }
.testi-role { font-size: 0.78rem; color: var(--muted); }
.testi-controls { display: flex; gap: 0.8rem; justify-content: center; margin-top: 2rem; }
.testi-btn { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--navy); background: none; cursor: pointer; color: var(--navy); font-size: 0.9rem; transition: all 0.2s; }
.testi-btn:hover { background: var(--navy); color: #fff; }
body.dark .testi-btn { border-color: var(--gold2); color: var(--gold2); }
body.dark .testi-btn:hover { background: var(--gold2); color: var(--navy); }

/* ── NEWSLETTER ── */
.newsletter-section { background: var(--gold2); }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.newsletter-inner h2 { font-size: 1.8rem; color: var(--navy); }
.newsletter-inner p { color: rgba(0,40,85,0.7); margin-top: 0.3rem; }
.newsletter-form { display: flex; gap: 0.8rem; flex: 1; min-width: 300px; max-width: 480px; }
.newsletter-input {
  flex: 1; padding: 0.85rem 1.2rem; border-radius: 50px;
  border: 2px solid transparent; outline: none;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  background: rgba(255,255,255,0.9);
  transition: border-color 0.2s, background 0.2s;
}
.newsletter-input:focus { background: #fff; border-color: var(--navy); }
.newsletter-btn {
  background: var(--navy); color: #fff; border: none;
  padding: 0.85rem 1.8rem; border-radius: 50px;
  font-weight: 700; cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; transition: all 0.2s; white-space: nowrap;
}
.newsletter-btn:hover { background: #fff; color: var(--navy); transform: scale(1.03); }

/* ── CONTACT STRIP ── */
.contact-strip { background: #f8faff; border-top: 1px solid #e8edf5; }
body.dark .contact-strip { background: #0f1628; border-color: #1e293b; }
.contact-strip-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.cs-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.5rem; border-radius: 12px; background: #fff;
  box-shadow: 0 2px 12px rgba(0,40,85,0.05);
}
body.dark .cs-item { background: #1e293b; }
.cs-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--navy); display: flex; align-items: center; justify-content: center; color: var(--gold2); font-size: 1rem; flex-shrink: 0; }
.cs-item h4 { font-family: 'DM Sans',sans-serif; font-size: 0.82rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.cs-item p { font-size: 0.9rem; color: var(--text); font-weight: 500; margin-top: 0.1rem; }
body.dark .cs-item p { color: #e2e8f0; }

/* ── FOOTER ── */
footer { background: #050f22; color: #94a3b8; }
.footer-main {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem; padding: 4rem 1.5rem 3rem; max-width: 1280px; margin: 0 auto;
}
.footer-logo { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.footer-logo img { height: 48px; }
.footer-logo span { font-family: 'Playfair Display',serif; font-size: 1.15rem; color: #fff; font-weight: 700; }
footer p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer-socials { display: flex; gap: 0.8rem; margin-top: 1.4rem; }
.social-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: 0.9rem;
  text-decoration: none; transition: all 0.2s;
}
.social-btn:hover { background: var(--gold2); border-color: var(--gold2); color: var(--navy); transform: translateY(-2px); }
.footer-col h4 { color: #fff; font-family: 'DM Sans',sans-serif; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col li a { color: #94a3b8; text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-col li a:hover { color: var(--gold2); }
.footer-contact-item { display: flex; gap: 0.7rem; margin-bottom: 0.8rem; font-size: 0.88rem; }
.footer-contact-item i { color: var(--gold2); margin-top: 0.15rem; flex-shrink: 0; }
.footer-bottom {
  text-align: center; padding: 1.5rem; font-size: 0.82rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bottom span { color: var(--gold2); }

/* ── FLOATING CONTACT BTN ── */
.float-contact {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 500;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.7rem;
}
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 1.2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: all 0.25s; border: none; cursor: pointer;
}
.float-btn.whatsapp { background: #25d366; color: #fff; }
.float-btn.whatsapp:hover { transform: scale(1.1) translateY(-2px); }
.float-btn.phone { background: var(--navy); color: #fff; }
.float-btn.phone:hover { transform: scale(1.1) translateY(-2px); }
.float-label {
  position: absolute; right: 60px; background: rgba(0,0,0,0.75);
  color: #fff; padding: 0.3rem 0.7rem; border-radius: 6px; font-size: 0.75rem;
  white-space: nowrap; opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.float-btn:hover .float-label { opacity: 1; }

.hamburger, .mobile-close, .map-btn, .form-submit, .newsletter-btn, .float-btn {
  touch-action: manipulation; min-height: 44px; min-width: 44px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-grid, .why-grid { grid-template-columns: 1fr; }
  .about-img-stack { height: 340px; }
  .about-img-main { width: 80%; height: 80%; }
  .about-img-secondary { width: 50%; height: 50%; }
  .why-img-col { display: none; }
  .enroll-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: repeat(2,1fr); }
  .mvv-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .director-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .cal-events-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-logo-text .main { font-size: 0.95rem; }
  .nav-logo-text .sub { font-size: 0.55rem; }
  .topbar .top-left { flex-direction: column; gap: 0.4rem; text-align: center; justify-content: center; }
  .topbar {
    flex-direction: column;
    justify-content: center;
    padding: 0.6rem 1rem;
    gap: 0.6rem;
  }
  .topbar .top-right {
    display: flex !important;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
  }
  .topbar .top-right span { display: none; }

  .hero { height: 70vh; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 0.95rem; }
  .hero-btns { flex-direction: column; gap: 0.8rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none !important; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.15); }
  .programs-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; }
  .testi-slide { flex: 0 0 100%; margin-right: 0; }
  .contact-strip-grid { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
  .program-card, .calendar-card, .events-card, .testi-card { min-height: auto; }
  .section { padding: 2rem 1rem; }
  .hero-dots { bottom: 1rem; }
  .newsletter-form { flex-direction: column; }
  .about-stats { grid-template-columns: 1fr; }

  .mvv-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; padding: 3rem 1.5rem 2rem; gap: 2rem; }
}

#whis-loader {
  position: fixed; inset: 0; z-index: 99999;
  background: #002855;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
#whis-loader.hidden { opacity: 0; visibility: hidden; }

.loader-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem; text-align: center;
  animation: loaderFadeIn .5s ease forwards;
}
@keyframes loaderFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.loader-logo {
  width: 100px; height: 100px; object-fit: contain;
  animation: logoPulse 1.9s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0px rgba(240,180,41,0)); }
  50%       { transform: scale(1.06); filter: drop-shadow(0 0 18px rgba(240,180,41,.6)); }
}

.loader-school-name {
  display: flex; flex-direction: column; gap: .1rem;
}
.loader-main {
  font-family: 'Playfair Display', serif; font-size: 1.7rem;
  font-weight: 800; color: #fff; letter-spacing: .02em;
}
.loader-sub {
  font-size: .78rem; font-weight: 600; color: #f0b429;
  text-transform: uppercase; letter-spacing: .16em;
}

.loader-bar-wrap {
  width: 180px; height: 3px; background: rgba(255,255,255,.15);
  border-radius: 50px; overflow: hidden; margin-top: .5rem;
}
.loader-bar {
  height: 100%; width: 0; background: #f0b429;
  border-radius: 50px;
  animation: loadBar 1.8s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes loadBar { to { width: 100%; } }

.loader-tagline {
  font-size: .75rem; color: rgba(255,255,255,.5);
  letter-spacing: .1em; text-transform: uppercase; margin-top: .2rem;
}

/* ── MODAL ── */
.modal {
  display: none; position: fixed; z-index: 1000; left: 0; top: 0;
  width: 100%; height: 100%; background-color: rgba(0,0,0,0.5);
}
.modal-content {
  background-color: #fff; margin: 15% auto; padding: 20px;
  border: 1px solid #888; width: 80%; max-width: 400px; border-radius: 8px;
  text-align: center;
}
body.dark .modal-content { background-color: #1e293b; color: #e2e8f0; }
.close {
  color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer;
}
.close:hover { color: #000; }
body.dark .close:hover { color: #fff; }

.modal-event {
  text-align: left; border: 1px solid rgba(0,0,0,0.1); border-radius: 8px;
  padding: 10px 12px; margin: 10px 0; background: #fdf8ef;
}
.modal-event h4 { margin: 0 0 6px; font-size: 1rem; color: #003366; }
.modal-event p { margin: 4px 0; font-size: 0.9rem; color: #1f2937; }
.modal-event .event-tag { font-size: 0.75rem; padding: 2px 7px; border-radius: 999px; }

body.dark .modal-event { background: #0a1f3a; border-color: rgba(148,163,184,0.3); }

.map-btn {
  background: var(--muted); border: none;
  padding: 0.85rem 1.8rem; border-radius: 50px;
  font-weight: 700; cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; transition: all 0.2s; white-space: nowrap;
  color: var(--white);
}
.map-btn:hover { background: #fff; color: var(--navy); transform: scale(1.03); }

/* --- CUSTOM ERROR POPUP --- */
#error-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #fee2e2;
  border-left: 5px solid #dc2626;
  color: #991b1b;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-weight: 500;
  max-width: 350px;
}
#error-popup.show { transform: translateX(0); }
#error-popup i { font-size: 1.2rem; }

body.dark #error-popup {
  background: #450a0a;
  color: #fecaca;
  border-left-color: #ef4444;
}
