/* ============================================================
   STOCKS MASTERCLASS — styles.css
   Theme: Light Blue | Font: Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Background layers */
  --bg: #ffffff;
  --bg-alt: #f0f6ff;
  --bg-card: #ffffff;
  --bg-hero: #0d1b3e;
  /* deep navy for hero */

  /* Blue palette */
  --blue: #1d4ed8;
  /* primary CTA */
  --blue-mid: #3b82f6;
  /* links, icons */
  --blue-light: #eff6ff;
  /* pill bg, tag bg */
  --blue-dim: rgba(29, 78, 216, 0.08);
  --blue-border: rgba(29, 78, 216, 0.18);

  /* Text */
  --text: #0f172a;
  /* headings */
  --text-muted: #475569;
  /* body copy */
  --text-light: #94a3b8;
  /* captions */

  /* Borders */
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-blue: rgba(29, 78, 216, 0.2);

  /* Legacy aliases (keeps JS/existing references working) */
  --navy: #0d1b3e;
  --navy-mid: #f0f6ff;
  --navy-accent: #ffffff;
  --navy-card: #ffffff;
  --gold: #1d4ed8;
  /* all gold → blue */
  --gold-light: #3b82f6;
  --gold-dim: rgba(29, 78, 216, 0.08);
  --white: #0f172a;
  /* text on dark sections */
  --grey: #475569;
  --grey-light: #64748b;
  --border-light: #e2e8f0;

  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 4px 24px rgba(30, 64, 175, 0.10);
  --shadow-lg: 0 12px 48px rgba(30, 64, 175, 0.14);
  --glow: 0 0 28px rgba(29, 78, 216, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ── */
h1,
h2,
h3,
h4 {
  line-height: 1.15;
  font-weight: 800;
  color: var(--text);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2.2rem, 3.8vw, 2.8rem);
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  color: var(--text-muted);
  font-size: 1rem;
}

.gold {
  color: var(--blue);
}

/* ── Section Labels ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
  flex-shrink: 0;
}

.section-title {
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

/* ── Layout ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  scroll-margin-top: 80px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.28);
}

.btn-primary:hover {
  background: #1a43c2;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(29, 78, 216, 0.38);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-hover);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid var(--blue-border);
}

.btn-ghost:hover {
  background: var(--blue-light);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 1px solid transparent;
}

/* Hero is dark, nav starts transparent with white text */
.nav .nav-logo-text {
  color: #ffffff;
}

.nav .nav-logo-text span {
  color: #93c5fd;
}

.nav .nav-links a {
  color: rgba(255, 255, 255, 0.75);
}

.nav .nav-toggle span {
  background: #ffffff;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(30, 64, 175, 0.07);
}

/* After scroll, nav text becomes dark */
.nav.scrolled .nav-logo-text {
  color: var(--text);
}

.nav.scrolled .nav-logo-text span {
  color: var(--blue);
}

.nav.scrolled .nav-links a {
  color: var(--text-muted);
}

.nav.scrolled .nav-links a:hover {
  color: var(--blue);
}

.nav.scrolled .nav-toggle span {
  background: var(--text);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: color var(--transition);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 0;
  overflow: hidden;
  background: var(--bg-hero);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('hero.webp');
  background-size: cover;
  background-position: top center;
  filter: brightness(0.12) saturate(1.1);
  mix-blend-mode: luminosity;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 5% 55%, rgba(37, 99, 235, 0.32) 0%, transparent 65%),
    radial-gradient(ellipse 55% 65% at 80% 90%, rgba(109, 40, 217, 0.20) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 50% 0%, rgba(59, 130, 246, 0.14) 0%, transparent 55%),
    linear-gradient(150deg,
      #030813 0%,
      #060f28 18%,
      #0c1c47 38%,
      #0e2255 55%,
      #0a1838 75%,
      #040a1e 100%);
}

/* ── 2-column split ── */
.hero-split {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 88px);
  padding: 56px 0;
}

/* ── Left side ── */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 64px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(147, 197, 253, 0.12);
  border: 1px solid rgba(147, 197, 253, 0.28);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 0.73rem;
  font-weight: 600;
  color: #93c5fd;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  backdrop-filter: blur(8px);
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  text-align: left;
}

/* Highlighted word in headline */
.hero-accent {
  color: #60a5fa;
}

/* Bullet highlights */
.hero-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 1.75rem;
}

.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.80);
  font-weight: 500;
}

.hero-highlights li svg {
  color: #60a5fa;
  flex-shrink: 0;
}

/* CTA buttons */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  justify-content: flex-start;
}

.hero-register-btn {
  background: var(--blue);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  padding: 15px 32px;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(29, 78, 216, 0.45);
  letter-spacing: -0.01em;
}

.hero-register-btn:hover {
  background: #1a43c2;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(29, 78, 216, 0.55);
}

.hero-learn-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  border: 1.5px solid rgba(255, 255, 255, 0.26);
  font-size: 0.93rem;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 8px;
}

.hero-learn-btn:hover {
  border-color: #93c5fd;
  color: #93c5fd;
  transform: translateY(-2px);
}

/* Countdown inline below CTA */
.hero-left .countdown-wrapper {
  align-items: flex-start;
}

.hero-left .countdown-label {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.hero-left .countdown {
  gap: 12px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(147, 197, 253, 0.08);
  border: 1px solid rgba(147, 197, 253, 0.2);
  border-radius: 8px;
  min-width: 72px;
  padding: 10px 0;
  backdrop-filter: blur(4px);
}

.hero-left .countdown-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 2px;
}

.hero-left .countdown-sep {
  font-size: 1.8rem;
  font-weight: 200;
  color: rgba(147, 197, 253, 0.60);
  margin-bottom: 14px;
  display: none;
  /* Hide separators for boxed look */
}

.hero-left .countdown-unit>span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #93c5fd;
}

/* ── Right side: photo ── */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

/* Light gray card background behind portrait PNG */
.hero-photo-wrap::before {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  background: #c8d8e8;
  border-radius: 24px;
  z-index: 0;
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  height: 460px;
  object-fit: cover;
  object-position: top center;
  border-radius: 24px;
  filter: brightness(1.04) contrast(1.02);
}

/* ── Floating stat cards ── */
.hero-float {
  position: absolute;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  border-radius: 14px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(13, 27, 62, 0.22);
  z-index: 10;
}

.hero-float--rating {
  top: 16px;
  right: -20px;
  animation: float-bob 4s ease-in-out infinite;
}

.hero-float--students {
  bottom: 20px;
  left: -20px;
  animation: float-bob 4s ease-in-out infinite 2s;
}

@keyframes float-bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

.hero-float-icon {
  font-size: 1.2rem;
  width: 38px;
  height: 38px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}

.hero-float-num {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.hero-float-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Floating Market Widget (hidden) ── */
.floating-market-widget {
  display: none !important;
}

.market-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  padding-right: 12px;
}

.market-content {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  min-width: 100px;
}

.widget-ticker {
  animation: fadeInOut 2s ease-in-out infinite alternate;
}

.widget-ticker .up {
  color: #16a34a;
}

.widget-ticker .down {
  color: #dc2626;
}

@keyframes fadeInOut {
  from {
    opacity: 0.7;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .floating-market-widget {
    top: 88px;
    bottom: auto;
    left: 16px;
    right: 16px;
    justify-content: center;
  }
}

/* ── Countdown ── */
.countdown-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.25rem;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 28px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.countdown-num {
  font-size: 3.5rem;
  font-weight: 200;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 6px;
}

.countdown-sep {
  font-size: 2.2rem;
  font-weight: 200;
  color: rgba(147, 197, 253, 0.4);
  margin-bottom: 20px;
}

.countdown-text {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
}

/* ── Stats bar ── */
.stats-bar {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
}

.stats-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 160px;
  text-align: center;
}

.stat-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.04em;
}

.stat-num span {
  color: var(--blue);
}

.stat-desc {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── What You Will Learn ── */
.learn {
  background: var(--bg);
}

.learn-header {
  text-align: center;
  margin-bottom: 56px;
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.learn-card {
  background: var(--bg-card);
  padding: 32px 28px;
  transition: background var(--transition);
}

.learn-card:hover {
  background: var(--blue-light);
}

.learn-icon {
  width: 40px;
  height: 40px;
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 18px;
}

.learn-card h3 {
  font-size: 0.93rem;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.learn-card p {
  font-size: 0.83rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ── About / Instructor ── */
.about {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
}

.about-img-wrap {
  position: relative;
  width: 360px;
  height: 360px;
  flex-shrink: 0;
}

/* Decorative outer ring */
.about-img-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2.5px solid var(--blue-border);
  background: transparent;
  pointer-events: none;
}

.about-photo {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border: 4px solid #ffffff;
  box-shadow:
    0 0 0 6px rgba(29, 78, 216, 0.12),
    0 16px 48px rgba(0, 0, 0, 0.18);
  filter: brightness(1.02) contrast(1.02);
}

/* ── About floating stat cards ── */
.about-stat {
  position: absolute;
  background: #ffffff;
  border-radius: 14px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 28px rgba(30, 64, 175, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(29, 78, 216, 0.10);
  z-index: 10;
  white-space: nowrap;
}

.about-stat--exp {
  top: 8px;
  right: -28px;
  animation: float-bob 4s ease-in-out infinite;
}

.about-stat--students {
  bottom: 24px;
  left: -28px;
  animation: float-bob 4s ease-in-out infinite 1.4s;
}

.about-stat--modules {
  bottom: 24px;
  right: -24px;
  animation: float-bob 4s ease-in-out infinite 2.8s;
}

.about-stat-icon {
  font-size: 1.4rem;
  width: 38px;
  height: 38px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-stat-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.about-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.about-text {
  text-align: left;
}

.about-text h2 {
  margin-bottom: 0.5rem;
}

.about-text h3 {
  margin-bottom: 1.5rem;
  color: var(--blue);
}

.about-text p {
  text-align: left;
  margin-bottom: 1.2rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 2rem;
}

.about-tag {
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
}

/* ── Details / Registration Section ── */
.details {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.details-header {
  text-align: center;
  margin-bottom: 56px;
}

/* Pricing hero card */
.pricing-hero {
  max-width: 620px;
  margin: 0 auto 40px;
  background: var(--bg-hero);
  border: 1px solid rgba(147, 197, 253, 0.15);
  border-radius: var(--radius-lg);
  padding: 48px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 70%);
  pointer-events: none;
}

.pricing-hero .price-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #93c5fd;
  margin-bottom: 8px;
}

.pricing-hero .price-tag {
  font-size: 3.8rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
  white-space: nowrap;
}

.pricing-hero .price-note {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 28px;
}

.pricing-hero .details-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-hero .details-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.75);
}

.pricing-hero .details-list li svg {
  color: #60a5fa;
  flex-shrink: 0;
}

/* Event details grid */
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.event-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.event-item:hover {
  border-color: var(--border-blue);
  box-shadow: var(--shadow);
}

.event-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 6px;
}

.event-item-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

.event-item-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

/* ── Testimonials ── */
.testimonials {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 48px;
}

/* Marquee container */
.testimonials-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonials-grid {
  display: flex;
  gap: 20px;
  animation: marquee-scroll 40s linear infinite;
  width: max-content;
}

.testimonials-grid:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  width: 320px;
  flex-shrink: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.testi-card:hover {
  border-color: var(--border-blue);
  box-shadow: var(--shadow);
}

.testi-stars {
  display: none;
}

.testi-quote {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.68;
  margin-bottom: 20px;
  font-weight: 400;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-light);
  border: 1.5px solid var(--blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--blue);
  flex-shrink: 0;
}

.testi-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.testi-loc {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ── FAQ / Questions ── */
.faq {
  background: var(--bg);
}

.faq-header {
  text-align: center;
  margin-bottom: 56px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.faq-item.open {
  border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(29, 78, 216, 0.10);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  transition: all var(--transition);
}

.faq-question:hover {
  color: var(--blue);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--blue);
  border: 1px solid var(--blue-border);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 28px 28px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

/* ── Newsletter ── */
.newsletter {
  background: var(--bg-hero);
  border-top: none;
}

.newsletter-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.newsletter h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2.5rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-field {
  flex: 1;
  position: relative;
}

.form-field input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 13px 18px;
  color: #ffffff;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color var(--transition);
}

.form-field input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-field input:focus {
  border-color: #60a5fa;
}

.form-field input.error {
  border-color: #f87171;
}

.form-error {
  display: none;
  font-size: 0.78rem;
  color: #f87171;
  margin-top: 4px;
  text-align: left;
}

.form-success {
  display: none;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: var(--radius);
  padding: 20px;
  color: #4ade80;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}

/* ── Signup Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 62, 0.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 24px 80px rgba(13, 27, 62, 0.25);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
}

.modal-close:hover {
  color: var(--text);
}

.modal h3 {
  margin-bottom: 4px;
  color: var(--text);
}

.modal .modal-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-form .form-field input {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text);
}

.modal-form .form-field input::placeholder {
  color: var(--text-light);
}

.modal-form .form-field input:focus {
  border-color: var(--blue);
}

.modal-footer {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── Scroll Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) {
  transition-delay: 0.08s;
}

.fade-up:nth-child(3) {
  transition-delay: 0.16s;
}

.fade-up:nth-child(4) {
  transition-delay: 0.24s;
}

.fade-up:nth-child(5) {
  transition-delay: 0.32s;
}

.fade-up:nth-child(6) {
  transition-delay: 0.40s;
}

/* Section labels centered in headers */
.learn-header .section-label,
.details-header .section-label,
.testimonials-header .section-label,
.faq-header .section-label {
  display: block;
  text-align: center;
}

/* ── Footer ── */
.footer {
  padding: 72px 0 40px;
  background: var(--bg-hero);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25d366;
  color: white;
  padding: 15px 32px;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  margin-bottom: 48px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.22);
}

.whatsapp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.32);
}

.footer-links {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #93c5fd;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ── Mobile Nav overlay ── */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 27, 62, 0.97);
  backdrop-filter: blur(16px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

.nav-mobile a:hover {
  color: #93c5fd;
}

.nav-mobile .btn {
  margin-top: 8px;
  padding: 14px 36px;
}

/* ── Responsive — Tablet (≤900px) ── */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text {
    order: -1;
  }

  /* Learn — 2 cols on tablet */
  .learn-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Event grid — 2 cols on tablet */
  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Responsive — Mobile (≤600px) ── */
@media (max-width: 600px) {

  .container {
    padding: 0 18px;
  }

  section {
    padding: 64px 0;
  }

  h1 {
    font-size: 1.95rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  /* Hero */
  .hero {
    padding-top: 80px;
    padding-bottom: 0;
    min-height: auto;
    align-items: flex-start;
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: auto;
    padding: 32px 0 0;
  }

  .hero-left {
    padding-bottom: 16px;
  }

  .hero-right {
    display: flex;
    justify-content: center;
    padding-bottom: 48px;
  }

  .hero-photo-wrap {
    max-width: 300px;
    margin: 0 auto;
    border-radius: 20px;
  }

  .hero-photo {
    height: 340px;
    border-radius: 20px;
  }

  /* Show floating cards on mobile, scaled to fit */
  .hero-float {
    display: flex;
    z-index: 20;
    padding: 8px 10px;
    white-space: nowrap;
    background: #ffffff;
    border: 1px solid rgba(29, 78, 216, 0.10);
    box-shadow: 0 8px 28px rgba(30, 64, 175, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .hero-float--rating {
    top: 10px;
    right: -10px;
    /* Kept tight to avoid horizontal overflow on small screens */
  }

  .hero-float--students {
    bottom: 30px;
    left: -10px;
  }

  .hero-float-icon {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .hero-float-num {
    font-size: 0.95rem;
  }

  .hero-float-label {
    font-size: 0.6rem;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-badge {
    margin-bottom: 1rem;
    font-size: 0.68rem;
    padding: 6px 12px;
  }

  .hero-highlights li {
    font-size: 0.9rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1.5rem;
    width: 100%;
  }

  .hero-register-btn,
  .hero-learn-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Countdown */
  .countdown-wrapper {
    width: 100%;
    padding: 14px 16px;
    align-items: center;
    margin-top: 10px;
  }

  .countdown {
    justify-content: center;
    gap: 10px;
  }

  .countdown-unit {
    min-width: 64px;
    padding: 8px 0;
  }

  .hero-left .countdown-num {
    font-size: 1.5rem;
  }

  .countdown-unit span {
    font-size: 0.58rem;
  }

  .countdown-sep {
    display: none;
  }

  /* Stats */
  .stats-bar {
    padding: 48px 0;
  }

  .stats-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
    justify-items: center;
  }

  .stat-num {
    font-size: 1.7rem;
  }

  .stat-desc {
    font-size: 0.75rem;
  }

  /* Learn */
  .learn-grid {
    grid-template-columns: 1fr;
    background: var(--border);
    gap: 1px;
  }

  .learn-card {
    padding: 20px 16px;
  }

  .learn-header {
    margin-bottom: 32px;
  }

  /* About */
  .about-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }

  .about-visual {
    align-items: center;
    order: 2;
    margin-bottom: 24px;
    margin-top: 12px;
  }

  /* Split about text for mobile ordering */
  .about-text {
    display: contents;
  }

  .about-text .section-label,
  .about-text h2,
  .about-text h3 {
    order: 1;
    text-align: center;
  }

  .about-text p,
  .about-text .about-tags {
    order: 3;
    text-align: left;
  }

  /* Registration */
  .pricing-hero {
    padding: 32px 22px;
  }

  .pricing-hero .price-tag {
    font-size: 2.8rem;
  }

  .pricing-hero .details-list {
    grid-template-columns: 1fr;
  }

  .details-header {
    margin-bottom: 32px;
  }

  /* Event grid — 1 col on mobile */
  .event-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Testimonials */
  .testi-card {
    padding: 22px;
  }

  .testimonials-header {
    margin-bottom: 32px;
  }

  /* FAQ */
  .faq-header {
    margin-bottom: 32px;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 0.93rem;
  }

  .faq-answer-inner {
    padding: 0 18px 18px;
  }

  /* Newsletter */
  .newsletter-inner {
    text-align: left;
  }

  .newsletter h2 {
    text-align: left;
  }

  .newsletter p {
    text-align: left;
    margin-bottom: 1.5rem;
  }

  .form-row {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-form .btn {
    width: 100%;
    justify-content: center;
  }

  /* Modal */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 28px 20px 36px;
    max-width: 100%;
  }

  .modal-form .btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer {
    padding: 56px 0 32px;
  }
}