﻿/* ═══════════════════════════════════════════════════════════
   ETS CBSE 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; }
.s-nav-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.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; }
.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: 18px; }
.s-nav-links a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  color: #333;
  transition: color .2s;
  white-space: nowrap;
}
.s-nav-links a:hover, .s-nav-links a.active { 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 for school2 homepage hero */
.s-hero .s-hero-img-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.s-hero .s-hero-img-bg .img-wrap {
  width: 100%; height: 100%; border-radius: 0;
  background: #2a2e8a;
}
.s-hero .s-hero-img-bg .img-wrap img { object-fit: cover; object-position: center; }
.s-hero .s-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 80, 0.68);
  z-index: 1;
}
.s-hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 600px;
}
.s-hero-content h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.22;
  color: var(--white);
  margin-bottom: 12px;
}
.s-hero-content p {
  font-size: 12.5px;
  color: rgba(255,255,255,.78);
  line-height: 1.7;
}

/* Hero right — 3-circle composition (same as school3) */
.s-hero-circles {
  position: relative;
  flex: 0 0 420px;
  height: 360px;
  margin-left: auto;
}
.s-hero-circle-bg {
  position: absolute;
  top: 20px; right: 50px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  border: 2px solid rgba(255,255,255,.15);
}
.s-hero-circle-main {
  position: absolute;
  top: 0; right: 0;
  width: 295px; height: 295px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 32px rgba(0,0,0,.20);
}
.s-hero-circle-main .img-wrap { width: 100%; height: 100%; border-radius: 50%; background: #a0a4d8; }
.s-hero-circle-main .img-wrap img { object-position: top center; }
.s-hero-circle-sm {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,.28);
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.s-hero-circle-sm .img-wrap { width: 100%; height: 100%; border-radius: 50%; background: #a0a4d8; }
.s-hero-circle-sm .img-wrap img { object-position: top center; }
.s-hero-circle-sm-1 { width: 128px; height: 128px; bottom: 24px; left: 10px; }
.s-hero-circle-sm-2 { width: 106px; height: 106px; bottom: 8px; right: 16px; }

/* ─── SCHOOL INFO ────────────────────────────────────────── */
.s-info {
  padding: 50px 56px 48px;
  background: var(--white);
}
.s-info-cols {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 680px;
  gap: 16px;
}
.s-info-cols p { font-size: 12.5px; line-height: 1.6; color: #555; }

/* ─── 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);
  overflow: hidden;
}
.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-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 BEYOND TEXTBOOKS ──────────────────────────── */
.s-spaces {
  padding: 60px 56px;
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.s-spaces-text h2 { font-size: 25px; font-weight: 700; color: #222; margin-bottom: 22px; line-height: 1.3; }
.s-spaces-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; list-style: none; }
.s-spaces-list li { font-size: 12px; color: #444; display: flex; align-items: center; gap: 8px; }
.s-spaces-list li::before { content: ''; width: 6px; height: 6px; background: var(--blue); border-radius: 50%; flex-shrink: 0; }

/* 3-D offset effect: blue block behind the image */
.s-spaces-img-3d {
  position: relative;
  padding-right: 28px;
  padding-bottom: 28px;
}
.s-spaces-img-3d::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: calc(100% - 22px);
  height: calc(100% - 22px);
  background: var(--blue);
  border-radius: 14px;
  z-index: 0;
}
.s-spaces-img {
  position: relative;
  z-index: 2;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(62,66,150,.25);
}
.s-spaces-img .img-wrap { width: 100%; height: 100%; border-radius: 0; background: #c0c3e0; }

/* ─── CAROUSEL ───────────────────────────────────────────── */
.s-car-tall .car-slide { height: 280px; }

/* ─── LEARNING FOR TOMORROW'S WORLD — bg image + overlay ── */
.s-tomorrow {
  position: relative;
  overflow: hidden;
  padding: 80px 56px;
}
.s-tomorrow-img-bg { position: absolute; inset: 0; z-index: 0; }
.s-tomorrow-img-bg .img-wrap { width: 100%; height: 100%; border-radius: 0; background: #7880b8; }
.s-tomorrow-overlay { position: absolute; inset: 0; background: var(--blue); opacity: .82; z-index: 1; }
.s-tomorrow-inner { position: relative; z-index: 2; }
.s-tomorrow-inner h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  max-width: 560px;
  line-height: 1.22;
}
.s-tomorrow-inner p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.82);
  max-width: 700px;
  margin-bottom: 36px;
}
.s-tomorrow-tags { display: flex; gap: 14px; flex-wrap: wrap; }
.s-tomorrow-tag {
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.3);
  color: var(--white);
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 12.5px;
  font-weight: 600;
}

/* ─── LEARNING BEYOND CLASSROOMS — horizontal marquee ────── */
.s-equal {
  padding: 60px 0 60px 56px;
  background: var(--white);
  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; }

.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; flex-shrink: 0; }
.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;
}

/* ─── SPACES DESIGNED FOR DISCOVERY (blue bg grid) ──────── */
.s-trust {
  padding: 56px 56px 60px;
  background: var(--white);
}
.s-trust h2 { font-size: 30px; font-weight: 700; color: #222; margin-bottom: 6px; }
.s-trust > p { font-size: 12px; color: #666; margin-bottom: 28px; }

/* Object-position fix for DSC photos (faces visible at top of frame) */
.s-trust .img-wrap img,
.s-equal-img .img-wrap img,
.s-ach-circle .img-wrap img,
.s-moments-stack .img-wrap img,
.carousel-track .img-wrap img { object-position: top center; }

/* ─── MONTESSORI EDUCATION AT ETS CBSE — flip cards ─────── */
.s-montessori-content {
  background: var(--white);
  padding: 68px 56px 52px;
}
.s-montessori-content h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 14px;
}
.s-montessori-content > p {
  font-size: 13px;
  line-height: 1.6;
  color: #555;
  max-width: 700px;
  margin-bottom: 36px;
}
/* 6 flip cards in 3×2 grid */
.s-mont-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
/* Flip card */
.s-flip-card {
  height: 350px;
  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: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.s-flip-front { overflow: hidden; }
.s-flip-front .img-wrap { width: 100%; height: 100%; border-radius: 14px; background: #c8cbe8; }
.s-flip-back {
  background: var(--blue);
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.s-flip-back span { color: var(--white); font-size: 14px; font-weight: 700; line-height: 1.4; }

/* ─── CELEBRATING EXCELLENCE ─────────────────────────────── */
.s-achievements {
  padding: 68px 56px;
  background: var(--white);
}
.s-achievements h2 {
  font-size: 30px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}
.s-achievements > p {
  font-size: 13px;
  line-height: 1.6;
  color: #555;
  max-width: 680px;
  margin-bottom: 8px;
}
.s-achievements > .s-ach-sub {
  font-size: 12px;
  color: #999;
  margin-bottom: 40px;
}
.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 #e0e2f5;
  flex-shrink: 0;
}
.s-ach-circle .img-wrap { width: 100%; height: 100%; border-radius: 0; background: #c8cbe8; }

/* ─── MOMENTS THAT SHAPE MEMORIES — backdrop + card stack ── */
.s-moments {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 360px;
}
.s-moments-img-bg { position: absolute; inset: 0; z-index: 0; }
.s-moments-img-bg .img-wrap { width: 100%; height: 100%; border-radius: 0; background: #7880b8; }
.s-moments-overlay { position: absolute; inset: 0; background: var(--blue); opacity: .80; z-index: 1; }

.s-moments-text {
  position: relative; z-index: 2;
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.s-moments-text h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 16px;
}
.s-moments-text p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.82);
  margin-bottom: 0;
}

/* Stacked sliding image cards */
.s-moments-stack-wrap {
  position: relative; z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 40px 40px 20px;
}
.s-moments-stack {
  position: relative;
  width: 320px;
  height: 260px;
  cursor: pointer;
}
.s-stack-card {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .5s cubic-bezier(.4,0,.2,1), opacity .4s;
}
.s-stack-card .img-wrap { width: 100%; height: 100%; border-radius: 0; background: #c8cbe8; }
/* Default stack positions — JS overrides via classes */
.s-stack-card.pos-0 { transform: translate(0, 0);     z-index: 10; opacity: 1; }
.s-stack-card.pos-1 { transform: translate(16px,16px); z-index: 9;  opacity: .82; }
.s-stack-card.pos-2 { transform: translate(32px,32px); z-index: 8;  opacity: .55; }
.s-stack-card.pos-hide{ transform: translate(48px,48px); z-index: 7; opacity: 0; }
.s-stack-card.slide-out {
  transform: translateX(160%) rotate(6deg) !important;
  opacity: 0 !important;
  z-index: 20;
  transition: transform .45s cubic-bezier(.4,0,.2,1), opacity .35s !important;
}

/* ─── LEFT-ALIGNMENT OVERRIDES (school2 CBSE) ───────────── */
/* Our Academic Philosophy */
.acad-overview-inner {
  text-align: left;
  margin: 0;
}
/* Our Learning Approach */
.acad-approach {
  text-align: left;
}
.acad-approach-label {
  text-align: left;
}
/* Assessment & Student Progress */
.acad-assessment-inner {
  text-align: left;
  margin: 0;
}
/* Academics Pillars blue section headings */
.acad-pillars-label,
.acad-pillars h2 {
  text-align: left;
}
/* Achievements circles left-start */
.s-ach-circles {
  justify-content: flex-start;
}
/* Button hover animations */
.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(62, 66, 150, 0.28);
}
.btn-blue:hover { background: #3538a0; }
