/* ==========================================================================
   STEMora / Saif Powertec STEM Platform Design System & Stylesheet
   Theme: Vibrant Enterprise STEM Spectrum Architecture & Compact Layout
   ========================================================================== */

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

/* --- 1. Design Tokens & STEM Color Matrix --- */
:root {
  /* =========================================
     STEM Disciplinary Color Harmonies
     ========================================= */
  /* [S] SCIENCE: Cyber Emerald & Quantum Mint */
  --stem-science: #059669;
  --stem-science-vibrant: #10B981;
  --stem-science-light: #ECFDF5;
  --stem-science-border: rgba(16, 185, 129, 0.35);
  --stem-science-glow: rgba(16, 185, 129, 0.28);
  --stem-science-tint: rgba(16, 185, 129, 0.08);

  /* [T] TECHNOLOGY: High-Velocity Cobalt & Electric Azure */
  --stem-tech: #1D4ED8;
  --stem-tech-vibrant: #2563EB;
  --stem-tech-light: #EFF6FF;
  --stem-tech-border: rgba(37, 99, 235, 0.35);
  --stem-tech-glow: rgba(37, 99, 235, 0.28);
  --stem-tech-tint: rgba(37, 99, 235, 0.08);

  /* [E] ENGINEERING: Kinetic Tangerine & Precision Amber */
  --stem-eng: #C2410C;
  --stem-eng-vibrant: #EA580C;
  --stem-eng-light: #FFF7ED;
  --stem-eng-border: rgba(234, 88, 12, 0.35);
  --stem-eng-glow: rgba(234, 88, 12, 0.28);
  --stem-eng-tint: rgba(234, 88, 12, 0.08);

  /* [M] MATHEMATICS: Quantum Violet & Deep Indigo */
  --stem-math: #6D28D9;
  --stem-math-vibrant: #7C3AED;
  --stem-math-light: #F5F3FF;
  --stem-math-border: rgba(124, 58, 237, 0.35);
  --stem-math-glow: rgba(124, 58, 237, 0.28);
  --stem-math-tint: rgba(124, 58, 237, 0.08);

  /* Multi-Discipline STEM Gradients & Spectra */
  --stem-gradient: linear-gradient(135deg, #10B981 0%, #2563EB 33%, #EA580C 66%, #7C3AED 100%);
  --stem-gradient-h: linear-gradient(90deg, #10B981 0%, #2563EB 33%, #EA580C 66%, #7C3AED 100%);
  --stem-gradient-text: linear-gradient(135deg, #059669 0%, #2563EB 30%, #7C3AED 70%, #EA580C 100%);
  --stem-gradient-subtle: linear-gradient(135deg, rgba(16, 185, 129, 0.07) 0%, rgba(37, 99, 235, 0.07) 33%, rgba(234, 88, 12, 0.07) 66%, rgba(124, 58, 237, 0.07) 100%);
  --stem-gradient-btn: linear-gradient(135deg, #1E40AF 0%, #2563EB 50%, #7C3AED 100%);
  --stem-gradient-btn-hover: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 50%, #6D28D9 100%);

  /* =========================================
     Enterprise Executive Foundation
     ========================================= */
  --color-primary: #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-primary-light: #EFF6FF;
  --color-primary-glow: rgba(37, 99, 235, 0.25);

  --color-navy: #0B1528;
  --color-space-dark: #070D18;
  --color-space-card: #0D1B2E;
  --color-ink: #0F172A;
  --color-ink-light: #1E293B;
  --color-muted: #475569;
  --color-subtle: #64748B;
  --color-bg: #F8FAFC;
  --color-white: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-surface-raised: #FFFFFF;
  --color-border: #E2E8F0;
  --color-border-hover: #CBD5E1;
  --color-border-strong: #94A3B8;

  /* Badges & Difficulty */
  --color-easy: #059669;
  --color-easy-bg: #ECFDF5;
  --color-medium: #D97706;
  --color-medium-bg: #FFFBEB;
  --color-advanced: #DC2626;
  --color-advanced-bg: #FEF2F2;
  --color-star: #F59E0B;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout & Geometry (Tight, Squeezed & Modern) */
  --canvas-width: 1440px;
  --container-max-width: 1260px;
  --header-height: 68px;
  --ribbon-height: 34px;

  /* Radius System */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Shadows & Physics */
  --transition-fast: 0.16s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.26s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-card: 0 3px 14px -1px rgba(15, 23, 42, 0.06), 0 1px 4px -1px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 14px 30px -4px rgba(15, 23, 42, 0.11), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
  --shadow-elevated: 0 20px 42px -10px rgba(11, 21, 40, 0.16);
  --shadow-blue: 0 6px 20px rgba(37, 99, 235, 0.28);
}

/* --- 2. Global Reset & Base Setup --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-ink);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--color-bg);
  color: var(--color-ink);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

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

/* Squeezed Section Spacing */
.section-spacing {
  padding-top: 44px;
  padding-bottom: 44px;
  position: relative;
}

/* --- 3. Professional Typography & Badges --- */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: var(--color-primary-light);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--radius-pill);
}

.section-eyebrow.eyebrow-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #93C5FD;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.18;
  color: var(--color-navy);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 580px;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
}

.section-link-action {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-light);
  border: 1px solid rgba(37, 99, 235, 0.15);
  transition: all var(--transition-fast);
}

.section-link-action:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

/* Master STEM Text Gradient */
.stem-gradient-text {
  background: var(--stem-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* --- 4. Premium Button System --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--stem-gradient-btn);
  color: #FFFFFF;
  padding: 11px 22px;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  background: var(--stem-gradient-btn-hover);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45), 0 0 16px rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-navy);
  padding: 10px 18px;
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
  transform: translateY(-1px);
}

.btn-pill-arrow {
  padding: 12px 24px;
  font-size: 14.5px;
  letter-spacing: -0.01em;
}

.btn-pill-arrow svg {
  transition: transform var(--transition-fast);
}

.btn-pill-arrow:hover svg {
  transform: translateX(4px);
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-arrow-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.btn-arrow-circle:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  transform: translateX(2px) scale(1.06);
}

/* ==========================================================================
   00 — TOP INSTITUTIONAL ACCREDITATION RIBBON
   ========================================================================== */
.institutional-ribbon {
  background: var(--color-navy);
  color: #E2E8F0;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: var(--ribbon-height);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1001;
}

.institutional-ribbon::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--stem-gradient-h);
}

.ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.ribbon-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ribbon-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(16, 185, 129, 0.18);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.25);
}

.ribbon-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 8px #34D399;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.ribbon-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ribbon-link {
  color: #93C5FD;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ribbon-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* ==========================================================================
   01 — SITE HEADER & NAVIGATION
   ========================================================================== */
/* ==========================================================================
   01 — SITE HEADER & NAVIGATION (Single Line, Ultra-Premium Glassmorphic)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 64px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: height 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  height: 58px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  border-bottom-color: rgba(203, 213, 225, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: clamp(8px, 1.2vw, 16px);
  width: 100%;
}

.site-header.scrolled .brand-logo-img {
  height: 32px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.brand-link:hover {
  opacity: 0.92;
}

.brand-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 36px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.brand-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
}

.brand-smart,
.brand-stem {
  font-size: 21px;
  font-weight: 900;
  color: #0F172A;
  letter-spacing: -0.04em;
}

.brand-gen,
.brand-ora {
  font-size: 21px;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: -0.04em;
}

.brand-badge-stem {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  color: #2563EB;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--color-subtle);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 2px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.6vw, 10px);
  flex-wrap: nowrap;
  white-space: nowrap;
  background: rgba(248, 250, 252, 0.75);
  padding: 3px 5px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.site-header.scrolled .header-nav {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(203, 213, 225, 0.9);
}

.nav-link {
  font-size: clamp(12.5px, 0.9vw, 13.5px);
  font-weight: 600;
  color: #475569;
  padding: 5px clamp(6px, 0.7vw, 12px);
  border-radius: 999px;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.nav-link:hover {
  color: #1D4ED8;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.nav-link-ide {
  color: #0F172A;
}

.nav-badge-ide {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #059669;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
  letter-spacing: 0.4px;
}

.badge-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
  animation: radarPulse 1.8s infinite;
}

@keyframes radarPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.35);
    opacity: 1;
  }

  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
  flex-shrink: 0;
}

.search-trigger-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  cursor: pointer;
}

.search-trigger-btn:hover {
  color: #2563EB;
  border-color: #2563EB;
  background: rgba(37, 99, 235, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.btn-header-login {
  background: #FFFFFF;
  color: #0F172A;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid #E2E8F0;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-header-login:hover {
  border-color: #2563EB;
  color: #2563EB;
  background: #F8FAFC;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.btn-header-cta {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 50%, #7C3AED 100%);
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-header-cta:hover {
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45), 0 0 12px rgba(124, 58, 237, 0.3);
  transform: translateY(-1px);
  color: #FFFFFF;
}

.mobile-toggle-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--color-navy);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   02 — HERO SECTION (Executive High-Impact STEM Platform)
   ========================================================================== */
.hero-section {
  padding-top: 34px;
  padding-bottom: 38px;
  background:
    radial-gradient(circle at 12% 25%, rgba(16, 185, 129, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 88% 18%, rgba(37, 99, 235, 0.12) 0%, transparent 48%),
    radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 20% 78%, rgba(234, 88, 12, 0.07) 0%, transparent 42%),
    radial-gradient(#CBD5E1 0.75px, transparent 0.75px),
    #F8FAFC;
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 28px 28px, 100% 100%;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--stem-gradient-h);
  z-index: 10;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.hero-eyebrow-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--color-primary);
  text-transform: uppercase;
  padding: 4px 11px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-eyebrow-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulse-dot 1.8s infinite;
}

.hero-title {
  font-size: 46px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--color-navy);
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 520px;
  margin-bottom: 18px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.btn-hero-ide {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-navy);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.btn-hero-ide:hover {
  border-color: var(--stem-tech-vibrant);
  color: var(--stem-tech-vibrant);
  background: var(--stem-tech-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.ide-dot-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #EFF6FF;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Institutional Trust Matrix with STEM Disciplinary Colors */
.trust-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-ink-light);
}

.trust-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.trust-icon-science {
  background: var(--stem-science-light);
  color: var(--stem-science);
  border: 1px solid var(--stem-science-border);
  box-shadow: 0 0 10px var(--stem-science-glow);
}

.trust-icon-tech {
  background: var(--stem-tech-light);
  color: var(--stem-tech-vibrant);
  border: 1px solid var(--stem-tech-border);
  box-shadow: 0 0 10px var(--stem-tech-glow);
}

.trust-icon-eng {
  background: var(--stem-eng-light);
  color: var(--stem-eng-vibrant);
  border: 1px solid var(--stem-eng-border);
  box-shadow: 0 0 10px var(--stem-eng-glow);
}

.trust-icon-math {
  background: var(--stem-math-light);
  color: var(--stem-math-vibrant);
  border: 1px solid var(--stem-math-border);
  box-shadow: 0 0 10px var(--stem-math-glow);
}

/* Hero Visual & Hardware Telemetry HUD Showcase */
.hero-visual-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-hud-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 3.5px;
  background: var(--stem-gradient);
  border-radius: 30px;
  box-shadow: var(--shadow-elevated), 0 0 35px rgba(37, 99, 235, 0.2);
}

.hero-hud-inner {
  border-radius: 27px;
  overflow: hidden;
  position: relative;
  background: #0B1528;
}

.hero-photo-container {
  width: 100%;
  aspect-ratio: 1.12 / 1;
  position: relative;
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 0.5s ease;
}

.hero-hud-inner:hover .hero-photo {
  transform: scale(1.03);
}

/* High-Tech Telemetry Floating Cards */
.hud-telemetry-badge-top {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  background: rgba(11, 21, 40, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #FFFFFF;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-chip-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: rgba(37, 99, 235, 0.25);
  color: #60A5FA;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.hud-telemetry-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #E2E8F0;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-telemetry-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #34D399;
  margin-top: 2px;
}

.hud-telemetry-badge-bottom {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  color: var(--color-navy);
  box-shadow: 0 10px 28px rgba(11, 21, 40, 0.18);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-cert-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #FFF7ED;
  color: #EA580C;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(234, 88, 12, 0.3);
}

.hud-cert-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--color-navy);
}

.hud-cert-sub {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--color-subtle);
}

/* ==========================================================================
   03 — EXPLORE THE FOUR PILLARS OF STEM (Subject Architecture)
   ========================================================================== */
.subjects-section {
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.subjects-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--stem-gradient-h);
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.subject-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.subject-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* STEM Disciplinary Card Customization */
.subject-card.card-science {
  border-top: 4px solid var(--stem-science-vibrant);
}

.subject-card.card-science:hover {
  border-color: var(--stem-science-vibrant);
  box-shadow: 0 16px 32px -4px rgba(16, 185, 129, 0.22);
}

.subject-card.card-science:hover .btn-arrow-circle {
  background: var(--stem-science-vibrant);
  color: #FFFFFF;
  border-color: var(--stem-science-vibrant);
}

.subject-card.card-tech {
  border-top: 4px solid var(--stem-tech-vibrant);
}

.subject-card.card-tech:hover {
  border-color: var(--stem-tech-vibrant);
  box-shadow: 0 16px 32px -4px rgba(37, 99, 235, 0.22);
}

.subject-card.card-tech:hover .btn-arrow-circle {
  background: var(--stem-tech-vibrant);
  color: #FFFFFF;
  border-color: var(--stem-tech-vibrant);
}

.subject-card.card-eng {
  border-top: 4px solid var(--stem-eng-vibrant);
}

.subject-card.card-eng:hover {
  border-color: var(--stem-eng-vibrant);
  box-shadow: 0 16px 32px -4px rgba(234, 88, 12, 0.22);
}

.subject-card.card-eng:hover .btn-arrow-circle {
  background: var(--stem-eng-vibrant);
  color: #FFFFFF;
  border-color: var(--stem-eng-vibrant);
}

.subject-card.card-math {
  border-top: 4px solid var(--stem-math-vibrant);
}

.subject-card.card-math:hover {
  border-color: var(--stem-math-vibrant);
  box-shadow: 0 16px 32px -4px rgba(124, 58, 237, 0.22);
}

.subject-card.card-math:hover .btn-arrow-circle {
  background: var(--stem-math-vibrant);
  color: #FFFFFF;
  border-color: var(--stem-math-vibrant);
}

.subject-img-wrap {
  width: 100%;
  height: 140px;
  overflow: hidden;
  position: relative;
  background: #0B1528;
}

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

.subject-card:hover .subject-img {
  transform: scale(1.06);
}

.subject-discipline-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.tag-science {
  background: rgba(5, 150, 105, 0.95);
}

.tag-tech {
  background: rgba(37, 99, 235, 0.95);
}

.tag-eng {
  background: rgba(234, 88, 12, 0.95);
}

.tag-math {
  background: rgba(124, 58, 237, 0.95);
}

.subject-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.subject-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -38px;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
  border: 2px solid var(--color-white);
  transition: transform var(--transition-fast);
}

.subject-card:hover .subject-badge-icon {
  transform: scale(1.08);
}

.badge-science {
  background: var(--stem-science-light);
  color: var(--stem-science);
  box-shadow: 0 4px 14px var(--stem-science-glow);
}

.badge-tech {
  background: var(--stem-tech-light);
  color: var(--stem-tech-vibrant);
  box-shadow: 0 4px 14px var(--stem-tech-glow);
}

.badge-engineering,
.badge-eng {
  background: var(--stem-eng-light);
  color: var(--stem-eng-vibrant);
  box-shadow: 0 4px 14px var(--stem-eng-glow);
}

.badge-math {
  background: var(--stem-math-light);
  color: var(--stem-math-vibrant);
  box-shadow: 0 4px 14px var(--stem-math-glow);
}

.subject-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

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

.subject-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-subtle);
  margin-bottom: 10px;
  padding: 3px 8px;
  background: var(--color-bg);
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-border);
}

.subject-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}

.subject-link-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-navy);
  transition: color var(--transition-fast);
}

.subject-card:hover .subject-link-text {
  color: var(--color-primary);
}

/* ==========================================================================
   03.5 — FEATURED STEM COURSES (Live Database Showcase)
   ========================================================================== */
.stem-courses-section {
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 40%, #F8FAFC 100%);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.stem-courses-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.4), transparent);
}

.section-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  display: inline-block;
  box-shadow: 0 0 6px var(--color-primary-glow);
  animation: pulse-dot 2s infinite ease-in-out;
}

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

/* Category Filter Tabs Bar */
.courses-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

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

.course-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  color: var(--color-muted);
  font-family: var(--font-main);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.course-tab-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
  transform: translateY(-1px);
}

.course-tab-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.course-tab-pill .tab-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
}

.course-tab-pill.active .tab-badge {
  background: rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
}

.courses-quick-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-subtle);
  font-family: var(--font-mono);
}

.live-dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  display: inline-block;
  animation: live-blink 2s infinite ease-in-out;
}

@keyframes live-blink {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25); }
  50% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.1); }
}

/* Courses Header Actions & Controls */
.courses-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.courses-carousel-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.courses-carousel-nav .carousel-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-fast);
}

.courses-carousel-nav .carousel-nav-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF;
  transform: scale(1.06);
}

.courses-carousel-nav .carousel-nav-btn:disabled,
.courses-carousel-nav .carousel-nav-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--color-bg);
  border-color: var(--color-border);
  color: var(--color-subtle);
  transform: none;
  box-shadow: none;
}

/* Carousel Outer Wrapper with Relative Positioning */
.courses-carousel-wrapper {
  position: relative;
  width: 100%;
}

/* Floating Navigation Buttons */
.courses-float-btn {
  position: absolute;
  top: 48%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--color-border);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(11, 21, 40, 0.16);
  transition: all var(--transition-fast);
  outline: none;
}

.courses-float-btn.prev {
  left: -20px;
}

.courses-float-btn.next {
  right: -20px;
}

.courses-float-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.32);
}

.courses-float-btn:disabled,
.courses-float-btn.disabled {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Single-Row Carousel Track */
.stem-courses-carousel {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 12px 4px 22px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  user-select: none;
}

.stem-courses-carousel::-webkit-scrollbar {
  display: none;
}

/* Course Card in Carousel — Strict Single Row Size */
.stem-courses-carousel .stem-course-card {
  flex: 0 0 calc((100% - 60px) / 4);
  min-width: 275px;
  max-width: 320px;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  box-sizing: border-box;
}

.stem-courses-carousel .course-card-skeleton {
  flex: 0 0 calc((100% - 60px) / 4);
  min-width: 275px;
  max-width: 320px;
  scroll-snap-align: start;
  box-sizing: border-box;
}

/* Carousel Progress Bar & Indicator */
.courses-carousel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
  padding: 0 4px;
}

.courses-progress-bar-wrap {
  flex: 1;
  max-width: 240px;
  height: 4px;
  background: var(--color-border);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.courses-progress-bar-fill {
  height: 100%;
  width: 25%;
  background: var(--stem-gradient-h);
  border-radius: 999px;
  transition: width 0.25s ease, transform 0.25s ease;
}

.courses-carousel-counter {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-subtle);
  letter-spacing: 0.5px;
}

/* Course Card */
.stem-course-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  outline: none;
}

.stem-course-card:hover,
.stem-course-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow: 0 18px 36px -4px rgba(37, 99, 235, 0.18);
}

/* Card Thumbnail Wrap */
.stem-course-thumb-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  background: #0B1528;
  overflow: hidden;
}

.stem-course-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.stem-course-card:hover .stem-course-thumb {
  transform: scale(1.06);
}

.stem-course-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 21, 40, 0.1) 0%, rgba(11, 21, 40, 0.72) 100%);
  pointer-events: none;
}

/* Badges on Thumbnail */
.stem-course-thumb-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.course-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3.5px 9px;
  border-radius: 6px;
  background: rgba(11, 21, 40, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.course-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3.5px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.stem-course-thumb-bottom {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
  pointer-events: none;
}

.course-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.course-type-pill.simulator {
  background: rgba(37, 99, 235, 0.88);
  color: #FFFFFF;
  backdrop-filter: blur(6px);
}

.course-type-pill.video {
  background: rgba(236, 72, 153, 0.88);
  color: #FFFFFF;
  backdrop-filter: blur(6px);
}

.course-type-pill.hybrid {
  background: rgba(124, 58, 237, 0.88);
  color: #FFFFFF;
  backdrop-filter: blur(6px);
}

.course-price-tag {
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
}

.course-price-tag.free {
  background: #10B981;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.course-price-tag.paid {
  background: rgba(15, 23, 42, 0.88);
  color: #FFFFFF;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* Card Body */
.stem-course-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.stem-course-meta-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-size: 11.5px;
  flex-wrap: wrap;
}

.course-diff-badge {
  font-weight: 700;
  text-transform: capitalize;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.diff-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.course-diff-badge.beginner { color: var(--color-easy); }
.course-diff-badge.beginner .diff-dot { background: var(--color-easy); }

.course-diff-badge.intermediate { color: var(--color-medium); }
.course-diff-badge.intermediate .diff-dot { background: var(--color-medium); }

.course-diff-badge.advanced { color: var(--color-advanced); }
.course-diff-badge.advanced .diff-dot { background: var(--color-advanced); }

.course-meta-divider {
  color: var(--color-border-strong);
  font-size: 10px;
}

.course-modules-count {
  color: var(--color-subtle);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.course-age-pill {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-muted);
}

.stem-course-title {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--color-navy);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.stem-course-card:hover .stem-course-title {
  color: var(--color-primary);
}

.stem-course-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--color-muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Card Footer */
.stem-course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
  gap: 8px;
}

.demo-pill-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.stem-course-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.stem-course-card:hover .stem-course-action-btn {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.stem-course-action-btn svg {
  transition: transform var(--transition-fast);
}

.stem-course-card:hover .stem-course-action-btn svg {
  transform: translateX(3px);
}

/* Skeleton Loading State */
.course-card-skeleton {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  animation: pulse-shimmer 1.5s infinite ease-in-out;
}

@keyframes pulse-shimmer {
  0% { opacity: 0.55; }
  50% { opacity: 0.95; }
  100% { opacity: 0.55; }
}

.skeleton-thumb {
  width: 100%;
  height: 160px;
  background: #E2E8F0;
}

.skeleton-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-line {
  height: 12px;
  background: #E2E8F0;
  border-radius: 4px;
}

.skeleton-line.title {
  height: 16px;
  width: 80%;
}

.skeleton-line.desc {
  height: 12px;
  width: 95%;
}

.skeleton-line.footer {
  height: 22px;
  width: 50%;
  margin-top: 8px;
}

/* Empty & Error State */
.courses-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 24px;
  background: var(--color-white);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-lg);
}

.empty-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.empty-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.empty-desc {
  font-size: 13px;
  color: var(--color-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Bottom CTA Strip */
.courses-bottom-cta {
  display: none !important;
  background: linear-gradient(135deg, #0B1528 0%, #172554 50%, #1E1B4B 100%);
  border-radius: var(--radius-xl);
  padding: 24px 32px;
  box-shadow: 0 20px 40px -10px rgba(11, 21, 40, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.courses-bottom-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--stem-gradient-h);
}

.courses-bottom-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.cta-text-content {
  flex: 1 1 500px;
}

.cta-mini-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #60A5FA;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cta-title {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.cta-desc {
  font-size: 13px;
  color: #94A3B8;
  max-width: 620px;
  line-height: 1.45;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-launch-lab {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-launch-lab:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   04 — LEARNING PATHS FOR EVERY AGE (Curriculum Roadmap)
   ========================================================================== */
.learning-paths-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 22px;
  align-items: center;
}

.paths-action-wrap {
  margin-top: 18px;
}

.learning-paths-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.path-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.path-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* 4 STEM Stages Customization */
.path-card-science {
  border-top: 3.5px solid var(--stem-science-vibrant);
}

.path-card-science:hover {
  border-color: var(--stem-science-vibrant);
  box-shadow: 0 14px 28px -4px rgba(16, 185, 129, 0.22);
}

.path-card-science .path-age {
  color: var(--stem-science);
}

.path-card-science .path-check-item svg {
  color: var(--stem-science-vibrant);
}

.path-card-science .path-footer-action {
  color: var(--stem-science);
}

.path-card-tech {
  border-top: 3.5px solid var(--stem-tech-vibrant);
}

.path-card-tech:hover {
  border-color: var(--stem-tech-vibrant);
  box-shadow: 0 14px 28px -4px rgba(37, 99, 235, 0.22);
}

.path-card-tech .path-age {
  color: var(--stem-tech-vibrant);
}

.path-card-tech .path-check-item svg {
  color: var(--stem-tech-vibrant);
}

.path-card-tech .path-footer-action {
  color: var(--stem-tech-vibrant);
}

.path-card-eng {
  border-top: 3.5px solid var(--stem-eng-vibrant);
}

.path-card-eng:hover {
  border-color: var(--stem-eng-vibrant);
  box-shadow: 0 14px 28px -4px rgba(234, 88, 12, 0.22);
}

.path-card-eng .path-age {
  color: var(--stem-eng-vibrant);
}

.path-card-eng .path-check-item svg {
  color: var(--stem-eng-vibrant);
}

.path-card-eng .path-footer-action {
  color: var(--stem-eng-vibrant);
}

.path-card-math {
  border-top: 3.5px solid var(--stem-math-vibrant);
}

.path-card-math:hover {
  border-color: var(--stem-math-vibrant);
  box-shadow: 0 14px 28px -4px rgba(124, 58, 237, 0.22);
}

.path-card-math .path-age {
  color: var(--stem-math-vibrant);
}

.path-card-math .path-check-item svg {
  color: var(--stem-math-vibrant);
}

.path-card-math .path-footer-action {
  color: var(--stem-math-vibrant);
}

.path-img-wrap {
  width: 100%;
  height: 125px;
  overflow: hidden;
  position: relative;
}

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

.path-card:hover .path-img {
  transform: scale(1.06);
}

.path-tier-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.path-tier-badge.badge-science {
  background: rgba(6, 78, 59, 0.92) !important;
  color: #a7f3d0 !important;
  border: 1px solid rgba(52, 211, 153, 0.45);
}

.path-tier-badge.badge-tech {
  background: rgba(30, 58, 138, 0.92) !important;
  color: #bfdbfe !important;
  border: 1px solid rgba(96, 165, 250, 0.45);
}

.path-tier-badge.badge-eng,
.path-tier-badge.badge-engineering {
  background: rgba(124, 45, 18, 0.92) !important;
  color: #fed7aa !important;
  border: 1px solid rgba(251, 146, 60, 0.45);
}

.path-tier-badge.badge-math {
  background: rgba(88, 28, 135, 0.92) !important;
  color: #e9d5ff !important;
  border: 1px solid rgba(192, 132, 252, 0.45);
}

.path-body {
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.path-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 2px;
}

.path-age {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

.path-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.path-check-item {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-ink-light);
  display: flex;
  align-items: center;
  gap: 7px;
}

.path-footer-action {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   05 — FEATURED PROJECT: AUTONOMOUS SMART ROVER (Engineering Blueprint)
   ========================================================================== */
.featured-project-box {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}

.featured-project-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--stem-gradient-h);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
  align-items: center;
}

.project-blueprint-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--stem-eng-vibrant);
  background: var(--stem-eng-light);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  border: 1px solid rgba(234, 88, 12, 0.25);
}

.project-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
  margin-top: 12px;
  margin-bottom: 16px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-ink-light);
  transition: all var(--transition-fast);
}

.spec-item:hover {
  transform: translateY(-2px);
}

.spec-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spec-tech {
  background: var(--stem-tech-light);
  border: 1px solid var(--stem-tech-border);
}

.spec-tech .spec-icon {
  background: var(--stem-tech-vibrant);
  color: #FFFFFF;
}

.spec-science {
  background: var(--stem-science-light);
  border: 1px solid var(--stem-science-border);
}

.spec-science .spec-icon {
  background: var(--stem-science);
  color: #FFFFFF;
}

.spec-math {
  background: var(--stem-math-light);
  border: 1px solid var(--stem-math-border);
}

.spec-math .spec-icon {
  background: var(--stem-math-vibrant);
  color: #FFFFFF;
}

.spec-eng {
  background: var(--stem-eng-light);
  border: 1px solid var(--stem-eng-border);
}

.spec-eng .spec-icon {
  background: var(--stem-eng-vibrant);
  color: #FFFFFF;
}

.project-media-wrap {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 12px;
}

.project-main-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 290px;
  box-shadow: var(--shadow-card);
  background: #0B1528;
}

.project-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--stem-gradient-btn);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5), 0 0 20px rgba(124, 58, 237, 0.4);
  transition: all var(--transition-fast);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.project-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.65), 0 0 26px rgba(124, 58, 237, 0.6);
}

.project-thumbs-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 88px;
  border: 1.5px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: #0B1528;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-thumb:hover {
  transform: scale(1.03);
  border-color: var(--color-primary);
}

.thumb-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(11, 21, 40, 0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

/* ==========================================================================
   06 — IMPACT STATS & ENTERPRISE TELEMETRY BANNER
   ========================================================================== */
.stats-banner {
  background-color: #020612;
  position: relative;
  overflow: hidden;
  padding: 42px 0 36px;
  border-top: 1px solid rgba(56, 189, 248, 0.22);
  border-bottom: 1px solid rgba(56, 189, 248, 0.22);
}

/* Solar Galaxy Background Layer (70% Opacity) */
.stats-galaxy-bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/solar-galaxy-bg.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.3;
  /* 70% opacity */
  pointer-events: none;
  z-index: 0;
}

.stats-cosmic-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
  /* 70% opacity */
}

.stats-banner .container {
  position: relative;
  z-index: 2;
}

.stats-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(2, 6, 18, 0.20) 0%, rgba(1, 4, 14, 0.65) 100%),
    linear-gradient(180deg, rgba(1, 4, 14, 0.55) 0%, transparent 25%, transparent 75%, rgba(1, 4, 14, 0.55) 100%);
  pointer-events: none;
  z-index: 1;
}

.stats-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 45%, rgba(6, 182, 212, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 75% 55%, rgba(59, 130, 246, 0.09) 0%, transparent 50%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
  /* 70% opacity */
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 12%;
  height: 76%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.stat-number {
  font-size: 46px;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.stat-science .stat-number {
  background: linear-gradient(135deg, #6EE7B7 0%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-science .stat-badge-sub {
  color: #34D399;
}

.stat-tech .stat-number {
  background: linear-gradient(135deg, #93C5FD 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-tech .stat-badge-sub {
  color: #38BDF8;
}

.stat-eng .stat-number {
  background: linear-gradient(135deg, #FDBA74 0%, #FB923C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-eng .stat-badge-sub {
  color: #FB923C;
}

.stat-math .stat-number {
  background: linear-gradient(135deg, #E9D5FF 0%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-math .stat-badge-sub {
  color: #C084FC;
}

.stat-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.2px;
}

.stat-badge-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  margin-top: 3px;
  font-weight: 600;
}

/* Institutional Partner Ticker */
.partner-accreditation-ribbon {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  position: relative;
  z-index: 2;
}

.partner-ribbon-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #e6e8eb;
  margin-bottom: 12px;
}

.partner-pills-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.partner-pill {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all var(--transition-fast);
}

.partner-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(96, 165, 250, 0.5);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* ==========================================================================
   07 — OUR METHODOLOGY: FROM CURIOSITY TO COMMERCIAL INNOVATION
   ========================================================================== */
.approach-section {
  background-color: var(--color-white);
}

.approach-top-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 22px;
}

.approach-photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 240px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.approach-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 7-Step Chromatic STEM Pipeline */
.approach-pipeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: #F8FAFC;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.pipeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.pipeline-step-num {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--color-subtle);
  letter-spacing: 0.5px;
}

.pipeline-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
}

/* Chromatic Node Accents */
.node-science-1 .pipeline-circle {
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.node-science-2 .pipeline-circle {
  color: #0D9488;
  border-color: rgba(13, 148, 136, 0.4);
  background: rgba(13, 148, 136, 0.08);
}

.node-tech-1 .pipeline-circle {
  color: #0284C7;
  border-color: rgba(2, 132, 199, 0.4);
  background: rgba(2, 132, 199, 0.08);
}

.node-tech-2 .pipeline-circle {
  color: #2563EB;
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(37, 99, 235, 0.08);
}

.node-eng .pipeline-circle {
  color: #EA580C;
  border-color: rgba(234, 88, 12, 0.4);
  background: rgba(234, 88, 12, 0.08);
}

.node-math .pipeline-circle {
  color: #7C3AED;
  border-color: rgba(124, 58, 237, 0.4);
  background: rgba(124, 58, 237, 0.08);
}

.node-deploy .pipeline-circle {
  color: #F59E0B;
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
}

.pipeline-node:hover .pipeline-circle {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.node-science-1:hover .pipeline-circle {
  background: #10B981;
  color: #FFFFFF;
  border-color: #10B981;
}

.node-science-2:hover .pipeline-circle {
  background: #0D9488;
  color: #FFFFFF;
  border-color: #0D9488;
}

.node-tech-1:hover .pipeline-circle {
  background: #0284C7;
  color: #FFFFFF;
  border-color: #0284C7;
}

.node-tech-2:hover .pipeline-circle {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
}

.node-eng:hover .pipeline-circle {
  background: #EA580C;
  color: #FFFFFF;
  border-color: #EA580C;
}

.node-math:hover .pipeline-circle {
  background: #7C3AED;
  color: #FFFFFF;
  border-color: #7C3AED;
}

.node-deploy:hover .pipeline-circle {
  background: #F59E0B;
  color: #FFFFFF;
  border-color: #F59E0B;
}

.pipeline-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-navy);
}

.pipeline-sublabel {
  font-size: 10.5px;
  color: var(--color-muted);
  text-align: center;
}

.pipeline-connector {
  flex: 1;
  height: 2.5px;
  background: linear-gradient(90deg, #10B981, #0D9488, #0284C7, #2563EB, #EA580C, #7C3AED, #F59E0B);
  margin: -18px 8px 0;
  opacity: 0.65;
}

/* ==========================================================================
   08 — STEM COMPETITION & OLYMPIAD CHALLENGES
   ========================================================================== */
.challenges-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 22px;
  align-items: center;
}

.challenges-action-wrap {
  margin-top: 18px;
}

.challenges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.challenge-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.challenge-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.challenge-eng {
  border-top: 3.5px solid var(--stem-eng-vibrant);
}

.challenge-eng:hover {
  border-color: var(--stem-eng-vibrant);
  box-shadow: 0 14px 28px -4px rgba(234, 88, 12, 0.22);
}

.challenge-eng:hover .btn-arrow-circle {
  background: var(--stem-eng-vibrant);
  color: #fff;
  border-color: var(--stem-eng-vibrant);
}

.challenge-tech {
  border-top: 3.5px solid var(--stem-tech-vibrant);
}

.challenge-tech:hover {
  border-color: var(--stem-tech-vibrant);
  box-shadow: 0 14px 28px -4px rgba(37, 99, 235, 0.22);
}

.challenge-tech:hover .btn-arrow-circle {
  background: var(--stem-tech-vibrant);
  color: #fff;
  border-color: var(--stem-tech-vibrant);
}

.challenge-math {
  border-top: 3.5px solid var(--stem-math-vibrant);
}

.challenge-math:hover {
  border-color: var(--stem-math-vibrant);
  box-shadow: 0 14px 28px -4px rgba(124, 58, 237, 0.22);
}

.challenge-math:hover .btn-arrow-circle {
  background: var(--stem-math-vibrant);
  color: #fff;
  border-color: var(--stem-math-vibrant);
}

.challenge-img-wrap {
  width: 100%;
  height: 135px;
  overflow: hidden;
  position: relative;
}

.challenge-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.challenge-card:hover .challenge-img-wrap img {
  transform: scale(1.05);
}

.challenge-badge-olympiad {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2.5px 7px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.85);
  color: #FBBF24;
  backdrop-filter: blur(6px);
}

.challenge-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.challenge-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.challenge-meta {
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meta-dot {
  color: var(--color-border-strong);
}

.challenge-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}

.difficulty-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.4px;
}

.difficulty-badge.easy {
  background: var(--color-easy-bg);
  color: var(--color-easy);
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.difficulty-badge.medium {
  background: var(--color-medium-bg);
  color: var(--color-medium);
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.difficulty-badge.advanced {
  background: var(--color-advanced-bg);
  color: var(--color-advanced);
  border: 1px solid rgba(220, 38, 38, 0.25);
}

/* ==========================================================================
   09 — COMPLETE STEM ECOSYSTEM (Institutional & Enterprise)
   ========================================================================== */
.ecosystem-section {
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.ecosystem-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--color-border);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.ecosystem-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.eco-card-science {
  border-top: 4px solid var(--stem-science-vibrant);
}

.eco-card-science:hover {
  border-color: var(--stem-science-vibrant);
  box-shadow: 0 16px 32px -4px rgba(16, 185, 129, 0.22);
}

.eco-card-science .ecosystem-icon-circle {
  background: linear-gradient(135deg, #10B981, #0284C7);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
  border: none;
}

.eco-card-science .ecosystem-link {
  color: var(--stem-science);
}

.eco-card-tech {
  border-top: 4px solid var(--stem-tech-vibrant);
}

.eco-card-tech:hover {
  border-color: var(--stem-tech-vibrant);
  box-shadow: 0 16px 32px -4px rgba(37, 99, 235, 0.22);
}

.eco-card-tech .ecosystem-icon-circle {
  background: linear-gradient(135deg, #2563EB, #EA580C);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
  border: none;
}

.eco-card-tech .ecosystem-link {
  color: var(--stem-tech-vibrant);
}

.eco-card-math {
  border-top: 4px solid var(--stem-math-vibrant);
}

.eco-card-math:hover {
  border-color: var(--stem-math-vibrant);
  box-shadow: 0 16px 32px -4px rgba(124, 58, 237, 0.22);
}

.eco-card-math .ecosystem-icon-circle {
  background: linear-gradient(135deg, #7C3AED, #4F46E5);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3);
  border: none;
}

.eco-card-math .ecosystem-link {
  color: var(--stem-math-vibrant);
}

.ecosystem-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.ecosystem-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.ecosystem-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--color-muted);
  margin-bottom: 14px;
  flex: 1;
}

.ecosystem-link {
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform var(--transition-fast);
}

.ecosystem-link:hover {
  transform: translateX(4px);
}

/* ==========================================================================
   10 — TESTIMONIALS: REAL STORIES. REAL IMPACT.
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.test-card-science:hover {
  border-color: var(--stem-science-vibrant);
}

.test-card-science .testimonial-avatar {
  border-color: var(--stem-science-vibrant);
  box-shadow: 0 0 10px var(--stem-science-glow);
}

.test-card-tech:hover {
  border-color: var(--stem-tech-vibrant);
}

.test-card-tech .testimonial-avatar {
  border-color: var(--stem-tech-vibrant);
  box-shadow: 0 0 10px var(--stem-tech-glow);
}

.test-card-eng:hover {
  border-color: var(--stem-eng-vibrant);
}

.test-card-eng .testimonial-avatar {
  border-color: var(--stem-eng-vibrant);
  box-shadow: 0 0 10px var(--stem-eng-glow);
}

.testimonial-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--color-primary-light);
}

.testimonial-header-info {
  display: flex;
  flex-direction: column;
}

.testimonial-author-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--color-navy);
}

.testimonial-author-role {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-primary);
}

.star-rating {
  color: var(--color-star);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.testimonial-quote {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-ink-light);
  font-weight: 500;
  font-style: italic;
  flex: 1;
}

.carousel-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.carousel-nav-btn:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  transform: scale(1.05);
}

/* ==========================================================================
   11 — FINAL CALL TO ACTION (Executive Cosmic Banner)
   ========================================================================== */
.final-cta-section {
  position: relative;
  background: var(--color-space-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 38px 40px;
  box-shadow: 0 16px 40px rgba(6, 13, 26, 0.45);
  display: flex;
  align-items: center;
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.final-cta-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 50%, rgba(37, 99, 235, 0.28) 0%, rgba(124, 58, 237, 0.2) 35%, rgba(6, 13, 26, 0.98) 75%);
  pointer-events: none;
}

.final-cta-astronaut-wrap {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  pointer-events: none;
  z-index: 1;
}

.final-cta-cosmic-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}

.final-cta-astronaut-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
}

.final-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  background: rgba(255, 255, 255, 0.1);
  color: #93C5FD;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 12px;
}

.final-cta-content {
  position: relative;
  z-index: 5;
  max-width: 540px;
}

.final-cta-title {
  font-size: 34px;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.final-cta-subtitle {
  font-size: 14.5px;
  color: #94A3B8;
  line-height: 1.55;
  margin-bottom: 20px;
}

.final-cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   12 — SITE FOOTER (Corporate Institutional)
   ========================================================================== */
.site-footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding-top: 38px;
  padding-bottom: 22px;
  position: relative;
  overflow: hidden;
}

.site-footer .container {
  position: relative;
  z-index: 2;
}

/* Footer Network Connections Animation Canvas */
.footer-network-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.6;
  /* 60% opacity */
  pointer-events: none;
  overflow: hidden;
}

.footer-network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--stem-gradient-h);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-col-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  font-size: 13.5px;
  color: var(--color-muted);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-primary);
  transform: translateX(2px);
}

.newsletter-form {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 14px;
}

.newsletter-input {
  width: 100%;
  padding: 10px 44px 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  font-family: inherit;
  font-size: 13.5px;
  background: var(--color-bg);
  outline: none;
  transition: all var(--transition-fast);
}

.newsletter-input:focus {
  border-color: var(--color-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.newsletter-submit {
  position: absolute;
  right: 5px;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--color-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.newsletter-submit:hover {
  background: var(--color-primary-dark);
}

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

.social-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  font-size: 12.5px;
  color: var(--color-subtle);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ==========================================================================
   MODALS, SEARCH & MOBILE DRAWER
   ========================================================================== */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 21, 40, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 290px;
  max-width: 86vw;
  height: 100vh;
  background: var(--color-white);
  z-index: 2001;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.mobile-nav-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy);
  padding: 6px 0;
  border-bottom: 1px solid #F1F5F9;
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

/* Search Modal */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 21, 40, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

.search-modal-backdrop.open,
.search-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.search-modal-content {
  background: var(--color-white);
  width: 90%;
  max-width: 580px;
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--color-border);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1.5px solid var(--color-border);
  padding-bottom: 10px;
}

.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-navy);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Compacted & Optimized)
   ========================================================================== */
@media (max-width: 1200px) {
  .stem-courses-carousel .stem-course-card,
  .stem-courses-carousel .course-card-skeleton {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 260px;
  }

  .learning-paths-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .learning-paths-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .challenges-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 1240px) {
  .header-nav {
    display: none;
  }

  .mobile-toggle-btn {
    display: flex;
  }

  .btn-header-login {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .subjects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stem-courses-carousel .stem-course-card,
  .stem-courses-carousel .course-card-skeleton {
    flex: 0 0 calc((100% - 20px) / 2.2);
    min-width: 250px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .approach-top-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .approach-pipeline {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }

  .pipeline-connector {
    display: none;
  }

  .ecosystem-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 56px;
  }

  .site-header.scrolled {
    height: 52px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  }

  .site-header .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-inner {
    gap: 8px;
  }

  .brand-logo-img {
    height: 30px;
    max-width: 90px;
  }

  .site-header.scrolled .brand-logo-img {
    height: 27px;
  }

  .brand-smart,
  .brand-gen {
    font-size: 19px;
  }

  .header-actions {
    gap: 6px;
  }

  .btn-header-cta {
    padding: 6px 13px;
    font-size: 12.5px;
  }

  .mobile-toggle-btn {
    width: 36px;
    height: 36px;
  }

  .search-trigger-btn {
    width: 34px;
    height: 34px;
  }

  .section-spacing {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .section-title {
    font-size: clamp(24px, 5vw, 32px);
    line-height: 1.2;
  }

  .section-subtitle {
    font-size: clamp(13px, 2.5vw, 15px);
    line-height: 1.55;
  }

  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }

  .stem-courses-carousel {
    padding-bottom: 16px;
    gap: 14px;
  }

  .stem-courses-carousel .stem-course-card,
  .stem-courses-carousel .course-card-skeleton {
    flex: 0 0 84%;
    min-width: 250px;
  }

  .courses-float-btn {
    display: none !important;
  }

  .courses-filter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
  }

  .courses-filter-tabs {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .courses-bottom-cta {
    padding: 20px 16px;
  }

  .courses-bottom-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cta-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .cta-actions .btn,
  .cta-actions .btn-launch-lab {
    width: 100%;
    justify-content: center;
  }

  .hero-title {
    font-size: 34px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }

  .stat-number {
    font-size: clamp(30px, 6vw, 42px);
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .partner-pills-row {
    gap: 8px;
  }

  .partner-pill {
    font-size: 11px;
    padding: 4px 10px;
  }

  .subjects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .learning-paths-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .learning-paths-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .featured-project-box {
    padding: 20px 16px;
  }

  .project-specs-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
  }

  .approach-pipeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 14px;
    padding: 18px 14px;
  }

  .pipeline-node {
    width: 86px;
    text-align: center;
    opacity: 1 !important;
  }

  .pipeline-connector {
    display: none;
  }

  .challenges-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .challenges-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-trust-matrix {
    grid-template-columns: 1fr;
  }

  /* Final CTA: Keep astronaut kid and cosmic canvas visible on tablet & mobile */
  .final-cta-section {
    padding: clamp(28px, 5vw, 36px) clamp(16px, 4vw, 24px);
    text-align: center;
    position: relative;
    min-height: auto;
  }

  .final-cta-astronaut-wrap {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.38;
    pointer-events: none;
    z-index: 1;
  }

  .final-cta-astronaut-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 30%;
    mask-image: radial-gradient(circle at 65% 45%, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 80%);
    -webkit-mask-image: radial-gradient(circle at 65% 45%, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 80%);
  }

  .final-cta-content {
    margin: 0 auto;
    max-width: 100%;
    position: relative;
    z-index: 5;
  }

  .final-cta-title {
    font-size: clamp(23px, 5vw, 30px);
    line-height: 1.2;
  }

  .final-cta-actions {
    justify-content: center;
    gap: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .institutional-ribbon {
    display: none;
  }
}

@media (max-width: 520px) {
  .brand-badge-stem {
    display: none;
  }

  .brand-link {
    gap: 8px;
  }

  .brand-smart,
  .brand-gen {
    font-size: 18px;
  }

  .brand-logo-img {
    height: 28px;
  }

  .site-header.scrolled .brand-logo-img {
    height: 25px;
  }

  .header-inner {
    gap: 6px;
  }

  .header-actions {
    gap: 5px;
  }

  .btn-header-cta {
    padding: 6px 10px;
    font-size: 12px;
    gap: 4px;
  }

  .btn-header-cta svg {
    display: none;
  }

  .stats-grid {
    gap: 14px 10px;
  }

  .stat-label {
    font-size: 12px;
  }

  .partner-pill {
    font-size: 10.5px;
    padding: 4px 8px;
  }

  .final-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .final-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .site-header .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand-link {
    gap: 6px;
  }

  .brand-smart,
  .brand-gen {
    font-size: 16.5px;
  }

  .brand-logo-img {
    height: 24px;
  }

  .site-header.scrolled .brand-logo-img {
    height: 22px;
  }

  .header-actions {
    gap: 4px;
  }

  .btn-header-cta {
    padding: 5px 8px;
    font-size: 11px;
  }

  .search-trigger-btn {
    width: 30px;
    height: 30px;
  }

  .mobile-toggle-btn {
    width: 32px;
    height: 32px;
  }

  .stat-number {
    font-size: 28px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ==========================================================================
   FLOATING SCROLL-TO-TOP BUTTON (STEM Spectrum Action Widget)
   ========================================================================== */
.btn-scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--stem-gradient-btn, linear-gradient(135deg, #1E40AF 0%, #2563EB 50%, #7C3AED 100%));
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.42), 0 0 15px rgba(124, 58, 237, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 990;
  padding: 0;
  margin: 0;
  outline: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px) scale(0.85);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease,
              background 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.btn-scroll-top:hover {
  background: var(--stem-gradient-btn-hover, linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 50%, #6D28D9 100%));
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.6), 0 0 22px rgba(124, 58, 237, 0.45);
  transform: translateY(-4px) scale(1.08);
}

.btn-scroll-top:hover .scroll-top-icon svg {
  transform: translateY(-2px);
}

.btn-scroll-top:active {
  transform: translateY(-1px) scale(0.96);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-scroll-top:focus-visible {
  outline: 2px solid #60A5FA;
  outline-offset: 3px;
}

/* Circular Progress Ring overlay */
.scroll-progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.progress-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 2.5;
}

.progress-ring-bar {
  fill: none;
  stroke: #38BDF8; /* Cyber Azure Cyan */
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 125.66;
  stroke-dashoffset: 125.66;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.1s linear;
}

.scroll-top-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  color: #FFFFFF;
}

.scroll-top-icon svg {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 768px) {
  .btn-scroll-top {
    bottom: 22px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .btn-scroll-top {
    bottom: 18px;
    right: 16px;
    width: 42px;
    height: 42px;
  }

  .btn-scroll-top:hover {
    transform: translateY(0) scale(1.02);
  }
}