﻿/* ═══════════════════════════════════════════════════════════
   NES SCHOOL — PAGE-SPECIFIC STYLES
   Inherits variables/reset/img-wrap/buttons from ../css/style.css
═══════════════════════════════════════════════════════════ */

/* ─── POPPINS EVERYWHERE ─────────────────────────────────── */
*, *::before, *::after,
button, input, select, textarea {
  font-family: 'Poppins', sans-serif;
}

/* ─── NAVBAR ─────────────────────────────────────────────── */
.s-navbar {
  background: var(--white);
  height: 60px;
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 14px rgba(62,66,150,.10);
  overflow: visible;
  transition: top .35s ease;
}
.s-navbar.nav-hidden { top: -80px; }

/* Logo + school name grouped together on the left */
.s-nav-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  text-decoration: none;
}
.s-nav-logo {
  height: 80px;
  width: auto;
  flex-shrink: 0;
  border-radius: 0;
  border: none;
  overflow: visible;
  transform: translateY(16px);
  display: block;
  text-decoration: none;
}
.s-nav-logo .img-wrap {
  background: transparent;
  border-radius: 0;
  width: auto;
  height: 100%;
}
.s-nav-logo .img-wrap img { width: auto; height: 100%; object-fit: contain; }

/* School name text beside the logo */
.s-nav-school-name {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.s-nav-school-abbr {
  font-size: 10.5px;
  font-weight: 500;
  color: #888;
  letter-spacing: 0.3px;
  margin-top: 1px;
}

.s-nav-links { list-style: none; display: flex; align-items: center; gap: 20px; }
.s-nav-links a {
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  color: #333;
  transition: color .2s;
  white-space: nowrap;
}
.s-nav-links a:hover,
.s-nav-links a.active { color: var(--blue); }

/* ── Academics dropdown inside school1 white navbar ─────── */
.s-nav-links .nav-drop-toggle {
  font-size: 12.5px;
  font-weight: 500;
  color: #333;
}
.s-nav-links .nav-drop-toggle:hover,
.s-nav-links .nav-drop-toggle.active { color: var(--blue); }
.s-nav-links .nav-drop-toggle .chevron {
  border-color: #333;
}
.s-nav-links .nav-dropdown:hover .nav-drop-toggle .chevron {
  border-color: var(--blue);
}

.s-nav-cta {
  background: var(--blue);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.s-nav-cta:hover { background: var(--blue-dark); transform: translateY(-2px); }

/* ─── HERO ───────────────────────────────────────────────── */
.s-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 0 56px;
  overflow: hidden;
  background: var(--blue);
}
/* Backdrop image + overlay */
.s-hero-img-bg {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
}
.s-hero-img-bg .img-wrap {
  width: 100%; height: 100%; border-radius: 0;
  background: #2a2e8a;
}
.s-hero-img-bg .img-wrap img { object-fit: cover; object-position: center; }
.s-hero-overlay {
  display: block;
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 80, 0.70);
  z-index: 1;
}

.s-hero-content {
  position: relative; z-index: 2;
  flex: 1;
  max-width: 680px;
}
.s-hero-content h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.22;
  color: var(--white);
  margin-bottom: 14px;
}
.s-hero-content p {
  font-size: 13.5px;
  color: rgba(255,255,255,.80);
  line-height: 1.58;
  max-width: 540px;
}

/* Hero right photo moved to info section — hide in hero */
.s-hero-image { display: none; }

/* ─── INFO SECTION: stacked paragraphs + photo ───────────── */
.s-info-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.s-info-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.s-info-photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(62,66,150,.18);
  border: 2px solid #e0e2f5;
}
.s-info-photo .img-wrap {
  width: 100%;
  height: 320px;
  border-radius: 0;
  background: #c0c3e0;
}
.s-info-photo .img-wrap img { object-fit: cover; object-position: top center; }

/* ─── STATS STRIP ─────────────────────────────────────────── */
.s-stats-strip {
  display: flex;
  background: var(--white);
  border-bottom: 1px solid #eceef7;
}
.s-stat-item {
  flex: 1;
  text-align: center;
  padding: 18px 12px;
  border-right: 1px solid #eceef7;
}
.s-stat-item:last-child { border-right: none; }
.s-stat-val {
  font-size: 19px;
  font-weight: 800;
  color: var(--blue);
  display: block;
  margin-bottom: 2px;
}
.s-stat-desc { font-size: 10px; color: #aaa; font-weight: 500; }

/* ─── SCHOOL INFO (two text columns) ─────────────────────── */
.s-info {
  padding: 50px 56px 48px;
  background: var(--white);
}
.s-info-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
}
.s-info-cols p {
  font-size: 12.5px;
  line-height: 1.6;
  color: #555;
}
.s-info-highlight {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eceef7;
}

/* ─── CONTACT STRIP ──────────────────────────────────────── */
.s-contact-strip {
  background: var(--blue);
  padding: 13px 56px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.s-contact-item {
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.s-contact-strip-cta {
  margin-left: auto;
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--white);
  padding: 7px 22px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s;
  font-family: 'Poppins', sans-serif;
}
.s-contact-strip-cta:hover { background: rgba(255,255,255,.12); }

/* ─── ACADEMICS ──────────────────────────────────────────── */
.s-academics {
  background: var(--white);
  padding: 0;
}
.s-academics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  overflow: hidden;
}
/* Alternating: blue, white, blue, white */
.s-acad-card {
  padding: 32px 28px 36px;
}
.s-acad-card:nth-child(odd)  { background: var(--blue); }
.s-acad-card:nth-child(even) { background: var(--white); border: 1px solid #e8eaf5; }
.s-acad-tag { display: none; }
.s-acad-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  font-style: normal;
}
.s-acad-card:nth-child(odd)  h3 { color: var(--white); }
.s-acad-card:nth-child(even) h3 { color: var(--blue); }
.s-acad-card p {
  font-size: 12.5px;
  line-height: 1.58;
}
.s-acad-card:nth-child(odd)  p { color: rgba(255,255,255,.82); }
.s-acad-card:nth-child(even) p { color: #555; }

/* ─── LEARNING SPACES ────────────────────────────────────── */
.s-spaces {
  padding: 60px 56px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.s-spaces-heading {
  font-size: 38px;
  font-weight: 800;
  color: #222;
  line-height: 1.2;
  margin: 0;
}
/* Carousel wrapper inside spaces — no extra padding */
.s-spaces-car { width: 100%; }
.s-spaces-car .carousel-wrap { padding: 0 28px; }

/* ─── CAROUSEL: per-slide image + label ─────────────────── */
/* Allow labels to overflow below the viewport clip area */
.s-spaces-car .carousel-viewport {
  overflow-x: hidden;
  overflow-y: visible;
}
/* Slides flex column: image on top, label below */
.s-car-tall .car-slide {
  height: auto;
  overflow: visible;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}
.s-car-tall .car-slide .img-wrap {
  height: 280px;
  border-radius: 12px;
  flex-shrink: 0;
}
.car-slide-label {
  padding: 10px 6px 2px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  text-align: center;
  line-height: 1.35;
}

/* ─── WHY FAMILIES TRUST NES ─────────────────────────────── */
.s-trust {
  padding: 90px 80px;
  background: var(--white);
}
.s-trust h2 {
  font-size: 33px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}
.s-trust > p {
  font-size: 13px;
  color: #666;
  margin-bottom: 44px;
  line-height: 1.58;
}

/* ─── EQUAL OPPORTUNITIES ────────────────────────────────── */
.s-equal {
  padding: 60px 0 60px 56px;
  background: #f8f9ff;
  overflow: hidden;
}
.s-equal h2 {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
}
.s-equal > p {
  font-size: 12px;
  color: #999;
  margin-bottom: 26px;
}
/* Horizontal scrolling marquee */
.s-equal-marquee-outer { overflow: hidden; }
.s-equal-marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: equalScroll 18s linear infinite;
}
.s-equal-marquee-track:hover { animation-play-state: paused; }
@keyframes equalScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.s-equal-item { flex: 0 0 220px; border-radius: 10px; overflow: hidden; }
.s-equal-img {
  height: 155px;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}
.s-equal-img .img-wrap { width: 100%; height: 100%; border-radius: 0; background: #c8cbe8; }
.s-equal-label {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 0 0 10px 10px;
  white-space: nowrap;
}

/* ─── LEGACY ─────────────────────────────────────────────── */
.s-legacy {
  position: relative;
  padding: 80px 56px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 60px;
  min-height: 340px;
}
.s-legacy-img-bg { position: absolute; inset: 0; }
.s-legacy-img-bg .img-wrap { width: 100%; height: 100%; border-radius: 0; background: #7880b8; }
.s-legacy-color-overlay { position: absolute; inset: 0; background: var(--blue); opacity: .78; }
.s-legacy-content {
  position: relative; z-index: 2;
  flex: 1;
}
.s-legacy-content h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 18px;
}
.s-legacy-content p {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.82);
  max-width: 580px;
}
.s-legacy-stat {
  position: relative; z-index: 2;
  flex-shrink: 0;
  background: transparent;
  border: 3.5px solid rgba(255,255,255,.65);
  border-radius: 20px;
  padding: 56px 64px;
  text-align: center;
  color: var(--white);
  min-width: 300px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.s-legacy-stat-num {
  font-size: 86px;
  font-weight: 900;
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}
.s-legacy-stat-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ─── MONTESSORI — entire section white ──────────────────── */
.s-montessori-content {
  background: var(--white);
  padding: 72px 56px 48px;
  display: flex;
  gap: 56px;
  align-items: flex-start;
}
/* Narrow left column — one word per line, no mid-word breaks */
.s-montessori-content h2 {
  flex: 0 0 240px;
  font-size: 34px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.1;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}
.s-montessori-right {
  flex: 1;
}
.s-montessori-right > p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 22px;
}
.s-focus-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.s-focus-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
  list-style: none;
}
.s-focus-list li {
  font-size: 13.5px;
  color: #444;
  display: flex;
  align-items: center;
  gap: 8px;
}
.s-focus-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── MONTESSORI — flip card grid (white bg) ─────────────── */
.s-montessori-pills {
  background: var(--white);
  padding: 32px 56px 72px;
}
.s-pills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Flip card */
.s-flip-card {
  height: 330px;
  perspective: 1000px;
  cursor: pointer;
}
.s-flip-inner {
  position: relative;
  width: 100%; height: 100%;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
  transform-style: preserve-3d;
}
.s-flip-card:hover .s-flip-inner { transform: rotateY(180deg); }

.s-flip-front,
.s-flip-back {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Front: image placeholder */
.s-flip-front {
  overflow: hidden;
}
.s-flip-front .img-wrap {
  width: 100%; height: 100%;
  border-radius: 12px;
  background: #c8cbe8;
}

/* Back: blue card with label */
.s-flip-back {
  background: var(--blue);
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}
.s-flip-back span {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

/* ─── ACHIEVEMENTS & LEGACY ──────────────────────────────── */
.s-achievements {
  position: relative;
  padding: 68px 56px;
  overflow: hidden;
}
.s-ach-img-bg { position: absolute; inset: 0; }
.s-ach-img-bg .img-wrap { width: 100%; height: 100%; border-radius: 0; background: #7880b8; }
.s-ach-color-overlay { position: absolute; inset: 0; background: var(--blue); opacity: 1; }
.s-ach-content { position: relative; z-index: 2; }
.s-ach-content h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 10px;
}
.s-ach-content h3 {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
  max-width: 500px;
  line-height: 1.28;
}
.s-ach-content > p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.75);
  max-width: 600px;
  margin-bottom: 36px;
}
.s-ach-circles { display: flex; gap: 32px; justify-content: center; }
.s-ach-circle {
  width: 190px; height: 190px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,.4);
  flex-shrink: 0;
}
.s-ach-circle .img-wrap { width: 100%; height: 100%; border-radius: 0; background: rgba(255,255,255,.12); }
