/* ==========================================================================
   THE STUDENTS HUB - CORE DESIGN SYSTEM & STYLES
   Modern British Tuition Academy Web Architecture
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --primary-900: #0a1128;
  --primary-800: #0f1d40;
  --primary-700: #1c2b59;
  --primary-600: #253875;
  --brand-blue: #2563eb;
  --brand-blue-hover: #1d4ed8;
  --brand-blue-light: #eff6ff;
  --brand-indigo: #4f46e5;
  --brand-cyan: #06b6d4;
  --brand-gold: #f59e0b;
  --brand-gold-light: #fef3c7;
  --brand-emerald: #10b981;
  --brand-emerald-light: #ecfdf5;

  /* Neutral Tones */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --border-light: #e2e8f0;
  --border-subtle: rgba(226, 232, 240, 0.8);
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-alt: #f1f5f9;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.09), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow-blue: 0 0 25px rgba(37, 99, 235, 0.35);
  --shadow-glow-gold: 0 0 25px rgba(245, 158, 11, 0.35);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-page);
  line-height: 1.6;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-py {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-py-lg {
  padding-top: 6.5rem;
  padding-bottom: 6.5rem;
}

/* ==========================================================================
   TOP NOTIFICATION & CONTACT BAR
   ========================================================================== */
.top-contact-bar {
  background: var(--primary-900);
  color: #cbd5e1;
  font-size: 0.825rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 50;
}

.top-contact-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  gap: 1rem;
}

.top-contact-left, .top-contact-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.top-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition-fast);
}

.top-contact-item:hover {
  color: #ffffff;
}

.top-contact-item svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0.85;
}

.badge-tag {
  background: rgba(37, 99, 235, 0.25);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.3);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   MAIN NAVIGATION HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.site-header .container.header-inner {
  max-width: 1560px;
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
  flex-wrap: nowrap;
  gap: 1rem;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 46px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  transition: transform var(--transition-bounce);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.03);
}

.footer-logo-wrap {
  display: inline-flex;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.logo-symbol {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-indigo) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: transform var(--transition-bounce);
}

.brand-logo:hover .logo-symbol {
  transform: rotate(-5deg) scale(1.05);
}

.logo-symbol svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.1;
  color: var(--primary-900);
  letter-spacing: -0.02em;
}

.logo-title span {
  color: var(--brand-blue);
}

.logo-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-blue);
  background: rgba(37, 99, 235, 0.08);
}

/* Nav Dropdown */
.nav-dropdown-wrapper {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.dropdown-chevron {
  display: inline-block;
  width: 12px;
  height: 12px;
  transition: transform var(--transition-normal);
  color: currentColor;
  opacity: 0.75;
  flex-shrink: 0;
}

.nav-dropdown-wrapper:hover .dropdown-chevron,
.nav-dropdown-wrapper.open .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 275px;
  max-height: calc(100vh - 95px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14), 0 4px 10px rgba(15, 23, 42, 0.04);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
  z-index: 1000;
}

.nav-dropdown-menu::-webkit-scrollbar {
  width: 5px;
}
.nav-dropdown-menu::-webkit-scrollbar-track {
  background: #f8fafc;
}
.nav-dropdown-menu::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* Invisible bridge so mouse hover doesn't break */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper.open .nav-dropdown-menu,
.nav-dropdown-wrapper:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(2px);
}

.dropdown-item {
  display: block;
  padding: 0.72rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  background: #ffffff;
  line-height: 1.35;
  transition: background var(--transition-fast), color var(--transition-fast), padding-left var(--transition-fast);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: #f8fafc;
  color: var(--brand-blue);
  padding-left: 1.35rem;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-actions .btn {
  white-space: nowrap;
  padding: 0.5rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.cart-button-trigger {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-900);
  transition: all var(--transition-fast);
}

.cart-button-trigger:hover {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--brand-gold);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  color: #ffffff;
}

.btn-secondary {
  background: var(--primary-900);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(10, 17, 40, 0.25);
}

.btn-secondary:hover {
  background: var(--primary-800);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10, 17, 40, 0.35);
  color: #ffffff;
}

.btn-accent {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.btn-outline {
  border: 1.5px solid var(--border-light);
  color: var(--text-primary);
  background: #ffffff;
}

.btn-outline:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: var(--brand-blue-light);
}

.btn-outline-white {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  color: var(--primary-900);
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   COMMON SECTION HEADERS & BADGES
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--primary-900);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   ACADEMIC PILLARS / PROGRAM CARDS
   ========================================================================== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.program-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37, 99, 235, 0.3);
}

.program-card:hover::before {
  opacity: 1;
}

.program-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.program-icon-wrap svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.program-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-blue);
  background: var(--brand-blue-light);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
  width: fit-content;
}

.program-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.75rem;
}

.program-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.program-features {
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.program-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.program-feature-item svg {
  width: 16px;
  height: 16px;
  fill: var(--brand-emerald);
  flex-shrink: 0;
}

/* ==========================================================================
   WHY CHOOSE US / STATS BANNER
   ========================================================================== */
.stats-strip {
  background: var(--primary-900);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.stats-strip::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.stat-box {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff 30%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.35rem;
}

.stat-sub {
  font-size: 0.825rem;
  color: #94a3b8;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-box {
  background: #ffffff;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: var(--shadow-lg);
}

.feature-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon-badge.blue {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
}

.feature-icon-badge.gold {
  background: var(--brand-gold-light);
  color: var(--brand-gold);
}

.feature-icon-badge.emerald {
  background: var(--brand-emerald-light);
  color: var(--brand-emerald);
}

.feature-icon-badge svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.6rem;
}

.feature-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   INTERACTIVE GRADE BOOST CALCULATOR
   ========================================================================== */
.calculator-card {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  color: #ffffff;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.calculator-left h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.calculator-left p {
  color: #cbd5e1;
  font-size: 0.975rem;
  margin-bottom: 2rem;
}

.calc-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.calc-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.calc-field select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.calc-field select:focus {
  border-color: var(--brand-blue);
  background: rgba(255, 255, 255, 0.14);
}

.calc-field select option {
  background: var(--primary-900);
  color: #ffffff;
}

.calculator-right {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  backdrop-filter: blur(12px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.target-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.target-grade-display {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 30px rgba(37, 99, 235, 0.6);
}

.calc-roadmap-text {
  font-size: 0.95rem;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
  max-width: 320px;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  color: var(--brand-gold);
  margin-bottom: 1rem;
}

.testimonial-rating svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.testimonial-quote {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-indigo) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.author-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-900);
}

.author-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admissions-pill {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--brand-emerald-light);
  color: var(--brand-emerald);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   PRODUCT CATALOGUE & SHOP CARDS
   ========================================================================== */
.shop-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.category-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cat-pill {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.cat-pill:hover, .cat-pill.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
}

.shop-search-box {
  position: relative;
  min-width: 260px;
}

.shop-search-input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: #ffffff;
  font-size: 0.875rem;
  outline: none;
}

.shop-search-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.shop-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.shop-search-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.3);
}

.product-thumb-wrap {
  height: 200px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-thumb-wrap img {
  transform: scale(1.05);
}

.product-badge-float {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand-blue);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.product-type-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.product-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  margin-top: auto;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-900);
}

.product-price .original {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 0.4rem;
  font-weight: 500;
}

/* ==========================================================================
   CART SLIDE-OVER DRAWER
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  box-shadow: var(--shadow-xl);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-900);
}

.cart-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.cart-items-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.cart-empty-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
}

.cart-item-row {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-img {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-900);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.cart-item-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 0.5rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.cart-item-qty {
  font-size: 0.85rem;
  font-weight: 600;
}

.cart-remove-item {
  margin-left: auto;
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 600;
}

.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-page);
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   MODALS (TRIAL BOOKING & CHECKOUT)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-bounce);
}

.modal-backdrop.active .modal-window {
  transform: scale(1);
}

.modal-header {
  padding: 2rem 2rem 1.25rem 2rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-900);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.modal-body {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-900);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: #ffffff;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
  background: var(--primary-900);
  color: #cbd5e1;
  padding-top: 5rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 0.25rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-contact-item a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact-item a:hover {
  color: #ffffff;
}

.footer-contact-label {
  display: inline-block;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  margin-right: 0.35rem;
}

.footer-social-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.15rem;
  flex-wrap: wrap;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-social-btn:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.footer-social-btn.footer-social-wa:hover {
  background: #25D366;
  border-color: #25D366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.footer-social-btn.footer-social-fb:hover {
  background: #1877F2;
  border-color: #1877F2;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4);
}

.footer-social-btn.footer-social-ig:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: #d6249f;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(214, 36, 159, 0.4);
}

.footer-social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.footer-accreditations {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.accred-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

/* ==========================================================================
   FLOATING ACTIONS (WHATSAPP & BACK TO TOP)
   Both buttons use position: fixed at bottom-right with high z-index
   ========================================================================== */
.floating-actions {
  display: contents; /* Container produces no box, ensuring zero interference with pointer events */
  position: static;
  pointer-events: none;
}

/* 1. WhatsApp Floating Button */
.whatsapp-float {
  position: fixed !important;
  bottom: 86px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.12);
  z-index: 99999 !important;
  pointer-events: auto !important;
  cursor: pointer;
  text-decoration: none !important;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease,
              background-color 0.2s ease;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.42), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.whatsapp-float:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.whatsapp-float:focus-visible {
  outline: 3px solid #128C7E;
  outline-offset: 3px;
}

.whatsapp-float svg {
  width: 35px;
  height: 35px;
  fill: #ffffff;
  display: block;
  pointer-events: none;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.whatsapp-float:hover svg {
  transform: scale(1.06);
}

/* 2. Back to Top Floating Button (Directly below WhatsApp) */
.back-to-top-btn {
  position: fixed !important;
  bottom: 24px;
  right: 30px; /* Centered with 60px WhatsApp button (24 + (60 - 48)/2) */
  width: 48px;
  height: 48px;
  background: var(--primary-900, #0a1128);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.12);
  z-index: 99998 !important;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
  transform: translateY(14px) scale(0.8);
  transition: opacity 0.3s ease,
              visibility 0.3s ease,
              transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.25s ease,
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto !important;
  transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
  background: var(--brand-blue, #2563eb);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35), 0 3px 8px rgba(0, 0, 0, 0.18);
}

.back-to-top-btn:active {
  transform: scale(0.92) translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.back-to-top-btn:focus-visible {
  outline: 3px solid var(--brand-blue, #2563eb);
  outline-offset: 3px;
}

.back-to-top-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  display: block;
  pointer-events: none;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.back-to-top-btn:hover svg {
  transform: translateY(-2px);
}

/* Tooltips on Desktop Hover */
.whatsapp-float-tooltip,
.back-to-top-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  background: #1e293b;
  color: #ffffff;
  font-size: 0.825rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  font-family: inherit;
  letter-spacing: 0.01em;
}

.whatsapp-float-tooltip::after,
.back-to-top-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-width: 5px 0 5px 6px;
  border-style: solid;
  border-color: transparent transparent transparent #1e293b;
}

.whatsapp-float:hover .whatsapp-float-tooltip,
.back-to-top-btn:hover .back-to-top-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 54px;
    height: 54px;
    right: max(18px, env(safe-area-inset-right, 18px));
    bottom: calc(max(18px, env(safe-area-inset-bottom, 18px)) + 54px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 2px 5px rgba(0, 0, 0, 0.15);
  }

  .whatsapp-float svg {
    width: 30px;
    height: 30px;
  }

  .back-to-top-btn {
    width: 44px;
    height: 44px;
    right: calc(max(18px, env(safe-area-inset-right, 18px)) + 5px);
    bottom: max(18px, env(safe-area-inset-bottom, 18px));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 2px 5px rgba(0, 0, 0, 0.15);
  }

  .back-to-top-btn svg {
    width: 20px;
    height: 20px;
  }

  .whatsapp-float-tooltip,
  .back-to-top-tooltip {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    right: max(16px, env(safe-area-inset-right, 16px));
    bottom: calc(max(16px, env(safe-area-inset-bottom, 16px)) + 50px);
  }

  .whatsapp-float svg {
    width: 27px;
    height: 27px;
  }

  .back-to-top-btn {
    width: 42px;
    height: 42px;
    right: calc(max(16px, env(safe-area-inset-right, 16px)) + 4px);
    bottom: max(16px, env(safe-area-inset-bottom, 16px));
  }

  .back-to-top-btn svg {
    width: 19px;
    height: 19px;
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--primary-900);
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideInToast 0.3s ease forwards;
  pointer-events: auto;
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1380px) and (min-width: 1141px) {
  .site-header .container.header-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .header-inner {
    height: 74px;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .brand-logo-img {
    height: 42px;
    max-width: 165px;
  }
  .nav-menu {
    gap: 0.18rem;
    flex-wrap: nowrap;
  }
  .nav-link {
    padding: 0.42rem 0.45rem;
    font-size: 0.88rem;
    gap: 0.2rem;
  }
  .dropdown-chevron {
    width: 12px;
    height: 12px;
  }
  .header-actions {
    gap: 0.4rem;
  }
  .header-actions .btn {
    padding: 0.48rem 0.85rem;
    font-size: 0.84rem;
  }
}

@media (max-width: 1140px) {
  .top-contact-bar .container {
    flex-direction: column;
    align-items: center;
  }
  .top-contact-left,
  .top-contact-right {
    justify-content: center;
  }
  .calculator-card {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-header {
    background: #f5f7fa;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  }
  .header-inner {
    height: auto;
    min-height: 74px;
    padding: 0.75rem 0;
    flex-wrap: wrap;
  }
  .brand-logo {
    gap: 0.5rem;
  }
  .brand-logo-img {
    height: 48px;
  }
  .logo-title {
    font-size: 1.1rem;
  }
  .logo-tagline {
    letter-spacing: 0.04em;
  }
  .mobile-nav-toggle {
    display: flex;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: transparent;
    border: 2px solid rgba(51, 65, 85, 0.45);
    margin-left: auto;
  }
  .nav-menu {
    position: static;
    display: none;
    width: 100%;
    background: transparent;
    box-shadow: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.5rem 0 0 0;
    gap: 0;
    transition: none;
    z-index: auto;
    overflow: visible;
  }
  .nav-menu.open {
    display: flex;
    right: auto;
  }
  .nav-link {
    width: 100%;
    padding: 0.85rem 0.2rem;
    font-size: 1.05rem;
    border-radius: 0;
    color: var(--text-primary);
    background: transparent;
    font-weight: 500;
  }
  .nav-link:hover,
  .nav-link.active {
    color: var(--brand-blue);
    background: transparent;
  }
  .nav-dropdown-wrapper {
    width: 100%;
  }
  .nav-dropdown-menu {
    display: none;
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    width: 100%;
    background: transparent;
    border: none;
    margin-top: 0;
    padding: 0.1rem 0 0.4rem 0;
  }
  .nav-dropdown-wrapper.open .nav-dropdown-menu {
    display: flex;
    flex-direction: column;
  }
  .dropdown-item {
    padding: 0.75rem 0.75rem 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    background: transparent;
    color: var(--text-secondary);
  }
  .dropdown-item:hover,
  .dropdown-item:active {
    background: rgba(37, 99, 235, 0.05);
    padding-left: 1.45rem;
    color: var(--brand-blue);
  }
  .dropdown-icon {
    display: none;
  }
}

@media (max-width: 768px) {
  .top-contact-bar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  .mobile-nav-toggle {
    display: flex;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: transparent;
    border: 2px solid rgba(51, 65, 85, 0.45);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
    color: var(--primary-900);
  }
  .mobile-nav-toggle svg {
    width: 26px;
    height: 26px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .calc-inputs-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .header-actions {
    gap: 0.5rem;
  }
  .header-actions .btn-primary {
    padding: 0.7rem 0.9rem;
    font-size: 0.82rem;
  }
  .brand-logo-img {
    height: 42px;
  }
  .logo-title {
    font-size: 1.05rem;
  }
  .logo-tagline {
    font-size: 0.65rem;
  }
  .section-title {
    font-size: 1.7rem;
  }
  .hero-headline {
    font-size: 2.4rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-proof-bar {
    justify-content: space-between;
    gap: 1rem;
  }
  .proof-metric {
    width: 45%;
  }
}

/* ==========================================================================
   ACADEMIC TUITION CURRICULUM EXPLORER (KS2, KS3, GCSE, 11+)
   ========================================================================== */
.curriculum-stage-section,
.gcse-curriculum-section {
  background: var(--bg-surface);
  position: relative;
  padding: 4.5rem 0;
}

.curriculum-year-switcher,
.gcse-year-switcher {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 2.25rem;
}

.curriculum-year-btn,
.gcse-year-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--bg-alt);
  color: var(--text-secondary);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.curriculum-year-btn .year-icon,
.gcse-year-btn .year-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.1);
  font-size: 0.85rem;
  font-weight: 800;
}

.curriculum-year-btn:hover,
.gcse-year-btn:hover {
  background: #ffffff;
  color: var(--brand-blue);
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.curriculum-year-btn.active,
.gcse-year-btn.active {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-indigo) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}

.curriculum-year-btn.active .year-icon,
.gcse-year-btn.active .year-icon {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.curriculum-year-panel,
.gcse-year-panel {
  display: block;
  margin-bottom: 3.5rem;
  scroll-margin-top: 140px;
}

.curriculum-year-panel:last-child,
.gcse-year-panel:last-child {
  margin-bottom: 0;
}

.curriculum-subject-card,
.gcse-subject-card,
.curriculum-panel-header,
.gcse-panel-header,
.curriculum-year-panel,
.gcse-year-panel,
.curriculum-stage-section,
.gcse-curriculum-section,
[id^="year"],
[id^="panel-year"],
[id^="11plus"],
[id^="13plus"],
[id^="alevel"],
[id^="ks"],
#stem {
  scroll-margin-top: 140px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

.chip:hover {
  background: #e2e8f0;
  color: var(--primary-900);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.chip.active {
  background: var(--brand-blue) !important;
  color: #ffffff !important;
  border-color: var(--brand-blue) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

@keyframes pulseHighlight {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5);
    border-color: var(--brand-blue);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.25);
    border-color: var(--brand-blue);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.card-highlight-pulse {
  animation: pulseHighlight 1.6s ease-out;
  border-color: var(--brand-blue) !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.curriculum-panel-header,
.gcse-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  background: var(--bg-alt);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.year-badge-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.pill-year {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--primary-900);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.year-badge-title h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-900);
  margin: 0;
}

.curriculum-subject-nav,
.gcse-subject-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.curriculum-subject-btn,
.gcse-subject-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: #ffffff;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.curriculum-subject-btn:hover,
.gcse-subject-btn:hover {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  border-color: rgba(37, 99, 235, 0.3);
}

.curriculum-subject-btn.active,
.gcse-subject-btn.active {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.curriculum-cards-grid,
.gcse-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.75rem;
}

.curriculum-subject-card,
.gcse-subject-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.curriculum-subject-card:hover,
.gcse-subject-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.25);
}

.subject-card-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  background: #ffffff;
}

.subject-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.subject-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.subject-card-header h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-900);
  margin: 0;
}

.subject-badge-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: var(--text-secondary);
}

/* Subject Themes */
.subject-maths {
  border-left: 5px solid var(--brand-blue);
}
.subject-maths .subject-tag {
  color: var(--brand-blue);
}
.subject-maths .subject-badge-pill {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
}

.subject-english {
  border-left: 5px solid var(--brand-indigo);
}
.subject-english .subject-tag {
  color: var(--brand-indigo);
}
.subject-english .subject-badge-pill {
  background: #eef2ff;
  color: var(--brand-indigo);
}

.subject-science {
  border-left: 5px solid var(--brand-emerald);
}
.subject-science .subject-tag {
  color: var(--brand-emerald);
}
.subject-science .subject-badge-pill {
  background: var(--brand-emerald-light);
  color: var(--brand-emerald);
}

.subject-computing {
  border-left: 5px solid var(--brand-cyan);
}
.subject-computing .subject-tag {
  color: #0891b2;
}
.subject-computing .subject-badge-pill {
  background: #ecfeff;
  color: #0891b2;
}

.subject-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

.curriculum-block {
  border-left: 2px solid #e2e8f0;
  padding-left: 1rem;
}

.curriculum-block h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.5rem;
}

.curriculum-block ul {
  margin: 0;
  padding-left: 1.1rem;
  list-style: disc;
}

.curriculum-block li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.35rem;
}

.curriculum-block li strong {
  color: var(--primary-900);
}

.curriculum-block.exam-highlight {
  background: #fffbeb;
  border-left: 4px solid var(--brand-gold);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.curriculum-block.exam-highlight h5 {
  color: #92400e;
  margin-bottom: 0.35rem;
}

.curriculum-block.exam-highlight p {
  font-size: 0.88rem;
  color: #78350f;
  line-height: 1.55;
  margin: 0;
}

.subject-verbal {
  border-left: 5px solid #8b5cf6;
}
.subject-verbal .subject-tag {
  color: #8b5cf6;
}
.subject-verbal .subject-badge-pill {
  background: #f5f3ff;
  color: #8b5cf6;
}

.subject-nonverbal {
  border-left: 5px solid #06b6d4;
}
.subject-nonverbal .subject-tag {
  color: #0891b2;
}
.subject-nonverbal .subject-badge-pill {
  background: #ecfeff;
  color: #0891b2;
}

.subject-furthermaths {
  border-left: 5px solid #7c3aed;
}
.subject-furthermaths .subject-tag {
  color: #7c3aed;
}
.subject-furthermaths .subject-badge-pill {
  background: #f5f3ff;
  color: #7c3aed;
}

.subject-biology {
  border-left: 5px solid #059669;
}
.subject-biology .subject-tag {
  color: #059669;
}
.subject-biology .subject-badge-pill {
  background: #ecfdf5;
  color: #059669;
}

.subject-chemistry {
  border-left: 5px solid #d97706;
}
.subject-chemistry .subject-tag {
  color: #d97706;
}
.subject-chemistry .subject-badge-pill {
  background: #fffbeb;
  color: #d97706;
}

.subject-physics {
  border-left: 5px solid #0284c7;
}
.subject-physics .subject-tag {
  color: #0284c7;
}
.subject-physics .subject-badge-pill {
  background: #f0f9ff;
  color: #0284c7;
}


.curriculum-block ul ul {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
  list-style: circle;
}

.curriculum-block ul ul li {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
  .curriculum-year-switcher,
  .gcse-year-switcher {
    flex-direction: column;
    gap: 0.75rem;
  }
  .curriculum-year-btn,
  .gcse-year-btn {
    width: 100%;
    justify-content: center;
  }
  .curriculum-panel-header,
  .gcse-panel-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .curriculum-subject-nav,
  .gcse-subject-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }
  .curriculum-cards-grid,
  .gcse-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CODING & STEM ACADEMY DEDICATED STYLES
   ========================================================================== */
.coding-hero {
  background: linear-gradient(135deg, #090e24 0%, #111b42 50%, #1e1b4b 100%);
  color: #ffffff;
  padding: 5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.coding-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.coding-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: 10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.22) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.coding-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.coding-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #93c5fd;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.coding-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.coding-hero-title .gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.coding-hero-subtitle {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 2rem;
}

/* Category Filter Bar */
.coding-filter-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 74px;
  z-index: 900;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.coding-filter-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  padding: 0.75rem 0;
  max-width: 1360px;
  margin: 0 auto;
}

.coding-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border: 1px solid rgba(226, 232, 240, 0.9);
  white-space: nowrap;
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}

.coding-filter-btn:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand-blue);
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.coding-filter-btn.active {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

/* Coding Course Card */
.coding-courses-container {
  padding: 3.5rem 0 5rem;
}

.coding-courses-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.coding-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  scroll-margin-top: 175px;
}

.coding-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
  border-color: rgba(37, 99, 235, 0.25);
}

.coding-card-accent-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--brand-blue) 0%, #8b5cf6 50%, #06b6d4 100%);
}

.coding-card-inner {
  padding: 2.25rem 2.5rem;
}

@media (max-width: 768px) {
  .coding-card-inner {
    padding: 1.5rem 1.25rem;
  }
}

.coding-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.coding-header-left {
  flex: 1 1 500px;
}

.coding-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.65rem;
}

.badge-scratch { background: #fff7ed; color: #ea580c; border: 1px solid #fed7aa; }
.badge-web { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.badge-game { background: #fdf2f8; color: #db2777; border: 1px solid #fbcfe8; }
.badge-python { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.badge-js { background: #fefce8; color: #ca8a04; border: 1px solid #fef08a; }
.badge-canva { background: #faf5ff; color: #9333ea; border: 1px solid #e9d5ff; }
.badge-cyber { background: #ecfeff; color: #0891b2; border: 1px solid #a5f3fc; }
.badge-robotics { background: #f0fdfa; color: #0d9488; border: 1px solid #99f6e4; }
.badge-ai { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.badge-arduino { background: #e0f2fe; color: #0284c7; border: 1px solid #bae6fd; }
.badge-raspberry { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.badge-microbit { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }

.coding-course-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary-900);
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.coding-course-subtitle {
  font-size: 1.02rem;
  color: var(--brand-blue);
  font-weight: 600;
}

.coding-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-alt);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.meta-pill svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  color: var(--brand-blue);
}

/* Content Blocks */
.coding-block {
  margin-bottom: 1.85rem;
}

.coding-block-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.75rem;
}

.coding-overview-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--brand-blue);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Grid for Outcomes & Requirements */
.coding-details-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .coding-details-split {
    grid-template-columns: 1fr;
  }
}

.coding-outcomes-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.coding-outcome-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.91rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.coding-outcome-item svg {
  width: 18px;
  height: 18px;
  fill: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

.coding-tools-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  height: 100%;
}

.tools-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.tool-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-900);
}

/* Modules Grid */
.coding-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.coding-module-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: all var(--transition-fast);
}

.coding-module-item:hover {
  background: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.module-num {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--primary-900);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.module-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-900);
  line-height: 1.35;
}

/* Bottom Highlight Row */
.coding-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.85rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .coding-bottom-row {
    grid-template-columns: 1fr;
  }
}

.coding-cert-card {
  background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
}

.coding-cert-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.coding-cert-desc {
  font-size: 0.88rem;
  color: #78350f;
  line-height: 1.5;
}

.coding-pathways-card {
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
}

.coding-pathways-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f766e;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.pathways-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.pathway-tag {
  background: #ffffff;
  border: 1px solid #99f6e4;
  color: #0d9488;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

/* Card Action Bar */
.coding-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
}

.coding-actions-left {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.coding-actions-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Curriculum Card Actions for Academic Tuition */
.curriculum-card-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
}

.curriculum-card-actions .btn {
  flex: 1 1 calc(50% - 0.3rem);
  min-width: 130px;
  justify-content: center;
  text-align: center;
  font-size: 0.82rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}






@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
