/* ==========================================================================
   BT COACHING — DESIGN TOKENS & SYSTEM (v2)
   Strict adherence to PRD & AGENTS.md guardrails:
   - Palette: maroon #701010, crimson #CC0000, ink #1A1A1A, cream/white, yellow #FFD700 (badges ONLY)
   - Fonts: Noto Serif Bengali (Display) + Hind Siliguri (Body) [Max 2 families, max 3 weights: 400, 600, 700]
   - Fluid typography with clamp()
   - WCAG AA contrast compliance across all text and interactive states
   ========================================================================== */

:root {
  /* Brand Colors (Locked) */
  --brand: #701010;
  --brand-dark: #4A0A0A;
  --brand-deep: #2A0404;
  --brand-light: #8C1919;
  --crimson-band: linear-gradient(180deg, #8B0F0F 0%, #A31212 100%);
  --maroon-band: linear-gradient(180deg, #4A0A0A 0%, #5E0C0C 100%);
  --accent: #CC0000;
  --accent-hover: #A30000;
  --ink: #1A1A1A;
  --ink-muted: #4B5563; /* 7.0:1 contrast on white (WCAG AAA) */
  --ink-subtle: #6B7280; /* 4.6:1 contrast on white (WCAG AA) */
  
  --bg-page: #4A0A0A;
  --bg-cream: #FFF9F2;
  --bg-surface: #FAFAFA;
  --bg-card: #FFFFFF;
  
  /* Yellow Strictly for Badges/Stickers + Primary CTA on red bands */
  --pop: #FFD700;
  --pop-hover: #FFE033;
  --pop-text: #111111; /* 12.8:1 contrast on #FFD700 */

  /* Semantic Feedback Colors */
  --success: #065F46;
  --success-bg: #ECFDF5;
  --success-border: #A7F3D0;
  --error: #B91C1C;
  --error-bg: #FEF2F2;
  --error-border: #FECACA;
  
  --whatsapp-green: #25D366;
  --border-subtle: #E5E7EB;
  --border-focus: #CC0000;

  /* Typography Scale (Fluid clamp) */
  --font-display: 'Noto Serif Bengali', serif;
  --font-body: 'Hind Siliguri', system-ui, -apple-system, sans-serif;
  --font-eng-num: system-ui, -apple-system, sans-serif;

  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem); /* 12-13px */
  --text-sm: clamp(0.84375rem, 0.8rem + 0.22vw, 0.9375rem); /* 13.5-15px */
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem); /* 16-17px */
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem); /* 18-20px */
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.45rem); /* 20-23px */
  --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.85rem); /* 24-30px */
  --text-3xl: clamp(1.85rem, 1.6rem + 1.2vw, 2.35rem); /* 30-38px */
  --text-4xl: clamp(2.25rem, 1.85rem + 1.8vw, 3rem); /* 36-48px */

  /* Spacing Rhythm */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Elevations */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 14px rgba(112, 16, 16, 0.08);
  --shadow-lg: 0 10px 28px rgba(112, 16, 16, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --container-max: 1120px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 115px; /* Offset for sticky header */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
  background: linear-gradient(180deg, #4A0A0A 0%, #701010 100%);
  background-color: #4A0A0A;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 74px; /* Space for mobile sticky bottom bar */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.eng-num {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-eng-num);
  font-weight: 700;
}

/* Section Anchor Offset */
section[id] {
  scroll-margin-top: 115px;
}

/* ==========================================================================
   1. STICKY SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 95;
  background-color: rgba(56, 5, 5, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

/* Top Announcement / Contact Bar */
.top-bar {
  background-color: #2D0404;
  color: #FFFFFF;
  font-size: var(--text-xs);
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.top-bar-item .icon {
  width: 0.95rem;
  height: 0.95rem;
  fill: var(--pop);
  flex-shrink: 0;
}

.top-link {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
}

.top-link:hover, .top-link:focus-visible {
  text-decoration: underline;
  color: var(--pop);
}

.top-bar-divider {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
}

@media (max-width: 640px) {
  .hide-sm {
    display: none;
  }
}

/* Main Navigation */
.main-nav {
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

/* Nav Brand Logo */
.nav-brand {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  line-height: 1;
}

.nav-logo-bt {
  background-color: var(--ink);
  color: #FFFFFF;
  padding: 0.35rem 0.65rem;
}

.nav-logo-coaching {
  background-color: var(--accent);
  color: #FFFFFF;
  padding: 0.35rem 0.75rem;
}

/* Hamburger Toggle Button */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  color: #FFFFFF;
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open .hamburger-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.is-open .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .hamburger-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Nav Menu Drawer (Mobile) */
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #380505;
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  padding: 1.25rem 1.25rem 1.5rem;
  flex-direction: column;
  gap: 1rem;
}

.nav-menu.is-open {
  display: flex;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-link {
  display: block;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover, .nav-link:focus-visible {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--pop);
}

.nav-cta-wrap {
  margin-top: 0.5rem;
}

.btn-nav-cta {
  width: 100%;
  text-align: center;
  background-color: var(--pop);
  color: #111111;
  font-weight: 700;
  border: 1px solid var(--pop);
}

.btn-nav-cta:hover, .btn-nav-cta:focus-visible {
  background-color: var(--pop-hover);
  color: #111111;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}

/* Desktop Navigation (>= 860px) */
@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    position: static;
    border-bottom: none;
    box-shadow: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    background-color: transparent;
  }

  .nav-links {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }

  .nav-link {
    padding: 0.4rem 0.75rem;
    font-size: var(--text-sm);
    color: #FFFFFF;
  }

  .nav-link:hover, .nav-link:focus-visible {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--pop);
  }

  .nav-cta-wrap {
    margin-top: 0;
  }

  .btn-nav-cta {
    width: auto;
  }
}

/* ==========================================================================
   2. HERO SECTION
   Layered Maroon Gradient + Subtle CSS Pattern (No images)
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: #4A0A0A;
  background: 
    radial-gradient(circle at 50% 15%, rgba(204, 0, 0, 0.35) 0%, transparent 65%),
    radial-gradient(circle at 10% 85%, rgba(35, 4, 4, 0.9) 0%, transparent 55%),
    radial-gradient(circle at 90% 15%, rgba(35, 4, 4, 0.9) 0%, transparent 55%),
    linear-gradient(135deg, #5C0D0D 0%, #380505 100%);
  color: #FFFFFF;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 4.5rem);
  text-align: center;
  border-bottom: 3px solid var(--accent);
  overflow: hidden;
}

.hero-pattern-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(0, 0, 0, 0.45);
  color: #FFFFFF;
  padding: 0.4rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.since-text {
  font-family: var(--font-eng-num);
  letter-spacing: 0.05em;
  color: var(--pop);
  font-weight: 700;
  font-size: var(--text-sm);
}

.badge-separator {
  color: rgba(255, 255, 255, 0.4);
}

.anniversary-text {
  font-family: var(--font-body);
  color: #FFFFFF;
}

.slogan-ribbon {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--pop);
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Single Semantic H1 containing the authentic poster split-badge */
.hero-title {
  margin-bottom: 1.25rem;
}

.logo-split-badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.logo-bt {
  background-color: #111111;
  color: #FFFFFF;
  padding: 0.45rem 1.25rem;
  display: inline-block;
}

.logo-coaching {
  background-color: var(--accent);
  color: #FFFFFF;
  padding: 0.45rem 1.35rem;
  display: inline-block;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--pop);
  margin-bottom: 0.85rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  text-wrap: balance;
}

.hero-subtext {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.92); /* 10.3:1 contrast against dark maroon */
  max-width: 620px;
  margin-bottom: 2rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ==========================================================================
   Buttons System
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 48px;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.35);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background-color: var(--accent-hover);
  box-shadow: 0 6px 16px rgba(204, 0, 0, 0.45);
}

.btn-hero-primary {
  background-color: var(--pop);
  color: #111111;
  border: 2px solid var(--pop);
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.btn-hero-primary:hover, .btn-hero-primary:focus-visible {
  background-color: var(--pop-hover);
  border-color: var(--pop-hover);
  color: #111111;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

.btn-outline {
  background-color: #FFFFFF;
  color: var(--brand);
  border-color: var(--brand);
}

.btn-outline:hover, .btn-outline:focus-visible {
  background-color: var(--brand);
  color: #FFFFFF;
}

.btn-hero-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
}

.btn-hero-secondary:hover, .btn-hero-secondary:focus-visible {
  background-color: #FFFFFF;
  color: var(--brand);
  border-color: #FFFFFF;
}

.btn-icon {
  width: 1.2rem;
  height: 1.2rem;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: var(--text-sm);
  min-height: 38px;
}

/* ==========================================================================
   3. ADMISSION NOTICE STRIP (भर्তি চলছে)
   ========================================================================== */
.notice-strip {
  background-color: #2D0404;
  color: #FFFFFF;
  padding: 0.65rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 2px solid var(--accent);
}

.notice-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.notice-badge {
  background-color: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  animation: pulse-badge 2s infinite ease-in-out;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.notice-ticker {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.notice-text {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: #FFFFFF;
  animation: ticker 28s linear infinite;
}

.notice-ticker:hover .notice-text,
.notice-ticker:focus-within .notice-text {
  animation-play-state: paused;
}

@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .notice-text {
    animation: none;
    white-space: normal;
  }
  .notice-badge {
    animation: none;
  }
}

/* ==========================================================================
   Section Headers (Consistent Typography & Spacing Rhythm)
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.section-tag {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.35);
  color: var(--pop);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-2);
  border: 1px solid rgba(255, 215, 0, 0.35);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: var(--space-2);
  text-wrap: balance;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.section-desc {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: #FFF6EA;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-wrap: pretty;
  opacity: 0.95;
}

/* ==========================================================================
   4. COURSES GRID
   ========================================================================== */
.courses-section {
  padding: var(--space-12) 0;
  background: linear-gradient(180deg, #8B0F0F 0%, #A31212 100%);
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .courses-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.course-card {
  background-color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.4);
}

.course-highlight {
  border: 2px solid var(--pop);
  background-image: linear-gradient(to bottom, #FFFDFB, #FFFFFF);
}

.course-card-top {
  padding: 1.25rem 1.25rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.mode-badge {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
}

.badge-regular {
  background-color: #EEEEEE;
  color: #333333;
}

.badge-special {
  background-color: var(--brand);
  color: #FFFFFF;
}

.badge-admission {
  background-color: var(--accent);
  color: #FFFFFF;
}

.course-grade-pills {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.grade-pill {
  background-color: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

.grade-pill-and {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--ink);
}

.exam-badge-pop {
  background-color: #111111;
  color: var(--pop);
  font-family: var(--font-eng-num);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  letter-spacing: 0.05em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.exam-badge-dark {
  background-color: var(--brand);
  color: #FFFFFF;
  font-family: var(--font-eng-num);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  letter-spacing: 0.05em;
}

.course-body {
  padding: 1rem 1.25rem;
  flex: 1;
}

.course-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.course-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.course-points {
  list-style: none;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: #333333;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.course-points li {
  position: relative;
  padding-left: 1.1rem;
}

.course-points li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
}

.course-footer {
  padding: 0.85rem 1.25rem 1.25rem;
}

.btn-card-action {
  display: block;
  text-align: center;
  background-color: var(--accent);
  color: #FFFFFF;
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 0.65rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(204, 0, 0, 0.25);
}

.btn-card-action:hover, .btn-card-action:focus-visible {
  background-color: var(--accent-hover);
  color: #FFFFFF;
  border-color: var(--accent-hover);
  box-shadow: 0 4px 10px rgba(163, 0, 0, 0.35);
}

/* ==========================================================================
   5. FEATURES ICON-GRID
   ========================================================================== */
.features-section {
  padding: var(--space-12) 0;
  background: linear-gradient(180deg, #4A0A0A 0%, #5E0C0C 100%);
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.features-card-wrapper {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
}

@media (min-width: 768px) {
  .features-card-wrapper {
    padding: 3rem 2.5rem;
  }
}

.features-header-badge {
  text-align: center;
  margin-bottom: 2.5rem;
}

.pill-badge {
  display: inline-block;
  background-color: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  padding: 0.45rem 1.5rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 8px rgba(204, 0, 0, 0.25);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-item {
  text-align: center;
  padding: 1rem;
}

.feature-icon-box {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background-color: rgba(204, 0, 0, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 2px solid rgba(204, 0, 0, 0.15);
}

.feature-icon-box svg {
  width: 32px;
  height: 32px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ==========================================================================
   6. QUIZ WIDGET (Generic GK Practice - Brand Engagement)
   ========================================================================== */
.quiz-section {
  padding: var(--space-12) 0;
  background: linear-gradient(180deg, #8B0F0F 0%, #A31212 100%);
  border-top: none;
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.quiz-disclaimer {
  max-width: 600px;
  margin: 0.75rem auto 0;
  background-color: rgba(0, 0, 0, 0.35);
  border-left: 3px solid var(--pop);
  padding: 0.5rem 0.85rem;
  font-size: var(--text-xs);
  color: #FFF6EA;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  text-align: left;
}

.quiz-container {
  max-width: 740px;
  margin: 0 auto;
}

.quiz-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.quiz-card {
  background-color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quiz-card:hover {
  box-shadow: var(--shadow-md);
}

.quiz-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.quiz-q-num {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--brand);
  background-color: var(--bg-cream);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.quiz-badge-gk {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-subtle);
}

.quiz-question-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .quiz-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

.quiz-opt {
  width: 100%;
  text-align: left;
  background-color: #FAFAFA;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  min-height: 48px;
}

.quiz-opt:hover:not([disabled]), .quiz-opt:focus-visible:not([disabled]) {
  background-color: var(--bg-cream);
  border-color: var(--brand);
  color: var(--brand);
}

/* Quiz Answer States */
.quiz-opt.opt-correct {
  background-color: var(--success-bg) !important;
  border-color: var(--success) !important;
  color: var(--success) !important;
  font-weight: 700;
}

.quiz-opt.opt-incorrect {
  background-color: var(--error-bg) !important;
  border-color: var(--error) !important;
  color: var(--error) !important;
  font-weight: 700;
}

.quiz-opt[disabled] {
  cursor: default;
  opacity: 0.85;
}

.quiz-feedback {
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
}

.quiz-feedback.is-correct {
  background-color: var(--success-bg);
  color: var(--success);
  border-left: 3px solid var(--success);
}

.quiz-feedback.is-incorrect {
  background-color: var(--error-bg);
  color: var(--error);
  border-left: 3px solid var(--error);
}

/* Quiz Score Card */
.quiz-score-card {
  background-color: #FFFFFF;
  border: 2px solid rgba(112, 16, 16, 0.15);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  margin-top: 1.5rem;
}

.quiz-score-card .btn-primary {
  background-color: var(--accent);
  color: #FFFFFF;
  border: 2px solid var(--accent);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.35);
}

.quiz-score-card .btn-primary:hover, .quiz-score-card .btn-primary:focus-visible {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #FFFFFF;
}

.score-icon-bubble {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.score-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.score-summary {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.score-message {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   7. RESULTS (AUTHENTIC EMPTY STATE ONLY)
   ========================================================================== */
.results-section {
  padding: var(--space-12) 0;
  background: linear-gradient(180deg, #4A0A0A 0%, #5E0C0C 100%);
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.results-empty-card {
  background-color: #FFFFFF;
  border: 2px dashed #C4A4A4;
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.results-empty-card .btn {
  background-color: var(--accent);
  color: #FFFFFF;
  border: 2px solid var(--accent);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.25);
}

.results-empty-card .btn:hover, .results-empty-card .btn:focus-visible {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #FFFFFF;
}

.empty-icon-bubble {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.25rem;
  background-color: rgba(112, 16, 16, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.empty-icon-bubble svg {
  width: 36px;
  height: 36px;
}

.empty-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.empty-desc {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink-muted);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* ==========================================================================
   8. CONTACT CARD
   ========================================================================== */
.contact-section {
  padding: var(--space-12) 0;
  background: linear-gradient(180deg, #8B0F0F 0%, #A31212 100%);
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 840px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
}

.branch-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 2px solid var(--bg-cream);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.pin-icon {
  width: 2rem;
  height: 2rem;
  fill: var(--accent);
  flex-shrink: 0;
}

.branch-heading h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--brand);
}

.branch-sub {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.contact-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-detail-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.detail-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--brand);
}

.detail-val {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--ink);
  line-height: 1.5;
}

.phone-link {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.phone-link:hover, .phone-link:focus-visible {
  text-decoration: underline;
}

.social-fb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #1877F2;
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
}

.social-fb-link:hover, .social-fb-link:focus-visible {
  text-decoration: underline;
}

.fb-svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-map-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  min-height: 350px;
}

.contact-map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
}

/* ==========================================================================
   9. LEAD FORM (WhatsApp Redirect & Inline Validation)
   ========================================================================== */
.lead-form-section {
  padding: var(--space-12) 0;
  background: linear-gradient(180deg, #4A0A0A 0%, #540B0B 100%);
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.lead-form-container {
  max-width: 640px;
}

.form-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  padding: 2.25rem 1.5rem;
}

@media (min-width: 640px) {
  .form-card {
    padding: 2.75rem 2.25rem;
  }
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-pill-badge {
  display: inline-block;
  background-color: var(--brand);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.form-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.form-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.admission-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}

.required {
  color: var(--accent);
}

.form-input, .form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #D1D5DB;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem; /* 16px min to prevent auto zoom on mobile */
  color: var(--ink);
  background-color: #FAFAFA;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 48px;
}

.form-input::placeholder {
  color: #6B7280;
  opacity: 1;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.15);
}

.form-input.is-invalid, .form-select.is-invalid {
  border-color: var(--error);
  background-color: var(--error-bg);
}

.error-msg {
  display: none;
  color: var(--error);
  font-size: var(--text-xs);
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.3;
}

.error-msg.visible {
  display: block;
}

.btn-submit {
  width: 100%;
  background-color: #075E54;
  color: #FFFFFF;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 12px rgba(7, 94, 84, 0.25);
  font-size: var(--text-base);
  font-weight: 700;
}

.btn-submit:hover, .btn-submit:focus-visible {
  background-color: #128C7E;
  box-shadow: 0 6px 16px rgba(7, 94, 84, 0.35);
}

.wa-icon-btn {
  width: 1.4rem;
  height: 1.4rem;
  fill: #25D366;
  flex-shrink: 0;
}

.form-privacy-note {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--ink-subtle);
  text-align: center;
  margin-top: 0.5rem;
}

/* Success Feedback State */
.form-feedback {
  background-color: var(--success-bg);
  border: 1.5px solid var(--success-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
}

.form-feedback.hidden, .quiz-feedback.hidden, .quiz-score-card.hidden {
  display: none;
}

.success-icon {
  width: 48px;
  height: 48px;
  background-color: #10B981;
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.form-feedback h4 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: #065F46;
  margin-bottom: 0.5rem;
}

.success-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: #047857;
  margin-bottom: 1rem;
}

.success-phone-prompt {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: #065F46;
  margin-top: 1.25rem;
}

.phone-highlight {
  font-weight: 700;
  text-decoration: underline;
}

/* ==========================================================================
   10. SITE FOOTER
   ========================================================================== */
.site-footer {
  background-color: #260303;
  color: #FFFFFF;
  padding-top: var(--space-12);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-logo {
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
}

.footer-logo .logo-bt {
  background-color: #000000;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--pop);
  margin-bottom: 0.35rem;
}

.footer-experience {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
}

.footer-office {
  max-width: 420px;
}

.office-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.15);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: #FFFFFF;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.footer-address {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.footer-phones {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.9);
}

.footer-phones a {
  color: var(--pop);
  font-weight: 700;
}

.footer-phones a:hover {
  text-decoration: underline;
}

/* Red Bottom Bar (Poster Signature) */
.footer-bottom-bar {
  background-color: var(--accent);
  color: #FFFFFF;
  font-size: var(--text-xs);
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  font-family: var(--font-body);
}

@media (min-width: 640px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-fb-link {
  color: #FFFFFF;
  text-decoration: underline;
  opacity: 0.9;
}

.footer-fb-link:hover {
  opacity: 1;
}

/* ==========================================================================
   11. MOBILE STICKY BOTTOM BAR
   ========================================================================== */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #260303;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
  display: flex;
  z-index: 90;
  border-top: 2px solid var(--accent);
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.sticky-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  text-decoration: none;
  min-height: 52px;
}

.sticky-call {
  background-color: var(--brand);
  color: #FFFFFF;
}

.sticky-call svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: var(--pop);
}

.sticky-apply {
  background-color: var(--accent);
  color: #FFFFFF;
}

.sticky-apply svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: #FFFFFF;
}

/* ==========================================================================
   12. FLOATING WHATSAPP BUBBLE
   ========================================================================== */
.floating-wa-bubble {
  position: fixed;
  bottom: 84px; /* Above mobile sticky bar */
  right: 18px;
  width: 58px;
  height: 58px;
  background-color: var(--whatsapp-green);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  z-index: 92;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

@media (min-width: 768px) {
  .floating-wa-bubble {
    bottom: 24px;
    right: 24px;
  }
}

.floating-wa-bubble:hover, .floating-wa-bubble:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
}

.floating-wa-bubble svg {
  width: 32px;
  height: 32px;
  fill: #FFFFFF;
}

.bubble-tooltip {
  position: absolute;
  right: 68px;
  background-color: #111111;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  pointer-events: none;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-wa-bubble:hover .bubble-tooltip,
.floating-wa-bubble:focus-visible .bubble-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   13. ACCESSIBILITY, FOCUS & REDUCED MOTION
   ========================================================================== */
a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
select:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
