/* ============================================================
   Chandra Sir Coaching Centre — Professional Design System
   Clean, Minimal, Institutional. Inspired by Ditto / Linear.
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --blue-primary: #2563EB;
  --blue-dark:    #1E3A8A;
  --blue-light:   #EFF6FF;
  --slate-50:  #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0F172A;
  --green-600: #16A34A;
  --amber-500: #F59E0B;
  --red-600:   #DC2626;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
  /* Vibrant gradient palette */
  --grad-blue:    #2563EB;
  --grad-indigo:  #4F46E5;
  --grad-violet:  #7C3AED;
  --grad-emerald: #059669;
  --grad-amber:   #D97706;
}

/* --- Base Setup --- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--slate-900);
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

/* Green Blinking Button Animation */
@keyframes blink-green-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
    transform: scale(1.02);
  }
}

.btn-blink-green {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  animation: blink-green-glow 1.8s infinite;
}

.btn-blink-green:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
}

/* All content must sit above the mesh */
body > * { position: relative; z-index: 1; }

/* ============================================================
   HEADER & NAVIGATION — Fixed Sticky, Clean White + Live Ticker
   ============================================================ */
.sticky-nav-wrapper {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 45 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#nav-fixed-spacer {
  display: block;
  width: 100%;
  height: 112px;
  flex-shrink: 0;
}

@media (max-width: 639px) {
  #nav-fixed-spacer {
    height: 96px;
  }
}

.nav-glass {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226,232,240,0.85);
  box-shadow: 0 1px 0 rgba(37,99,235,0.06), 0 2px 8px rgba(15,23,42,0.05);
  /* Vibrant gradient accent line at top */
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #2563eb, #4f46e5, #7c3aed, #059669, #d97706) 1;
}

.nav-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 0.5rem !important;
}

.nav-inner > a,
.nav-inner > div {
  flex-shrink: 0 !important;
}

/* ============================================================
   ADMISSION TOP BAR — Minimal single line
   ============================================================ */
.admission-top-bar {
  background: var(--blue-dark);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  text-align: center;
}

.admission-top-bar a {
  font-weight: 600;
  color: #93C5FD;
  text-decoration: none;
  transition: color 0.15s;
}
.admission-top-bar a:hover { color: #ffffff; }

/* ============================================================
   HERO — Vibrant Blue Gradient Combo & Floating Dynamic Elements
   ============================================================ */
.hero-section {
  background: 
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(37, 99, 235, 0.16) 0%, transparent 70%),
    radial-gradient(circle at 8% 45%, rgba(14, 165, 233, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 92% 65%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #F0F6FF 0%, #E8F2FE 40%, #F5F9FF 75%, #FFFFFF 100%);
  border-bottom: 1px solid rgba(191, 219, 254, 0.8);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(37, 99, 235, 0.08) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

/* Radiant Animated Ambient Gradient Orbs */
.hero-ambient-glow-1 {
  position: absolute;
  top: -80px;
  left: -80px;
  width: 380px;
  height: 380px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, rgba(147, 197, 253, 0.10) 60%, transparent 80%);
  filter: blur(45px);
  animation: heroOrbFloat1 9s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

.hero-ambient-glow-2 {
  position: absolute;
  top: 25%;
  right: -60px;
  width: 420px;
  height: 420px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(191, 219, 254, 0.12) 60%, transparent 80%);
  filter: blur(55px);
  animation: heroOrbFloat2 11s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

/* Floating Glassmorphism Micro-Pills */
.hero-float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.95rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(191, 219, 254, 0.95);
  border-radius: 9999px;
  box-shadow: 0 14px 30px -6px rgba(30, 58, 138, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.9);
  z-index: 20;
  pointer-events: none;
  user-select: none;
}

.hero-float-1 {
  top: -12px;
  right: -10px;
  animation: heroPillFloat1 5.5s ease-in-out infinite alternate;
}

.hero-float-2 {
  bottom: -14px;
  left: -12px;
  animation: heroPillFloat2 6.5s ease-in-out infinite alternate;
}

.hero-float-3 {
  top: 38%;
  left: -22px;
  animation: heroPillFloat3 7.5s ease-in-out infinite alternate;
}

@keyframes heroPillFloat1 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-12px) rotate(1.5deg); }
}

@keyframes heroPillFloat2 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(10px) rotate(-1.5deg); }
}

@keyframes heroPillFloat3 {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

@keyframes heroOrbFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 25px) scale(1.1); }
}

@keyframes heroOrbFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-35px, -25px) scale(1.12); }
}

/* ============================================================
   TRUST BADGE — Vibrant gradient & pulse glow
   ============================================================ */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(245, 243, 255, 0.95));
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e3a8a;
}

.trust-badge .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.2); opacity: 0.7; }
}

/* ============================================================
   HEADLINE GRADIENT — Rich multi-tone sapphire, blue, & indigo
   ============================================================ */
.headline-gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #4f46e5 80%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 10px rgba(37, 99, 235, 0.15));
}

/* ============================================================
   RED GRADIENT — Exact match with moving announcement ticker
   ============================================================ */
.red-gradient {
  background: linear-gradient(90deg, #991b1b 0%, #b91c1c 25%, #dc2626 50%, #b91c1c 75%, #991b1b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 8px rgba(185, 28, 28, 0.35));
}

/* ============================================================
   GOLD GRADIENT — Prestigious rich metallic gold
   ============================================================ */
.gold-gradient {
  background: linear-gradient(135deg, #b45309 0%, #d97706 20%, #f59e0b 45%, #fbbf24 70%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 8px rgba(217, 119, 6, 0.25));
}

/* ============================================================
   HERO SHOWCASE MASTERPIECE CARD — High-End Glassmorphism
   ============================================================ */
.hero-showcase-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.95) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 1.75rem;
  box-shadow: 0 25px 60px -15px rgba(30, 58, 138, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.hero-showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 70px -15px rgba(30, 58, 138, 0.22), 0 0 0 2px rgba(147, 197, 253, 0.9);
}

.hero-showcase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #4f46e5, #06b6d4, #10b981);
}

/* Hero Badge Pill */
.hero-feature-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.hero-feature-pill:hover {
  border-color: #93c5fd;
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

/* ============================================================
   BUTTONS — Vibrant Gradient Primary + Frosted Outline
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.65rem;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #1e40af 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), filter 0.22s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.65rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--slate-800);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  border: 1px solid #cbd5e1;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.btn-outline:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.16);
}

/* ============================================================
   STATUS BADGES
   ============================================================ */
.badge-paid {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #BBF7D0;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-pending {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  background: #FEF9C3;
  color: #854D0E;
  border: 1px solid #FDE68A;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   CARDS — Smooth Lift & Glowing Hover Elevation
   ============================================================ */
.feature-card {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(191,219,254,0.55);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(37,99,235,0.06);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  will-change: transform, box-shadow;
  position: relative;
  overflow: hidden;
}

/* Subtle shimmer overlay on hover */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.04) 0%, rgba(79,70,229,0.04) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  pointer-events: none;
}

.feature-card:hover::before { opacity: 1; }

.feature-card:hover {
  transform: translateY(-7px);
  border-color: rgba(59,130,246,0.55);
  box-shadow: 0 20px 40px -10px rgba(30,58,138,0.18), 0 0 0 1px rgba(147,197,253,0.6), 0 0 20px rgba(37,99,235,0.08);
  background: rgba(255,255,255,0.98);
}


.feature-icon-wrap {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.10);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover .feature-icon-wrap {
  transform: scale(1.08) rotate(-2deg);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  will-change: transform, box-shadow;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -12px rgba(30,58,138,0.22), 0 0 0 2px rgba(59,130,246,0.35);
}

.review-card {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(191,219,254,0.5);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(37,99,235,0.06);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.review-card:hover {
  transform: translateY(-7px);
  border-color: rgba(59,130,246,0.5);
  box-shadow: 0 18px 36px -8px rgba(30,58,138,0.16), 0 0 0 1px rgba(147,197,253,0.5), 0 0 18px rgba(37,99,235,0.07);
}

/* Star highlight on review card hover */
.review-card:hover .text-amber-400 {
  filter: drop-shadow(0 0 4px rgba(245,158,11,0.6));
}

.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(191,219,254,0.55);
  box-shadow: 0 2px 10px rgba(37,99,235,0.07);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59,130,246,0.45);
  box-shadow: 0 14px 28px -6px rgba(30,58,138,0.14), 0 0 0 1px rgba(147,197,253,0.5);
}



/* ============================================================
   SECTION EYEBROW LABEL — Vibrant gradient pill
   ============================================================ */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  padding: 0.28rem 0.85rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(79,70,229,0.12));
  color: #1d4ed8;
  border: 1px solid rgba(59,130,246,0.25);
}

/* Shimmer/glow on section h2 headings */
.section-title-shimmer {
  position: relative;
  display: inline-block;
}
.section-title-shimmer::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 3px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #2563eb, #4f46e5, #7c3aed, #2563eb);
  background-size: 200% auto;
  animation: shimmer-line 3s linear infinite;
}
@keyframes shimmer-line {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ============================================================
   SECTION BACKGROUNDS — Vibrant gradient fills per section
   ============================================================ */
/* Why Us section */
#why-us {
  background:
    radial-gradient(ellipse 55% 40% at 0% 50%, rgba(37,99,235,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 100% 50%, rgba(16,185,129,0.07) 0%, transparent 60%),
    #ffffff;
}

/* Faculty section */
#faculty {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(79,70,229,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 90% 100%, rgba(245,158,11,0.08) 0%, transparent 55%),
    #f8faff;
  border-color: rgba(147,197,253,0.35);
}

/* Reviews section */
#reviews {
  background:
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(245,158,11,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 100% 20%, rgba(37,99,235,0.08) 0%, transparent 60%),
    #f8faff;
  border-color: rgba(147,197,253,0.3);
}

/* Courses section */
#courses {
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(37,99,235,0.07) 0%, transparent 65%),
    linear-gradient(to bottom, #ffffff, #f0f5ff);
}



/* ============================================================
   MODALS — Clean sheet, no backdrop blur animations
   ============================================================ */
.modal-backdrop {
  background: rgba(15,23,42,0.5);
}

#modal-test-scorecard {
  z-index: 9999999 !important;
}

#modal-test-scorecard.hidden {
  display: none !important;
}

.modal-sheet {
  animation: modal-in 0.22s ease forwards;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  .modal-sheet {
    max-height: 92vh;
    padding: 1.1rem 1.15rem !important;
    border-top-left-radius: 1.25rem;
    border-top-right-radius: 1.25rem;
  }
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.98) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ============================================================
   FORM FIELDS
   ============================================================ */
.input-field {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--slate-900);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.input-field:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.10);
}

.input-field::placeholder {
  color: var(--slate-400);
}

/* ============================================================
   LMS TEST ENGINE
   ============================================================ */
.test-overlay-bg {
  background: var(--slate-900);
}

.test-question-card {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
}

.option-btn {
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: #FFFFFF;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-size: 0.875rem;
  color: var(--slate-700);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.option-btn:hover {
  border-color: #93C5FD;
  background: var(--blue-light);
  color: var(--blue-dark);
}

.option-btn.selected {
  border-color: var(--blue-primary);
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 600;
}

/* Timer Bar */
.timer-bar {
  height: 3px;
  border-radius: 9999px;
  transition: width 1s linear;
  background: var(--blue-primary);
}

.timer-bar.urgent {
  background: var(--red-600);
}

/* ============================================================
   ADMIN PORTAL
   ============================================================ */
.admin-header-gradient {
  background: var(--slate-900);
}

.table-row-hover:hover {
  background: var(--slate-50);
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast-bar {
  animation: toast-in 0.25s ease forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-gradient {
  background: var(--slate-900);
}

/* ============================================================
   GRID PATTERN — Removed (too busy)
   ============================================================ */
.grid-pattern { display: none; }

/* ============================================================
   COURSE CARDS
   ============================================================ */
.course-card {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease;
}

.course-card:hover {
  border-color: #93C5FD;
}

.course-badge-popular {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--blue-primary);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
}

/* ============================================================
   FACULTY CARDS
   ============================================================ */
.faculty-card {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  transition: border-color 0.2s ease;
}

.faculty-card:hover {
  border-color: #BFDBFE;
}

.faculty-avatar-wrap {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius-lg);
  margin: 0 auto 1.1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
  background: var(--blue-primary);
}

/* ============================================================
   RESULT / ACHIEVEMENT CARDS
   ============================================================ */
.result-card {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-card:hover {
  border-color: #BBF7D0;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #BBF7D0;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ============================================================
   GALLERY CARDS
   ============================================================ */
.gallery-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  transition: border-color 0.2s ease;
}

.gallery-card:hover {
  border-color: #93C5FD;
}

/* ============================================================
   TICKER & MARQUEE BASE
   ============================================================ */

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #CBD5E1;
  white-space: nowrap;
}

.ticker-tag {
  padding: 0.1rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ticker-tag-live  { background: rgba(22,163,74,0.15); color: #4ADE80; }
.ticker-tag-alert { background: rgba(245,158,11,0.15); color: #FCD34D; }
.ticker-tag-test  { background: rgba(59,130,246,0.15); color: #93C5FD; }
.ticker-divider   { color: rgba(255,255,255,0.18); }

/* ============================================================
   MOBILE STICKY BOTTOM BAR
   ============================================================ */
.mobile-action-bar {
  background: rgba(255,255,255,0.98);
  border-top: 1px solid var(--slate-200);
}

/* ============================================================
   SCROLL REVEAL — Subtle
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--slate-200); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }

/* ============================================================
   FLOATING ACTIONS (WhatsApp + Call)
   ============================================================ */
.floating-actions-container {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  z-index: 39;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-end;
}

@media (min-width: 1024px) {
  .floating-actions-container {
    bottom: 2rem;
    right: 2rem;
  }
}

.floating-whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #FFFFFF;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
  text-decoration: none;
  animation: float-fab 3.6s ease-in-out infinite;
  will-change: transform;
}

.floating-whatsapp-btn:hover {
  animation-play-state: paused;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.50);
  color: #FFFFFF;
}

.floating-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
  text-decoration: none;
  animation: float-fab 4.2s ease-in-out infinite 0.7s;
  will-change: transform;
}

.floating-call-btn:hover {
  animation-play-state: paused;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.50);
  color: #FFFFFF;
}

@keyframes float-fab {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -6px, 0); }
}

/* ============================================================
   FORM ENHANCEMENTS
   ============================================================ */
/* Segmented form switcher */
.form-mode-pill {
  transition: background 0.2s ease, color 0.2s ease;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.form-mode-pill.active {
  background: var(--blue-primary);
  color: #FFFFFF;
}
.form-mode-pill:not(.active) {
  background: transparent;
  color: var(--slate-500);
}
.form-mode-pill:not(.active):hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

/* Qualification table */
.qual-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.75rem;
}
.qual-table th {
  background: var(--slate-50);
  color: var(--slate-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--slate-200);
  font-size: 0.68rem;
}
.qual-table td {
  padding: 0.35rem 0.4rem;
  border-bottom: 1px solid var(--slate-100);
}
.qual-table tr:hover td { background: var(--slate-50); }

.qual-input {
  width: 100%;
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  transition: border-color 0.15s;
}
.qual-input:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 2px rgba(29,78,216,0.1);
}

/* Photo upload dropzone */
.photo-upload-dropzone {
  border: 1.5px dashed var(--slate-200);
  background: var(--slate-50);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.photo-upload-dropzone:hover {
  border-color: var(--blue-primary);
  background: var(--blue-light);
}
.photo-preview-box {
  width: 90px;
  height: 110px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  object-fit: cover;
}

/* Age badge */
.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  background: var(--blue-light);
  border: 1px solid #BFDBFE;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-dark);
}

/* Payment status badges */
.badge-status-pending {
  background: #FEF9C3; color: #854D0E; border: 1px solid #FDE68A;
  font-weight: 600; font-size: 0.7rem; padding: 0.18rem 0.55rem;
  border-radius: 9999px; display: inline-flex; align-items: center; gap: 0.3rem;
}
.badge-status-approved {
  background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0;
  font-weight: 600; font-size: 0.7rem; padding: 0.18rem 0.55rem;
  border-radius: 9999px; display: inline-flex; align-items: center; gap: 0.3rem;
}
.badge-status-declined {
  background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5;
  font-weight: 600; font-size: 0.7rem; padding: 0.18rem 0.55rem;
  border-radius: 9999px; display: inline-flex; align-items: center; gap: 0.3rem;
}

/* Test category filter pills */
.test-category-btn {
  padding: 0.38rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  background: #FFFFFF;
  color: var(--slate-500);
  transition: all 0.15s ease;
  cursor: pointer;
}
.test-category-btn.active {
  background: var(--blue-primary);
  color: #FFFFFF;
  border-color: var(--blue-primary);
}
.test-category-btn:hover:not(.active) {
  background: var(--slate-100);
  color: var(--slate-900);
}

/* OTP button */
.btn-otp-action {
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

/* Form target glow */
@keyframes form-glow {
  0%,100% { box-shadow: none; }
  50%      { box-shadow: 0 0 0 3px rgba(29,78,216,0.18); }
}
.form-target-active {
  animation: form-glow 1.2s ease 2;
  border-color: var(--blue-primary) !important;
}

/* ============================================================
   MOBILE BREAKPOINTS — Comprehensive Mobile-First Optimization
   ============================================================ */

/* Prevent horizontal overflow globally */
* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }

/* ---- Small mobile (≤ 640px) ---- */
@media (max-width: 640px) {
  /* Prevent iOS zoom on input focus */
  input, select, textarea, .input-field { font-size: 16px !important; }

  /* Bottom padding for mobile action bar */
  body { padding-bottom: 4.5rem; }

  /* Admission top banner — wrap & center on mobile */
  .admission-top-bar {
    flex-wrap: wrap;
    gap: 0.3rem;
    padding: 0.45rem 0.75rem;
    justify-content: center !important;
    font-size: 0.7rem;
    line-height: 1.4;
  }

  /* Reduce nav height on mobile */
  .sticky-nav-wrapper .nav-inner,
  .sticky-nav-wrapper header > .max-w-7xl { height: 60px !important; }

  /* Mobile slide drawer: strictly full height and highest stacking */
  #mobile-menu-drawer {
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    z-index: 9999 !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  #mobile-menu-backdrop {
    z-index: 9998 !important;
  }
  #mobile-menu-drawer .btn-primary,
  #mobile-menu-drawer .btn-outline {
    min-height: 42px !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.825rem !important;
  }

  /* Cards compact padding */
  .faculty-card, .result-card, .review-card {
    padding: 1.1rem !important;
    border-radius: var(--radius-lg) !important;
  }

  .feature-card, .gallery-card, .course-card {
    padding: 1rem !important;
    border-radius: var(--radius-lg) !important;
  }

  .feature-icon-wrap {
    width: 2rem !important;
    height: 2rem !important;
    margin-bottom: 0.5rem !important;
  }

  /* Buttons — touch-friendly minimum tap size */
  .btn-primary, .btn-outline {
    min-height: 46px;
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }

  /* Compact buttons in header so Admin & Portal fit perfectly without overflow */
  header .btn-primary,
  header .btn-outline,
  .sticky-nav-wrapper .btn-primary,
  .sticky-nav-wrapper .btn-outline {
    min-height: 34px !important;
    padding: 0.35rem 0.65rem !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
  }

  /* Qualification table — horizontal scroll */
  .qual-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; }
  .qual-table { min-width: 480px; }

  /* Floating actions */
  .floating-actions-container {
    right: 0.75rem;
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    gap: 0.5rem;
  }
  .floating-whatsapp-btn {
    width: 44px; height: 44px; padding: 0;
    border-radius: var(--radius-md); justify-content: center;
  }
  .floating-whatsapp-btn span { display: none; }
  .floating-call-btn { display: none; }

  /* Mobile action bar */
  .mobile-action-bar {
    padding: 0.45rem 0.65rem calc(0.45rem + env(safe-area-inset-bottom, 0px)) 0.65rem;
  }

  /* Modals — bottom sheet */
  .modal-sheet {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    max-height: 92vh !important;
    width: 100% !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
  }

  /* Option buttons */
  .option-btn { padding: 0.75rem 0.85rem; font-size: 0.825rem; min-height: 48px; }
  .stat-card  { padding: 1rem 0.75rem !important; border-radius: var(--radius-md) !important; }

  /* Ticker */
  .ticker-item { padding: 0 1rem; font-size: 0.72rem; gap: 0.35rem; }
  .ticker-tag  { padding: 0.1rem 0.4rem; font-size: 0.6rem; }

  /* Hero section — tighter vertical spacing */
  .hero-section { padding-top: 1.75rem !important; padding-bottom: 2rem !important; }

  /* CTA banner inside course section */
  .bg-slate-900.rounded-2xl { padding: 1.25rem !important; }

  /* Gateway contact card */
  .contact-gateway-card { padding: 1.25rem !important; }

  /* Admissions page form card */
  #enquiry-form-card { padding: 1.25rem !important; border-radius: 1rem !important; }
}

/* ---- Extra small (≤ 400px) ---- */
@media (max-width: 400px) {
  .trust-badge { font-size: 0.64rem; padding: 0.22rem 0.5rem; }
  .section-eyebrow { font-size: 0.64rem; }
  h1.text-3xl { font-size: 1.5rem !important; line-height: 1.2 !important; }
  h2.text-2xl { font-size: 1.3rem !important; }
  section.py-8  { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
  section.py-10 { padding-top: 1.75rem !important; padding-bottom: 1.75rem !important; }
  .form-mode-pill { font-size: 0.65rem !important; padding: 0.5rem 0.25rem !important; }
}

/* ---- Tablet (641–1023px) ---- */
@media (min-width: 641px) and (max-width: 1023px) {
  .floating-actions-container { bottom: 2.5rem; right: 1.5rem; }
}

/* ---- Desktop (≥ 1024px) ---- */
@media (min-width: 1024px) {
  .floating-actions-container { bottom: 2rem; right: 2rem; }
}

/* ---- Live Announcement Ticker Styles (Top Banner) ---- */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #991b1b 0%, #b91c1c 25%, #dc2626 50%, #b91c1c 75%, #991b1b 100%);
  border-bottom: 2px solid #7f1d1d;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 35;
}

.ticker-track {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
}

.ticker-content {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  white-space: nowrap;
  animation: ticker-slide 30s linear infinite;
  will-change: transform;
}

.ticker-wrap:hover .ticker-content {
  animation-play-state: paused;
}

@keyframes ticker-slide {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* ---- Homepage Main Live Announcement Ticker Ribbon (Red & White Brand Identity) ---- */
.home-ticker-ribbon {
  background: linear-gradient(90deg, #991b1b 0%, #b91c1c 25%, #dc2626 50%, #b91c1c 75%, #991b1b 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 2px solid #7f1d1d;
  box-shadow: 0 2px 10px rgba(185, 28, 28, 0.35);
  overflow: hidden;
  position: relative;
  z-index: 25;
}

.home-ticker-track {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
}

.home-ticker-content {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  white-space: nowrap;
  animation: home-ticker-slide 34s linear infinite;
  will-change: transform;
  color: #ffffff;
}

.home-ticker-ribbon:hover .home-ticker-content {
  animation-play-state: paused;
}

@keyframes home-ticker-slide {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}



/* ============================================================
   AUTO-HIDE HEADER ON SCROLL DOWN, REAPPEAR ON SCROLL UP
   ============================================================ */
.autohide-header {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              margin-top 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease;
  will-change: transform, margin-top, opacity;
  overflow: hidden;
}

.autohide-header.header-hidden {
  transform: translateY(-100%);
  margin-top: -68px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 639px) {
  .autohide-header.header-hidden {
    margin-top: -64px;
  }
}

.sticky-nav-wrapper {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 45 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  will-change: transform;
}
.sticky-nav-wrapper.nav-hidden {
  transform: none !important;
}

/* ============================================================
   MOBILE SLIDER DRAWER NAVIGATION (ADMIN & STUDENT PORTALS)
   ============================================================ */
.portal-mobile-slider-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 82vw;
  max-width: 320px;
  background: #ffffff;
  z-index: 100000;
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.portal-mobile-slider-drawer.open {
  transform: translateX(0);
}

.portal-mobile-slider-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.portal-mobile-slider-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.875rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: left;
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
  color: #334155;
  transition: all 0.18s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.drawer-nav-item:hover, .drawer-nav-item:active {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.drawer-nav-item.active {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  border-color: #1d4ed8;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
}

.drawer-nav-item.active svg,
.drawer-nav-item.active span {
  color: #ffffff;
}

/* ============================================================
   MATHEMATICAL EQUATION TOOLBAR & DISPLAY (WINDOWS 11 NATIVE)
   ============================================================ */
.math-equation-text {
  font-family: 'Cambria Math', 'Segoe UI Variable', 'Segoe UI Symbol', 'Inter', sans-serif;
  letter-spacing: 0.01em;
}

.math-toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  font-family: 'Cambria Math', 'Segoe UI Symbol', 'Segoe UI Variable', 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
}

.math-toolbar-btn:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(37,99,235,0.15);
}

.math-toolbar-btn:active {
  transform: translateY(0);
  background: #dbeafe;
}

.math-quick-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.45rem;
  padding: 0 0.35rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 0.25rem;
  font-family: 'Cambria Math', 'Segoe UI Symbol', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  transition: all 0.12s ease;
  cursor: pointer;
}

.math-quick-tag:hover {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}

/* ============================================================
   HOMEPAGE PREMIUM ELEVATION & ATTRACTIVE VISUAL ACCENTS
   ============================================================ */

/* Shimmer animated pill badge */
.shimmer-badge {
  position: relative;
  overflow: hidden;
}
.shimmer-badge::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: rotate(25deg);
  animation: shimmer-sweep 3.8s infinite;
}
@keyframes shimmer-sweep {
  0% { left: -70%; }
  30%, 100% { left: 140%; }
}

/* Gradient card with neon-like border glow */
.gradient-border-card {
  position: relative;
  border-radius: 1.5rem;
  background: #ffffff;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.gradient-border-card::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, #2563eb 0%, #8b5cf6 50%, #10b981 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.gradient-border-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(37, 99, 235, 0.2), 0 0 20px rgba(99, 102, 241, 0.1);
}

/* Featured Course Card on Homepage */
.course-card-homepage {
  background: #ffffff;
  border: 1px solid rgba(219, 234, 254, 0.9);
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(30, 58, 138, 0.05);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.course-card-homepage:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -8px rgba(37, 99, 235, 0.14), 0 0 15px rgba(59, 130, 246, 0.08);
  border-color: #93c5fd;
}

/* Stat Card Premium Glow */
.stat-card-premium {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 1.25rem;
  padding: 1.25rem 1rem;
  border: 1px solid rgba(219, 234, 254, 0.85);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}
.stat-card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -6px rgba(37, 99, 235, 0.16);
}

/* WhatsApp hero button */
.btn-whatsapp-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.4rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}
.btn-whatsapp-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.45);
  filter: brightness(1.05);
}

/* ============================================================
   WHOLE-PAGE PREMIUM VISUAL ELEVATION SYSTEM
   ============================================================ */

/* Section glowing pill badges */
.section-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.95rem;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95) 0%, rgba(245, 243, 255, 0.95) 100%);
  border: 1px solid rgba(147, 197, 253, 0.8);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #1e40af;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.08);
  margin-bottom: 0.75rem;
}

/* Modern Elevated Feature Card for Why Choose Us */
.feature-card-elevated {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.25rem;
  padding: 1.65rem 1.5rem;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.feature-card-elevated::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #4f46e5);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.feature-card-elevated:hover {
  transform: translateY(-5px);
  border-color: #93c5fd;
  box-shadow: 0 18px 36px -10px rgba(37, 99, 235, 0.15), 0 0 1px rgba(37, 99, 235, 0.2);
}
.feature-card-elevated:hover::after {
  opacity: 1;
}

/* Glowing icon halo */
.icon-halo-blue    { box-shadow: 0 8px 18px -4px rgba(37, 99, 235, 0.38); }
.icon-halo-emerald { box-shadow: 0 8px 18px -4px rgba(16, 185, 129, 0.38); }
.icon-halo-indigo  { box-shadow: 0 8px 18px -4px rgba(79, 70, 229, 0.38); }
.icon-halo-amber   { box-shadow: 0 8px 18px -4px rgba(245, 158, 11, 0.38); }
.icon-halo-purple  { box-shadow: 0 8px 18px -4px rgba(168, 85, 247, 0.38); }
.icon-halo-teal    { box-shadow: 0 8px 18px -4px rgba(20, 184, 166, 0.38); }

/* Faculty Masterpiece Showcase Card */
.faculty-showcase-master {
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid rgba(191, 219, 254, 0.95);
  border-radius: 1.75rem;
  padding: 2rem;
  box-shadow: 0 20px 45px -12px rgba(30, 58, 138, 0.10), 0 0 0 1px rgba(239, 246, 255, 0.8);
  position: relative;
  overflow: hidden;
}
.faculty-showcase-master::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  height: 380px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Review Card Elevated */
.review-card-elevated {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.35rem;
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.review-card-elevated:hover {
  transform: translateY(-5px);
  border-color: #93c5fd;
  box-shadow: 0 20px 38px -10px rgba(37, 99, 235, 0.14);
}

/* Environment tile elevated */
.facility-tile-elevated {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 1.15rem;
  padding: 1.35rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  transition: all 0.24s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.facility-tile-elevated:hover {
  transform: translateY(-3px);
  border-color: #bfdbfe;
  box-shadow: 0 12px 24px -6px rgba(37, 99, 235, 0.10);
}

/* Section 4: Modern Luminous Stat Cards */
.stat-card-glow {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.25rem;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}
.stat-card-glow:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.18);
  border-color: #93c5fd;
}
.stat-card-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.8;
}

/* Section 5: Academic Pathway Track Cards */
.pathway-track-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.35rem;
  padding: 1.5rem;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.pathway-track-card:hover {
  transform: translateY(-5px);
  border-color: #93c5fd;
  box-shadow: 0 22px 45px -10px rgba(37, 99, 235, 0.16);
}
.pathway-track-card:hover .track-link-arrow {
  transform: translateX(4px);
  color: #1d4ed8;
}
.track-link-arrow {
  transition: transform 0.2s ease, color 0.2s ease;
}




