/* Marcellus = About Us title (sharp serif) · Plus Jakarta Sans 400 italic = highlighted words in the About paragraph */
@import url("https://fonts.googleapis.com/css2?family=Marcellus&family=Plus+Jakarta+Sans:ital,wght@0,400;1,400&display=swap");

/* =========================================================================
   Home page — hero, stats, about, academics, facilities, testimonials,
   news, admissions CTA. Everything below the hero is on pure white.
   Each section has its own layout and its own thick colour set.

   Fonts: headings = Cormorant Garamond (Light / Regular, thin strokes)
          paragraphs & UI text = Playfair Display (Regular)
   ========================================================================= */

/* ---------- Hero video (replaces the old 3-slide carousel) ----------
   Full width, left edge to right edge. Plain white behind the video,
   and the placeholder is an empty white box (no text, no blue). */
.hero-video {
  position: relative;
  width: 100%;
  height: 550px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.hero-video video {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
  background: #fff;
}

/* placeholder: empty white box, visible only until the video appears */
.hero-video-ph {
  position: absolute; inset: 0; z-index: 1;
  background: #fff;
}



/* ---------- White wrapper: everything between hero and footer ---------- */
.home-main {
  display: flow-root;      /* keeps the stats card's negative margin inside */
  background: #fff;
}
.home-main section,
.home-main .section-alt { background: #fff; padding: 22px 0; }   /* tighter: sections sit close together */

/* Section accent colours (used by the eyebrow pill + heading underline) */
.academics-section    { --acc: #1667B0; --acc2: #E8790E; }
.facilities-section   { --acc: #1F4D3A; --acc2: #FFC400; }
.testimonials-section { --acc: #C62828; --acc2: #FFC400; }
.news-section         { --acc: #E8790E; --acc2: #4B1740; }

/* Shared section heading: centered, large, with a coloured underline */
.home-main .section-head {
  max-width: 820px;
  margin: 0 auto 26px;
  text-align: center;
}
/* The small label above each section title IS the heading now:
   same look as About Us (Marcellus, capitals, red, red underline = text width) */
.home-main .section-head .eyebrow {
  display: inline-block;
  font-family: "Marcellus", var(--font-head);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #D32F2F;
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0 0 4px;
  margin: 0 0 18px;
  border-bottom: 3px solid #D32F2F;
}
.home-main .section-head .eyebrow i { display: none; }

/* Line under the heading: normal dark Cormorant (no red, no underline) */
.home-main .section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.home-main .section-head p.lede {
  margin-top: 12px;
  font-size: 1.22rem;                          /* same as About Us paragraph */
  font-weight: 400;
  -webkit-text-stroke: 0.15px currentColor;    /* same weight as About Us paragraph */
  line-height: 1.9;
  color: var(--ink);
}

.section-cta { display: flex; justify-content: center; margin-top: 24px; }

/* Extra solid buttons used on this page */
.btn-blue-solid { background: var(--blue); color: #fff; box-shadow: 0 14px 30px -14px rgba(22, 103, 176, 0.6); }
.btn-blue-solid:hover { background: var(--blue-dark); }
.btn-yellow { background: #FFC400; color: #121212; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.45); }
.btn-yellow:hover { background: #FFD740; }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: #B71C1C; }

/* ---------- Quick stats ----------
   Full-width bar placed below the hero video with a small gap.
   3 stats: 42 Years of Excellence · 20,000+ Happy Students · 99.9% */
.highlights-wrap,
.highlights-wrap.container {
  margin-top: 20px;            /* sits BELOW the hero with a gap (no overlap) */
  margin-bottom: 0;
  position: relative; z-index: 20;
  max-width: none;             /* full width: left edge to right edge */
  width: 100%;
  padding-left: 0; padding-right: 0;
}
.highlights-card {
  background: var(--blue-dark);
  border: 0;
  border-top: 2px solid #d7a233;
  border-bottom: 2px solid #d7a233;
  border-radius: 0;
  box-shadow: none;
  padding: 24px 22px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.highlight-item {
  position: relative;
  text-align: center;
  padding: 2px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.highlight-item:not(:first-child)::before {
  content: "";
  position: absolute; left: 0; top: 10%; bottom: 10%; width: 1px;
  background: rgba(255, 255, 255, 0.22);
}
.highlight-item .ico {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--orange-light), #d7a233);
  color: var(--blue-dark); font-size: 1.1rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}
.highlight-item .counter,
.highlight-item .stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 500;
  line-height: 1.1;
  color: #fff;
}
.highlight-item .stat-label {
  font-size: 0.8rem; font-weight: 400; color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 620px) {
  .highlights-wrap, .highlights-wrap.container { margin-top: 14px; }
  .highlights-card { padding: 18px 8px; gap: 6px; }
  .highlight-item { padding: 2px 4px; }
  .highlight-item .ico { width: 36px; height: 36px; font-size: 0.9rem; }
  .highlight-item .counter, .highlight-item .stat-num { font-size: 1.35rem; }
  .highlight-item .stat-label { font-size: 0.68rem; }
}

/* =========================================================================
   Welcome — centered intro above About Us
   ========================================================================= */
.home-main .welcome-section { padding: 28px 0 8px; }
.welcome-wrap { max-width: 980px; text-align: center; }
.welcome-small {
  font-family: "Marcellus", var(--font-head);
  font-size: 1.2rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 8px;
}
.welcome-title {
  font-family: "Marcellus", var(--font-head);
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  font-weight: 400; line-height: 1.2; letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #D32F2F;
  margin: 0 0 20px;
}
.welcome-para {
  font-size: 1.22rem; font-weight: 400; line-height: 1.9;
  -webkit-text-stroke: 0.15px currentColor;
  color: var(--ink);
  margin: 0 auto;
}
/* Learn → Grow → Succeed (arrows instead of dots) */
.welcome-tagline {
  font-family: "Marcellus", var(--font-head);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  letter-spacing: 0.06em;
  color: var(--blue-dark);
  margin: 22px 0 0;
}
.welcome-tagline i {
  color: #FFC400;
  margin: 0 14px;
  font-size: 0.62em;
  vertical-align: middle;
}
.welcome-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 22px; }

@media (max-width: 700px) {
  .home-main .welcome-section { padding: 20px 0 8px; }
  .welcome-para { font-size: 1.05rem; }
  .welcome-tagline i { margin: 0 8px; }
}

/* =========================================================================
   Our School Highlights — 6 icon cards in ONE row (left to right),
   sits between Welcome and About Us. Icons are inline SVG in home.html.
   Desktop: 6 across · tablet: 3 x 2 · mobile: 2 x 3

   FULL 3D BLOCK: every card has
     - a thin dark-navy outline (rectangle border)
     - a glossy top-left shine + inner bevel
     - a solid block thickness (right + bottom) with the SAME thin outline
     - a soft ground shadow
   Hover = lifts and tilts · Click = presses into its edge.
   ========================================================================= */
.home-main .school-hl-section { padding: 12px 0 30px; }
.school-hl-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  align-items: stretch;
}
.school-hl-card {
  --c: #0B3F73;                 /* ring colour around every icon circle */
  --line: #0B3F73;              /* thin outline colour of the card + its thickness */
  --edge: #A9C4E2;              /* colour of the solid 3D side (right + bottom) */
  position: relative;
  /* glossy face: bright top-left shine fading to a soft blue bottom-right */
  background:
    radial-gradient(120% 80% at 0% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(145deg, #FAFDFF 0%, #DCE9F6 100%);
  /* thin rectangular border on all four sides */
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 24px 12px 24px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  transform-style: preserve-3d;
  /* 1) inset light/dark = rounded bevel on the face
     2) stacked 1px steps right + down = solid block thickness
     3) last step with 1px spread = thin outline around the thickness
     4) big soft shadow = block sits on the ground */
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.95),
    inset -3px -3px 7px rgba(11, 63, 115, 0.16),
    1px 1px 0 var(--edge),
    2px 2px 0 var(--edge),
    3px 3px 0 var(--edge),
    4px 4px 0 var(--edge),
    5px 5px 0 var(--edge),
    6px 6px 0 var(--edge),
    7px 7px 0 var(--edge),
    8px 8px 0 1px var(--line),
    16px 22px 30px -6px rgba(11, 63, 115, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* hover: card lifts and tilts towards you like a real 3D block */
.school-hl-card:hover {
  transform: perspective(900px) translateY(-8px) rotateX(6deg) rotateY(-8deg);
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.95),
    inset -3px -3px 7px rgba(11, 63, 115, 0.16),
    1px 1px 0 var(--edge),
    2px 2px 0 var(--edge),
    3px 3px 0 var(--edge),
    4px 4px 0 var(--edge),
    5px 5px 0 var(--edge),
    6px 6px 0 var(--edge),
    7px 7px 0 var(--edge),
    8px 8px 0 1px var(--line),
    22px 34px 40px -8px rgba(11, 63, 115, 0.5);
}
/* click: block is pressed into the page */
.school-hl-card:active {
  transform: translate(5px, 5px);
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.95),
    inset -3px -3px 7px rgba(11, 63, 115, 0.16),
    1px 1px 0 var(--edge),
    2px 2px 0 var(--edge),
    3px 3px 0 1px var(--line),
    8px 10px 14px -6px rgba(11, 63, 115, 0.4);
}
/* icon sits inside a circle: light-blue fill + ring in the card's colour */
.school-hl-img {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #FFFFFF 0%, #EAF3FB 60%, #D6E7F6 100%);
  border: 4px solid var(--c);
  box-shadow:
    inset 0 -6px 12px rgba(11, 63, 115, 0.12),
    0 3px 0 rgba(11, 63, 115, 0.25),
    0 14px 22px -12px rgba(18, 18, 18, 0.55);
  padding: 16px;
  box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease;
}
.school-hl-card:hover .school-hl-img { transform: scale(1.06); }
.school-hl-img svg { width: 100%; height: 100%; display: block; }

/* card names: BLACK, bold, clean */
.school-hl-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.005em;
  color: #111111;                            /* black */
  -webkit-text-stroke: 0.3px currentColor;   /* slightly bolder letters */
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  margin: 0;
}

@media (max-width: 899px) {
  .school-hl-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 22px; }
}
@media (max-width: 620px) {
  .home-main .school-hl-section { padding: 12px 0 24px; }
  .school-hl-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .school-hl-card { padding: 18px 10px; }
  .school-hl-card h3 { font-size: 1.1rem; }
}

/* =========================================================================
   About Us — title (left), school image placeholder (right),
   gold corner, thick red/yellow swoosh.
   ========================================================================= */
.home-main .about-section {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.about-wrap {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}

/* ----- Left: text ----- */
/* "ABOUT US": capital letters, sharp-edged serif (like MEET THE FOUNDERS),
   smaller size, red underline exactly as wide as the text. */
.about-title {
  display: inline-block;
  font-family: "Marcellus", var(--font-head);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #D32F2F;                      /* red */
  padding-bottom: 4px;
  margin-bottom: 24px;
  border-bottom: 3px solid #D32F2F;    /* straight red underline = text width */
}
/* old gold rule is replaced by the red underline above */
.about-rule { display: none; }

/* Old lead line, two paragraphs and 4 points are no longer used */
.about-lead, .about-desc, .about-points { display: none; }

/* About paragraph (class about-para) on a light-blue rounded panel */
.about-para {
  background: #D3E6F8;                 /* deeper blue than before (#EAF3FB) */
  border-radius: 24px 110px 24px 24px;
  padding: 40px 48px 40px 40px;
  max-width: 660px;
  font-family: var(--font-body);
  font-size: 1.22rem;                  /* bigger paragraph text */
  font-weight: 400;
  -webkit-text-stroke: 0.15px currentColor;   /* adds a little weight */
  line-height: 1.9;
  color: var(--ink);
}

/* Red highlighted words: bigger, italic, capitals */
.about-para .about-hl {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.1em;                    /* slightly bigger than the paragraph */
  font-weight: 400;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  -webkit-text-stroke: 0;              /* no extra stroke on red words */
  color: #D32F2F;
}
.about-lead {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--blue-dark);
  margin-bottom: 16px;
}
.about-desc {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 560px;
}
.about-desc + .about-desc { margin-top: 14px; }

.about-points {
  list-style: none; margin: 30px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px;
  max-width: 560px;
}
.about-points li {
  display: flex; align-items: center; gap: 12px;
  font-weight: 400; font-size: 0.92rem; color: var(--ink);
}
.pt-ico {
  flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.pt-ico.tone-blue    { background: var(--blue-tint);    color: var(--blue); }
.pt-ico.tone-orange  { background: var(--orange-tint);  color: var(--orange); }
.pt-ico.tone-forest  { background: var(--forest-tint);  color: var(--forest); }
.pt-ico.tone-brinjal { background: var(--brinjal-tint); color: var(--brinjal); }

.about-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }

/* ----- Right: image placeholder + decorations ----- */
.about-media {
  position: relative;
  padding: 26px 26px 40px 10px;
}
.about-frame {
  position: relative; z-index: 2;
  aspect-ratio: 4 / 3;                 /* image size: 1200 x 900 px */
  border-radius: 28px;
  border: 8px solid #fff;
  background: var(--blue-tint);
  box-shadow: 0 30px 60px -28px rgba(11, 63, 115, 0.55);
  overflow: hidden;
}
.about-frame {
  --about-img-tilt: 5deg;     /* photo is tilted; change this number to fine-tune
                                 (if you change it, change `rotation` in home-anim.js too) */
}
.about-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 2;
  transform: rotate(var(--about-img-tilt)) scale(1.13);   /* scale hides the corners */
}
.about-placeholder {
  position: absolute; inset: 14px; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center;
  border: 2px dashed var(--blue-light);
  border-radius: 18px;
  color: var(--blue-dark);
  padding: 16px;
}
.about-placeholder i { font-size: 3rem; color: var(--blue); opacity: 0.7; }
.about-placeholder b { font-family: var(--font-head); font-size: 1.5rem; font-weight: 400; }
.about-placeholder span { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.6; }
.about-placeholder code {
  background: #fff; padding: 2px 8px; border-radius: 6px;
  font-size: 0.8rem; color: var(--blue-dark);
}

/* Gold + navy circles and the diagonal gold line are removed */
.about-ring,
.about-ring-gold,
.about-ring-navy,
.about-stripe { display: none !important; }

.about-corner {
  position: absolute; z-index: 3;
  top: 18px; right: 18px;
  width: 78px; height: 78px;
  background: linear-gradient(135deg, #f7a823, #d7a233);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  border-top-right-radius: 12px;
}

.about-badge {
  position: absolute; z-index: 4;
  left: -6px; bottom: 6px;
  display: flex; align-items: center; gap: 14px;
  background: var(--blue-dark);
  border: 2px solid #d7a233;
  border-radius: 18px;
  padding: 14px 20px;
  box-shadow: var(--shadow);
  color: #fff;
}
.about-badge i {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--orange-light), #d7a233);
  color: var(--blue-dark); font-size: 1.2rem;
}
.about-badge span { display: flex; flex-direction: column; font-size: 0.78rem; color: rgba(255,255,255,0.85); line-height: 1.35; }
.about-badge b { font-family: var(--font-head); font-size: 1.3rem; font-weight: 500; color: #fff; }

.about-swoosh { display: none !important; }   /* section-ending design removed */

@media (max-width: 899px) {
  .home-main .about-section { padding: 20px 0; }
  .about-wrap { grid-template-columns: 1fr; gap: 40px; }
  .about-media { max-width: 620px; margin: 0 auto; width: 100%; }
}
@media (max-width: 560px) {
  .about-points { grid-template-columns: 1fr; }
  .about-badge { left: 0; padding: 10px 14px; }
  .about-badge i { width: 38px; height: 38px; }
}

/* =========================================================================
   Academics — staircase of photo cards with a thick colour overlay.
   Photos: static/images/academics-1.jpg ... academics-5.jpg
   (portrait-ish crop works best, e.g. 800 x 1100). If a photo is missing
   the card simply stays a solid colour block.
   ========================================================================= */
.academics-wrap { position: relative; }
.academics-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0 14px; align-items: end;
  padding-top: 90px;                           /* room for the gold arrow above the steps */
  border-bottom: 8px solid var(--blue-dark);   /* the "ground" the steps stand on */
}

/* Gold arrow that climbs the staircase (above the tops of the cards).
   The path is drawn in home.html; horizontal runs sit over each card,
   vertical risers sit in the gaps between cards.
   It GROWS from the start while scrolling (home-anim.js reveals it left → right). */
.academics-arrow {
  position: absolute; z-index: 5;
  left: 0; top: 0;
  width: 100%; height: 240px;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 6px 8px rgba(120, 80, 0, 0.35));
}
.academics-arrow path {
  fill: none;
  stroke: #E3A21A;                             /* gold */
  stroke-width: 8px;
  stroke-linejoin: round;
  stroke-linecap: butt;
  vector-effect: non-scaling-stroke;
}
.academics-arrow-head {
  position: absolute; z-index: 5;
  left: calc(94% - 2px); top: 32px;            /* 54px (arrow line) - 22px */
  width: 0; height: 0;
  border-left: 38px solid #E3A21A;
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
  filter: drop-shadow(0 6px 8px rgba(120, 80, 0, 0.35));
  pointer-events: none;
}
.academic-card {
  position: relative;
  isolation: isolate;
  background: var(--c, var(--orange));
  color: #fff;
  border-radius: 20px 20px 0 0;
  padding: 26px 20px 26px;
  min-height: var(--h, 320px);
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  box-shadow: 0 24px 44px -26px rgba(18, 18, 18, 0.55);
  transition: transform 0.25s ease;
}
.academic-card:hover { transform: translateY(-8px); }
.academic-card:nth-child(5n+1) { --c: #E8790E; --h: 300px; }
.academic-card:nth-child(5n+2) { --c: #1667B0; --h: 340px; }
.academic-card:nth-child(5n+3) { --c: #1F4D3A; --h: 380px; }
.academic-card:nth-child(5n+4) { --c: #4B1740; --h: 420px; }
.academic-card:nth-child(5n+5) { --c: #C2185B; --h: 460px; }

/* where each photo is focused inside its card (x% y%) */
.academic-card:nth-child(5n+1) .ac-photo img { object-position: 45% 30%; }
.academic-card:nth-child(5n+2) .ac-photo img { object-position: 45% 30%; }
.academic-card:nth-child(5n+3) .ac-photo img { object-position: 62% 30%; }
.academic-card:nth-child(5n+4) .ac-photo img { object-position: 48% 30%; }
.academic-card:nth-child(5n+5) .ac-photo img { object-position: 40% 30%; }

/* photo layer */
.academic-card .ac-photo {
  position: absolute; inset: 0; z-index: 0;
}
.academic-card .ac-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.academic-card:hover .ac-photo img { transform: scale(1.06); }

/* colour overlay: light tint on top, strong solid colour at the bottom
   so the white text stays readable */
.academic-card::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--c) 55%, transparent) 0%,
    color-mix(in srgb, var(--c) 0%, transparent) 38%,
    color-mix(in srgb, var(--c) 55%, transparent) 62%,
    var(--c) 100%
  );
}

.academic-card .stage-no,
.academic-card .academic-body { position: relative; z-index: 2; }

.academic-card .stage-no {
  font-family: var(--font-head);
  font-size: 4.4rem; font-weight: 400; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.9);
}
.academic-card h4 { font-size: 1.6rem; font-weight: 400; color: #fff; line-height: 1.1; }
.academic-card p {
  font-size: 1rem;                             /* cards are narrow, so slightly smaller than 1.22rem */
  margin-top: 8px; line-height: 1.65;
  -webkit-text-stroke: 0.15px currentColor;
  color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 899px) {
  .academics-arrow, .academics-arrow-head { display: none; }
  .academics-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; border-bottom: 0; padding-top: 0; }
  .academic-card, .academic-card:nth-child(n) { --h: 340px; border-radius: 20px; }
}
@media (max-width: 620px) { .academics-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .academics-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   Facilities — 6 square photos arranged in a ring around the centre title
        [ 1 ][ 2 ]
     [ 3 ] TITLE [ 4 ]
        [ 5 ][ 6 ]
   + a background colour and shapes that belong to this section only
   ========================================================================= */
.home-main .facilities-section {
  position: relative; overflow: hidden;
  background: #EAF3FB;
}
.facilities-section::before {          /* big white circle behind the ring */
  content: ""; position: absolute; z-index: 0;
  width: 900px; height: 900px; border-radius: 50%;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.75);
}
.facilities-section .container { position: relative; z-index: 1; }

.facilities-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; align-items: center;
}
.facility-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  background: var(--blue-tint);
  border: 6px solid #fff;
  box-shadow: 0 24px 48px -26px rgba(18, 18, 18, 0.5);
}
.facility-card:nth-child(1) { grid-column: 2; grid-row: 1; }
.facility-card:nth-child(2) { grid-column: 3; grid-row: 1; }
.facility-card:nth-child(3) { grid-column: 1; grid-row: 2; }
.facility-card:nth-child(4) { grid-column: 4; grid-row: 2; }
.facility-card:nth-child(5) { grid-column: 2; grid-row: 3; }
.facility-card:nth-child(6) { grid-column: 3; grid-row: 3; }

.facilities-center {
  grid-column: 2 / 4; grid-row: 2;
  max-width: none; margin: 0;
  text-align: center;
}
.facilities-center .eyebrow { margin-bottom: 14px; }

.facility-card .thumb { position: absolute; inset: 0; overflow: hidden; }
.facility-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.facility-card:hover .thumb img { transform: scale(1.08); }
.facility-card .cap {
  position: absolute; left: 0; bottom: 18px; z-index: 2;
  background: var(--c, var(--forest)); color: #fff;
  padding: 8px 22px 8px 16px;
  border-radius: 0 999px 999px 0;
  font-family: var(--font-head);
  font-weight: 500; font-size: 1.15rem; line-height: 1.2;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.5);
}
.facility-card:nth-child(6n+1) { --c: #C62828; }
.facility-card:nth-child(6n+2) { --c: #1667B0; }
.facility-card:nth-child(6n+3) { --c: #1F4D3A; }
.facility-card:nth-child(6n+4) { --c: #4B1740; }
.facility-card:nth-child(6n+5) { --c: #E8790E; }
.facility-card:nth-child(6n+6) { --c: #0B3F73; }

@media (max-width: 900px) {
  .facilities-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .facilities-center { grid-column: 1 / -1; grid-row: 1; margin-bottom: 14px; }
  .facility-card:nth-child(n) { grid-column: auto; grid-row: auto; }
  .facility-card .cap { font-size: 1rem; padding: 6px 16px 6px 12px; bottom: 12px; }
}

/* =========================================================================
   Our Student Life & Activities
   Layout (desktop):
     row 1-3 : 3 square photos per row (life-1 ... life-9)
     row 4   : Rangoli (square, life-10)  +  Dance (WIDE 1600 x 720, life-11)
     row 5   : Election Polling (WIDE 1600 x 720, life-12) centred
   Squares : 800 x 800  (static/images/life-1.jpg ... life-10.jpg)
   Wide    : 1600 x 720 (static/images/life-11.jpg = Dance,
                         static/images/life-12.jpg = Election Polling)
   Built on a 6-column grid: square = 2 columns, wide = 4 columns,
   so the wide cards line up exactly with the squares above them.
   ========================================================================= */
.life-section .section-head { max-width: none; }
.life-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 24px; align-items: center;
  max-width: 1080px; margin: 0 auto;
}
.life-card {
  position: relative; margin: 0;
  grid-column: span 2;                 /* square = 2 of 6 columns */
  aspect-ratio: 1 / 1;
  border-radius: 22px; overflow: hidden;
  border: 6px solid #fff;
  background: var(--blue-tint);
  box-shadow: 0 24px 48px -26px rgba(18, 18, 18, 0.5);
}
/* wide cards: 1600 x 720 ratio, image is cropped to fit (object-fit: cover) */
.life-card.life-wide {
  grid-column: span 4;                 /* wide = 4 of 6 columns */
  aspect-ratio: 1600 / 720;
}
/* Election Polling: wide card centred in its own row (columns 2-5) */
.life-card.life-wide.life-center { grid-column: 2 / span 4; }

.life-card img {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.life-card:hover img { transform: scale(1.06); }
.life-ph {
  position: absolute; inset: 10px; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 10px;
  border: 2px dashed var(--blue-light); border-radius: 14px; color: var(--blue-dark);
}
.life-ph i { font-size: 2.2rem; color: var(--blue); opacity: 0.7; }
.life-ph b { font-family: var(--font-head); font-size: 1.3rem; font-weight: 400; }
.life-ph span { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.5; }
.life-card .cap {
  position: absolute; left: 0; bottom: 18px; z-index: 3;
  background: var(--c, var(--forest)); color: #fff;
  padding: 8px 22px 8px 16px;
  border-radius: 0 999px 999px 0;
  font-family: var(--font-head);
  font-weight: 500; font-size: 1.15rem; line-height: 1.2;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.5);
}
.life-card:nth-child(5n+1) .cap { --c: #C62828; }
.life-card:nth-child(5n+2) .cap { --c: #1667B0; }
.life-card:nth-child(5n+3) .cap { --c: #1F4D3A; }
.life-card:nth-child(5n+4) .cap { --c: #4B1740; }
.life-card:nth-child(5n+5) .cap { --c: #E8790E; }

@media (max-width: 900px) {
  .life-grid { gap: 16px; }
  .life-card .cap { font-size: 0.95rem; padding: 6px 14px 6px 10px; bottom: 12px; }
}
@media (max-width: 560px) {
  /* mobile: squares 2 per row, wide cards full width */
  .life-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .life-card.life-wide,
  .life-card.life-wide.life-center { grid-column: span 4; }
}

/* =========================================================================
   Testimonials — thick solid-colour cards, middle one dropped
   ========================================================================= */
.testi-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.testi-card {
  position: relative;
  background: var(--c, var(--blue-dark));
  color: #fff;
  border-radius: 26px;
  padding: 40px 32px 32px;
  box-shadow: 0 28px 50px -30px rgba(18, 18, 18, 0.6);
  overflow: hidden;
}
.testi-card:nth-child(3n+1) { --c: #0B3F73; }
.testi-card:nth-child(3n+2) { --c: #C62828; margin-top: 44px; }
.testi-card:nth-child(3n+3) { --c: #1F4D3A; }
.testi-mark {
  position: absolute; top: 20px; right: 26px;
  font-size: 3.6rem; color: rgba(255, 255, 255, 0.16);
}
.testi-card .stars { color: #FFC400; font-size: 1rem; margin-bottom: 18px; letter-spacing: 3px; }
.testi-card .quote {
  font-size: 1.22rem; color: #fff; line-height: 1.8; font-weight: 400;
  -webkit-text-stroke: 0.15px currentColor;
}
.testi-who {
  display: flex; align-items: center; gap: 14px;
  margin-top: 28px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}
.testi-who b { display: block; font-family: var(--font-head); font-size: 1.35rem; font-weight: 500; line-height: 1.15; color: #fff; }
.testi-who span span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.82); }

@media (max-width: 900px) {
  .testi-track { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .testi-card:nth-child(3n+2) { margin-top: 0; }
}

/* =========================================================================
   News + Gallery — heading on the left, "Our Gallery" grid (2 columns)
   on the right. ALL tiles are the same size: perfect squares (800 x 800).
   ========================================================================= */
.news-split {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start;
}
.news-split .section-head { max-width: none; margin: 0 0 22px; text-align: left; }
.news-split .section-head .eyebrow { justify-content: flex-start; }
.news-left { align-self: start; }
.news-left .section-head { margin: 0; }

/* equal square grid: every tile is 1:1 (800 x 800) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.gallery-tile {
  position: relative;
  display: block;
  margin: 0;
  aspect-ratio: 1 / 1;                 /* same size, square, for every tile */
  border-radius: 22px; overflow: hidden;
  border: 6px solid #fff;
  background: var(--blue-tint);
  box-shadow: 0 24px 48px -26px rgba(18, 18, 18, 0.5);
}
.gallery-tile img {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-tile:hover img { transform: scale(1.08); }       /* hover zoom */
.gallery-ph {
  position: absolute; inset: 10px; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 10px;
  border: 2px dashed var(--blue-light); border-radius: 14px; color: var(--blue-dark);
}
.gallery-ph i { font-size: 2.2rem; color: var(--blue); opacity: 0.7; }
.gallery-ph b { font-family: var(--font-head); font-size: 1.3rem; font-weight: 400; }
.gallery-ph span { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.5; }

/* "View Our Gallery" button under the grid */
.gallery-cta { display: flex; justify-content: center; margin-top: 24px; }

@media (max-width: 900px) {
  .news-split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .gallery-grid { gap: 12px; }
}

/* =========================================================================
   FAQ — simple accordion (native <details>, no JS)
   GREEN 3D block cards (same style as the Documents cards):
     thin dark-green outline · glossy face · solid green side (right + bottom)
     · soft ground shadow. The 3D look stays when a question is expanded.
   Arrow icon is a down chevron; it flips up when the answer is open.
   Links inside the answers (Admissions, Contact, phone, email) are BLUE.
   ========================================================================= */
.faq-list {
  max-width: 860px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 26px;
  padding: 0 12px 10px 0;              /* room for the 3D side */
}
.faq-item {
  --c: #1F4D3A;                        /* green: arrow circle */
  --line: #1F4D3A;                     /* thin dark-green outline */
  --edge: #8FC3A6;                     /* green 3D side (right + bottom) */
  position: relative;
  background:
    radial-gradient(120% 80% at 0% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(145deg, #F7FCF9 0%, #DDF0E4 100%);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.95),
    inset -3px -3px 7px rgba(31, 77, 58, 0.14),
    1px 1px 0 var(--edge),
    2px 2px 0 var(--edge),
    3px 3px 0 var(--edge),
    4px 4px 0 var(--edge),
    5px 5px 0 var(--edge),
    6px 6px 0 var(--edge),
    7px 7px 0 var(--edge),
    8px 8px 0 1px var(--line),
    14px 20px 28px -8px rgba(31, 77, 58, 0.45);
  transition: transform 0.25s ease;
}
.faq-item:hover { transform: translateY(-3px); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 500; line-height: 1.25; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c); color: #fff; font-size: 0.8rem;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease;
}
.faq-item[open] summary i { transform: rotate(180deg); }   /* down arrow flips up when open */
.faq-item p {
  padding: 0 24px 22px; font-size: 1.22rem; line-height: 1.8;
  color: var(--ink);
  -webkit-text-stroke: 0.15px currentColor;
}
/* links inside FAQ answers: BLUE (was green) */
.faq-item p a { color: #1667B0; font-weight: 600; text-decoration: none; }
.faq-item p a:hover { color: #0B3F73; text-decoration: underline; }

/* =========================================================================
   Admissions CTA — "Admissions Are In Progress" heading + bold solid red
   block with yellow accents
   ========================================================================= */
.home-main .admissions-section { padding-top: 10px; padding-bottom: 36px; }
.admissions-section .section-head { margin-bottom: 24px; }
.admissions-cta {
  position: relative;
  background: linear-gradient(120deg, #B71C1C 0%, #D32F2F 55%, #8E0F0F 100%);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: stretch;
  box-shadow: 0 34px 60px -30px rgba(142, 15, 15, 0.7);
}
.admissions-copy { position: relative; z-index: 2; padding: 64px 56px; }
.cta-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #FFC400; color: #121212;
  font-weight: 500; font-size: 0.76rem; letter-spacing: 0.04em;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  margin: 0 0 16px; max-width: none;
}
.admissions-copy h2 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.08;
  color: #fff;
}
.admissions-copy p {
  margin-top: 16px; max-width: 520px;
  font-size: 1.22rem;
  -webkit-text-stroke: 0.15px currentColor;
  color: rgba(255, 255, 255, 0.92); line-height: 1.8;
}
/* small yellow "Admissions Open" pill keeps its own size (not the paragraph size) */
.admissions-copy p.cta-eyebrow { margin-top: 0; color: #121212; font-size: 0.76rem; -webkit-text-stroke: 0; }
.admissions-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

.admissions-media { position: relative; z-index: 1; min-height: 380px; }
.admissions-media::before {              /* thin yellow edge behind the photo */
  content: ""; position: absolute; inset: 0; background: #FFC400;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}
.admissions-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  clip-path: polygon(19% 0, 100% 0, 100% 100%, 3.5% 100%);
}

@media (max-width: 900px) {
  .admissions-cta { grid-template-columns: 1fr; }
  .admissions-copy { padding: 44px 28px; }
  .admissions-media { min-height: 260px; }
  .admissions-media::before { display: none; }
  .admissions-media img { clip-path: none; }
}

/* ---------- Mobile spacing ---------- */
@media (max-width: 700px) {
  .home-main section, .home-main .section-alt { padding: 16px 0; }
  .home-main .about-section { padding: 16px 0; }
  .home-main .section-head { margin-bottom: 20px; }
}


/* =========================================================================
   ANIMATIONS (same style as the Library page)
   - Images / photo cards : 3D flip-up reveal + hover zoom (zoom is above)
   - Headings             : letters fly in from random places, then settle
   Only active when JS adds .home-anim; reduced-motion users see no motion.
   ========================================================================= */
@keyframes h-flip {
  from { opacity: 0; transform: perspective(900px) rotateX(-70deg) translateY(30px); }
  to   { opacity: 1; transform: perspective(900px) rotateX(0) translateY(0); }
}
@keyframes h-letter {
  from { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(0.4); }
  to   { opacity: 1; transform: none; }
}

/* hidden until revealed */
.home-anim .about-frame:not(.in),
.home-anim .academic-card:not(.in),
.home-anim .facility-card:not(.in),
.home-anim .life-card:not(.in),
.home-anim .gallery-tile:not(.in),
.home-anim .admissions-media:not(.in) { opacity: 0; }

/* play (backwards fill, so hover effects keep working afterwards) */
.home-anim .about-frame.in,
.home-anim .academic-card.in,
.home-anim .facility-card.in,
.home-anim .life-card.in,
.home-anim .gallery-tile.in,
.home-anim .admissions-media.in {
  animation: h-flip 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: calc(var(--i, 0) * 0.15s + 0.1s);
}

/* heading letters: JS wraps every word (.lw) and letter (.lt) */
.lw { display: inline-block; white-space: nowrap; }
.lt { display: inline-block; }
.home-anim .h-split:not(.in) .lt { opacity: 0; }
.home-anim .h-split.in .lt {
  animation: h-letter 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: var(--d, 0s);
}

/* arrow head (Academics) pops in when the arrow line reaches the end */
.home-anim .academics-arrow-head { transition: opacity 0.3s ease, transform 0.3s ease; transform-origin: 0% 50%; }

@media (prefers-reduced-motion: reduce) {
  .home-main *, .home-main *::before, .home-main *::after { animation: none !important; }
}

/* =========================================================================
   Announcement bar — scrolling text right under the hero video
   (text is edited in Admin Panel -> Announcement Bar)
   ========================================================================= */
.ann-bar {
  display: flex; align-items: stretch;
  background: linear-gradient(90deg, #8e1212 0%, #c62828 100%);
  color: #fff;
  border-top: 2px solid #f5b301; border-bottom: 2px solid #f5b301;
  overflow: hidden;
}
.ann-label {
  flex: 0 0 auto; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  background: #f5b301; color: #052a5c;
  font-weight: 900; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  padding-right: 32px;
}
.ann-label i { animation: ann-ring 1.8s ease-in-out infinite; transform-origin: 50% 20%; }
.ann-viewport { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.ann-track {
  display: flex; width: max-content;
  animation: ann-scroll var(--ann-speed, 30s) linear infinite;
}
.ann-bar:hover .ann-track { animation-play-state: paused; }
.ann-group { display: flex; align-items: center; flex: 0 0 auto; min-width: 100vw; }
.ann-item {
  flex: 0 0 auto; white-space: nowrap;
  padding: 12px 0; font-size: 1.02rem; font-weight: 600; letter-spacing: 0.01em;
}
.ann-item::after {              /* gold diamond between messages */
  content: "◆"; color: #f5b301; font-size: 0.7rem;
  margin: 0 34px; vertical-align: middle;
}
@keyframes ann-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ann-ring { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 90% { transform: rotate(8deg); } }
@media (max-width: 700px) {
  .ann-label { padding: 10px 14px 10px 12px; font-size: 0.72rem; gap: 6px; }
  .ann-item { font-size: 0.9rem; padding: 10px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ann-track { animation: none; }
  .ann-viewport { overflow-x: auto; }
}

/* =========================================================================
   Notice board — events / news / announcements from the admin panel,
   scrolling upward automatically (latest-news ticker). Pauses on hover.
   ========================================================================= */
.notice-board {
  position: relative; height: 420px; overflow: hidden; margin-top: 26px;
  background: #fff; border: 1px solid #e6dcc8; border-radius: 18px;
  box-shadow: 0 18px 40px -26px rgba(18,18,18,.45);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
}
.nb-track { animation: nb-scroll var(--nb-dur, 30s) linear infinite; will-change: transform; }
.notice-board:hover .nb-track, .notice-board:focus-within .nb-track, .notice-board:active .nb-track { animation-play-state: paused; }
.nb-group { list-style: none; margin: 0; padding: 18px 22px; }
.nb-item { padding: 14px 0 16px; border-bottom: 1px dashed #e3d7bf; }
.nb-item p { margin: 8px 0 0; font-size: .98rem; line-height: 1.6; color: #222; }
.nb-item p b { color: #03306B; }
.nb-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: #03306B; color: #fff; }
.nb-announcement { background: #E8790E; }
.nb-celebration { background: #4B1740; }
.nb-date { margin-left: 8px; font-size: .78rem; color: #6b6b6b; }
.nb-more { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; font-weight: 700; color: #03306B; text-decoration: none; }
.nb-more:hover { color: #E8790E; }
.nb-empty { height: auto; display: flex; align-items: center; justify-content: center; padding: 34px 20px; -webkit-mask-image: none; mask-image: none; text-align: center; color: #555; }
.nb-empty p { margin: 0; }
@keyframes nb-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (max-width: 900px) { .notice-board { height: 340px; } }
@media (prefers-reduced-motion: reduce) { .nb-track { animation: none; } .notice-board { overflow-y: auto; } }