/* ================================================================
   KC TUTORIAL — style.css  (v2 — Premium Redesign)
   Inspired by Ajaya Higher Secondary School aesthetic:
   Deep maroon + royal blue + gold colour palette,
   serif display type, image-rich sections, elegant layout.
   ================================================================ */

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

:root {
  /* Core palette */
  --maroon:        #7b1c2e;
  --maroon-dark:   #5a1221;
  --maroon-deep:   #3d0d1a;
  --blue:          #0e2a5c;
  --blue-mid:      #163a80;
  --blue-light:    #1e4fa0;
  --gold:          #c9972b;
  --gold-light:    #e8b84b;
  --gold-pale:     #f7e8c4;
  --cream:         #faf7f2;
  --white:         #ffffff;
  --dark:          #1a1a2e;
  --gray-text:     #5a5a72;
  --gray-light:    #f0eee9;
  --border:        rgba(201,151,43,0.25);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  /* Spacing */
  --section-pad: 96px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--blue); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ── UTILITY ──────────────────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

.section { padding: var(--section-pad) 0; }

.sec-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.sec-eyebrow.light { color: var(--gold-light); }

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 700;
  color: var(--blue);
  line-height: 1.15;
  margin-bottom: 16px;
}
.sec-title.light { color: var(--white); }
.sec-title em { color: var(--maroon); font-style: italic; }

.gold-rule {
  width: 64px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin-bottom: 24px;
}
.gold-rule.center { margin-left: auto; margin-right: auto; }

.sec-sub {
  font-size: 15px;
  color: var(--gray-text);
  max-width: 560px;
  line-height: 1.75;
  margin: 0 auto;
}
.sec-sub.light { color: rgba(255,255,255,0.7); }

.sec-body {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.85;
  margin-bottom: 16px;
}

.sec-head { text-align: center; margin-bottom: 60px; }

/* CTA Buttons */
.cta-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--maroon-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 14px 34px;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 18px rgba(201,151,43,0.35);
}
.cta-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(201,151,43,0.5);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(255,255,255,0.55);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 30px;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.3s;
}
.cta-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ── TOPBAR ───────────────────────────────────────────────────── */
.topbar {
  background: var(--maroon-dark);
  padding: 8px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(201,151,43,0.3);
}

.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.topbar .sep { opacity: 0.3; }

.topbar-btn {
  background: var(--gold);
  color: var(--maroon-dark);
  font-weight: 700;
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.topbar-btn:hover { background: var(--gold-light); }

/* ── NAVBAR ───────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #f6f7ff;
  border-bottom: 3px solid var(--gold);
  transition: box-shadow 0.3s;
}

nav.scrolled { box-shadow: 0 4px 24px rgba(31,35,189,0.18); }

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 4px 20px;
  min-height: 66px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-emblem {
  width: clamp(130px, 12vw, 230px);
  aspect-ratio: 1640 / 664;
  background: transparent;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.logo-emblem.small {
  width: 140px;
  aspect-ratio: 1640 / 664;
}

.logo-img {
  width: 200%;
  height: 200%;
  object-fit: contain;
  display: block;
  object-position: center;
}

.logo-kc {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--maroon-dark);
  line-height: 1;
}

.logo-lines { display: flex; flex-direction: column; gap: 3px; }
.logo-lines span {
  display: block;
  height: 2px;
  background: var(--maroon-dark);
  border-radius: 1px;
}
.logo-lines span:first-child { width: 22px; }
.logo-lines span:last-child  { width: 14px; }

.logo-text { color: var(--blue); }
.logo-name {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.1;
}
.logo-sub {
  display: block;
  font-size: 10px;
  color: var(--gold-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Nav menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.nav-menu > li { position: relative; }

.nav-menu a {
  display: block;
  padding: 9px 12px;
  color: rgba(14,42,92,0.9);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu li.active > a,
.nav-menu a.current {
  color: #1f23bd;
  background: rgba(31,35,189,0.08);
}

/* Dropdown */
.has-drop:hover .dropdown { display: block; }

.dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--blue-mid);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 6px 6px;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  list-style: none;
  z-index: 200;
}

.dropdown li a {
  padding: 10px 18px;
  font-size: 13px;
  border-radius: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dropdown li:last-child a { border-bottom: none; }

/* Enroll CTA in nav */
.nav-enroll {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--maroon-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(201,151,43,0.35);
  flex-shrink: 0;
}
.nav-enroll:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,151,43,0.5); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 2.5px;
  background: var(--blue);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile drawer */
.mob-drawer {
  display: none;
  position: fixed;
  top: 66px; left: 0;
  width: 100%;
  background: var(--blue-mid);
  border-top: 2px solid var(--gold);
  z-index: 998;
  padding: 20px 32px 28px;
  transform: translateY(-8px);
  opacity: 0;
  transition: all 0.3s;
}
.mob-drawer.open { display: block; opacity: 1; transform: translateY(0); }
.mob-drawer ul { list-style: none; }
.mob-drawer ul li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.mob-drawer ul li a {
  display: block;
  padding: 13px 0;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.mob-drawer ul li a:hover { color: var(--gold-light); }
.mob-enroll {
  display: inline-flex;
  margin-top: 20px;
  background: var(--gold);
  color: var(--maroon-dark);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 3px;
  text-decoration: none;
}

/* ── HERO SLIDER ──────────────────────────────────────────────── */
.page-banner {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(14,42,92,0.82), rgba(61,13,26,0.72));
}

.page-banner-content {
  position: relative;
  z-index: 2;
  padding-top: 56px;
  padding-bottom: 56px;
}

.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 58px);
  color: var(--white);
  line-height: 1.12;
  max-width: 860px;
}

.about-banner {
  background-image:
    url('imgs/about_banner.png'),
    url('imgs/about_banner.png');
}
.classes-banner {
  background-image:
    url('imgs/classes_banner.png'),
    url('imgs/classes_banner.png');
}
.subjects-banner {
  background-image:
    url('imgs/subjects_banner.png'),
    url('imgs/subjects_banner.png');
}
.results-banner {
  background-image:
    url('imgs/results_banner.png'),
    url('imgs/results_banner.png');
}
.contact-banner {
  background-image:
    url('imgs/contact_banner.png'),
    url('imgs/contact_banner.png');
}

.hero {
  position: relative;
  height: calc(100vh - 76px - 37px);
  min-height: 560px;
  max-height: 860px;
  overflow: hidden;
}

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

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 9s ease;
}
.slide.active .slide-bg { transform: scale(1); }

.slide-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,20,60,0.88) 0%,
    rgba(10,20,60,0.65) 50%,
    rgba(10,20,60,0.25) 100%
  );
}

/* Diagonal pattern overlay */
.slide-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    rgba(255,255,255,0.015) 6px,
    rgba(255,255,255,0.015) 7px
  );
}

/* Hero content */
.hero-body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6% 80px;
  gap: 40px;
}

.hero-left { max-width: 620px; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
  animation: fadeUp 0.9s ease both;
}

.eyebrow-line {
  display: block;
  width: 36px; height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 22px;
  animation: fadeUp 0.9s 0.15s ease both;
}
.hero-heading em {
  color: var(--gold-light);
  font-style: italic;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 490px;
  animation: fadeUp 0.9s 0.3s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.9s 0.45s ease both;
}

/* Floating card */
.hero-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(201,151,43,0.35);
  border-radius: 8px;
  padding: 32px 28px;
  min-width: 260px;
  max-width: 300px;
  flex-shrink: 0;
  animation: fadeUp 0.9s 0.5s ease both;
}

@media (max-width: 900px) { .hero-card { display: none; } }

.hcard-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201,151,43,0.3);
  margin-bottom: 16px;
}

.hcard-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.hcard-list li {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hci { color: var(--gold); font-size: 10px; }

.hcard-btn {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--maroon-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 11px;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.3s;
}
.hcard-btn:hover { opacity: 0.9; transform: translateY(-2px); }

/* Stats ribbon */
.hero-ribbon {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(14,42,92,0.92);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 5%;
  gap: 0;
  animation: fadeUp 0.9s 0.6s ease both;
}

.ribbon-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 36px;
  flex: 1;
}

.rnum {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.rnum-suf {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold-light);
}

.rlabel {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

.ribbon-div {
  width: 1px;
  height: 40px;
  background: rgba(201,151,43,0.25);
  flex-shrink: 0;
}

/* Slider arrows */
.s-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 50px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(201,151,43,0.4);
  border-radius: 50%;
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
  z-index: 10;
  backdrop-filter: blur(6px);
}
.s-arrow:hover {
  background: var(--gold);
  color: var(--maroon-dark);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.08);
}
.s-prev { left: 20px; }
.s-next { right: 20px; }

/* Slider dots */
.s-dots {
  position: absolute;
  bottom: 80px;
  right: 5%;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.sdot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.sdot.active {
  background: var(--gold);
  width: 28px;
  border-radius: 4px;
}

/* ── TICKER ──────────────────────────────────────────────────── */
.ticker-wrap {
  background: var(--maroon);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-bottom: 2px solid var(--maroon-dark);
}

.ticker-label {
  background: var(--maroon-dark);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-inner {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 400;
  padding: 10px 0;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── ABOUT SECTION ───────────────────────────────────────────── */
.about-sec { background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}

/* Image mosaic */
.about-mosaic { position: relative; }

.mosaic-main {
  position: relative;
  border-radius: 6px;
  overflow: visible;
}

.mosaic-main img {
  width: 72%;
  height: 440px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  box-shadow: 0 20px 60px rgba(14,42,92,0.18);
}

.mosaic-badge {
  position: absolute;
  bottom: -24px;
  left: 58%;
  background: var(--maroon);
  color: var(--white);
  padding: 22px 28px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 8px 28px rgba(123,28,46,0.4);
  border-bottom: 3px solid var(--gold);
}

.mb-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.mb-txt {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-top: 4px;
}

.mosaic-side {
  position: absolute;
  top: 30px;
  right: -10px;
  width: 30%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mosaic-side img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(14,42,92,0.15);
  border: 3px solid var(--white);
}

.mosaic-accent {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 90px;
  height: 90px;
  border: 3px solid var(--gold);
  border-radius: 4px;
  opacity: 0.35;
  z-index: -1;
}

/* Pillars */
.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.pillar {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  padding: 16px;
  border-radius: 6px;
  border-left: 3px solid var(--gold);
  box-shadow: 0 2px 12px rgba(14,42,92,0.06);
}

.pillar-icon { font-size: 22px; flex-shrink: 0; }

.pillar strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  display: block;
  margin-bottom: 3px;
}
.pillar p { font-size: 12px; color: var(--gray-text); line-height: 1.5; }

/* ── CLASSES SECTION ─────────────────────────────────────────── */
.classes-sec { background: var(--white); }

.classes-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cls-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.35s;
  background: var(--white);
}

.cls-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(14,42,92,0.13);
  border-color: var(--gold);
}

.cls-img { position: relative; overflow: hidden; height: 220px; }

.cls-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.cls-card:hover .cls-img img { transform: scale(1.08); }

.cls-num {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--maroon);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 3px;
  border-bottom: 2px solid var(--gold);
}

.cls-body { padding: 28px 24px 24px; }

.cls-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
}

.cls-body p {
  font-size: 13px;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.cls-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--cream);
  border-radius: 4px;
}

.cls-body ul li {
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  padding-left: 14px;
  position: relative;
}
.cls-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.cls-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--maroon);
  text-decoration: none;
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 2px;
  transition: all 0.2s;
}
.cls-link:hover { color: var(--blue); gap: 10px; }

/* ── SUBJECTS SECTION ────────────────────────────────────────── */
.subjects-sec {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.subjects-sec::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--maroon-dark) 100%);
}

.subjects-overlay {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg, transparent, transparent 80px,
      rgba(255,255,255,0.02) 80px, rgba(255,255,255,0.02) 81px
    ),
    repeating-linear-gradient(
      0deg, transparent, transparent 80px,
      rgba(255,255,255,0.02) 80px, rgba(255,255,255,0.02) 81px
    );
}

.subj-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.subj-tile {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,151,43,0.2);
  border-radius: 8px;
  padding: 30px 22px;
  text-align: center;
  transition: all 0.35s;
  cursor: default;
}

.subj-tile:hover {
  background: rgba(255,255,255,0.11);
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
}

.subj-icon { font-size: 38px; display: block; margin-bottom: 14px; }

.subj-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.subj-range {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.subj-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

.subjects-overview-action {
  margin-top: 34px;
  text-align: center;
}

/* Subjects Page Specific */
.subjects-page-section {
  background:
    radial-gradient(circle at 10% 15%, rgba(201,151,43,0.14) 0, rgba(201,151,43,0) 36%),
    radial-gradient(circle at 90% 10%, rgba(14,42,92,0.12) 0, rgba(14,42,92,0) 35%),
    linear-gradient(180deg, #fdfbf6 0%, #f6f2ea 100%);
}

.subjects-page-section-alt {
  background:
    radial-gradient(circle at 85% 20%, rgba(123,28,46,0.11) 0, rgba(123,28,46,0) 35%),
    radial-gradient(circle at 15% 90%, rgba(14,42,92,0.1) 0, rgba(14,42,92,0) 34%),
    linear-gradient(180deg, #f7f2e7 0%, #fdfbf7 100%);
}

.subjects-page-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.subjects-page-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.subjects-page-tile {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(14,42,92,0.12);
  box-shadow: 0 10px 30px rgba(14,42,92,0.08);
  min-height: 250px;
  text-align: left;
  padding: 26px 22px 22px;
}

.subjects-page-tile:hover {
  background: #fffdf8;
  border-color: var(--gold);
  box-shadow: 0 18px 42px rgba(14,42,92,0.15);
  transform: translateY(-8px);
}

.subjects-page-tile .subj-name {
  color: var(--blue);
  margin-bottom: 6px;
}

.subjects-page-tile .subj-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(14,42,92,0.1), rgba(201,151,43,0.16));
}

.subjects-page-tile .subj-range {
  color: var(--maroon);
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.subjects-page-tile .subj-desc {
  color: #4f5972;
  font-size: 13px;
  line-height: 1.7;
}

.subjects-page-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--maroon));
}

.subjects-page-tile::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,151,43,0.14) 0%, rgba(201,151,43,0) 70%);
  pointer-events: none;
}

/* ── WHY / FACULTY SECTION ───────────────────────────────────── */
.why-sec { background: var(--cream); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.why-img {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.why-img img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: 0 20px 56px rgba(14,42,92,0.18);
}

.why-img-label {
  position: absolute;
  bottom: 24px; left: 24px;
  background: var(--maroon);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-radius: 6px;
  font-size: 28px;
  border-left: 4px solid var(--gold);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.why-img-label div { display: flex; flex-direction: column; }
.why-img-label strong { font-size: 15px; font-weight: 700; }
.why-img-label small { font-size: 11px; opacity: 0.7; margin-top: 2px; }

.why-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 8px;
}

.why-item {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 22px;
  background: var(--white);
  border-radius: 6px;
  border-left: 3px solid var(--gold);
  box-shadow: 0 2px 14px rgba(14,42,92,0.07);
  transition: all 0.3s;
}

.why-item:hover {
  border-left-color: var(--maroon);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(14,42,92,0.11);
}

.wi-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.7;
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
}

.wi-text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 5px;
}
.wi-text p { font-size: 13px; color: var(--gray-text); line-height: 1.65; }

/* ── RESULTS SECTION ─────────────────────────────────────────── */
.results-sec { background: var(--white); }

.results-band {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  border-radius: 10px;
  padding: 40px 0;
  margin-bottom: 64px;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 8px 36px rgba(123,28,46,0.25);
}

.res-stat {
  flex: 1;
  text-align: center;
}

.res-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.res-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
}

.res-div {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* Toppers */
.toppers-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.topper-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.35s;
  background: var(--white);
}

.topper-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 44px rgba(14,42,92,0.13);
  border-color: var(--gold);
}

.topper-img { position: relative; height: 240px; overflow: hidden; }
.topper-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s;
}
.topper-card:hover .topper-img img { transform: scale(1.06); }

.topper-medal {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.topper-body { padding: 22px 20px; }
.topper-body h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 4px;
}

.topper-cls {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 12px;
}

.topper-score {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 12px;
  line-height: 1;
}

.topper-body p {
  font-size: 12px;
  color: var(--gray-text);
  line-height: 1.65;
  font-style: italic;
}

/* ── TESTIMONIALS ────────────────────────────────────────────── */
.test-sec {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.test-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.test-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,42,92,0.94) 0%, rgba(61,13,26,0.92) 100%);
}

.test-slider { position: relative; min-height: 260px; margin-bottom: 32px; }

.test-card {
  display: none;
  max-width: 820px;
  margin: 0 auto;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,151,43,0.25);
  border-radius: 10px;
  padding: 48px;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.6s ease;
}
.test-card.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.tc-quote {
  font-family: Georgia, serif;
  font-size: 72px;
  color: var(--gold);
  line-height: 0.6;
  margin-bottom: 24px;
  opacity: 0.7;
}

.tc-text {
  font-size: 17px;
  color: rgba(255,255,255,0.88);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 32px;
}

.tc-author {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(201,151,43,0.2);
  padding-top: 24px;
}

.tc-av {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-light);
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.tc-author > div strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}
.tc-author > div span {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.tc-stars {
  margin-left: auto;
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 2px;
}

.test-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.tnav-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(201,151,43,0.4);
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.tnav-btn:hover { background: var(--gold); color: var(--maroon-dark); }

.t-dots { display: flex; gap: 8px; align-items: center; }
.tdot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: all 0.3s;
  cursor: pointer;
}
.tdot.active { background: var(--gold); width: 24px; border-radius: 4px; }

/* ── GALLERY STRIP ───────────────────────────────────────────── */
.gallery-strip {
  display: flex;
  height: 220px;
  overflow: hidden;
}

.gallery-strip img {
  flex: 1;
  min-width: 0;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  filter: brightness(0.75) saturate(0.8);
}

.gallery-strip img:hover {
  flex: 2.5;
  filter: brightness(1) saturate(1.1);
}

/* ── CONTACT SECTION ─────────────────────────────────────────── */
.contact-sec { background: var(--cream); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 28px 0 36px;
}

.cd-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: var(--white);
  border-radius: 6px;
  border-left: 3px solid var(--gold);
  box-shadow: 0 2px 10px rgba(14,42,92,0.06);
}

.cd-row.branch-row {
  border-left-color: var(--maroon);
  background: linear-gradient(90deg, rgba(123,28,46,0.06), rgba(255,255,255,0.95));
}

.cd-icon { font-size: 20px; flex-shrink: 0; }
.cd-row > div strong { display: block; font-size: 13px; font-weight: 700; color: var(--blue); margin-bottom: 3px; }
.cd-row > div p { font-size: 13px; color: var(--gray-text); }

/* Form */
.contact-form {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(14,42,92,0.1);
  border: 1px solid var(--border);
}

.form-head {
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  padding: 22px 32px;
  border-bottom: 3px solid var(--gold);
}

.form-body { padding: 32px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { margin-bottom: 20px; }

.form-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--blue);
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid #d8dce8;
  border-radius: 4px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--cream);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
}

.form-group textarea { min-height: 100px; resize: vertical; }

.form-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: var(--white);
  border: none;
  padding: 15px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s;
  border-bottom: 3px solid var(--gold);
}
.form-submit:hover {
  background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(123,28,46,0.3);
}

.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--gray-text);
  margin-top: 12px;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer { background: var(--dark); }

.footer-top { padding: 72px 0 48px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 52px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 20px;
}

.fc-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  margin-bottom: 24px;
}

.f-socials { display: flex; gap: 10px; }
.f-socials a {
  width: 36px; height: 36px;
  border-radius: 4px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s;
}
.f-socials a:hover { background: var(--gold); color: var(--maroon-dark); border-color: var(--gold); }

.fc-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201,151,43,0.2);
}

.fc-col ul { list-style: none; }
.fc-col ul li { margin-bottom: 10px; }
.fc-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: all 0.2s;
  padding-left: 0;
}
.fc-col ul li a:hover { color: var(--gold-light); padding-left: 6px; }

.f-contact li {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 22px 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.footer-bottom strong { color: var(--gold-light); }

/* ── BACK TO TOP ─────────────────────────────────────────────── */
.back-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--maroon);
  color: var(--white);
  border: 2px solid var(--gold);
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 900;
}
.back-top.show { opacity: 1; pointer-events: all; }
.back-top:hover { background: var(--gold); color: var(--maroon-dark); transform: translateY(-3px); }

/* ── SCROLL REVEAL ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: none; }

.rd1 { transition-delay: 0.08s; }
.rd2 { transition-delay: 0.18s; }
.rd3 { transition-delay: 0.28s; }
.rd4 { transition-delay: 0.38s; }

/* ── KEYFRAMES ───────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* ── RESPONSIVE — TABLET (≤ 1040px) ─────────────────────────── */
@media (max-width: 1040px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 36px; }
  .fc-brand { grid-column: 1 / -1; }
  .subj-grid { grid-template-columns: repeat(3, 1fr); }
  .toppers-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── RESPONSIVE — TABLET (≤ 860px) ──────────────────────────── */
@media (max-width: 860px) {
  :root { --section-pad: 64px; }

  .nav-inner {
    padding: 6px 10px;
    gap: 14px;
  }

  .logo-emblem {
    width: clamp(170px, 28vw, 220px);
  }

  .nav-menu, .nav-enroll { display: none; }
  .hamburger { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .mosaic-main img { width: 82%; height: 340px; }
  .mosaic-side { right: 0; width: 24%; }

  .why-grid { grid-template-columns: 1fr; }
  .why-img { display: none; }

  .classes-row { grid-template-columns: 1fr; gap: 20px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .ribbon-stat { padding: 0 18px; }
  .rnum { font-size: 24px; }
  .rlabel { font-size: 9px; }

  .about-pillars { grid-template-columns: 1fr; }

  .hero-ribbon { flex-wrap: wrap; gap: 8px; padding: 16px; }
  .ribbon-div { display: none; }
}

/* ── RESPONSIVE — MOBILE (≤ 600px) ──────────────────────────── */
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .page-banner { min-height: 250px; }

  .nav-inner {
    padding: 5px 16px;
    gap: 10px;
    min-height: 60px;
  }

  .logo-emblem {
    width: clamp(124px, 40vw, 170px);
  }

  .topbar-right { display: none; }

  .mob-drawer { top: 60px; }

  .hero { height: 90vh; }
  .hero-body { padding: 0 5% 100px; }
  .hero-actions { flex-direction: column; }

  .subj-grid { grid-template-columns: repeat(2, 1fr); }
  .toppers-row { grid-template-columns: 1fr; }
  .results-band { flex-wrap: wrap; }
  .res-div { display: none; }
  .res-stat { min-width: 45%; }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .gallery-strip { height: 140px; }

  .s-dots { display: none; }
  .test-card { padding: 28px 20px; }
  .tc-text { font-size: 14px; }
}
