/* ============================================================
   WISDOM SEEKERS GROUP OF SCHOOLS — Main Stylesheet
   Navy Blue (#0A2B6E) + Gold (#F5B800) Brand Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=Nunito:wght@400;600;700;800&family=Cinzel:wght@700;800&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --blue-deep:   #0A2B6E;
  --blue-mid:    #1245A8;
  --blue-light:  #3B6CC9;
  --blue-pale:   #EAF0FB;
  --gold:        #F5B800;
  --gold-dark:   #C99200;
  --gold-light:  #FFD84D;
  --white:       #FFFFFF;
  --gray-100:    #F4F5F7;
  --gray-300:    #D1D5DB;
  --gray-500:    #6B7280;
  --gray-700:    #374151;
  --black:       #0D0D0D;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-brand:   'Cinzel', Georgia, serif;
  --font-body:    'Nunito', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;

  --shadow-sm:  0 1px 4px rgba(10,43,110,.08);
  --shadow-md:  0 4px 16px rgba(10,43,110,.12);
  --shadow-lg:  0 8px 32px rgba(10,43,110,.16);
  --shadow-xl:  0 16px 48px rgba(10,43,110,.22);

  --transition:      all .2s ease;
  --transition-slow: all .4s ease;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; }

/* ── Layout ──────────────────────────────────────────────── */
.container     { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section-pad   { padding: 80px 0; }
.section-pad-sm{ padding: 48px 0; }
.text-center   { text-align: center; }

/* ── Typography ──────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--blue-pale);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--blue-deep);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 40px;
}

h1, h2, h3 { line-height: 1.25; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--blue-deep);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,184,0,.35); }

.btn-blue {
  background: var(--blue-mid);
  color: var(--white);
  border-color: var(--blue-mid);
}
.btn-blue:hover { background: var(--blue-deep); border-color: var(--blue-deep); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: var(--white); }

.btn-dark {
  background: var(--blue-deep);
  color: var(--white);
  border-color: var(--blue-deep);
}
.btn-dark:hover { background: #06204f; transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--gray-700);
  background: var(--white);
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(18,69,168,.12);
}
.form-group textarea { min-height: 110px; resize: vertical; }

/* ── Navigation ──────────────────────────────────────────── */
/* ── Navigation — Light Premium Design ────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(10,43,110,.10);
  transition: var(--transition);
}

/* Top contact strip — deep blue */
.nav-topbar {
  background: var(--blue-deep);
  padding: 7px 0;
  border-bottom: 2px solid var(--gold);
}
.nav-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.nav-topbar-left a,
.nav-topbar-left span {
  font-size: .74rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: var(--transition);
}
.nav-topbar-left a:hover { color: var(--gold); }
.nav-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-social-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem;
  font-weight: 700;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}
.nav-social-btn:hover { background: var(--gold); color: var(--blue-deep); border-color: var(--gold); }

/* Main nav row — white background */
.nav-main { padding: 0; background: var(--white); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  padding: 0 28px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

/* Brand / Logo */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo {
  width: 62px; height: 62px;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: var(--white);
  padding: 2px;
  box-shadow: 0 3px 12px rgba(245,184,0,.35);
  transition: var(--transition);
}
.nav-brand:hover .nav-logo {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 6px 20px rgba(245,184,0,.5);
}
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-brand-name {
  font-family: var(--font-brand);
  font-size: .96rem;
  font-weight: 800;
  color: var(--blue-deep);
  letter-spacing: .3px;
}
.nav-brand-name em {
  font-style: normal;
  font-size: .75rem;
  display: block;
  color: var(--gray-500);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .2px;
  margin-top: 1px;
}
.nav-brand-motto {
  font-size: .72rem;
  color: var(--gold-dark);
  font-style: italic;
  font-weight: 700;
  letter-spacing: .8px;
  margin-top: 3px;
}

/* Nav separator */
.nav-separator {
  width: 1px;
  height: 36px;
  background: var(--gray-300);
  margin: 0 8px;
  flex-shrink: 0;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex: 1;
  justify-content: flex-end;
}
.nav-links li { position: relative; }
.nav-links a {
  display: block;
  padding: 9px 13px;
  font-size: .84rem;
  font-weight: 700;
  color: var(--blue-deep);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: .1px;
}
.nav-links a:hover {
  color: var(--gold-dark);
  background: var(--blue-pale);
}
.nav-links a.active {
  color: var(--blue-mid);
  background: var(--blue-pale);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 13px; right: 13px;
  height: 2.5px;
  background: var(--gold);
  border-radius: 2px;
}
.nav-links .btn-nav {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: .82rem;
  margin-left: 8px;
  letter-spacing: .2px;
  box-shadow: 0 3px 10px rgba(10,43,110,.25);
  transition: var(--transition);
}
.nav-links .btn-nav:hover {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold)) !important;
  color: var(--blue-deep) !important;
  box-shadow: 0 4px 14px rgba(245,184,0,.4);
  transform: translateY(-1px);
}
.nav-links .btn-nav.active { background: var(--gold); color: var(--blue-deep) !important; }
.nav-links .btn-nav.active::after { display: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--blue-pale);
  border-radius: var(--radius-sm);
  flex-direction: column;
  gap: 5px;
  padding: 8px 10px;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition);
}
.nav-toggle:hover { border-color: var(--blue-mid); background: var(--blue-pale); }
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--blue-deep);
  border-radius: 2px;
  transition: var(--transition);
}
/* Animated X when open */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav height offset */
:root { --nav-height: 120px; }

@media(max-width:900px) {
  :root { --nav-height: 80px; }
  .nav-topbar { display: none; }
  .nav-inner { height: 72px; padding: 0 16px; }
  .nav-logo { width: 52px; height: 52px; }
  .nav-brand-name { font-size: .86rem; }
  .nav-separator { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 20px;
    border-top: 3px solid var(--gold);
    box-shadow: 0 12px 40px rgba(10,43,110,.18);
    z-index: 998;
    /* Slide-down animation */
    transform: translateY(-10px);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    pointer-events: none;
  }
  .nav-links.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
    animation: navSlideDown .3s ease forwards;
  }
  .nav-links a {
    padding: 13px 12px;
    border-radius: var(--radius-md);
    color: var(--blue-deep);
    font-size: .92rem;
    border-bottom: 1px solid var(--gray-100);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links a:hover { background: var(--blue-pale); }
  .nav-links a.active { color: var(--blue-mid); background: var(--blue-pale); }
  .nav-links a.active::after { display: none; }
  .nav-links .btn-nav {
    margin: 12px 0 0;
    border-radius: var(--radius-md);
    text-align: center;
    padding: 14px;
    font-size: .9rem;
  }
}

@keyframes navSlideDown {
  from { transform: translateY(-16px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.page-hero {
  background: linear-gradient(135deg, var(--blue-deep) 0%, #1245A8 100%);
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23F5B800' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.page-hero p {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  margin-bottom: 20px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Hero Slideshow ──────────────────────────────────────── */
.hero-slideshow {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  background: var(--blue-deep);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.slide.active { opacity: 1; z-index: 1; }

.slide-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0A2B6E 0%, #1245A8 50%, #0A2B6E 100%);
}

/* Animated pattern overlay */
.slide-pattern {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(245,184,0,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59,108,201,.15) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23F5B800' fill-opacity='0.03'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0l28-28v2L54 40h-2zm4 0l24-24v2L58 40h-2zm4 0l20-20v2L62 40h-2zm4 0l16-16v2L66 40h-2zm4 0l12-12v2L70 40h-2zm4 0l8-8v2l-6 6h-2zm4 0l4-4v2l-2 2h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.slide-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 2;
  transition: transform 8s ease;
}
.slide.active .slide-img { transform: scale(1.06); }

.slide-overlay {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(
    to right,
    rgba(10,43,110,.82) 0%,
    rgba(10,43,110,.55) 50%,
    rgba(10,43,110,.2) 100%
  );
}

.hero-content-wrap {
  position: absolute; inset: 0; z-index: 10;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height, 120px);
}
.hero-content-wrap .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.hero-text { max-width: 640px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,184,0,.15);
  border: 1px solid rgba(245,184,0,.4);
  color: var(--gold-light);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 22px;
  animation: fadeInDown .8s ease both;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.slide-caption {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 18px;
  animation: fadeInUp .8s .2s ease both;
}
.slide-caption em {
  font-style: normal;
  color: var(--gold);
  display: block;
}

.slide-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
  animation: fadeInUp .8s .4s ease both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeInUp .8s .6s ease both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  animation: fadeInUp .8s .8s ease both;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-brand);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: .72rem;
  color: rgba(255,255,255,.6);
  font-weight: 700;
  margin-top: 4px;
  letter-spacing: .5px;
}

/* School Crest Card */
.hero-card-panel { flex-shrink: 0; }
.school-crest-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  text-align: center;
  width: 240px;
  animation: fadeInRight .8s .4s ease both;
}
.crest-img {
  width: 130px; height: 130px;
  object-fit: contain;
  margin: 0 auto 14px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
}
.crest-name {
  font-family: var(--font-brand);
  font-size: .72rem;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.4;
}
.crest-motto {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--white);
  margin-top: 8px;
}
.crest-values {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 14px;
}
.val-chip {
  background: rgba(245,184,0,.2);
  border: 1px solid rgba(245,184,0,.3);
  color: var(--gold-light);
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}

/* Slide Controls */
.slide-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 11;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: var(--white);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,.2);
}
.slide-arrow:hover { background: var(--gold); color: var(--blue-deep); }
.slide-arrow.prev { left: 20px; }
.slide-arrow.next { right: 20px; }

.slide-controls {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  display: flex; gap: 8px;
}
.slide-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  transition: var(--transition);
}
.slide-dot.active { background: var(--gold); transform: scale(1.3); }

.slide-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: var(--gold);
  width: 0;
  z-index: 11;
}
.slide-progress.running { width: 100%; }

/* ── Marquee Strip ───────────────────────────────────────── */
.marquee-strip {
  background: var(--gold);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-block;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  display: inline-block;
  padding: 0 28px;
  font-size: .8rem;
  font-weight: 800;
  color: var(--blue-deep);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.marquee-track span::before {
  content: '✦';
  margin-right: 28px;
  color: var(--blue-mid);
  font-size: .6rem;
}

/* ── About Strip ─────────────────────────────────────────── */
.about-strip .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-text { }
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.pillar {
  background: var(--blue-pale);
  border-radius: var(--radius-md);
  padding: 18px;
  border-left: 4px solid var(--gold);
}
.pillar-icon { font-size: 1.8rem; margin-bottom: 8px; }
.pillar h4 { font-size: .88rem; font-weight: 800; color: var(--blue-deep); margin-bottom: 4px; }
.pillar p  { font-size: .8rem; color: var(--gray-500); }

.vision-card {
  background: var(--blue-deep);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  position: sticky;
  top: 90px;
}
.vision-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 20px;
}

/* ── Academics ───────────────────────────────────────────── */
.academics { background: var(--gray-100); }
.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.level-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
}
.level-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.level-header {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  padding: 24px 20px;
  text-align: center;
}
.level-header.gold-bg { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); }
.level-icon { font-size: 2.2rem; margin-bottom: 8px; }
.level-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
}
.level-range { font-size: .78rem; color: rgba(255,255,255,.7); margin-top: 4px; }
.level-body { padding: 20px; }
.level-body p { font-size: .85rem; color: var(--gray-500); line-height: 1.65; margin-bottom: 12px; }
.level-tag {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue-mid);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
}

/* ── Why Us ──────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--gold);
  transition: var(--transition-slow);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: .97rem; font-weight: 800; color: var(--blue-deep); margin-bottom: 8px; }
.feature-card p  { font-size: .85rem; color: var(--gray-500); line-height: 1.65; }

/* ── News / Cards ────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition-slow);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-image {
  height: 160px;
  background: linear-gradient(135deg, var(--blue-pale), #dce7f8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
}
.news-date {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--blue-deep);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}
.news-body { padding: 22px; }
.news-cat {
  font-size: .72rem;
  font-weight: 800;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.news-body h3 { font-size: 1rem; font-weight: 800; color: var(--blue-deep); margin-bottom: 8px; }
.news-body p  { font-size: .85rem; color: var(--gray-500); line-height: 1.65; margin-bottom: 14px; }
.news-link { font-size: .84rem; font-weight: 700; color: var(--blue-mid); }
.news-link:hover { color: var(--gold-dark); }

/* ── Testimonials ────────────────────────────────────────── */
.testimonials { background: var(--blue-pale); }
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 44px;
}
.testi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
}
.testi-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.testi-stars { color: var(--gold); font-size: 1rem; margin-bottom: 12px; }
.testi-text { font-size: .9rem; font-style: italic; color: var(--gray-500); line-height: 1.75; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 44px; height: 44px;
  background: var(--blue-deep);
  color: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem;
  font-weight: 800;
  flex-shrink: 0;
}
.testi-name { font-size: .88rem; font-weight: 800; color: var(--blue-deep); }
.testi-role { font-size: .78rem; color: var(--gray-500); }

/* ── Admissions CTA ──────────────────────────────────────── */
.admissions-cta {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  padding: 64px 0;
}
.admissions-cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-text h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--blue-deep);
  margin-bottom: 8px;
}
.cta-text p { color: var(--blue-mid); font-size: .97rem; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo {
  margin-bottom: 12px;
  width: 60px; height: 60px;
}
.footer-brand-name {
  font-family: var(--font-brand);
  font-size: .85rem;
  color: var(--white);
  font-weight: 800;
  line-height: 1.4;
}
.footer-motto {
  font-style: italic;
  color: var(--gold);
  font-size: .85rem;
  margin-top: 4px;
}
.footer-desc { font-size: .83rem; line-height: 1.7; margin-top: 12px; }
.footer-col h4 {
  font-size: .82rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: .84rem;
  color: rgba(255,255,255,.65);
  padding: 3px 0;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--gold); }
.footer-contact-item {
  display: flex;
  gap: 10px;
  font-size: .84rem;
  margin-bottom: 10px;
  color: rgba(255,255,255,.65);
}
.footer-contact-item a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
}
.footer-bottom a { color: var(--gold); }

/* ── Reveal animation ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes marquee   { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fadeInUp  { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:none; } }
@keyframes fadeInDown{ from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:none; } }
@keyframes fadeInRight{ from { opacity:0; transform:translateX(30px); } to { opacity:1; transform:none; } }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.6;transform:scale(.8);} }
@keyframes spin  { to { transform: rotate(360deg); } }

/* ── Responsive ──────────────────────────────────────────── */
@media(max-width:1000px) {
  .hero-content-wrap .container { grid-template-columns: 1fr; }
  .hero-card-panel { display: none; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .about-strip .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:600px) {
  .hero-slideshow { max-height: 700px; }
  .section-pad { padding: 56px 0; }
  .hero-stats { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .admissions-cta .container { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
}

/* ── Gallery ─────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--blue-pale);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
}
.gallery-item:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }
.gallery-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover .gallery-img { transform: scale(1.08); }
.gallery-fallback {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--blue-pale), #dce7f8);
  font-size: 2.5rem;
}
.gallery-fallback span { font-size: .78rem; color: var(--gray-500); font-weight: 600; }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,43,110,.8) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex; align-items: flex-end;
  padding: 18px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay p {
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
}

/* ── Admin Panel ─────────────────────────────────────────── */
.admin-wrap {
  min-height: 100vh;
  background: var(--gray-100);
  padding-top: 0;
}
.admin-header {
  background: var(--blue-deep);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-header h1 {
  font-family: var(--font-brand);
  color: var(--gold);
  font-size: 1.1rem;
}
.admin-sidebar {
  background: var(--white);
  width: 220px;
  min-height: calc(100vh - 62px);
  padding: 24px 0;
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 62px; left: 0;
}
.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--gray-700);
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
  color: var(--blue-mid);
  background: var(--blue-pale);
  border-left-color: var(--blue-mid);
}
.admin-content {
  margin-left: 220px;
  padding: 32px;
  min-height: calc(100vh - 62px);
}
.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.admin-card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--blue-deep);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left;
  font-size: .78rem;
  font-weight: 800;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 10px 12px;
  border-bottom: 2px solid var(--gray-100);
}
.admin-table td {
  padding: 12px;
  font-size: .87rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.admin-table tr:hover td { background: var(--gray-100); }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
}
.badge-green { background: #dcfce7; color: #166534; }
.badge-gray  { background: var(--gray-100); color: var(--gray-500); }
.btn-sm { padding: 6px 14px; font-size: .78rem; }
.btn-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.btn-danger:hover { background: #fee2e2; }

.login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-xl);
  text-align: center;
}
.login-card img {
  width: 90px; height: 90px;
  object-fit: contain;
  margin: 0 auto 16px;
}
.login-card h2 {
  font-family: var(--font-display);
  color: var(--blue-deep);
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.login-card p { font-size: .88rem; color: var(--gray-500); margin-bottom: 28px; }
.login-error { color: #991b1b; font-size: .84rem; margin-bottom: 12px; display:none; }

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: rgba(255,255,255,.15);
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  border: none;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--gold); color: var(--blue-deep); }

/* ── Floating WhatsApp Button ────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 88px;
  right: 24px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  border-radius: 100px;
  padding: 10px 18px 10px 10px;
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .25s ease;
  animation: waPulse 2.8s ease infinite;
  white-space: nowrap;
}
.wa-float:hover {
  background: #1aad4f;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 32px rgba(37,211,102,.6);
  animation: none;
}

/* The icon circle — always stays a perfect circle */
.wa-icon-circle {
  width: 40px;
  height: 40px;
  min-width: 40px;   /* never shrink */
  min-height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.wa-icon-circle svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Text label */
.wa-label {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.wa-label strong { font-size: .84rem; font-weight: 800; }
.wa-label span   { font-size: .72rem; opacity: .88; font-weight: 600; }

@keyframes waPulse {
  0%,100% { box-shadow: 0 6px 24px rgba(37,211,102,.5); }
  50%      { box-shadow: 0 6px 28px rgba(37,211,102,.8), 0 0 0 10px rgba(37,211,102,.1); }
}

/* Mobile: pill shrinks to icon-only but icon never distorts */
@media(max-width:600px) {
  .wa-float {
    padding: 8px;
    border-radius: 50%;
    gap: 0;
  }
  .wa-label { display: none; }
  .wa-icon-circle {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    box-shadow: none;
    background: transparent;
  }
  .wa-icon-circle svg { width: 46px; height: 46px; }
  .wa-float:hover { transform: translateY(-3px) scale(1.06); }
}

/* ── Scroll-to-Top Button ────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--blue-deep);
  color: var(--white);
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(10,43,110,.3);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(16px) scale(.9);
  pointer-events: none;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.scroll-top:hover {
  background: var(--gold);
  color: var(--blue-deep);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 24px rgba(245,184,0,.4);
}

/* ── Admin Panel Responsive ──────────────────────────────── */
.admin-sidebar {
  transition: transform .3s ease;
}
.admin-toggle-btn {
  display: none;
  position: fixed;
  top: 70px; left: 12px;
  z-index: 1001;
  background: var(--blue-deep);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

@media(max-width:768px) {
  .admin-toggle-btn { display: block; }

  .admin-sidebar {
    position: fixed;
    top: 62px; left: 0;
    height: calc(100vh - 62px);
    z-index: 1000;
    transform: translateX(-100%);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
  }
  .admin-sidebar.open { transform: translateX(0); }

  .admin-content {
    margin-left: 0 !important;
    padding: 16px;
  }

  .admin-header {
    padding: 14px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .admin-header h1 { font-size: .9rem; }

  .admin-card { padding: 16px; }
  .admin-card h2 { font-size: 1rem; }

  /* Stack admin table on mobile */
  .admin-table { display: block; overflow-x: auto; white-space: nowrap; }

  /* Admin form grids stack */
  #news-form-wrap > div[style*="grid"],
  #gallery-form-wrap > div[style*="grid"] {
    grid-template-columns: 1fr !important;
  }

  .login-card { padding: 28px 20px; margin: 16px; }
}

/* ── Sidebar overlay on mobile ───────────────────────────── */
.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
}
.admin-overlay.open { display: block; }

