/* ==========================================================================
   MODERN GLOBAL EDUVERE (MG EDUVERSE) — UNIQUE HIGH-PERFORMANCE DESIGN SYSTEM
   Aesthetic Identity: Cyber Obsidian & Electric Royal Violet with Solar Amber & Laser Cyan
   Inspired by: PW.live (Physics Wallah) — High-Conversion, Rich EdTech Architecture
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   Design System Tokens (Dual-Theme: Light & Dark)
   ========================================================================== */
:root {
  /* LIGHT MODE (Porcelain Frost Canvas & Elevated Glass Cards) */
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-glass: rgba(255, 255, 255, 0.88);
  --bg-surface-subtle: #f1f5f9;
  --bg-card-contrast: #ffffff;
  
  --border-subtle: rgba(226, 232, 240, 0.85);
  --border-medium: #cbd5e1;
  --border-focus: #6366f1;
  --border-glow: rgba(99, 102, 241, 0.2);

  --text-primary: #090d16;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-on-dark: #ffffff;

  /* Signature Electric Palette */
  --brand-violet: #6366f1;
  --brand-violet-dark: #4f46e5;
  --brand-violet-deep: #4338ca;
  --brand-violet-light: #e0e7ff;
  --brand-violet-glow: rgba(99, 102, 241, 0.35);

  --brand-cyan: #06b6d4;
  --brand-cyan-dark: #0284c7;
  --brand-cyan-light: #e0f2fe;

  --accent-amber: #f59e0b;
  --accent-amber-light: #fef3c7;
  --accent-amber-glow: rgba(245, 158, 11, 0.3);

  --accent-emerald: #10b981;
  --accent-emerald-light: #d1fae5;

  --accent-rose: #ef4444;
  --accent-rose-light: #fee2e2;

  /* High Impact Brand Gradients */
  --grad-hero: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
  --grad-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  --grad-brand-btn: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #7c3aed 100%);
  --grad-amber-btn: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --grad-cyan-badge: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  --grad-dark-surface: linear-gradient(145deg, #0e1424 0%, #080c16 100%);
  --grad-banner: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(6, 182, 212, 0.06) 50%, rgba(245, 158, 11, 0.06) 100%);

  /* Elevation Shadows */
  --shadow-sm: 0 2px 6px -1px rgba(15, 23, 42, 0.06), 0 1px 3px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 20px -3px rgba(15, 23, 42, 0.07), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 30px -6px rgba(15, 23, 42, 0.09), 0 8px 12px -4px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 24px 40px -10px rgba(99, 102, 241, 0.18), 0 10px 15px -3px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --transition-fast: 0.16s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   DARK MODE (Cosmic Obsidian & Deep Nebula Canvas)
   ========================================================================== */
[data-theme="dark"] {
  --bg-canvas: #070a12;
  --bg-surface: #0e1424;
  --bg-surface-elevated: #141c30;
  --bg-surface-glass: rgba(14, 20, 36, 0.88);
  --bg-surface-subtle: #10182b;
  --bg-card-contrast: #111a2f;

  --border-subtle: rgba(51, 65, 85, 0.55);
  --border-medium: #334155;
  --border-focus: #818cf8;
  --border-glow: rgba(99, 102, 241, 0.4);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --text-on-dark: #ffffff;

  --brand-violet-light: rgba(99, 102, 241, 0.18);
  --brand-cyan-light: rgba(6, 182, 212, 0.18);
  --accent-amber-light: rgba(245, 158, 11, 0.18);
  --accent-emerald-light: rgba(16, 185, 129, 0.18);
  --accent-rose-light: rgba(239, 68, 68, 0.18);

  --grad-card: linear-gradient(145deg, #10192e 0%, #0c1322 100%);
  --grad-banner: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.1) 50%, rgba(245, 158, 11, 0.08) 100%);

  --shadow-sm: 0 2px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 22px -4px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 22px 35px -8px rgba(0, 0, 0, 0.7);
  --shadow-hover: 0 25px 45px -8px rgba(99, 102, 241, 0.35);
  --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.45);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

a {
  color: var(--brand-violet);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-violet-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   1. TOP LIVE TICKER / ANNOUNCEMENT BAR (Maximum Light Theme)
   ========================================================================== */
.top-live-ticker {
  background: #f8fafc;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  z-index: 1050;
}

.ticker-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.ticker-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #ef4444;
  border-radius: 50%;
  animation: pulse-dot-anim 1.5s infinite;
}

@keyframes pulse-dot-anim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.ticker-text {
  color: #334155;
}

.ticker-coupon {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 1px 7px;
  border-radius: 4px;
  font-weight: 800;
  margin-left: 4px;
  letter-spacing: 0.04em;
}

.ticker-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}

.ticker-contact-link {
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.ticker-contact-link:hover {
  color: var(--brand-violet);
}

/* ==========================================================================
   2. SITE HEADER & NAVIGATION (Glassmorphic & Crisp)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1040;
  background-color: var(--bg-surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
  padding: 11px 0;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  border-bottom-color: var(--border-medium);
}

.brand-wrapper {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 56px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-wrapper:hover .brand-logo-img {
  transform: scale(1.02);
}

/* Center Nav Pills */
.nav-links-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-subtle);
  padding: 4px 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.nav-pill-link {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.nav-pill-link:hover {
  color: var(--brand-violet);
  background-color: rgba(99, 102, 241, 0.08);
}

.nav-pill-link.active {
  background: var(--brand-violet);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

/* Header Batches & Tests Dropdown Fixes (Requirement 3) */
.header-nav-dropdown-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none !important;
  box-shadow: none;
}

.header-nav-dropdown-btn::after {
  display: none !important; /* Remove bootstrap duplicate caret */
}

.header-nav-dropdown-btn .nav-dropdown-arrow {
  font-size: 11px;
  transition: transform 0.2s ease;
  display: inline-block;
  margin-left: 2px;
}

.header-nav-dropdown-btn[aria-expanded="true"] .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.header-nav-dropdown-btn.active {
  background: var(--brand-violet) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35) !important;
}

.header-nav-dropdown-btn.active .nav-dropdown-arrow {
  color: #ffffff !important;
}

/* Custom Nav Dropdown Menu & Items */
.nav-custom-dropdown-menu {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08)) !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12) !important;
  padding: 8px;
  animation: navDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes navDropdownFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-dropdown-item {
  border-radius: 12px;
  transition: all 0.15s ease;
  color: var(--text-main, #0f172a);
}

.nav-dropdown-item:hover {
  background-color: var(--bg-surface-subtle, rgba(99, 102, 241, 0.06));
}

.nav-dropdown-item.is-active {
  background-color: rgba(99, 102, 241, 0.1) !important;
}

.nav-dropdown-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.nav-dropdown-title {
  font-size: 14px;
  color: var(--text-main, #0f172a);
  line-height: 1.3;
}

.nav-dropdown-subtitle {
  font-size: 11.5px;
  color: var(--text-secondary, #64748b);
  display: block;
}

[data-theme="dark"] .nav-custom-dropdown-menu {
  background: #111827 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .nav-dropdown-title {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .nav-dropdown-subtitle {
  color: #94a3b8 !important;
}

[data-theme="dark"] .nav-dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.07) !important;
}

[data-theme="dark"] .nav-dropdown-item.is-active {
  background-color: rgba(99, 102, 241, 0.25) !important;
}


/* Category Mega Dropdown Trigger */
.btn-category-select {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--brand-violet-dark);
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

[data-theme="dark"] .btn-category-select {
  color: #a5b4fc;
}

.btn-category-select:hover {
  background: var(--brand-violet);
  color: #ffffff !important;
  border-color: var(--brand-violet);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

/* Right Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle-btn {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  color: var(--brand-violet);
  border-color: var(--brand-violet);
  transform: rotate(18deg);
}

.btn-nav-login {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-medium);
  padding: 7px 18px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-nav-login:hover {
  color: var(--brand-violet);
  border-color: var(--brand-violet);
  background: var(--brand-violet-light);
}

.btn-nav-join {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff !important;
  background: var(--grad-brand-btn);
  padding: 8.5px 22px;
  border-radius: var(--radius-full);
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: all var(--transition-fast);
}

.btn-nav-join:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.5);
}

.mobile-nav-toggle {
  display: none;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 22px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   3. HERO SECTION (Dynamic, Bold, PW EdTech Energy)
   ========================================================================= */
.hero-section {
  position: relative;
  padding: 44px 0 36px 0;
  background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 70%, rgba(6, 182, 212, 0.08) 0%, transparent 45%);
}

.hero-main-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  padding: 44px 48px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.hero-main-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.badge-student-portal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--brand-violet-dark);
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

[data-theme="dark"] .badge-student-portal {
  color: #a5b4fc;
}

.hero-heading {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-bottom: 18px;
}

.text-gradient-violet {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 60%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 30px;
  max-width: 92%;
}

.hero-btn-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.btn-primary-gradient {
  background: var(--grad-brand-btn);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  transition: all var(--transition-fast);
}

.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.55);
}

.btn-secondary-glass {
  background: var(--bg-surface-subtle);
  color: var(--text-primary) !important;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-medium);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-secondary-glass:hover {
  border-color: var(--brand-violet);
  background: rgba(99, 102, 241, 0.08);
  color: var(--brand-violet) !important;
}

.hero-trust-list {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-item i {
  color: var(--accent-emerald);
  font-size: 16px;
}

/* Right Column: 4 KPI Cards */
.hero-side-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.hero-kpi-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-fast);
}

.hero-kpi-card:hover {
  transform: translateX(4px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
}

.kpi-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.kpi-icon-purple {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(124, 58, 237, 0.25) 100%);
  color: #6366f1;
}

.kpi-icon-amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.25) 100%);
  color: #f59e0b;
}

.kpi-icon-cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(2, 132, 199, 0.25) 100%);
  color: #06b6d4;
}

.kpi-icon-mint {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.25) 100%);
  color: #10b981;
}

.kpi-content h4 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 2px;
}

.kpi-content .kpi-title-regular {
  font-size: 16px;
  font-weight: 700;
}

.kpi-content p {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   4. EXAM GOALS & STREAM SELECTOR TABS (PW Live Mega Selector)
   ========================================================================== */
.exam-selector-section {
  padding: 30px 0 10px 0;
}

.stream-filter-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px 14px 2px;
  scrollbar-width: none;
}

.stream-filter-pills::-webkit-scrollbar {
  display: none;
}

.stream-pill-btn {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.stream-pill-btn:hover {
  border-color: var(--brand-violet);
  color: var(--brand-violet);
  transform: translateY(-1px);
}

.stream-pill-btn.active {
  background: var(--brand-violet);
  color: #ffffff !important;
  border-color: var(--brand-violet);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}

/* ==========================================================================
   5. FLAGSHIP BATCH CARDS (Authentic PW Commercial Grid)
   ========================================================================== */
.catalog-section {
  padding: 40px 0 60px 0;
}

.section-head-centered {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 34px auto;
}

.section-pretitle {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--brand-violet);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-main-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-main-desc {
  font-size: 15px;
  color: var(--text-muted);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.course-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  transition: all var(--transition-normal);
}

.course-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: var(--shadow-hover);
}

/* Course Card Thumbnail Wrap (Light Theme) */
.course-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f5f9;
}

.course-card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card:hover .course-card-thumb-img {
  transform: scale(1.05);
}

.course-card-thumb-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.course-card-thumb-badge.popular {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.course-card-thumb-badge.bestseller {
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
}

.course-card-thumb-stream {
  position: absolute;
  bottom: 12px;
  left: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #e2e8f0;
  color: #4338ca;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Card Header */
.course-card-top {
  padding: 18px 22px 14px 22px;
  background: linear-gradient(180deg, var(--bg-surface-subtle) 0%, var(--bg-surface) 100%);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.course-badge-pill {
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.course-badge-pill.popular {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.course-badge-pill.bestseller {
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.course-stream-tag {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-violet);
  margin-bottom: 6px;
}

.course-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 6px;
  padding-right: 50px;
}

.course-card-body {
  padding: 18px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.course-description {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Feature Bullet Checkpoints */
.course-usp-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.course-usp-list li {
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-usp-list li i {
  color: var(--brand-violet);
  font-size: 14px;
}

/* Meta Info Row */
.course-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.course-meta-item {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.course-faculty-info {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-subtle);
}

.course-faculty-info strong {
  color: var(--text-primary);
}

/* Pricing and Enrollment Action */
.course-pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.course-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-current {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

.price-original {
  font-size: 13.5px;
  text-decoration: line-through;
  color: var(--text-muted);
}

.discount-pill {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

[data-theme="dark"] .discount-pill {
  color: #34d399;
}

.btn-enroll-sm {
  background: var(--grad-brand-btn);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8.5px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  transition: all var(--transition-fast);
}

.btn-enroll-sm:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.5);
}

/* ==========================================================================
   6. THE 4 PILLARS OF LEARNING (Why Modern Global Eduvere)
   ========================================================================== */
.pillars-section {
  padding: 60px 0;
  background: var(--bg-surface-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.pillar-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-violet);
  box-shadow: var(--shadow-md);
}

.pillar-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.pillar-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.pillar-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ==========================================================================
   7. HALL OF FAME / TOP RANKERS (PW Social Proof)
   ========================================================================== */
.hall-of-fame-section {
  padding: 70px 0;
}

.rankers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.ranker-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.ranker-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-amber);
  box-shadow: 0 16px 30px rgba(245, 158, 11, 0.15);
}

.ranker-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.rank-badge-ribbon {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000000;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.ranker-avatar-box {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 12px auto;
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ranker-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--brand-violet);
}

.ranker-name {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 2px;
}

.ranker-exam {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-violet);
  margin-bottom: 10px;
}

.ranker-quote {
  font-size: 12.5px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ==========================================================================
   8. FREE RESOURCE HUB (PW Formula Sheets, PYQs, Mock Tests)
   ========================================================================== */
.resources-section {
  padding: 60px 0;
  background: var(--bg-surface-subtle);
  border-top: 1px solid var(--border-subtle);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.resource-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.resource-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-cyan);
  box-shadow: 0 14px 28px rgba(6, 182, 212, 0.15);
}

.resource-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-cyan-light);
  color: var(--brand-cyan-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.resource-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.resource-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.resource-btn {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-cyan-dark);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.resource-btn:hover {
  color: var(--brand-violet);
  gap: 8px;
}

/* ==========================================================================
   9. MOBILE APP DOWNLOAD BANNER (PW App Showcase)
   ========================================================================== */
.app-banner-section {
  padding: 60px 0;
}

.app-banner-card {
  background: linear-gradient(135deg, #090e1a 0%, #1e1b4b 60%, #0c1527 100%);
  border-radius: var(--radius-xl);
  padding: 48px 52px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 36px;
}

.app-banner-card::after {
  content: "";
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.app-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fef08a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.app-banner-title {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 14px;
}

.app-banner-desc {
  font-size: 15px;
  color: #cbd5e1;
  margin-bottom: 24px;
  max-width: 90%;
}

.app-usp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  color: #f1f5f9;
}

.app-chip i {
  color: #38bdf8;
}

.app-download-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-store {
  background: #000000;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-store:hover {
  background: #1e293b;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.store-icon {
  font-size: 26px;
}

.store-text-sub {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  display: block;
}

.store-text-main {
  font-size: 14px;
  font-weight: 700;
  display: block;
}

/* QR Code Card in Banner */
.app-qr-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.app-qr-img {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  border: 3px solid #ffffff;
  margin-bottom: 12px;
  object-fit: cover;
}

.app-qr-text {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

/* ==========================================================================
   10. FREQUENTLY ASKED QUESTIONS (FAQ Accordion)
   ========================================================================== */
.faq-section {
  padding: 60px 0;
}

.accordion-custom .accordion-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md) !important;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-custom .accordion-button {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 700;
  padding: 18px 24px;
  box-shadow: none;
}

.accordion-custom .accordion-button:not(.collapsed) {
  background: var(--bg-surface-subtle);
  color: var(--brand-violet);
  border-bottom: 1px solid var(--border-subtle);
}

.accordion-custom .accordion-body {
  padding: 20px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   11. NEWSLETTER & COUNSELING CARD
   ========================================================================== */
.newsletter-section {
  padding: 40px 0 60px 0;
}

.newsletter-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.09) 100%);
  border: 1.5px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-xl);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand-violet);
  margin-bottom: 8px;
}

.newsletter-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}

.newsletter-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 520px;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  padding: 6px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 440px;
}

.newsletter-input {
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-primary);
  flex-grow: 1;
  outline: none;
}

.newsletter-input::placeholder {
  color: var(--text-muted);
}

.btn-subscribe {
  background: var(--grad-brand-btn);
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  transition: all var(--transition-fast);
}

.btn-subscribe:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.55);
}

/* ==========================================================================
   12. SITE FOOTER (PW Educational Hierarchy Links — Maximum Light Theme)
   ========================================================================== */
.site-footer {
  background: #f8fafc;
  color: #334155;
  padding: 56px 0 24px 0;
  border-top: 1px solid #e2e8f0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand-wrap .brand-title-text {
  fill: #0f172a;
}

.footer-logo-img {
  height: 95px;
  width: 95px;
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  display: inline-block;
  transition: transform var(--transition-fast);
}

.footer-logo-img:hover {
  transform: scale(1.03);
}

.footer-logo-mobile,
.footer-mobile-wrap .footer-logo-img {
  height: 135px !important;
  width: 135px !important;
  max-width: 150px !important;
  border-radius: 18px !important;
  padding: 6px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08) !important;
  display: inline-block !important;
}

.footer-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 16px 0 20px 0;
  max-width: 320px;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-fast);
}

.social-circle-btn:hover {
  background: var(--brand-violet);
  color: #ffffff;
  border-color: var(--brand-violet);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.social-circle-btn.social-yt:hover {
  background: #ff0000 !important;
  border-color: #ff0000 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.35) !important;
}

.social-circle-btn.social-tg:hover {
  background: #229ed9 !important;
  border-color: #229ed9 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(34, 158, 217, 0.35) !important;
}

.social-circle-btn.social-ig:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
  border-color: #d6249f !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(214, 36, 159, 0.35) !important;
}

.social-circle-btn.social-fb:hover {
  background: #1877f2 !important;
  border-color: #1877f2 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35) !important;
}

.social-circle-btn.social-wa:hover {
  background: #25d366 !important;
  border-color: #25d366 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35) !important;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0f172a;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-violet);
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list li a {
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links-list li a:hover {
  color: var(--brand-violet);
  transform: translateX(3px);
}

.footer-contact-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-item {
  font-size: 13px;
  color: #475569;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact-item i {
  color: var(--accent-amber);
  margin-top: 2px;
}

/* Mobile Footer Accordion */
.footer-mobile-wrap {
  width: 100%;
}

.footer-accordion {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.footer-accordion-item {
  border: none;
  border-bottom: 1px solid #f1f5f9;
  background: transparent;
}

.footer-accordion-item:last-child {
  border-bottom: none;
}

.footer-accordion-button {
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  padding: 16px 20px;
  box-shadow: none !important;
  border: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-accordion-button:not(.collapsed) {
  background: #f8fafc;
  color: var(--brand-violet);
  box-shadow: none !important;
}

.footer-accordion-button::after {
  filter: grayscale(1) opacity(0.7);
  transition: transform 0.25s ease;
}

.footer-accordion-button:not(.collapsed)::after {
  filter: none;
}

.footer-accordion-body {
  padding: 16px 20px 20px 20px;
  background: #ffffff;
}

.footer-accordion-body .footer-links-list li a {
  padding: 4px 0;
  font-size: 13.5px;
}

.footer-bottom-bar {
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.copyright-text {
  font-size: 12.5px;
  color: #64748b;
}

.crafted-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  color: #475569;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.crafted-badge-pill i.bi-heart-fill {
  color: #ef4444;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-legal-bar-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
}

.footer-legal-link {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast), text-decoration var(--transition-fast);
}

.footer-legal-link:hover {
  color: var(--brand-violet);
  text-decoration: underline;
}

.footer-legal-separator {
  color: #cbd5e1;
  font-size: 10px;
}

/* ==========================================================================
   13. RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 991.98px) {
  .nav-links-wrap {
    display: none;
  }
  .mobile-nav-toggle {
    display: inline-flex;
  }
  .top-live-ticker .ticker-right {
    display: none;
  }
  .hero-main-card {
    padding: 32px 24px;
  }
  .hero-heading {
    font-size: 32px;
  }
  .hero-side-column {
    margin-top: 20px;
  }
  .app-banner-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575.98px) {
  .hero-heading {
    font-size: 26px;
  }
  .hero-btn-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-btn-group .btn-primary-gradient,
  .hero-btn-group .btn-secondary-glass {
    width: 100%;
    justify-content: center;
  }
  .newsletter-card {
    padding: 28px 20px;
  }
  .newsletter-form {
    flex-direction: column;
    border-radius: var(--radius-md);
  }
  .btn-subscribe {
    width: 100%;
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   PW-STYLE DYNAMIC EXAM CATEGORIES (Attachment 1 Match)
   ========================================================================== */
.exam-categories-section {
  padding: 60px 0 40px;
  background: #fafcff;
}

.exam-section-header {
  text-align: center;
  margin-bottom: 45px;
}

.exam-section-title {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.exam-section-subtitle {
  font-size: 15px;
  color: #64748b;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.5;
}

.exam-cat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  min-height: 220px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.exam-cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.exam-cat-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding-right: 14px;
  z-index: 2;
}

.exam-cat-heading {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  line-height: 1.2;
}

.exam-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.exam-class-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.exam-class-pill:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

.exam-explore-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: auto;
}

.exam-explore-link i {
  transition: transform 0.2s ease;
  font-size: 16px;
}

.exam-explore-link:hover {
  color: #2563eb;
}

.exam-explore-link:hover i {
  transform: translateX(4px);
}

.exam-cat-right {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 120px;
  position: relative;
}

.exam-cat-blob {
  width: 110px;
  height: 110px;
  border-radius: 50% 40% 50% 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.exam-cat-card:hover .exam-cat-blob {
  transform: scale(1.08) rotate(3deg);
}

.exam-cat-blob img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

/* ==========================================================================
   CATEGORY EXPLORE PAGE & CLASS SEGREGATION (Attachment 2 Match)
   ========================================================================== */
.category-page-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 30px 0 20px;
}

.category-breadcrumb {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 12px;
}

.category-breadcrumb a {
  color: #64748b;
  text-decoration: none;
}

.category-breadcrumb a:hover {
  color: #2563eb;
}

.category-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
}

.category-filter-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-tab-btn {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.cat-tab-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.cat-tab-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.category-search-wrap {
  position: relative;
  min-width: 280px;
}

.category-search-wrap input {
  width: 100%;
  padding: 8px 16px 8px 38px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 13.5px;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s;
}

.category-search-wrap input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.category-search-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
}

.class-courses-block {
  padding: 40px 0 20px;
}

.class-courses-title {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 22px;
  letter-spacing: -0.3px;
}

/* PW Clean Batch Card in Category View */
.pw-batch-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pw-batch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.pw-batch-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
  overflow: hidden;
}

.pw-batch-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pw-batch-card:hover .pw-batch-banner img {
  transform: scale(1.04);
}

.pw-batch-badge-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #4338ca;
  border: 1px solid #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.pw-batch-content {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pw-batch-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pw-tag-class {
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
}

.pw-tag-lang {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 2px 6px;
  border-radius: 4px;
}

.pw-batch-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.3;
}

.pw-batch-target {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pw-batch-schedule {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pw-batch-pricing-row {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pw-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pw-offer-price {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.pw-original-price {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
}

.pw-discount-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #16a34a;
  display: block;
}

.pw-btn-buy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #000000;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid #000000;
  transition: all 0.2s ease;
}

.pw-btn-buy:hover {
  background: #1f2937;
  border-color: #1f2937;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Filled Black Batch Details Button (Requirement 5) */
.pw-btn-details-black {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #000000;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid #000000;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.pw-btn-details-black:hover {
  background: #1f2937;
  border-color: #1f2937;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

/* Matching Dedicated Arrow Box Button */
.pw-btn-arrow-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #1e293b;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.pw-btn-arrow-box:hover {
  border-color: #000000;
  background: #000000;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Solid Black Buy Now CTA Button on Batch Details Page (Requirement 2) */
.pw-btn-buynow-black {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: #000000;
  color: #ffffff !important;
  border: 1px solid #000000;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.pw-btn-buynow-black:hover {
  background: #1f2937;
  border-color: #1f2937;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.pw-view-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #2563eb;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  margin: 25px auto 0;
  cursor: pointer;
}

.pw-view-more-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* ==========================================================================
   14. LEGAL & COMPLIANCE PAGES (TERMS & PRIVACY POLICY)
   ========================================================================== */
.legal-hero-card {
  background: var(--grad-banner);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px 38px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.legal-hero-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.legal-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--brand-violet);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.legal-hero-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.2;
}

.legal-hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 860px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.legal-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.legal-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.legal-meta-item i {
  color: var(--brand-violet);
  font-size: 14px;
}

.legal-btn-print {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.legal-btn-print:hover {
  background: var(--brand-violet);
  border-color: var(--brand-violet);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* Sticky Table of Contents Sidebar */
.legal-toc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.legal-toc-card::-webkit-scrollbar {
  width: 5px;
}

.legal-toc-card::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}

.legal-toc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.legal-toc-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin: 0;
}

.legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all var(--transition-fast);
}

.legal-toc-link .toc-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 20px;
}

.legal-toc-link:hover {
  background: var(--bg-surface-subtle);
  color: var(--brand-violet);
  border-left-color: var(--brand-violet);
  padding-left: 14px;
}

.legal-toc-link.active {
  background: var(--brand-violet-light);
  color: var(--brand-violet-dark);
  border-left-color: var(--brand-violet);
  font-weight: 700;
}

/* Legal Content Body */
.legal-content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 42px 40px;
  box-shadow: var(--shadow-sm);
}

.legal-section {
  padding-bottom: 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--border-subtle);
  scroll-margin-top: 110px;
}

.legal-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.legal-sec-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.legal-sec-num {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-violet) 0%, var(--brand-violet-dark) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.legal-sec-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.legal-text {
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.legal-text strong {
  color: var(--text-primary);
}

/* Callout Boxes */
.legal-callout {
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 20px 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.legal-callout i.callout-icon {
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.legal-callout-content {
  flex-grow: 1;
}

.legal-callout-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.legal-callout-desc {
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}

.legal-callout-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #92400e;
}
.legal-callout-warning i.callout-icon { color: var(--accent-amber); }
.legal-callout-warning .legal-callout-title { color: #b45309; }

.legal-callout-danger {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #991b1b;
}
.legal-callout-danger i.callout-icon { color: var(--accent-rose); }
.legal-callout-danger .legal-callout-title { color: #dc2626; }

.legal-callout-info {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #155e75;
}
.legal-callout-info i.callout-icon { color: var(--brand-cyan); }
.legal-callout-info .legal-callout-title { color: #0e7490; }

.legal-callout-success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #065f46;
}
.legal-callout-success i.callout-icon { color: var(--accent-emerald); }
.legal-callout-success .legal-callout-title { color: #047857; }

/* Dark mode adjustment for callouts */
[data-theme="dark"] .legal-callout-warning { color: #fde68a; }
[data-theme="dark"] .legal-callout-warning .legal-callout-title { color: #f59e0b; }
[data-theme="dark"] .legal-callout-danger { color: #fca5a5; }
[data-theme="dark"] .legal-callout-danger .legal-callout-title { color: #ef4444; }
[data-theme="dark"] .legal-callout-info { color: #a5f3fc; }
[data-theme="dark"] .legal-callout-info .legal-callout-title { color: #06b6d4; }
[data-theme="dark"] .legal-callout-success { color: #a7f3d0; }
[data-theme="dark"] .legal-callout-success .legal-callout-title { color: #10b981; }

/* Styled Check & Bullet Lists */
.legal-list-styled {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.legal-list-item i {
  color: var(--brand-violet);
  font-size: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Official Desk Card */
.legal-desk-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(6, 182, 212, 0.06) 100%);
  border: 1px dashed var(--brand-violet);
  border-radius: var(--radius-md);
  padding: 26px;
  margin-top: 24px;
}

.legal-desk-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-desk-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 14px;
}

.legal-desk-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.legal-desk-info-item i {
  color: var(--brand-violet);
  font-size: 15px;
}

/* Print Optimization */
@media print {
  .top-live-ticker,
  .site-header,
  .site-footer,
  .legal-toc-card,
  .legal-btn-print,
  .footer-bottom-bar {
    display: none !important;
  }
  .legal-content-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .legal-hero-card {
    background: none !important;
    border: none !important;
    padding: 0 0 20px 0 !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
}

@media (max-width: 991.98px) {
  .legal-hero-card {
    padding: 28px 20px;
  }
  .legal-hero-title {
    font-size: 26px;
  }
  .legal-content-card {
    padding: 24px 18px;
  }
  .legal-sec-title {
    font-size: 18px;
  }
}

/* ==========================================================================
   14. MOBILE BOTTOM NAVIGATION DOCK (App-like 5-Icon Navigation)
   ========================================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) 8px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

[data-theme="dark"] .mobile-bottom-nav {
  background: rgba(15, 23, 42, 0.95);
  border-top-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
}

.mobile-bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.mobile-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: #64748b;
  padding: 4px 2px;
  border-radius: 10px;
  position: relative;
  transition: color 0.18s ease, transform 0.18s ease;
  user-select: none;
}

[data-theme="dark"] .mobile-bottom-nav-item {
  color: #94a3b8;
}

.mobile-bottom-nav-item i {
  font-size: 19px;
  line-height: 1.1;
  transition: transform 0.18s ease;
}

.mobile-bottom-nav-item span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.mobile-bottom-nav-item:hover,
.mobile-bottom-nav-item:focus {
  color: var(--brand-violet, #4f46e5);
  text-decoration: none;
}

.mobile-bottom-nav-item.active {
  color: var(--brand-violet, #4f46e5);
  font-weight: 700;
}

[data-theme="dark"] .mobile-bottom-nav-item.active {
  color: #818cf8;
}

.mobile-bottom-nav-item.active i {
  transform: translateY(-1px) scale(1.1);
}

/* Active indicator accent bar */
.mobile-bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: -2px;
  width: 16px;
  height: 3px;
  background: var(--brand-violet, #4f46e5);
  border-radius: 3px;
}

[data-theme="dark"] .mobile-bottom-nav-item.active::before {
  background: #818cf8;
}

@media (min-width: 992px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  /* Prevent content or buttons from being clipped beneath bottom dock */
  body {
    padding-bottom: 72px !important;
  }
  .top-live-ticker {
    display: none !important;
  }
  .site-header {
    padding: 7px 0 !important;
  }
  .brand-logo-img {
    height: 42px !important;
    border-radius: 6px;
  }
  .nav-actions {
    gap: 8px;
  }
  .mobile-nav-toggle {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }

  /* -------------------------------------------------------------
     MOBILE TOP SPACING OPTIMIZATION (Eliminate excessive blank gaps)
     ------------------------------------------------------------- */
  /* Hero section on Home page */
  .hero-section {
    padding-top: 10px !important;
    padding-bottom: 24px !important;
  }
  .hero-section > .container > .row {
    --bs-gutter-y: 10px !important;
    margin-top: 0 !important;
  }
  .hero-section > .container > .row > [class*="col-"] {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  /* Global sections on public & auth pages */
  section.py-5,
  div.py-5,
  .auth-section {
    padding-top: 10px !important;
    padding-bottom: 24px !important;
  }
  section.py-4,
  div.py-4 {
    padding-top: 8px !important;
    padding-bottom: 18px !important;
  }

  /* Zero out redundant nested container top paddings on mobile */
  section.py-5 > .container.py-4,
  section.py-5 > .container.py-3,
  section.py-5 > .container.py-2,
  section.py-4 > .container.py-4,
  section.py-4 > .container.py-3,
  section.py-4 > .container.py-2,
  section.py-3 > .container.py-3,
  section.py-3 > .container.py-2,
  section.py-2 > .container.py-2,
  section.py-2 > .container.py-1,
  section > .container.py-4,
  section > .container.py-3,
  .auth-section > .container {
    padding-top: 0 !important;
  }

  /* Compact Hero Cards & Auth Cards */
  .hero-main-card {
    padding: 18px 16px !important;
    border-radius: 16px !important;
    margin-top: 0 !important;
  }

  /* Remove artificial vertical centering on mobile auth sections */
  .auth-section[style*="min-height"],
  section[style*="min-height"] {
    min-height: auto !important;
  }

  /* Batches, Test Series, About & Exams hero banners */
  .batches-hero,
  .test-series-hero,
  .pw-cat-hero {
    padding-top: 12px !important;
    padding-bottom: 16px !important;
  }
  .batches-hero > .container,
  .test-series-hero > .container,
  .pw-cat-hero > .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Category Exploration Header */
  .category-page-header {
    padding: 10px 0 10px !important;
  }

  /* Legal/Policy Hero Card */
  .legal-hero-card {
    padding: 16px 14px !important;
    margin-bottom: 16px !important;
  }

  /* Batch details secondary bar & container */
  .pw-details-page {
    padding-top: 0 !important;
  }
  .pw-anchor-bar {
    top: 56px !important;
  }
}

@media (max-width: 575.98px) {
  .site-header {
    padding: 6px 0 !important;
  }
  .brand-logo-img {
    height: 38px !important;
  }
  .hero-section {
    padding-top: 8px !important;
    padding-bottom: 18px !important;
  }
  .hero-section > .container > .row {
    --bs-gutter-y: 8px !important;
  }
  section.py-5,
  div.py-5,
  .auth-section {
    padding-top: 8px !important;
    padding-bottom: 18px !important;
  }
  .hero-main-card {
    padding: 16px 14px !important;
    border-radius: 14px !important;
  }
  .hero-heading {
    font-size: 24px !important;
    line-height: 1.25 !important;
  }
  .hero-subtitle {
    font-size: 13.5px !important;
    margin-bottom: 14px !important;
  }
  .hero-trust-list {
    margin-top: 14px !important;
    padding-top: 10px !important;
  }
}

/* ==========================================================================
   PHYSICS WALLAH STYLE SLIDING BANNERS (HOMEPAGE HERO CAROUSEL)
   ========================================================================== */
.pw-sliding-banner-section {
  position: relative;
  width: 100%;
  padding: 16px 0 8px 0;
  background: transparent;
}

.pw-banner-carousel-container {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
}

.pw-banner-carousel-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.pw-banner-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.pw-banner-slide {
  min-width: 100%;
  flex: 0 0 100%;
  position: relative;
  display: block;
  text-decoration: none;
  color: #ffffff;
  overflow: hidden;
  min-height: 260px;
}

@media (min-width: 768px) {
  .pw-banner-slide {
    min-height: 320px;
  }
}

@media (min-width: 1200px) {
  .pw-banner-slide {
    min-height: 340px;
  }
}

.pw-banner-content-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 24px 28px;
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .pw-banner-content-grid {
    padding: 32px 48px;
  }
}

.pw-banner-text-col {
  flex: 1 1 58%;
  max-width: 680px;
  z-index: 3;
}

.pw-banner-media-col {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  z-index: 3;
}

.pw-banner-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pw-banner-heading {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.22;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.pw-banner-subpoints {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.85rem, 1.15vw, 1.05rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 20px;
  line-height: 1.5;
}

.pw-banner-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #111827;
  background: #f59e0b;
  box-shadow: 0 8px 24px -4px rgba(245, 158, 11, 0.5);
  transition: all 0.25s ease;
  border: none;
}

.pw-banner-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -2px rgba(245, 158, 11, 0.7);
  color: #000000;
}

/* Artwork image handling */
.pw-banner-artwork-img {
  max-height: 270px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.35));
  transition: transform 0.4s ease;
}

.pw-banner-slide:hover .pw-banner-artwork-img {
  transform: scale(1.03);
}

/* Full graphic ad mode */
.pw-banner-full-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Navigation Chevrons */
.pw-banner-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  font-size: 20px;
}

.pw-banner-nav-btn:hover {
  background: rgba(15, 23, 42, 0.95);
  color: #fbbf24;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.pw-banner-nav-prev {
  left: 14px;
}

.pw-banner-nav-next {
  right: 14px;
}

/* PW Dots Indicator Row */
.pw-banner-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.pw-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pw-banner-dot.active {
  width: 24px;
  border-radius: 12px;
  background: var(--brand-violet, #6366f1);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Mobile responsive adjustments */
@media (max-width: 767.98px) {
  .pw-sliding-banner-section {
    padding: 8px 0 2px 0;
  }
  .pw-banner-carousel-wrapper {
    border-radius: 14px;
  }
  .pw-banner-content-grid {
    flex-direction: column-reverse;
    justify-content: center;
    text-align: center;
    padding: 16px 14px;
  }
  .pw-banner-text-col {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .pw-banner-media-col {
    display: none;
  }
  .pw-banner-heading {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }
  .pw-banner-subpoints {
    font-size: 0.8rem;
    margin-bottom: 14px;
  }
  .pw-banner-cta-btn {
    padding: 9px 20px;
    font-size: 13px;
  }
  .pw-banner-nav-btn {
    display: none;
  }
  .pw-banner-dots {
    margin-top: 8px;
  }
}

/* ==========================================================================
   Global Video DRM Protection: Hide Native Download Controls & Popups
   ========================================================================== */
video::-internal-media-controls-download-button,
video::-webkit-media-controls-download-button {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

video::-webkit-media-controls-enclosure {
  overflow: hidden !important;
}

video {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

/* Bootstrap 5 Extended Opacity Utilities for Badges */
.bg-opacity-15 { --bs-bg-opacity: 0.15 !important; }
.bg-opacity-20 { --bs-bg-opacity: 0.2 !important; }





