/* ============================
   SRENIKUTHA EDUCATION – CSS
   Color System:
   --navy:   #1A2B5E  (primary)
   --gold:   #F5A623  (accent)
   --saffron:#E8630A  (action)
   --sky:    #EEF4FF  (bg)
   --white:  #FFFFFF
   --text:   #1C2B3A
   --muted:  #607080
   ============================ */

:root {
  --navy:    #1A2B5E;
  --navy2:   #243678;
  --gold:    #F5A623;
  --saffron: #E8630A;
  --sky:     #EEF4FF;
  --sky2:    #F8FAFF;
  --white:   #FFFFFF;
  --text:    #1C2B3A;
  --muted:   #607080;
  --border:  #D6E0EE;
  --green:   #1DB96B;
  --red:     #E03030;
  --teal:    #0AA5A5;
  --purple:  #7C3AED;
  --r8:      8px;
  --r12:     12px;
  --r16:     16px;
  --shadow:  0 4px 24px rgba(26,43,94,0.10);
  --shadow2: 0 8px 40px rgba(26,43,94,0.14);
  --transition: all 0.25s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; cursor: pointer; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 48px;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-header-row .section-label { margin-bottom: 8px; }
.section-header-row .section-title { margin-bottom: 0; }
.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--saffron);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  padding-bottom: 6px;
  transition: var(--transition);
}
.view-all-link i { font-size: 0.8rem; transition: transform 0.25s ease; }
.view-all-link:hover { color: var(--navy); }
.view-all-link:hover i { transform: translateX(4px); }

@media (max-width: 640px) {
  .section-header-row { flex-direction: column; align-items: flex-start; }
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--saffron);
  color: var(--white);
}
.btn-primary:hover { background: #c95608; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,99,10,0.35); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.hero .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.hero .btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover { background: var(--sky); transform: translateY(-2px); }
.btn-full { width: 100%; text-align: center; border-radius: var(--r8); }

/* ============================
   HEADER
   ============================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  color: var(--white);
  border-radius: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  object-fit: contain;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
}
.logo-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--saffron);
  text-transform: uppercase;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: var(--transition);
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-link:hover, .nav-link.active {
  background: var(--sky);
  color: var(--navy);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 4px;
  transition: var(--transition);
}

/* ============================
   PAGE SYSTEM
   ============================ */
.page { display: none; padding-top: 70px; }
.page.active { display: block; }

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a8a 60%, #2563eb 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0 60px;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}
.s1 {
  width: 600px; height: 600px;
  background: var(--gold);
  top: -200px; right: -150px;
  animation: float1 8s ease-in-out infinite;
}
.s2 {
  width: 400px; height: 400px;
  background: var(--saffron);
  bottom: -100px; left: -100px;
  animation: float2 10s ease-in-out infinite;
}
.s3 {
  width: 300px; height: 300px;
  background: #60a5fa;
  top: 50%; right: 30%;
  animation: float1 7s ease-in-out infinite reverse;
}
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px, -20px) scale(1.04); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-15px, 15px) scale(1.05); } }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}
.hero-content { max-width: 640px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,166,35,0.18);
  border: 1px solid rgba(245,166,35,0.4);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-tagline {
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-title .highlight {
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat-card {
  text-align: center;
  background: linear-gradient(160deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--r16);
  padding: 20px 10px 18px;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  animation: statCardGlow 3.6s ease-in-out infinite;
}
.sc-a { animation-delay: 0s; }
.sc-b { animation-delay: 0.4s; }
.sc-c { animation-delay: 0.8s; }
.sc-d { animation-delay: 1.2s; }
@keyframes statCardGlow {
  0%, 100% { border-color: rgba(255,255,255,0.2); box-shadow: 0 0 0 0 rgba(245,166,35,0); }
  50% { border-color: rgba(245,166,35,0.5); box-shadow: 0 0 20px 0 rgba(245,166,35,0.15); }
}
.stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  background-size: 200% 100%;
  animation: statTopSweep 3s linear infinite;
}
@keyframes statTopSweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.stat-card::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  width: 120%; height: 120%;
  background: radial-gradient(circle, rgba(245,166,35,0.16), transparent 65%);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245,166,35,0.55);
  box-shadow: 0 14px 34px rgba(0,0,0,0.28);
}
.stat-card:hover::before { opacity: 1; }
.stat-icon {
  width: 40px; height: 40px;
  margin: 0 auto 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 1;
  animation: statIconPulse 3s ease-in-out infinite;
}
.stat-icon i { font-size: 1rem; color: white; }
.sc-a .stat-icon { animation-delay: 0s; }
.sc-b .stat-icon { animation-delay: 0.4s; }
.sc-c .stat-icon { animation-delay: 0.8s; }
.sc-d .stat-icon { animation-delay: 1.2s; }
@keyframes statIconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,166,35,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(245,166,35,0); }
}
.stat-num {
  display: block;
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  position: relative;
  z-index: 1;
}
.stat-label {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 16px 8px 14px; }
  .stat-num { font-size: 1.5rem; }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.scroll-arrow { animation: bounce 2s infinite; font-size: 1rem; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ============================
   WHAT WE DO
   ============================ */
.what-we-do { background: var(--sky2); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  background-image: radial-gradient(rgba(26,43,94,0.045) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  background-position: right -6px top -6px;
  background-repeat: no-repeat;
  border-radius: var(--r16);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--r16) var(--r16) 0 0;
}
.card::after {
  content: '';
  position: absolute;
  bottom: -46px; right: -46px;
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 1.5px solid rgba(26,43,94,0.06);
  background: radial-gradient(circle, rgba(26,43,94,0.03), transparent 70%);
  pointer-events: none;
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.card-accent1::before { background: linear-gradient(90deg, var(--navy), #3b82f6); }
.card-accent2::before { background: linear-gradient(90deg, var(--gold), #f59e0b); }
.card-accent3::before { background: linear-gradient(90deg, var(--green), #10b981); }
.card-accent4::before { background: linear-gradient(90deg, var(--purple), #a78bfa); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow2); }
.card:hover::after { transform: scale(1.15); border-color: rgba(232,99,10,0.14); }
.card > * { position: relative; z-index: 1; }
.card-icon { font-size: 2.2rem; margin-bottom: 16px; }
.card h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.card-link {
  background: none;
  border: none;
  color: var(--saffron);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}
.card-link:hover { color: var(--navy); }

/* ============================
   WHY US
   ============================ */
.why-us { background: var(--white); }
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why-left p { color: var(--muted); margin-bottom: 20px; }
.why-list { list-style: none; margin-bottom: 32px; }
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.check {
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.why-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.why-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r16);
  padding: 24px;
  text-align: left;
  isolation: isolate;
  border: 2px solid rgba(255,255,255,0.32);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.why-card::before {
  content: '';
  position: absolute;
  top: -40%; right: -30%;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  z-index: -1;
}
.why-card::after {
  content: '';
  position: absolute;
  bottom: -50%; left: -20%;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  z-index: -1;
}
.why-card:hover { transform: translateY(-6px) scale(1.015); }

/* Continuous animated glow ring — always running, not just on hover */
.wc1 { animation: wcGlow1 3.4s ease-in-out infinite; }
.wc2 { animation: wcGlow2 3.4s ease-in-out infinite; animation-delay: 0.35s; }
.wc3 { animation: wcGlow3 3.4s ease-in-out infinite; animation-delay: 0.7s; }
.wc4 { animation: wcGlow4 3.4s ease-in-out infinite; animation-delay: 1.05s; }
@keyframes wcGlow1 {
  0%, 100% { box-shadow: 0 10px 30px rgba(26,43,94,0.25); border-color: rgba(255,255,255,0.28); }
  50% { box-shadow: 0 10px 34px rgba(26,43,94,0.35), 0 0 0 4px rgba(59,130,246,0.18); border-color: rgba(147,197,253,0.55); }
}
@keyframes wcGlow2 {
  0%, 100% { box-shadow: 0 10px 30px rgba(245,166,35,0.28); border-color: rgba(255,255,255,0.28); }
  50% { box-shadow: 0 10px 34px rgba(245,166,35,0.4), 0 0 0 4px rgba(245,166,35,0.2); border-color: rgba(255,224,130,0.6); }
}
@keyframes wcGlow3 {
  0%, 100% { box-shadow: 0 10px 30px rgba(29,185,107,0.28); border-color: rgba(255,255,255,0.28); }
  50% { box-shadow: 0 10px 34px rgba(29,185,107,0.4), 0 0 0 4px rgba(29,185,107,0.2); border-color: rgba(134,239,172,0.6); }
}
@keyframes wcGlow4 {
  0%, 100% { box-shadow: 0 10px 30px rgba(232,99,10,0.28); border-color: rgba(255,255,255,0.28); }
  50% { box-shadow: 0 10px 34px rgba(232,99,10,0.4), 0 0 0 4px rgba(232,99,10,0.2); border-color: rgba(253,186,116,0.6); }
}
.wc1 { background: linear-gradient(145deg, var(--navy), var(--navy2) 70%, #1e40af); color: white; box-shadow: 0 10px 30px rgba(26,43,94,0.25); }
.wc2 { background: linear-gradient(145deg, var(--gold), #f59e0b 70%, #d97706); color: white; box-shadow: 0 10px 30px rgba(245,166,35,0.28); }
.wc3 { background: linear-gradient(145deg, var(--green), #10b981 70%, #059669); color: white; box-shadow: 0 10px 30px rgba(29,185,107,0.28); }
.wc4 { background: linear-gradient(145deg, var(--saffron), #f97316 70%, #c2410c); color: white; box-shadow: 0 10px 30px rgba(232,99,10,0.28); }
.wc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.2);
  margin-bottom: 14px;
}
.wc-icon i { font-size: 1.05rem; color: white; }
.why-card:hover .wc-icon { transform: scale(1.1) rotate(-6deg); background: rgba(255,255,255,0.3); }
.wc-num {
  font-family: 'Baloo 2', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.wc-text { font-size: 0.8rem; opacity: 0.92; line-height: 1.4; }

/* ============================
   EVENTS
   ============================ */
.events-section { background: var(--sky2); position: relative; }
.programs-preview-section { background: var(--white); }
.gallery-preview-section { background: var(--sky2); }
.events-grid { display: grid; gap: 20px; }
.event-card {
  background-color: var(--white);
  background-image: radial-gradient(rgba(26,43,94,0.06) 1.3px, transparent 1.3px);
  background-size: 18px 18px;
  border-radius: var(--r16);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.event-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 5px;
}
.ev-state::before { background: linear-gradient(180deg, var(--navy), #3b82f6); }
.ev-district::before { background: linear-gradient(180deg, var(--green), #10b981); }
.ev-quiz::before { background: linear-gradient(180deg, var(--saffron), var(--gold)); }
.event-card:hover {
  box-shadow: 0 16px 40px rgba(26,43,94,0.14);
  transform: translateY(-5px);
  border-color: transparent;
}
.event-card-main {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 24px 28px 18px;
}
.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: white;
  border-radius: var(--r12);
  padding: 12px 16px;
  min-width: 70px;
  text-align: center;
  flex-shrink: 0;
  position: relative;
}
.ev-state .event-date { background: linear-gradient(160deg, var(--navy), #3b82f6); }
.ev-district .event-date { background: linear-gradient(160deg, var(--green), #10b981); }
.ev-quiz .event-date { background: linear-gradient(160deg, var(--saffron), var(--gold)); }
.ed-month { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; opacity: 0.85; }
.ed-day { font-family: 'Baloo 2', sans-serif; font-size: 1.8rem; font-weight: 800; line-height: 1; }
.event-info { flex: 1; min-width: 0; }
.event-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tag-state { background: #dbeafe; color: var(--navy); }
.tag-district { background: #dcfce7; color: #166534; }
.tag-quiz { background: #fef3c7; color: #92400e; }
.event-info h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.event-info p { font-size: 0.88rem; color: var(--muted); margin-bottom: 8px; }
.event-venue { font-size: 0.8rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.event-venue i { color: var(--saffron); }
.event-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: white;
  transition: var(--transition);
  animation: eventIconPulse 2.6s ease-in-out infinite;
}
.ev-state .event-icon { background: linear-gradient(135deg, var(--navy), #3b82f6); box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
.ev-district .event-icon { background: linear-gradient(135deg, var(--green), #10b981); box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
.ev-quiz .event-icon { background: linear-gradient(135deg, var(--saffron), var(--gold)); box-shadow: 0 0 0 0 rgba(245,166,35,0.4); }
@keyframes eventIconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0.18); }
  50% { box-shadow: 0 0 0 9px rgba(0,0,0,0); }
}
.event-card:hover .event-icon { transform: scale(1.12) rotate(-6deg); }

.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 28px;
  border-top: 1px dashed var(--border);
  background: rgba(26,43,94,0.02);
  position: relative;
  z-index: 1;
}
.event-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.78rem; font-weight: 600; color: var(--green);
}
.event-status i { font-size: 0.55rem; animation: statusBlink 1.6s ease-in-out infinite; }
@keyframes statusBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.event-cta {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.82rem; font-weight: 700; color: var(--saffron);
  transition: var(--transition);
}
.event-cta i { font-size: 0.72rem; transition: transform 0.25s ease; }
.event-cta:hover { color: var(--navy); }
.event-cta:hover i { transform: translateX(4px); }

/* ============================
   TESTIMONIALS
   ============================ */
.testimonials { background: var(--navy); }
.testimonials .section-label { color: var(--gold); }
.testimonials .section-title { color: var(--white); }
.testi-marquee-wrap {
  overflow: hidden;
  margin: 0 -24px;
  padding: 8px 24px 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.testi-marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: testiMarquee 32s linear infinite;
}
.testi-marquee-wrap:hover .testi-marquee-track { animation-play-state: paused; }
@keyframes testiMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 480px) {
  .testi-card { width: 290px; padding: 24px 20px; }
  .testi-marquee-wrap { margin: 0 -16px; padding: 8px 16px 4px; }
}
.testi-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: var(--r16);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  background-clip: padding-box;
  width: 360px;
  flex-shrink: 0;
}
.testi-card::after {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.15), transparent 70%);
  pointer-events: none;
}
.testi-card-watermark {
  position: absolute;
  bottom: -18px; right: -6px;
  font-size: 6rem;
  color: rgba(255,255,255,0.05);
  pointer-events: none;
  z-index: 0;
  line-height: 1;
}
.testi-card { animation: testiBorderGlow 5s ease-in-out infinite; }
.testi-marquee-track .testi-card:nth-child(2) { animation-delay: 0.6s; }
.testi-marquee-track .testi-card:nth-child(3) { animation-delay: 1.2s; }
@keyframes testiBorderGlow {
  0%, 100% { border-color: rgba(255,255,255,0.14); }
  50% { border-color: rgba(245,166,35,0.4); }
}
.testi-quote-icon { animation: testiIconFloat 3.4s ease-in-out infinite; }
@keyframes testiIconFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.testi-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; position: relative; z-index: 1; }
.testi-quote-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(245,166,35,0.35);
}
.testi-quote-icon i { color: white; font-size: 1rem; }
.testi-stars { display: flex; gap: 3px; }
.testi-stars i { color: var(--gold); font-size: 0.8rem; }
.testi-card p { color: rgba(255,255,255,0.85); font-size: 0.95rem; line-height: 1.7; margin-bottom: 24px; position: relative; z-index: 1; }
.testi-author { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.testi-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.testi-author strong { color: var(--white); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.testi-verified { color: #38bdf8; font-size: 0.8rem; }
.testi-author small { color: rgba(255,255,255,0.55); font-size: 0.78rem; }

/* ============================
   CTA BANNER
   ============================ */
.cta-banner {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  padding: 80px 0;
}
.cta-inner { text-align: center; }
.cta-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--white);
  margin-bottom: 12px;
}
.cta-inner p { color: rgba(255,255,255,0.85); font-size: 1rem; margin-bottom: 32px; }

/* ============================
   PAGE HERO
   ============================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a8a 100%);
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 50px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 14px;
}
.page-hero-desc { color: rgba(255,255,255,0.75); font-size: 1rem; max-width: 560px; }

/* ============================
   ABOUT PAGE
   ============================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-story p { color: var(--muted); margin-bottom: 16px; font-size: 0.95rem; }
.about-values h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: var(--r16);
  background: var(--white);
  margin-bottom: 14px;
  border: 1.5px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.value-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s ease;
}
.value-item:hover { transform: translateX(6px) translateY(-2px); box-shadow: 0 12px 28px rgba(26,43,94,0.1); }
.value-item:hover::before { transform: scaleY(1); }
.value-item:nth-child(2)::before { background: linear-gradient(180deg, #b45309, #f59e0b); }
.value-item:nth-child(3)::before { background: linear-gradient(180deg, var(--navy), #3b82f6); }
.value-item:nth-child(4)::before { background: linear-gradient(180deg, #a16207, #eab308); }
.value-item:nth-child(5)::before { background: linear-gradient(180deg, #dc2626, #f87171); }
.value-item strong { font-weight: 700; color: var(--navy); display: block; margin-bottom: 4px; font-size: 1rem; }
.value-item p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

/* ============================
   MILESTONES — MODERN ALTERNATING TIMELINE
   with a progressive scroll-fill track
   ============================ */
.milestones-section { background: var(--sky2); position: relative; overflow: hidden; }
.milestones-section::before {
  content: '';
  position: absolute;
  top: -10%; right: -8%;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,99,10,0.06), transparent 70%);
  pointer-events: none;
}

.timeline-modern {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 10px;
}

.tl-track {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 4px;
  transform: translateX(-50%);
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.tl-track-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(180deg, var(--saffron), var(--gold), var(--navy));
  border-radius: 4px;
  transition: height 0.15s ease-out;
}

.tl-row {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 44px;
}
.tl-row:last-child { margin-bottom: 0; }
.tl-row:nth-child(even) { flex-direction: row-reverse; }

.tl-content {
  width: 45%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r16);
  padding: 22px 26px;
  position: relative;
  box-shadow: 0 4px 16px rgba(26,43,94,0.06);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease, border-color 0.4s ease;
}
.tl-row.tl-in-view .tl-content { opacity: 1; transform: translateY(0); border-color: rgba(245,166,35,0.35); }
.tl-content:hover { box-shadow: 0 16px 38px rgba(26,43,94,0.16); transform: translateY(-5px); border-color: var(--saffron); }
.tl-row.tl-in-view .tl-content:hover { transform: translateY(-5px); }

/* Speech-bubble style pointer connecting the card to its timeline node */
.tl-content::after {
  content: '';
  position: absolute;
  top: 26px;
  width: 13px; height: 13px;
  background: var(--white);
  transform: rotate(45deg);
  transition: border-color 0.4s ease;
}
.tl-row:nth-child(odd) .tl-content::after {
  right: -7px;
  border-right: 1.5px solid var(--border);
  border-top: 1.5px solid var(--border);
}
.tl-row:nth-child(even) .tl-content::after {
  left: -7px;
  border-left: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
}
.tl-row.tl-in-view .tl-content::after { border-color: rgba(245,166,35,0.35); }
.tl-content:hover::after { border-color: var(--saffron); }

.tl-content { overflow: hidden; }
.tl-watermark {
  position: absolute;
  bottom: -14px; right: -6px;
  font-size: 4.2rem;
  color: rgba(26,43,94,0.045);
  pointer-events: none;
  z-index: 0;
  transition: color 0.4s ease, transform 0.4s ease;
}
.tl-row.tl-in-view .tl-watermark { color: rgba(245,166,35,0.09); }
.tl-content:hover .tl-watermark { transform: scale(1.1) rotate(-6deg); }
.tl-content > *:not(.tl-watermark) { position: relative; z-index: 1; }

.tl-year-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: white;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.tl-content h4 { font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: 1.02rem; }
.tl-content p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }

.tl-node {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  margin: 0 auto;
  transition: var(--transition);
}
.tl-node i { font-size: 1.15rem; color: var(--muted); transition: var(--transition); }
.tl-row.tl-in-view .tl-node {
  border-color: var(--saffron);
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  box-shadow: 0 0 0 6px rgba(245,166,35,0.15), 0 8px 22px rgba(232,99,10,0.3);
}
.tl-row.tl-in-view .tl-node i { color: white; transform: scale(1.1); }

.tl-spacer { width: 45%; }

@media (max-width: 768px) {
  .tl-track { left: 27px; }
  .tl-row, .tl-row:nth-child(even) { flex-direction: row; align-items: flex-start; }
  .tl-content { width: calc(100% - 80px); order: 2; }
  .tl-content::after { display: none; }
  .tl-node { width: 44px; height: 44px; order: 1; margin: 0; }
  .tl-node i { font-size: 0.95rem; }
  .tl-spacer { display: none; }
  .tl-row { gap: 18px; }
}

/* Trust */
.trust-section { background: var(--white); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.trust-badge {
  background: var(--sky2);
  border: 1px solid var(--border);
  border-radius: var(--r12);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
}
.trust-badge:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.tb-icon { font-size: 2rem; margin-bottom: 10px; }
.trust-badge p { font-size: 0.82rem; color: var(--text); font-weight: 600; line-height: 1.4; }

/* ============================
   PROGRAMS PAGE
   ============================ */
.prog-block {
  background: var(--white);
  background-image: radial-gradient(rgba(26,43,94,0.04) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  background-position: right -8px top -8px;
  background-repeat: no-repeat;
  border-radius: var(--r16);
  padding: 40px;
  margin-bottom: 32px;
  border: 1.5px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.prog-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background-size: 200% 100%;
  animation: borderShimmer 4s linear infinite;
}
.prog-block::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.4s ease;
}
.prog-block:hover { transform: translateY(-6px); box-shadow: 0 20px 46px rgba(26,43,94,0.13); }
.prog-block:hover::after { transform: scale(1.15); }
.prog-block > * { position: relative; z-index: 1; }

.prog-accent1::before, .prog-accent1::after { background-image: linear-gradient(90deg, var(--navy), #3b82f6, var(--navy), #3b82f6); }
.prog-accent1::after { background: radial-gradient(circle, rgba(26,43,94,0.08), transparent 70%); border: 1.5px solid rgba(26,43,94,0.08); }
.prog-accent1:hover { border-color: rgba(26,43,94,0.35); }
.prog-accent1 .prog-icon { background: linear-gradient(135deg, var(--navy), #3b82f6); }

.prog-accent2::before { background-image: linear-gradient(90deg, var(--gold), #f59e0b, var(--gold), #f59e0b); }
.prog-accent2::after { background: radial-gradient(circle, rgba(245,166,35,0.1), transparent 70%); border: 1.5px solid rgba(245,166,35,0.1); }
.prog-accent2:hover { border-color: rgba(245,166,35,0.4); }
.prog-accent2 .prog-icon { background: linear-gradient(135deg, var(--gold), #f59e0b); }

.prog-accent3::before { background-image: linear-gradient(90deg, var(--green), #10b981, var(--green), #10b981); }
.prog-accent3::after { background: radial-gradient(circle, rgba(29,185,107,0.1), transparent 70%); border: 1.5px solid rgba(29,185,107,0.1); }
.prog-accent3:hover { border-color: rgba(29,185,107,0.4); }
.prog-accent3 .prog-icon { background: linear-gradient(135deg, var(--green), #10b981); }

.prog-accent4::before { background-image: linear-gradient(90deg, var(--purple), #a78bfa, var(--purple), #a78bfa); }
.prog-accent4::after { background: radial-gradient(circle, rgba(124,58,237,0.1), transparent 70%); border: 1.5px solid rgba(124,58,237,0.1); }
.prog-accent4:hover { border-color: rgba(124,58,237,0.4); }
.prog-accent4 .prog-icon { background: linear-gradient(135deg, var(--purple), #a78bfa); }

.prog-accent5::before { background-image: linear-gradient(90deg, var(--teal), #22d3d3, var(--teal), #22d3d3); }
.prog-accent5::after { background: radial-gradient(circle, rgba(10,165,165,0.1), transparent 70%); border: 1.5px solid rgba(10,165,165,0.1); }
.prog-accent5:hover { border-color: rgba(10,165,165,0.4); }
.prog-accent5 .prog-icon { background: linear-gradient(135deg, var(--teal), #22d3d3); }

.prog-accent7::before { background-image: linear-gradient(90deg, #db2777, #f472b6, #db2777, #f472b6); }
.prog-accent7::after { background: radial-gradient(circle, rgba(219,39,119,0.1), transparent 70%); border: 1.5px solid rgba(219,39,119,0.1); }
.prog-accent7:hover { border-color: rgba(219,39,119,0.4); }
.prog-accent7 .prog-icon { background: linear-gradient(135deg, #db2777, #f472b6); }

.prog-accent8::before { background-image: linear-gradient(90deg, var(--navy), var(--teal), var(--navy), var(--teal)); }
.prog-accent8::after { background: radial-gradient(circle, rgba(26,43,94,0.08), transparent 70%); border: 1.5px solid rgba(26,43,94,0.08); }
.prog-accent8:hover { border-color: rgba(10,165,165,0.4); }
.prog-accent8 .prog-icon { background: linear-gradient(135deg, var(--navy), var(--teal)); }

.prog-icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.15);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.prog-icon i { font-size: 1.6rem; color: white; }
.prog-block:hover .prog-icon { transform: scale(1.1) rotate(-6deg); }

.prog-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.badge-asseb { background: #dbeafe; color: var(--navy); }
.badge-cbse { background: #dcfce7; color: #166534; }
.badge-foundation { background: #fef3c7; color: #92400e; }
.prog-block h2 { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--navy); margin-bottom: 12px; }
.prog-block > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; }
.prog-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}
.pf {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  padding: 14px 16px;
  border-radius: var(--r12);
  border: 1.5px solid var(--border);
  box-shadow: 0 2px 8px rgba(26,43,94,0.04);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.pf:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 26px rgba(26,43,94,0.13);
  border-color: rgba(232,99,10,0.4);
}
.pf span { font-size: 1rem; }

.prog-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 4px;
  border: none;
  border-bottom: 2px solid var(--saffron);
  transition: var(--transition);
}
.prog-cta i { transition: transform 0.25s ease; font-size: 0.8rem; }
.prog-cta:hover { color: var(--saffron); gap: 12px; }
.prog-cta:hover i { transform: translateX(4px); }

/* Fees */
.fee-section { background: var(--sky2); }
.fee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.fee-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r16);
  padding: 32px 28px;
  text-align: center;
  transition: var(--transition);
}
.fee-card:hover { box-shadow: var(--shadow2); transform: translateY(-4px); }
.fee-card-featured {
  border-color: var(--navy);
  position: relative;
  background: linear-gradient(180deg, var(--sky2) 0%, var(--white) 100%);
}
.popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  white-space: nowrap;
}
.fee-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.fee-price {
  font-family: 'Baloo 2', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--saffron);
  margin-bottom: 20px;
}
.fee-price span { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.fee-card ul { list-style: none; text-align: left; margin-bottom: 24px; }
.fee-card ul li {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.fee-card ul li::before { content: '✓ '; color: var(--green); font-weight: 700; }
.fee-note { text-align: center; font-size: 0.82rem; color: var(--muted); margin-top: 24px; }

/* ============================
   EXAMINATIONS PAGE
   ============================ */
.exam-block {
  border-radius: var(--r16);
  padding: 40px;
  margin-bottom: 36px;
  border: 1.5px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.exam-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background-size: 200% 100%;
  animation: borderShimmer 4s linear infinite;
}
.exam-block::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.5s ease;
}
.exam-block:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(26,43,94,0.12); }
.exam-block:hover::after { transform: scale(1.15) rotate(20deg); }
.exam-block > * { position: relative; z-index: 1; }

.eb-state { background: linear-gradient(135deg, #eff6ff, #f8faff); border-color: #bfdbfe; }
.eb-state::before { background-image: linear-gradient(90deg, var(--navy), #3b82f6, var(--navy), #3b82f6); }
.eb-state::after { background: radial-gradient(circle, rgba(59,130,246,0.12), transparent 70%); }

.eb-district { background: linear-gradient(135deg, #f0fdf4, #f8faff); border-color: #bbf7d0; }
.eb-district::before { background-image: linear-gradient(90deg, var(--green), #10b981, var(--green), #10b981); }
.eb-district::after { background: radial-gradient(circle, rgba(16,185,129,0.12), transparent 70%); }

.eb-centre { background: linear-gradient(135deg, #f5f3ff, #f8faff); border-color: #ddd6fe; }
.eb-centre::before { background-image: linear-gradient(90deg, var(--purple), #a78bfa, var(--purple), #a78bfa); }
.eb-centre::after { background: radial-gradient(circle, rgba(124,58,237,0.12), transparent 70%); }

.eb-quiz { background: linear-gradient(135deg, #fffbeb, #f8faff); border-color: #fde68a; }
.eb-quiz::before { background-image: linear-gradient(90deg, var(--saffron), var(--gold), var(--saffron), var(--gold)); }
.eb-quiz::after { background: radial-gradient(circle, rgba(245,166,35,0.14), transparent 70%); }

.exam-header { display: flex; align-items: flex-start; gap: 22px; margin-bottom: 28px; }
.exam-icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  animation: examIconPulse 2.8s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.exam-icon i { font-size: 1.9rem; color: white; }
.eb-state .exam-icon { background: linear-gradient(135deg, var(--navy), #3b82f6); }
.eb-district .exam-icon { background: linear-gradient(135deg, var(--green), #10b981); }
.eb-centre .exam-icon { background: linear-gradient(135deg, var(--purple), #a78bfa); }
.eb-quiz .exam-icon { background: linear-gradient(135deg, var(--saffron), var(--gold)); }
@keyframes examIconPulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(0,0,0,0.15), 0 0 0 0 rgba(255,255,255,0.4); }
  50% { box-shadow: 0 12px 28px rgba(0,0,0,0.15), 0 0 0 10px rgba(255,255,255,0); }
}
.exam-block:hover .exam-icon { transform: scale(1.08) rotate(-3deg); }
.exam-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 6px;
}
.exam-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--saffron);
  animation: statusBlink 1.6s ease-in-out infinite;
}
.exam-header h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--navy); margin-bottom: 4px; }
.exam-sub { font-size: 0.88rem; color: var(--muted); }
.exam-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.exam-details h4, .exam-prizes h4 {
  font-weight: 700; color: var(--navy); margin-bottom: 14px; font-size: 0.95rem;
  display: flex; align-items: center; gap: 8px;
}
.exam-details h4::before { content: '\f05a'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--saffron); font-size: 0.85rem; }
.exam-prizes h4::before { content: '\f091'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--saffron); font-size: 0.85rem; }
.exam-details p { font-size: 0.9rem; color: var(--muted); margin-bottom: 16px; }
.exam-meta { display: grid; gap: 10px; }
.em {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 10px 12px;
  border-radius: var(--r8);
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.em:hover { transform: translateX(4px); background: rgba(255,255,255,0.9); border-color: rgba(232,99,10,0.3); }
.em-label { display: flex; align-items: center; gap: 10px; }
.em-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
}
.eb-state .em-icon { background: linear-gradient(135deg, var(--navy), #3b82f6); }
.eb-district .em-icon { background: linear-gradient(135deg, var(--green), #10b981); }
.eb-centre .em-icon { background: linear-gradient(135deg, var(--purple), #a78bfa); }
.eb-quiz .em-icon { background: linear-gradient(135deg, var(--saffron), var(--gold)); }
.em-icon i { font-size: 0.72rem; color: white; }
.em strong { color: var(--navy); font-weight: 600; }
.em span:not(.em-icon) { color: var(--muted); text-align: right; max-width: 200px; }

.prize-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--r12);
  margin-bottom: 10px;
  font-size: 0.85rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.prize-item:hover { transform: translateX(4px) scale(1.01); box-shadow: 0 6px 18px rgba(26,43,94,0.1); }
.p1 { background: linear-gradient(135deg, #fef9c3, #fef3c7); border-color: rgba(240,180,41,0.4); animation: prizeGoldGlow 3s ease-in-out infinite; }
.p2 { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); }
.p3 { background: linear-gradient(135deg, #fef3c7, #fed7aa); }
.p4 { background: var(--sky2); }
.p5 { background: #f0fdf4; }
@keyframes prizeGoldGlow {
  0%, 100% { box-shadow: 0 2px 8px rgba(240,180,41,0.15); }
  50% { box-shadow: 0 4px 18px rgba(240,180,41,0.4); }
}
.prize-rank { font-weight: 600; color: var(--text); display: inline-flex; align-items: center; }
.prize-amt { font-weight: 700; color: var(--navy); }

/* ============================
   TEAM PAGE
   ============================ */
.team-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 16px;
}
.founders-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.faculty-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.team-card {
  background-color: var(--white);
  background-image:
    radial-gradient(rgba(26,43,94,0.05) 1.3px, transparent 1.3px),
    radial-gradient(rgba(232,99,10,0.04) 1px, transparent 1px);
  background-size: 20px 20px, 13px 13px;
  background-position: 0 0, 10px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--r16);
  padding: 36px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.team-card:hover { box-shadow: var(--shadow2); transform: translateY(-6px); }
.team-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  color: white;
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
  animation: teamAvatarFloat 4s ease-in-out infinite;
}
.team-avatar-wrap { position: relative; width: 96px; margin: 0 auto 18px; }
.team-role-badge {
  position: absolute;
  bottom: -2px; right: -2px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--sky2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.team-role-badge i { font-size: 0.8rem; color: var(--saffron); }
.team-card:hover .team-role-badge { transform: scale(1.2) rotate(10deg); }
@keyframes teamAvatarFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.team-avatar::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(232,99,10,0.35);
  animation: spinSlow 18s linear infinite;
}
.ta-blue { background: linear-gradient(135deg, var(--navy), #3b82f6); }
.ta-orange { background: linear-gradient(135deg, var(--saffron), var(--gold)); }
.ta-green { background: linear-gradient(135deg, var(--green), #10b981); }
.ta-purple { background: linear-gradient(135deg, var(--purple), #a78bfa); }
.ta-red { background: linear-gradient(135deg, var(--red), #f87171); }
.ta-teal { background: linear-gradient(135deg, var(--teal), #2dd4bf); }
.team-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; position: relative; z-index: 1; }
.team-role { font-size: 0.8rem; color: var(--saffron); font-weight: 600; margin-bottom: 12px; position: relative; z-index: 1; }
.team-bio { font-size: 0.84rem; color: var(--muted); line-height: 1.6; margin-bottom: 12px; position: relative; z-index: 1; }
.team-quals {
  display: inline-block;
  background: var(--sky);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  position: relative;
  z-index: 1;
}
.tc-small .team-avatar { width: 78px; height: 78px; font-size: 1.4rem; }
.tc-small .team-avatar-wrap { width: 78px; }
.tc-small .team-role-badge { width: 28px; height: 28px; }
.tc-small .team-role-badge i { font-size: 0.7rem; }

/* ============================================================
   MOBILE SCROLL-STACKING FOR TEAM GRIDS (founders / advisors /
   exam cell / core members). Generated for up to 20 members so
   growing a list (e.g. adding more Core Members) never breaks —
   every card gets its own sticky "top" + z-index, not just the
   first 3-6 like before.
   ============================================================ */
@media (max-width: 640px) {
  .founders-grid, .faculty-grid { grid-template-columns: 1fr; display: block; }
  .founders-grid .team-card, .faculty-grid .team-card { position: sticky; margin-bottom: 16px; }

  .founders-grid .team-card:nth-child(1),  .faculty-grid .team-card:nth-child(1)  { top: 88px;  z-index: 1; }
  .founders-grid .team-card:nth-child(2),  .faculty-grid .team-card:nth-child(2)  { top: 130px; z-index: 2; }
  .founders-grid .team-card:nth-child(3),  .faculty-grid .team-card:nth-child(3)  { top: 172px; z-index: 3; }
  .founders-grid .team-card:nth-child(4),  .faculty-grid .team-card:nth-child(4)  { top: 214px; z-index: 4; }
  .founders-grid .team-card:nth-child(5),  .faculty-grid .team-card:nth-child(5)  { top: 256px; z-index: 5; }
  .founders-grid .team-card:nth-child(6),  .faculty-grid .team-card:nth-child(6)  { top: 298px; z-index: 6; }
  .founders-grid .team-card:nth-child(7),  .faculty-grid .team-card:nth-child(7)  { top: 340px; z-index: 7; }
  .founders-grid .team-card:nth-child(8),  .faculty-grid .team-card:nth-child(8)  { top: 382px; z-index: 8; }
  .founders-grid .team-card:nth-child(9),  .faculty-grid .team-card:nth-child(9)  { top: 424px; z-index: 9; }
  .founders-grid .team-card:nth-child(10), .faculty-grid .team-card:nth-child(10) { top: 466px; z-index: 10; }
  .founders-grid .team-card:nth-child(11), .faculty-grid .team-card:nth-child(11) { top: 508px; z-index: 11; }
  .founders-grid .team-card:nth-child(12), .faculty-grid .team-card:nth-child(12) { top: 550px; z-index: 12; }
  .founders-grid .team-card:nth-child(13), .faculty-grid .team-card:nth-child(13) { top: 592px; z-index: 13; }
  .founders-grid .team-card:nth-child(14), .faculty-grid .team-card:nth-child(14) { top: 634px; z-index: 14; }
  .founders-grid .team-card:nth-child(15), .faculty-grid .team-card:nth-child(15) { top: 676px; z-index: 15; }
  .founders-grid .team-card:nth-child(16), .faculty-grid .team-card:nth-child(16) { top: 718px; z-index: 16; }
  .founders-grid .team-card:nth-child(17), .faculty-grid .team-card:nth-child(17) { top: 760px; z-index: 17; }
  .founders-grid .team-card:nth-child(18), .faculty-grid .team-card:nth-child(18) { top: 802px; z-index: 18; }
  .founders-grid .team-card:nth-child(19), .faculty-grid .team-card:nth-child(19) { top: 844px; z-index: 19; }
  .founders-grid .team-card:nth-child(20), .faculty-grid .team-card:nth-child(20) { top: 886px; z-index: 20; }
}

/* ============================
   GALLERY PAGE
   ============================ */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.gf-btn {
  background: var(--sky2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}
.gf-btn.active, .gf-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.gallery-item { border-radius: var(--r12); overflow: hidden; position: relative; cursor: pointer; }
.gi-large { grid-column: span 2; grid-row: span 2; }
.gi-placeholder {
  width: 100%; height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.gallery-item:hover .gi-placeholder { transform: scale(1.05); }
.gi-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,43,94,0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gi-overlay { opacity: 1; }
.gi-overlay span { color: white; font-size: 0.82rem; font-weight: 600; }
.gp1 { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.gp2 { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.gp3 { background: linear-gradient(135deg, #e8630a, #f5a623); }
.gp4 { background: linear-gradient(135deg, #065f46, #34d399); }
.gp5 { background: linear-gradient(135deg, #1e3a8a, #0ea5e9); }
.gp6 { background: linear-gradient(135deg, #9f1239, #fb7185); }
.gp7 { background: linear-gradient(135deg, #78350f, #fbbf24); }
.gp8 { background: linear-gradient(135deg, #134e4a, #5eead4); }
.gp9 { background: linear-gradient(135deg, #312e81, #818cf8); }
.gp10 { background: linear-gradient(135deg, #7f1d1d, #f87171); }
.gp11 { background: linear-gradient(135deg, #0c4a6e, #38bdf8); }
.gp12 { background: linear-gradient(135deg, #14532d, #86efac); }
.gallery-item.hidden { display: none; }

/* Media coverage */
.media-section { background: var(--sky2); }
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.media-card {
  background: var(--white);
  border-radius: var(--r12);
  padding: 24px;
  border: 1px solid var(--border);
}
.media-outlet { font-weight: 800; color: var(--navy); margin-bottom: 10px; font-size: 1.05rem; }
.media-card p { font-size: 0.9rem; color: var(--text); font-style: italic; margin-bottom: 12px; line-height: 1.6; }
.media-date { font-size: 0.75rem; color: var(--muted); font-weight: 600; }

/* ============================
   CONTACT PAGE
   ============================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
  align-items: start;
}
.contact-info {
  background: linear-gradient(165deg, var(--navy), var(--navy2));
  border-radius: var(--r16);
  padding: 36px 30px;
  color: white;
  position: relative;
  overflow: hidden;
}
.contact-info::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.18), transparent 70%);
  pointer-events: none;
}
.contact-info > * { position: relative; z-index: 1; }
.contact-info h3 { font-size: 1.3rem; font-weight: 700; color: white; margin-bottom: 26px; }
.ci-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.ci-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), background 0.3s ease;
}
.ci-icon i { font-size: 1.05rem; color: var(--gold); }
.ci-item:hover .ci-icon { transform: scale(1.1) rotate(-6deg); background: rgba(245,166,35,0.25); }
.ci-item strong { display: block; font-weight: 700; color: white; margin-bottom: 4px; font-size: 0.9rem; }
.ci-item p { font-size: 0.86rem; color: rgba(255,255,255,0.72); line-height: 1.6; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.social-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: var(--r8);
  transition: var(--transition);
}
.social-btn:hover { background: var(--saffron); border-color: var(--saffron); transform: translateY(-2px); }

.contact-form-wrap {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r16);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}
.contact-form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--saffron), var(--gold));
  background-size: 200% 100%;
  animation: borderShimmer 4s linear infinite;
}
.contact-form-wrap h3 { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r8);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--sky2);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--saffron); background: var(--white); box-shadow: 0 0 0 3px rgba(232,99,10,0.12); }
.form-success {
  background: #dcfce7;
  color: #166534;
  border-radius: var(--r8);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 12px;
}
.branches-section { background: var(--sky2); }
.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.branch-card {
  background-color: var(--white);
  background-image: radial-gradient(rgba(26,43,94,0.045) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r16);
  padding: 24px 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.branch-card:hover { box-shadow: 0 16px 36px rgba(26,43,94,0.12); border-color: var(--saffron); }
.branch-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.branch-icon i { font-size: 1.15rem; color: white; }
.branch-card:nth-child(1) .branch-icon { background: linear-gradient(135deg, var(--navy), #3b82f6); }
.branch-card:nth-child(3) .branch-icon { background: linear-gradient(135deg, var(--green), #10b981); }
.branch-card:nth-child(4) .branch-icon { background: linear-gradient(135deg, var(--teal), #22d3d3); }
.branch-card:hover .branch-icon { transform: scale(1.12) rotate(-8deg); }
.branch-card h4 { font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.branch-card p { font-size: 0.83rem; color: var(--muted); margin-bottom: 10px; }
.branch-card span { font-size: 0.8rem; color: var(--saffron); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* ============================
   FOOTER
   ============================ */
.footer { background: var(--navy); }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding: 60px 24px 40px;
}
.footer .logo-name { color: var(--white); }
.footer .logo-icon { background: rgba(255,255,255,0.12); color: var(--white); border: 1px solid rgba(255,255,255,0.2); }
.footer-tagline-brand { font-family: 'Baloo 2', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--gold); margin: 14px 0 4px; }
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin: 0 0 20px; line-height: 1.6; }
.footer-socials { display: flex; gap: 10px; }
.fs-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.fs-link:hover { background: var(--saffron); }
.footer-links h4,
.footer-contact h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  transition: var(--transition);
  cursor: pointer;
}
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-contact p { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 10px; }
.footer-cert { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.footer-cert span {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.78rem; color: rgba(255,255,255,0.45); transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--white); }

/* ============================
   RESPONSIVE – TABLET
   ============================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .why-inner { grid-template-columns: 1fr; gap: 40px; }
  .why-right { max-width: 480px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .exam-body { grid-template-columns: 1fr; gap: 24px; }
}

/* Collapse the nav into the hamburger earlier than full "mobile" width —
   at 900–1024px there isn't room for 7 nav links + logo without wrapping
   or overlapping the hamburger/logo. */
@media (max-width: 1100px) {
  .hamburger { display: flex; }

  /* Hide the inline desktop logo duplicate inside the drawer on desktop;
     shown only once the drawer takes over the nav element on mobile. */
  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: linear-gradient(165deg, var(--navy) 0%, #16234c 55%, var(--navy2) 100%);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 0 18px 24px;
    box-shadow: -12px 0 50px rgba(0,0,0,0.35);
    z-index: 1100;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav.open { transform: translateX(0); }

  .nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 4px 22px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .nav-drawer-head .logo-name { color: white; }
  .nav-drawer-head .logo-icon { background: rgba(255,255,255,0.14); color: var(--gold); }
  .nav-close {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: white;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
  }
  .nav-close:hover { background: rgba(255,255,255,0.18); transform: rotate(90deg); }

  .nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    padding: 13px 12px;
    border-radius: var(--r8);
    color: rgba(255,255,255,0.78);
    font-weight: 500;
    opacity: 0;
    transform: translateX(24px);
  }
  .nav-link i { width: 20px; text-align: center; font-size: 0.95rem; color: var(--gold); flex-shrink: 0; }
  .nav-link:hover, .nav-link.active {
    background: rgba(245,166,35,0.16);
    color: white;
  }
  .nav-link.active { box-shadow: inset 3px 0 0 var(--gold); }

  /* Staggered slide+fade entrance for each link when the drawer opens */
  .nav.open .nav-link {
    animation: navLinkIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .nav.open .nav-link:nth-child(2) { animation-delay: 0.08s; }
  .nav.open .nav-link:nth-child(3) { animation-delay: 0.13s; }
  .nav.open .nav-link:nth-child(4) { animation-delay: 0.18s; }
  .nav.open .nav-link:nth-child(5) { animation-delay: 0.23s; }
  .nav.open .nav-link:nth-child(6) { animation-delay: 0.28s; }
  .nav.open .nav-link:nth-child(7) { animation-delay: 0.33s; }
  .nav.open .nav-link:nth-child(8) { animation-delay: 0.38s; }
  @keyframes navLinkIn {
    to { opacity: 1; transform: translateX(0); }
  }

  .nav-drawer-foot {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.12);
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,16,38,0.55);
    backdrop-filter: blur(2px);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }
  .nav-overlay.open { opacity: 1; pointer-events: auto; }
}

@media (min-width: 1101px) {
  .nav-drawer-head, .nav-close, .nav-drawer-foot, .nav-overlay { display: none; }
  .nav-link i { display: none; }
}

body.nav-open-lock { overflow: hidden; }

/* Hamburger — fades out once the drawer opens (the drawer has its own
   close button, so keeping two X icons on screen caused an overlap). */
.hamburger { position: relative; z-index: 1050; transition: opacity 0.25s ease, transform 0.25s ease; }
.hamburger span { transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease; }
.hamburger.open { opacity: 0; transform: scale(0.7); pointer-events: none; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gi-large { grid-column: span 2; }
}

/* ============================
   RESPONSIVE – MOBILE
   ============================ */
@media (max-width: 768px) {
  .section { padding: 56px 0; }

  .hero-stats { gap: 10px; }
  .stat-num { font-size: 1.5rem; }
  .hero-cta { flex-direction: column; gap: 12px; }
  .hero-cta .btn { width: 100%; text-align: center; }

  .footer-top { grid-template-columns: 1fr; gap: 28px; padding: 40px 24px 32px; }
  .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
  .footer-bottom-links { justify-content: center; }

  .prog-block { padding: 24px 20px; }
  .prog-features { grid-template-columns: 1fr; }

  .exam-block { padding: 24px 20px; }
  .exam-header { flex-direction: column; gap: 12px; }

  .team-card { padding: 24px 18px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gi-large { grid-column: span 2; }

  .form-row { grid-template-columns: 1fr; }
  .branches-grid { grid-template-columns: repeat(2, 1fr); }

  .event-card-main { flex-wrap: wrap; gap: 12px; padding: 20px 20px 16px; }
  .event-date { flex-direction: row; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r8); order: 1; }
  .event-icon { order: 2; margin-left: auto; width: 44px; height: 44px; font-size: 1.1rem; }
  .event-info { order: 3; flex-basis: 100%; }
  .event-card-footer { padding: 12px 20px; flex-wrap: wrap; }
  .ed-day { font-size: 1.4rem; }
  

  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .media-grid { grid-template-columns: 1fr; }

  .page-hero { padding: 50px 0 50px; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 180px; }
  .gi-large { grid-column: span 1; grid-row: span 1; }
  .branches-grid { grid-template-columns: 1fr; }
  .why-right { grid-template-columns: 1fr 1fr; max-width: 100%; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================
   MODERN CARD ENHANCEMENTS
   (added: new service accents, icon badges, apps section)
   ============================ */
.card-accent5::before { background: linear-gradient(90deg, var(--teal), #22d3d3); }
.card-accent6::before { background: linear-gradient(90deg, var(--saffron), #fb923c); }
.card-accent7::before { background: linear-gradient(90deg, #db2777, #f472b6); }
.card-accent8::before { background: linear-gradient(90deg, var(--navy), var(--teal)); }

.card {
  box-shadow: 0 2px 10px rgba(26,43,94,0.05);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--sky), var(--sky2));
  font-size: 1.7rem;
}
.card:hover .card-icon {
  transform: scale(1.08) rotate(-4deg);
}
.card-icon { transition: var(--transition); }
.card:hover { border-color: rgba(26,43,94,0.15); }

/* Testimonial cards — subtle lift + glow */
.testi-card { transition: var(--transition); }
.testi-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245,166,35,0.45);
  box-shadow: 0 16px 44px rgba(0,0,0,0.28);
}
.testi-card:hover .testi-quote-icon { transform: scale(1.1) rotate(-6deg); }
.testi-card:hover .testi-avatar { transform: scale(1.06); }
.testi-stars i { transition: transform 0.2s ease; }
.testi-card:hover .testi-stars i:nth-child(1) { transform: scale(1.15); }
.testi-card:hover .testi-stars i:nth-child(2) { transform: scale(1.15); transition-delay: 0.03s; }
.testi-card:hover .testi-stars i:nth-child(3) { transform: scale(1.15); transition-delay: 0.06s; }
.testi-card:hover .testi-stars i:nth-child(4) { transform: scale(1.15); transition-delay: 0.09s; }
.testi-card:hover .testi-stars i:nth-child(5) { transform: scale(1.15); transition-delay: 0.12s; }
.testi-avatar { box-shadow: 0 0 0 3px rgba(245,166,35,0.25); transition: var(--transition); }

/* Event card type-accents are defined earlier (ev-state/ev-district/ev-quiz) */

/* Team cards */
.team-card { position: relative; overflow: hidden; }
.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--saffron));
  opacity: 0;
  transition: var(--transition);
}
.team-card:hover::before { opacity: 1; }

/* Branch cards */
.branch-card { position: relative; }
.branch-card:hover { transform: translateY(-4px); }

/* Fee cards */
.fee-card { position: relative; }
.fee-card-featured { position: relative; }

/* ============================
   OUR APPS SECTION
   ============================ */
.apps-section { background: var(--sky2); }
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.app-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r16);
  padding: 30px;
  transition: var(--transition);
  position: relative;
}
.app-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--r16) var(--r16) 0 0;
}
.app-card-1::before { background: linear-gradient(90deg, var(--navy), #3b82f6); }
.app-card-2::before { background: linear-gradient(90deg, var(--saffron), var(--gold)); }
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow2); }

.app-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.app-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.app-icon-1 { background: linear-gradient(135deg, var(--navy), var(--navy2)); }
.app-icon-2 { background: var(--white); border: 1px solid var(--border); box-shadow: 0 4px 14px rgba(0,0,0,0.06); }

.app-status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700;
  padding: 6px 12px; border-radius: 50px;
  white-space: nowrap;
}
.pill-soon { background: #fef3c7; color: #92400e; }
.pill-live { background: #dcfce7; color: #166534; }
.pill-live i { color: #eab308; }

.app-info h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.app-info p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }

.app-feature-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.app-feature-tags span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; font-weight: 600; color: var(--navy);
  background: var(--sky); border-radius: 50px;
  padding: 6px 12px;
}
.app-feature-tags span i { font-size: 0.72rem; color: var(--saffron); }

.app-btn { font-size: 0.85rem; padding: 11px 22px; }

@media (max-width: 640px) {
  .app-card-top { flex-wrap: wrap; }
}

/* ============================================================
   REAL ICONS (Font Awesome) — COLOR & SIZE SYSTEM
   ============================================================ */
i[class*="fa-"] { line-height: 1; }

/* --- What We Do cards: icon color matches each card's accent --- */
.card-accent1 .card-icon i { color: var(--navy); }
.card-accent2 .card-icon i { color: var(--gold); }
.card-accent3 .card-icon i { color: var(--green); }
.card-accent4 .card-icon i { color: var(--purple); }
.card-accent5 .card-icon i { color: var(--teal); }
.card-accent6 .card-icon i { color: var(--saffron); }
.card-accent7 .card-icon i { color: #db2777; }
.card-accent8 .card-icon i { color: var(--navy); }
.card-icon i { font-size: 1.6rem; }

/* --- Medal rank colors (prize lists) --- */
.rank-gold   { color: #F0B429; text-shadow: 0 1px 6px rgba(240,180,41,0.4); }
.rank-silver { color: #A8B3C0; text-shadow: 0 1px 6px rgba(168,179,192,0.35); }
.rank-bronze { color: #C4753C; text-shadow: 0 1px 6px rgba(196,117,60,0.35); }
.prize-rank i { margin-right: 6px; }

/* --- Why Us checklist --- */
.check { display: inline-flex; align-items: center; justify-content: center; }
.check i { font-size: 0.85rem; }

/* --- Trust badges (about page) --- */
.tb-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--sky2));
  margin: 0 auto 12px;
}
.trust-badge { text-align: center; }
.tb-icon i { font-size: 1.5rem; color: var(--navy); }
.trust-badge:nth-child(3n+1) .tb-icon i { color: var(--saffron); }
.trust-badge:nth-child(3n+2) .tb-icon i { color: var(--teal); }
.trust-badge:nth-child(3n+3) .tb-icon i { color: var(--purple); }

/* --- Core values (about page) --- */
.value-item { display: flex; gap: 16px; align-items: flex-start; }
.value-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: var(--sky);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.value-icon i { font-size: 1.3rem; color: var(--navy); }
.value-item:hover .value-icon { transform: scale(1.1) rotate(-6deg); }
.value-item:nth-child(2) .value-icon { background: linear-gradient(135deg, #fef3c7, #fde68a); } .value-item:nth-child(2) .value-icon i { color: #b45309; }
.value-item:nth-child(3) .value-icon { background: linear-gradient(135deg, #dbeafe, #bfdbfe); } .value-item:nth-child(3) .value-icon i { color: var(--navy); }
.value-item:nth-child(4) .value-icon { background: linear-gradient(135deg, #fef9c3, #fef08a); } .value-item:nth-child(4) .value-icon i { color: #a16207; }
.value-item:nth-child(5) .value-icon { background: linear-gradient(135deg, #fee2e2, #fecaca); } .value-item:nth-child(5) .value-icon i { color: #dc2626; }

/* Exam page icons are defined earlier in the EXAMINATIONS PAGE section */

/* --- Program feature list icons --- */
.pf { gap: 12px; }
.pf span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.prog-accent1 .pf span { background: linear-gradient(135deg, var(--navy), #3b82f6); }
.prog-accent2 .pf span { background: linear-gradient(135deg, var(--gold), #f59e0b); }
.prog-accent3 .pf span { background: linear-gradient(135deg, var(--green), #10b981); }
.prog-accent4 .pf span { background: linear-gradient(135deg, var(--purple), #a78bfa); }
.prog-accent5 .pf span { background: linear-gradient(135deg, var(--teal), #22d3d3); }
.prog-accent7 .pf span { background: linear-gradient(135deg, #db2777, #f472b6); }
.prog-accent8 .pf span { background: linear-gradient(135deg, var(--navy), var(--teal)); }
.pf:hover span { transform: scale(1.12) rotate(-8deg); }
.pf span i { font-size: 0.95rem; color: white; }

/* --- Contact page icons --- */
.ci-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--sky); margin-top: 0;
}
.ci-icon i { font-size: 1rem; color: var(--saffron); }
.social-btn { display: inline-flex; align-items: center; gap: 8px; }
.social-btn i { font-size: 0.95rem; }

/* --- Footer social icons --- */
.fs-link i { font-size: 1rem; color: white; }

/* --- Media / gallery icons --- */
.media-outlet i { color: var(--saffron); margin-right: 4px; }
.gi-overlay span i { margin-right: 6px; }

/* --- App icon badges → real icons instead of letters --- */
.app-icon i { font-size: 1.7rem; color: white; }

/* --- Scroll hint arrow --- */
.hero-scroll-hint i { display: block; }

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 6px 24px rgba(18,140,126,0.45);
  z-index: 900;
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 10px 32px rgba(18,140,126,0.55); }
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37,211,102,0.5);
  animation: waPulse 2.2s ease-out infinite;
  z-index: -1;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}
@media (max-width: 480px) {
  .whatsapp-float { width: 52px; height: 52px; font-size: 1.4rem; bottom: 16px; right: 16px; }
}

/* ============================================================
   HI-TECH CARD ANIMATIONS
   ============================================================ */

/* Animated shimmer sweep across card top border */
.card::before {
  background-size: 200% 100%;
  animation: borderShimmer 3.5s linear infinite;
}
@keyframes borderShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.card-accent1::before { background-image: linear-gradient(90deg, var(--navy), #3b82f6, var(--navy), #3b82f6); }
.card-accent2::before { background-image: linear-gradient(90deg, var(--gold), #f59e0b, var(--gold), #f59e0b); }
.card-accent3::before { background-image: linear-gradient(90deg, var(--green), #10b981, var(--green), #10b981); }
.card-accent4::before { background-image: linear-gradient(90deg, var(--purple), #a78bfa, var(--purple), #a78bfa); }
.card-accent5::before { background-image: linear-gradient(90deg, var(--teal), #22d3d3, var(--teal), #22d3d3); }
.card-accent6::before { background-image: linear-gradient(90deg, var(--saffron), #fb923c, var(--saffron), #fb923c); }
.card-accent7::before { background-image: linear-gradient(90deg, #db2777, #f472b6, #db2777, #f472b6); }
.card-accent8::before { background-image: linear-gradient(90deg, var(--navy), var(--teal), var(--navy), var(--teal)); }

/* Glowing lift on hover with accent-tinted shadow */
.card { position: relative; will-change: transform; }
.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 18px 46px rgba(26,43,94,0.16);
}
.card-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: 0 0 0 0 rgba(232,99,10,0.35);
  transition: box-shadow 0.4s ease;
}
.card-icon { position: relative; }
.card:hover .card-icon::after { box-shadow: 0 0 0 8px rgba(232,99,10,0.08); }

/* Fee card featured — animated glow ring */
.fee-card-featured {
  box-shadow: 0 0 0 1px rgba(26,43,94,0.08);
  animation: featuredGlow 3s ease-in-out infinite;
}
@keyframes featuredGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(26,43,94,0.08), 0 8px 30px rgba(26,43,94,0.08); }
  50% { box-shadow: 0 0 0 1px rgba(232,99,10,0.15), 0 12px 40px rgba(232,99,10,0.18); }
}

/* App cards — subtle sheen sweep on hover */
.app-card { position: relative; overflow: hidden; }
.app-card::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.app-card:hover::after { left: 130%; }

/* Team card avatar pulse ring on hover */
.team-avatar { transition: var(--transition); }
.team-card:hover .team-avatar { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(232,99,10,0.12); }

/* Branch card icon accent (using location icon inline) */
.branch-card h4 i { color: var(--saffron); margin-right: 6px; }

/* ============================================================
   RESPONSIVE OVERLAP FIXES
   ============================================================ */
@media (max-width: 640px) {
  .em { flex-direction: column; align-items: flex-start; gap: 6px; }
  .em span:not(.em-icon) { max-width: 100%; text-align: left; padding-left: 38px; }
  .prize-item { flex-wrap: wrap; gap: 6px 10px; }
  .hero-badge { white-space: normal; text-align: left; }
  .why-right { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: 1fr; }

  /* Scroll-driven "stacking cards" effect: each card sticks near the
     top and the next one slides up to cover it as you scroll past. */
  .why-right { display: block; }
  .why-card {
    position: sticky;
    margin-bottom: 16px;
    padding: 26px 24px;
  }
  .wc1 { top: 88px; z-index: 1; }
  .wc2 { top: 130px; z-index: 2; }
  .wc3 { top: 172px; z-index: 3; }
  .wc4 { top: 214px; z-index: 4; }
}
/* Header — logo-sub ("Education") stays visible on all screen sizes,
   just shrinks instead of disappearing (was previously display:none
   below 400px, which is why it vanished on mobile). */
@media (max-width: 400px) {
  .logo-sub { font-size: 0.58rem; letter-spacing: 0.03em; }
  .logo-name { font-size: 1rem; }
  .header-inner { gap: 10px; }
}

/* ============================================================
   HERO — RIGHT-SIDE VISUAL ILLUSTRATION
   (original CSS/icon composition — no external images, so
   it's copyright-safe and matches the brand palette exactly)
   ============================================================ */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.hv-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(245,166,35,0.35);
}
.hv-ring1 { width: 340px; height: 340px; animation: spinSlow 40s linear infinite; }
.hv-ring2 { width: 420px; height: 420px; border-color: rgba(255,255,255,0.15); animation: spinSlow 60s linear infinite reverse; }
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hv-card {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25), inset 0 0 40px rgba(255,255,255,0.06);
  animation: hvFloat 6s ease-in-out infinite;
}
@keyframes hvFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hv-icon-wrap {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(245,166,35,0.45);
}
.hv-icon-wrap i { font-size: 2.6rem; color: white; }

.hv-mini-row { display: flex; gap: 14px; }
.hv-mini-row i {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}

.hv-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.97);
  border-radius: 14px;
  padding: 10px 16px 10px 12px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.25);
  animation: hvFloat 5s ease-in-out infinite;
}
.hv-badge i {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}
.hv-badge strong { display: block; font-size: 0.85rem; color: var(--navy); line-height: 1.2; }
.hv-badge span { font-size: 0.7rem; color: var(--muted); }

.hvb1 { top: 6%; left: -6%; animation-delay: 0.2s; }
.hvb1 i { background: linear-gradient(135deg, var(--saffron), #fb923c); }
.hvb2 { bottom: 16%; right: -8%; animation-delay: 1.1s; }
.hvb2 i { background: linear-gradient(135deg, var(--green), #10b981); }
.hvb3 { bottom: -4%; left: 6%; animation-delay: 2s; }
.hvb3 i { background: linear-gradient(135deg, var(--navy), #3b82f6); }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-content { max-width: 100%; }
  .hero-visual { min-height: 340px; margin-top: 20px; }
  .hv-card { width: 210px; height: 210px; }
  .hv-icon-wrap { width: 76px; height: 76px; }
  .hv-icon-wrap i { font-size: 2.1rem; }
  .hv-ring1 { width: 280px; height: 280px; }
  .hv-ring2 { width: 340px; height: 340px; }
}

@media (max-width: 640px) {
  .hero-visual { min-height: 280px; transform: scale(0.85); }
  .hvb1 { left: 2%; }
  .hvb2 { right: 0%; }
  .hvb3 { left: 10%; }
}

@media (max-width: 420px) {
  .hero-visual { display: none; }
}

/* ============================================================
   HOMEPAGE CARDS — SCROLL STACKING EFFECT (mobile / single column)
   Each card sticks near the top and the next one slides up to
   cover it as the user scrolls — same technique used for the
   "Driven by Results" stat cards, applied across the homepage.
   Extended to 10 items (previously only 8) so growing sections
   like "What We Do" don't lose stacking on later cards.
   ============================================================ */
@media (max-width: 640px) {
  .cards-grid, .apps-grid, .events-grid {
    grid-template-columns: 1fr;
    display: block;
  }

  .cards-grid > .card,
  .apps-grid > .app-card,
  .events-grid > .event-card {
    position: sticky;
    margin-bottom: 16px;
  }

  .cards-grid > .card:nth-child(1),  .apps-grid > .app-card:nth-child(1),  .events-grid > .event-card:nth-child(1)  { top: 88px;  z-index: 1; }
  .cards-grid > .card:nth-child(2),  .apps-grid > .app-card:nth-child(2),  .events-grid > .event-card:nth-child(2)  { top: 130px; z-index: 2; }
  .cards-grid > .card:nth-child(3),  .apps-grid > .app-card:nth-child(3),  .events-grid > .event-card:nth-child(3)  { top: 172px; z-index: 3; }
  .cards-grid > .card:nth-child(4),  .apps-grid > .app-card:nth-child(4),  .events-grid > .event-card:nth-child(4)  { top: 214px; z-index: 4; }
  .cards-grid > .card:nth-child(5),  .apps-grid > .app-card:nth-child(5),  .events-grid > .event-card:nth-child(5)  { top: 256px; z-index: 5; }
  .cards-grid > .card:nth-child(6),  .apps-grid > .app-card:nth-child(6),  .events-grid > .event-card:nth-child(6)  { top: 298px; z-index: 6; }
  .cards-grid > .card:nth-child(7),  .apps-grid > .app-card:nth-child(7),  .events-grid > .event-card:nth-child(7)  { top: 340px; z-index: 7; }
  .cards-grid > .card:nth-child(8),  .apps-grid > .app-card:nth-child(8),  .events-grid > .event-card:nth-child(8)  { top: 382px; z-index: 8; }
  .cards-grid > .card:nth-child(9),  .apps-grid > .app-card:nth-child(9),  .events-grid > .event-card:nth-child(9)  { top: 424px; z-index: 9; }
  .cards-grid > .card:nth-child(10), .apps-grid > .app-card:nth-child(10), .events-grid > .event-card:nth-child(10) { top: 466px; z-index: 10; }
}

/* ============================================================
   RGB GLOWING BORDER — reusable animated rainbow border
   Cycles the card's own border-color + a soft matching glow.
   (Uses the element's real border, not a pseudo-element, so it
   never collides with cards that already use ::before/::after
   for other decoration.)
   ============================================================ */
.rgb-glow {
  border-width: 2px !important;
  border-style: solid !important;
  animation: rgbBorderCycle 6s linear infinite;
}
@keyframes rgbBorderCycle {
  0%   { border-color: #ff3b3b; box-shadow: 0 4px 20px rgba(255,59,59,0.18); }
  14%  { border-color: #ff9d3b; box-shadow: 0 4px 20px rgba(255,157,59,0.18); }
  28%  { border-color: #ffd23b; box-shadow: 0 4px 20px rgba(255,210,59,0.18); }
  42%  { border-color: #4dd66a; box-shadow: 0 4px 20px rgba(77,214,106,0.18); }
  57%  { border-color: #3bc4ff; box-shadow: 0 4px 20px rgba(59,196,255,0.18); }
  71%  { border-color: #6a5bff; box-shadow: 0 4px 20px rgba(106,91,255,0.18); }
  85%  { border-color: #d63bff; box-shadow: 0 4px 20px rgba(214,59,255,0.18); }
  100% { border-color: #ff3b3b; box-shadow: 0 4px 20px rgba(255,59,59,0.18); }
}
.rgb-glow:hover { animation-duration: 2.4s; }
@media (max-width: 480px) {
  .rgb-glow { border-width: 1.5px !important; }
}

/* ============================================================
   MOBILE PERFORMANCE FIX
   Continuously animating box-shadow/border-color (RGB glow, icon
   pulses, glow rings) are expensive to repaint every frame. Having
   dozens of them running at once was causing lag/"hanging" on
   phones — especially combined with scroll + sticky stacking.
   Here we turn those off on small screens and keep only cheap,
   GPU-composited transform/opacity animations.
   ============================================================ */
@media (max-width: 768px) {
  .rgb-glow {
    animation: none !important;
    border-color: rgba(232,99,10,0.28) !important;
    box-shadow: none !important;
  }
  .stat-card, .why-card, .wc1, .wc2, .wc3, .wc4 { animation: none !important; }
  .stat-icon { animation: none !important; }
  .exam-icon { animation: none !important; }
  .event-icon { animation: none !important; }
  .p1.prize-item { animation: none !important; }
  .stat-card::after { animation: none !important; }
  .prog-block::before, .exam-block::before, .card::before { animation: none !important; }
  .exam-label::before, .event-status i { animation: none !important; }

  /* Keep the light, cheap ones: teamAvatarFloat / spinSlow / hvFloat
     (transform-only) are left running since they're inexpensive. */
}