/* --- THEME VARIABLES --- */
:root {
  /* Palette */
  --space-blue: #0f2a4a;
  --action-orange: #ff6b35;
  --growth-green: #00c853;

  /* Backgrounds */
  --bg-light: #f4f7f9;
  --bg-white: #ffffff;
  --text-main: #374151;
  --text-light: #6b7280;

  /* FAQ Specific */
  --faq-bg: #fdfdfd;
  --faq-hover: #f0f7ff;

  /* Subject Colors */
  --math-purple: #8b5cf6;
  --sci-blue: #06b6d4;
  --chess-gold: #f59e0b;
  --ai-red: #ef4444;

  /* Chess Colors */
  --chess-pawn: #afb42b;
  --chess-knight: #fdd835;
  --chess-rook: #fb8c00;
  --chess-king: #ff3d00;

  /* Journey Section Specifics */
  --journey-bg: #e3f2fd;
  --shadow-light: rgba(15, 42, 74, 0.1);

  /* Fonts: QUICKSAND FOR ALL */
  --font-heading: "Quicksand", sans-serif;
  --font-body: "Quicksand", sans-serif;
  --font-ui: "Quicksand", sans-serif;

  /* UI */
  --radius-card: 16px;
  --radius-btn: 8px;
  --shadow-card: 0 4px 20px rgba(15, 42, 74, 0.08);
  --shadow-hover: 0 10px 30px rgba(15, 42, 74, 0.12);

  /* Typography Variables */
  --fs-h1: clamp(24px, 5vw, 40px);
  --fs-h2: clamp(20px, 4vw, 32px);
  --fs-h3: clamp(18px, 3vw, 24px);
  --fs-h4: clamp(16px, 2.5vw, 20px);
  --fs-body: clamp(14px, 2vw, 16px);
  --fs-small: clamp(12px, 1.5vw, 14px);

  /* Spacing Variables */
  --section-spacing: 60px; /* Reduced from 80/100px */
  --section-spacing-mobile: 40px; /* Reduced from 60px */
  --element-spacing: 15px;
  --text-spacing: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  :root {
    --section-spacing: var(--section-spacing-mobile);
  }
}

img, video, canvas, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-weight: 500;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul {
  list-style: none;
}

/* Typography Updates */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--space-blue);
  font-weight: 700;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Force FontAwesome */
.fas,
.fa-solid {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900;
}

/* --- BUTTONS --- */
/* --- BUTTONS --- */
.btn,
.cta-button,
.g-btn,
.btn-cta {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  /* Standardized Pill Shape */
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

/* Primary Button (Use this for general brand buttons) */
.btn-primary {
  background-color: var(--action-orange);
  color: white;
  box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover,
.cta-button:hover,
.g-btn:hover,
.btn-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  /* Slight brighten for hover on all colors */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--space-blue);
  color: var(--space-blue);
}

.btn-outline:hover {
  background: var(--space-blue);
  color: white;
}

/* Specific Button Overrides */
.g-btn {
  background-color: var(--action-orange);
  /* Default fallback */
  color: white;
}

.btn-cta {
  background-color: var(--action-orange);
  /* Footer CTA */
  color: white;
}

/* Responsive Button Sizing */
@media (max-width: 600px) {

  .btn,
  .cta-button,
  .g-btn,
  .btn-cta,
  .tab-cta {
    padding: 10px 24px;
    font-size: 0.95rem;
  }
}

/* --- HEADER --- */
header {
  background: var(--bg-white);
  padding: 18px 0;
  position: fixed;
  /* Changed from sticky to fixed for robustness */
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

/* Spacer for fixed header */
body {
  padding-top: 80px;
  /* Adjust based on header height */
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 37px;
  font-weight: 700;
  color: var(--space-blue);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--growth-green);
  font-size: 30px;
  line-height: 0;
}

.logo a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo .logo-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--space-blue);
  /* Overrides green */
  letter-spacing: 0;
  font-family: var(--font-ui);
  margin-top: 7px;
  text-transform: none;
  /* User requested title case (using source text) */
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--action-orange);
}

/* Fix button text color in header */
.nav-links .btn {
  color: white !important;
}

/* Nav Item Styling */
.nav-links .nav-item {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
  transition: 0.3s;
  font-family: var(--font-ui);
  position: relative;
  padding: 5px 0;
  margin-right: 15px;
}

.nav-links .nav-item::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--action-orange);
  transition: width 0.3s ease;
}

.nav-links .nav-item:hover::after,
.nav-links .nav-item.active::after {
  width: 100%;
}

.nav-links .nav-item:hover,
.nav-links .nav-item.active {
  color: var(--action-orange);
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  color: var(--space-blue);
  cursor: pointer;
  z-index: 1001;
}

/* Navigation Responsive (Tablet/Mobile) */
@media (max-width: 900px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 100%;
    height: auto;
    background: white;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease-in-out;
    gap: 20px;
    z-index: 1000;
    border-bottom: 1px solid #eee;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links .nav-item {
    margin: 0;
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    margin-right: 0;
  }

  .nav-links .nav-btn {
    margin-top: 10px;
  }

  /* Responsive Typography */
  :root {
    --fs-h1: 32px;
    --fs-h2: 24px;
    --fs-h3: 20px;
    --fs-h4: 18px;
    --fs-body: 16px;
    --fs-small: 14px;

    /* Mobile Spacing */
    --section-spacing: 30px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px 0;
  }

  .logo {
    font-size: 24px;
  }

  .logo .logo-subtitle {
    font-size: 10px;
  }

  .nav-links .nav-item {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

/* --- HERO SECTION --- */
.hero {
  padding: 70px 0 10px 0;
  /* background: linear-gradient(to right, #ffffff 50%, var(--bg-light) 50%); */
  position: relative;
}

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

.hero-content h1 {
  /* Adjusted for single-line fit per phrase */
  font-size: clamp(1.2rem, 3.5vw, 2.2rem);
  line-height: 1.4;
  white-space: nowrap;
  width: 100%;
  max-width: 100%;
  margin-bottom: 24px;
  font-weight: 700;
}

.hero-content h1 span {
  color: var(--action-orange);
}

.hero-content h1 .hero-subtext {
  font-size: clamp(0.9rem, 2.5vw, 1.5rem);
  display: block; /* Moves to new line */
  margin-top: 7px; /* Adjusts spacing to match previous lines */
  line-height: 1.4;
  color: var(--space-blue);
}

.hero-text h1 {
  font-size: var(--fs-h1);
  line-height: 1.2;
  margin-bottom: var(--element-spacing); /* Consistent spacer */
}

.hero-text p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 25px; /* Slightly more breathe room than std */
  max-width: 480px;
}

.hero-list {
  margin-bottom: 30px;
  padding: 0;
}

.hero-list li {
  font-family: var(--font-ui);
  position: relative;
  padding-left: 35px;
  margin-bottom: 10px; /* Tighter list items */
  font-size: 1.05rem;
  color: var(--text-main);
  font-weight: 600;
}

.hero-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--growth-green);
  background: rgba(0, 200, 83, 0.1);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-img {
  position: relative;
  z-index: 1;
}

.hero-img::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--growth-green);
  border-radius: 50%;
  opacity: 0.2;
  z-index: -1;
}

.hero-img::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 150px;
  height: 150px;
  background: var(--space-blue);
  border-radius: 20px;
  opacity: 0.1;
  z-index: -1;
  transform: rotate(-10deg);
}

.hero-img img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  border: 4px solid white;
  object-fit: cover;
}

/* Partners (Inside Hero) */
.partner-unified-box {
  margin-top: 50px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.partner-group {
  text-align: center;
}

.partner-group h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: -10px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.partner-logo {
  height: 100px;
  width: auto;
  object-fit: contain;
  transition: 0.3s;
}

.logo-akt,
.logo-ie,
.logo-ieskool {
  height: 100px;
}

/* Hero Responsive */
@media (max-width: 900px) {
  .hero {
    padding: 30px 0;
    background: var(--bg-white);
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    order: 1;
    margin-bottom: 15px;
    margin-top: 10px;
    width: 100%;
  }

  .hero-content {
    display: contents;
  }

  .hero-img {
    order: 2;
    margin-top: 5px;
    margin-bottom: 5px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .hero-list {
    order: 3;
    display: inline-block;
    text-align: left;
    margin: 10px 0 10px 0;
  }

  .hero-buttons {
    order: 4;
    justify-content: center;
    width: 100%;
  }

  /* Partners Responsive */
  .partner-unified-box {
    order: 5;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 20px 0;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
}

/* --- FEATURES SECTION --- */
.features {
  padding: 20px 0; /* Reduced from section-spacing */
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 20px; /* Reduced to pull content up */
}

.section-header h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--element-spacing); /* Use uniform spacer */

  font-weight: 700;
}

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

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: var(--radius-card);
  border: 1px solid #eee;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--space-blue);
}

.fc-orange::before {
  background: var(--action-orange);
}

.fc-green::before {
  background: var(--growth-green);
}

.icon-box {
  width: 60px;
  height: 60px;
  margin-bottom: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.ib-blue {
  background: rgba(15, 42, 74, 0.1);
  color: var(--space-blue);
}

.ib-orange {
  background: rgba(255, 107, 53, 0.1);
  color: var(--action-orange);
}

.ib-green {
  background: rgba(0, 200, 83, 0.1);
  color: var(--growth-green);
}

.feature-card h3 {
  font-size: var(--fs-h4);
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--space-blue);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Features Responsive (3x2 Grid for Mobile) */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 20px;
    overflow-x: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }

  .feature-grid::-webkit-scrollbar {
    display: none;
  }

  .feature-card {
    scroll-snap-align: none;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 25px 20px;
  }
}

/* --- CLASSES SECTION --- */
.classes-section {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px 20px; /* Reduced from section-spacing */
  background: var(--bg-light);
  border-radius: 20px;
  margin-bottom: 20px; /* Reduced gap */
  scroll-margin-top: 100px;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab {
  padding: 12px 24px;
  border-radius: 30px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-ui);
  transition: 0.3s;
  color: var(--space-blue);
}

.tab.active {
  background: var(--space-blue);
  color: #fff;
  border-color: var(--space-blue);
}

/* CARD BOX GRID (Navigation) */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 20px;
}

.card-corner-icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 80px;
  height: 80px;
  opacity: 0.9;
  transition: transform 0.3s ease;
}

.subject-card:hover .card-corner-icon {
  transform: rotate(2deg) scale(1.1);
}

.subject-card {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.subject-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.subject-card.active {
  border-color: var(--space-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15, 42, 74, 0.1);
}

.sub-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.ico-math {
  background: linear-gradient(135deg, #a78bfa, var(--math-purple));
}

.ico-sci {
  background: linear-gradient(135deg, #67e8f9, var(--sci-blue));
}

.ico-chess {
  background: linear-gradient(135deg, #fcd34d, var(--chess-gold));
}

.ico-ai {
  background: linear-gradient(135deg, #fca5a5, var(--ai-red));
}

.subject-card h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  color: var(--space-blue);
  font-weight: 700;
}

.subject-card .subject-level {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: normal;
}

.subject-card p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
  font-weight: 500;
}

.card-cta {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f1f5f9;
  color: var(--space-blue);
  transition: 0.3s;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
}

.subject-card:hover .card-cta {
  background: var(--space-blue);
  color: white;
}

.subject-card.active .card-cta {
  background: var(--action-orange);
  color: white;
}

/* TAB CONTENT */
.tab-content {
  display: none;
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid #eee;
  animation: fadeIn 0.5s;
  box-shadow: var(--shadow-card);
  border-top: 5px solid var(--space-blue);
  position: relative;
}

@media (max-width: 768px) {
  .tab-content {
    /* Reset block layout to fixed modal */
    padding: 16px; /* Reduced from 24px */
    box-shadow: 0 10px 40px rgba(0,0,0,0.2), 0 0 0 100vmax rgba(0,0,0,0.5); /* Backdrop hack */
    border-top: none;
    
    /* Fixed Positioning */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: clamp(280px, 92%, 500px);
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1000;
    
    /* Animation setup */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Ensure content visibility */
    display: block; /* Always block, but toggle via opacity/pointer-events */
    visibility: hidden;
    animation: none; /* Disable desktop fade-in animation */
  }

  .tab-content.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
    visibility: visible;
  }

  /* Compact content styles for mobile popup */
  .tab-content h3 {
    font-size: 1.5rem !important;
    margin-bottom: 15px;
  }
  
  .tab-content .level-details {
    padding: 15px !important;
    margin-top: 15px;
  }
  
  .tab-content .level-tabs {
    margin-bottom: 15px;
    padding-bottom: 5px;
  }
  
  .tab-content .level-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  /* Adjust close button for popup */
  .close-corner-btn {
    top: 10px;
    right: 10px;
    background: #f8f9fa;
  }
}

.tab-content.active {
  display: block;
}

.tab-content h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--space-blue);
  margin-bottom: 10px;
  max-width: 90%; /* Prevent overlap with close button */
  font-weight: 700;
}

/* New Corner Close Button */
.close-corner-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background: #f1f5f9;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 20;
}

.close-corner-btn:hover {
  background: #e2e8f0;
  color: var(--action-orange);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tagline {
  font-weight: 700;
  color: var(--action-orange);
  margin-bottom: 24px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-ui);
}

/* Level Tabs (Math/Sci) */
.level-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: 2px solid #eee;
  padding-bottom: 15px;
}

/* Mobile: Horizontal Scroll for Tabs */
@media (max-width: 768px) {
  .level-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
    /* Adjust for scrollbar */
    scrollbar-width: none;
    /* Firefox */
  }

  .level-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
  }
}

.level-btn {
  background: transparent;
  border: 1px solid var(--space-blue);
  color: var(--space-blue);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  transition: 0.3s;
  /* Ensure buttons don't shrink in scroll view */
  flex: 0 0 auto;
  white-space: nowrap;
}

.level-btn.active {
  background: var(--growth-green);
  color: white;
  border-color: var(--growth-green);
}

.level-details {
  display: none;
  background: var(--bg-light);
  padding: 30px;
  border-radius: 12px;
  border-left: 5px solid var(--growth-green);
}

.level-details.active {
  display: block;
  animation: fadeIn 0.3s;
}

.level-details h5 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--space-blue);
  font-weight: 700;
}

.level-details h6 {
  font-size: 1rem;
  color: var(--action-orange);
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 10px;
  font-family: var(--font-ui);
}

.level-details ul {
  padding-left: 20px;
  list-style-type: disc;
}

.level-details li {
  margin-bottom: 5px;
  color: var(--text-main);
  font-weight: 500;
}

/* Mobile Optimizations for Text Density */
@media (max-width: 600px) {
  .level-details {
    padding: 15px;
    /* Significantly reduced from 30px */
  }

  .level-details h5 {
    font-size: 1.1rem;
    /* Reduced from 1.4rem */
    margin-bottom: 15px;
  }

  .level-details h6 {
    font-size: 0.9rem;
    /* Reduced from 1rem */
    margin-top: 15px;
  }

  .level-details li {
    font-size: 0.88rem;
    /* Slightly smaller for better fit */
    line-height: 1.5;
  }

  .level-details ul {
    padding-left: 15px;
    /* Save space on left indent */
  }
}

.sci-takeaway {
  margin-top: 25px;
  font-weight: 700;
  color: var(--space-blue);
  font-size: 1.1rem;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tab-cta {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 35px;
  background: var(--action-orange);
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
  font-family: var(--font-ui);
}

.tab-cta.compact {
  margin-top: 30px;
}

.tab-cta:hover {
  background: #e85a25;
  transform: translateY(-3px);
}

.tab-cta.secondary {
  background: var(--growth-green);
}

.coming-soon {
  font-style: italic;
  color: #888;
  margin-top: 15px;
}

/* Close Button Styles */
.close-btn-container {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.btn-close {
  background: #f1f5f9;
  color: #64748b;
  padding: 10px 25px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-body);
  transition: 0.3s;
}

.btn-close:hover {
  background: #e2e8f0;
  color: #334155;
}

/* Classes Responsive (Horizontal Swipe) */
@media (max-width: 768px) {
  .subject-grid {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-x: visible;
    scroll-snap-type: none;
    gap: 20px;
    padding-bottom: 0px;
    align-items: center;
    justify-content: center;
  }

  .subject-grid::-webkit-scrollbar {
    display: none;
  }

  .subject-grid>* {
    flex: 0 0 auto;
    scroll-snap-align: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
}

/* --- CHESS SECTION --- */
.chess-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.chess-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 30px 0;
  padding: 0;
  align-items: stretch;
}

/* Remove timeline line */
.chess-timeline::before {
  display: none !important;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  padding: 20px 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition: transform 0.3s ease;
}

.timeline-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Remove .step-icon and icon color classes as they are now inline */

/* Inline Icon styling inside H5 */
.step-content h5 i {
  color: var(--action-orange);
  margin-right: 8px;
  font-size: 1.2rem;
  vertical-align: middle;
}

/* Specific icon colors if desired, or keep uniform orange */
.step-content h5 i.fa-chess-pawn {
  color: var(--chess-pawn);
}

.step-content h5 i.fa-chess-knight {
  color: var(--chess-knight);
}

.step-content h5 i.fa-chess-rook {
  color: var(--chess-rook);
}

.step-content h5 i.fa-chess-king {
  color: var(--chess-king);
}

.step-content {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  border: none;
  text-align: center;
  margin: 0 !important;
}

.step-content h5 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 5px;
  color: var(--space-blue);
}

.step-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  color: #777;
  margin-bottom: 8px;
  /* Reduced from 12px */
  display: block;
  text-transform: none;
  line-height: 1.3;
  min-height: 3.2em;
  /* Align 'Suitable for' */
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h6 {
  font-size: 0.8rem;
  color: var(--action-orange);
  font-weight: 700;
  margin-top: 5px;
  /* Reduced from 10px */
  margin-bottom: 3px;
  /* Reduced from 5px */
  font-family: var(--font-ui);
  text-transform: uppercase;
}

.step-content p {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
}

/* Remove UL styles as they aren't used in steps anymore or handled generally */
.step-content ul {
  padding-left: 0;
  list-style: none;
}

/* Chess Extras Box */
.chess-extras {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  background: var(--bg-light);
  padding: 20px;
  border-radius: 12px;
}

.extra-box h4 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  text-align: center;
}

/* Left-aligned points, formatted as a centered block */
.extra-box {
  text-align: center;
}

.extra-box ul {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.extra-box ul li {
  margin-bottom: 3px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  /* Align icon center relative to text */
  justify-content: flex-start;
  text-align: left;
}

.extra-box ul li i {
  margin-right: 5px;
  /* Add padding between icon and text */
}

.extra-box h6 {
  display: none;
  /* Hide 'How Worlderly Teaches' label to save space if needed, or keep smaller */
}

/* Chess Responsive */
@media (max-width: 900px) {
  .chess-timeline {
    grid-template-columns: repeat(2, 1fr);
    /* 2x2 on Tablet */
  }
}

@media (max-width: 600px) {
  .chess-timeline {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 20px;
    margin: 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .chess-timeline::-webkit-scrollbar {
    display: none;
  }

  .timeline-step {
    flex: 0 0 85%;
    /* Carousel on mobile */
    scroll-snap-align: center;
    border: 1px solid #eee;
  }

  .extra-box ul {
    flex-direction: column;
    gap: 10px;
  }
}

/* --- JOURNEY SECTION --- */
.journey-section {
  padding: var(--section-spacing) 20px;
  background: linear-gradient(135deg, var(--journey-bg) 0%, #f8fafc 100%);
  overflow: hidden;
}

.journey-container {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.journey-header {
  margin-bottom: 40px;
}

.journey-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--space-blue);
  margin-top: 10px;
  margin-bottom: 10px;
  /* Reduced from 16px */
  font-family: var(--font-heading);
}

.journey-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 500;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto 40px;
  position: relative;
}

.step-card {
  background: var(--bg-white);
  padding: 20px 24px;
  border-radius: 24px;
  box-shadow: 0 10px 40px var(--shadow-light);
  position: relative;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px var(--shadow-light);
  border-color: var(--action-orange);
}

.step-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin-bottom: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  position: relative;
}

.step-icon::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  z-index: -1;
}

.step1 .step-icon {
  background: linear-gradient(135deg, #2196f3, #1976d2);
}

.step2 .step-icon {
  background: linear-gradient(135deg, #00c853, #00e676);
}

.step3 .step-icon {
  background: linear-gradient(135deg, #fbc02d, #f57f17);
}

.step4 .step-icon {
  background: linear-gradient(135deg, #ff6b35, #e64a19);
}

.step-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--space-blue);
  margin-bottom: 12px;
  font-family: var(--font-heading);
  opacity: 0.3;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--space-blue);
  margin-bottom: 12px;
  font-family: var(--font-heading);
  line-height: 1.4;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Remove Inner White Card */
.step-card .step-content {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  text-align: center;
  border: none;
}

.journey-cta {
  background: transparent;
  padding: 20px 0;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: none;
  position: relative;
}

.journey-cta::before {
  display: none;
}

.j-cta-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.j-cta-text {
  flex: 1;
  min-width: min(300px, 100%);
}

.j-cta-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--space-blue);
  margin-bottom: 12px;
}

.j-cta-subtitle {
  font-size: 1.15rem;
  color: var(--action-orange);
  font-weight: 600;
  margin-bottom: 20px;
}

.j-cta-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--space-blue), #1e3a8a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  box-shadow: 0 15px 40px var(--shadow-light);
  flex-shrink: 0;
}

.j-cta-btn {
  background: linear-gradient(135deg, var(--action-orange), #e65100);
  color: white;
  border: none;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-ui);
  box-shadow: 0 12px 35px rgba(255, 107, 53, 0.3);
  text-decoration: none;
  display: inline-block;
}

.j-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(255, 107, 53, 0.5);
}

/* Journey Responsive */
@media (max-width: 1200px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
  }
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    height: auto;
    flex-direction: row;
    text-align: left;
    padding: 30px 20px;
    gap: 20px;
  }

  .step-icon {
    margin-bottom: 0;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    flex-shrink: 0;
  }

  .step-number {
    display: none;
  }

  .j-cta-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .steps-grid {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-x: visible;
    scroll-snap-type: none;
    gap: 30px; /* Comfortable gap between steps */
    padding-bottom: 0;
    align-items: center;
    justify-content: center;
  }

  .steps-grid::-webkit-scrollbar {
    display: none;
  }

  .steps-grid>* {
    flex: 0 0 auto;
    scroll-snap-align: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
}

/* --- PRICING SECTION --- */
/* --- PRICING SECTION --- */
.pricing-section {
  padding: 20px 20px; /* Reduced vertical padding */
  background: var(--bg-white);
  scroll-margin-top: 100px;
}

.pricing-header {
  text-align: center;
  max-width: 800px;
  margin: 20px auto; /* 20px before and after as requested */
}

.pricing-header h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--element-spacing);
  color: var(--space-blue);
  font-weight: 700;
  font-family: var(--font-heading);
}

.pricing-header p {
  font-size: 18px;
  color: #666;
  font-family: var(--font-body);
}

/* --- PILL TOGGLE STYLES --- */
/* --- PILL TOGGLE STYLES --- */
.selector-container {
  display: inline-flex;
  background: #f1f3f5;
  padding: 5px;
  border-radius: 50px;
  border: 1px solid #ddd;
  margin: 0 auto 30px auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;
  max-width: 95vw;
  max-height: 90px; /* Enforce Max Height */
  justify-content: center;
  align-items: center; /* Ensure vertical centering */
  overflow: hidden; /* Ensure no spillover */
}

.selector-box {
  background: transparent;
  padding: 10px 30px; /* Updated padding: 10px vertical, 30px horizontal */
  border-radius: 40px;
  border: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%; /* Fill container height */
  white-space: nowrap;
  flex: 0 0 auto;
}

.selector-box:hover {
  transform: none;
  box-shadow: none;
  color: var(--text-main);
  background: rgba(0,0,0,0.02);
}

.selector-box.active {
  background-color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: var(--space-blue);
}

/* Hide non-pill elements */
.selector-icon,
.selector-btn {
  display: none !important;
}

.selector-box p {
  display: block !important;
  margin: 6px 0 0 0; /* Reset margin */
  /* Responsive Font Size using Clamp */
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  opacity: 0.9;
  line-height: 1.3;
  font-weight: 500;
  font-family: var(--font-body);
  color: #555;
}

.selector-box.active p {
  opacity: 1;
  font-weight: 600;
  color: var(--space-blue);
}

.plan-details {
  display: block;
  font-size: 0.85em; /* Slightly smaller relative to p */
  opacity: 0.85;
  margin-top: 2px;
  font-weight: 400;
}

.selector-box h3 {
  margin: 0;
  /* Responsive Heading Size using Clamp */
  font-size: clamp(0.75rem, 2.5vw, 1.05rem);
  font-weight: 800;
  color: inherit;
  font-family: var(--font-heading);
  line-height: 1.1;
}

/* Responsive Scaling for Pricing Toggle */
@media (max-width: 768px) {
  .selector-container {
    padding: 4px;
    width: fit-content;
    max-width: 98vw;
  }

  /* Padding removed to respect global 10px 30px */

  .selector-box h3 {
    font-size: 0.9rem; /* Scale down */
  }

  .selector-box p {
    font-size: 0.75rem; /* Scale down */
  }
}

@media (max-width: 480px) {
  /* Padding removed to respect global 10px 30px */
  
  /* Even smaller on very narrow phones */
  .selector-box h3 {
    font-size: 0.85rem;
  }

  .selector-box p {
    font-size: 0.7rem;
  }
}

/* --- HIGHLIGHTING PART --- */
/* Add top highlight strip to cards */
.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: #ddd; /* Default grey */
}

.pricing-card.plan-group::before { background: #9b51e0; }
.pricing-card.plan-buddy::before { background: #e65100; }
.pricing-card.plan-private::before { background: #2d9cdb; }

.card-header {
  padding-top: 10px; /* Space for the strip */
}

.pricing-wrapper {
  display: none;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.pricing-wrapper.show {
  display: flex;
  opacity: 1;
  animation: slideDown 0.5s ease forwards;
}

/* Pricing Card Hover Effects handled in .pricing-card */
.offer-badge {
  display: inline-block;
  padding: 6px 16px;
  background: #f4f6f8;
  /* Off-white/Light Grey */
  color: #000;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 12px;
  margin-bottom: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-ui);
  align-self: center;
  /* Prevents stretching in flex column */
  width: fit-content;
  /* Ensure it only takes needed width */
}

.pricing-card {
  background: #fff;
  border-radius: 12px;
  flex: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  overflow: visible; /* Allow badge to pop out */
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: 40px;
}

.pricing-card .badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  padding: 4px 12px;
  font-weight: 700;
  border-radius: 50px; /* Pill shape */
  font-size: 13px;
  opacity: 1;
  visibility: visible;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 10;
}

.plan-group .badge {
  background-color: #000;
}

.plan-buddy .badge {
  background-color: #e65100; /* Match highlight color */
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
  padding: 20px;
  color: #fff;
}

.plan-group .card-header {
  background-color: #efeafd;
}

.plan-buddy .card-header {
  background-color: rgb(253, 238, 232);
}

.plan-private .card-header {
  background-color: rgb(238, 244, 255);
}

.plan-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000;
  font-family: var(--font-heading);
}

.plan-subtitle {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 5px;
  font-weight: 500;
  font-family: var(--font-ui);
}

.price-section {
  padding: 20px 20px 10px 20px; /* Reduced top padding */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.original-price {
  order: 1;
  text-decoration: line-through;
  color: #999;
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 4px;
  font-family: var(--font-body);
}

.current-price {
  order: 2;
  /* Responsive Price Font Size */
  font-size: clamp(30px, 4vw, 36px);
  font-weight: 800;
  color: var(--space-blue);
  font-family: var(--font-heading);
}

.billing-cycle {
  order: 3;
  font-size: clamp(14px, 2vw, 16px);
  color: #000;
  margin-top: 1px;
  font-family: var(--font-body);
}

.underline-text {
  text-decoration: underline;
}

.features-list {
  padding: 20px 30px;
  text-align: left;
  flex-grow: 1;
}

.features-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  margin-bottom: 12px; /* Slightly tighter */
  font-size: clamp(13.5px, 2vw, 15px);
  position: relative;
  padding-left: 20px; /* Tighter bullet spacing */
  line-height: 1.4;
  font-family: var(--font-body);
  font-weight: 500;
}

.features-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: bold;
}

.feature-note {
  display: block;
  font-size: 13px;
  color: #666;
  margin-top: 2px;
  font-style: italic;
}

.card-footer {
  padding: 0 30px 30px 30px;
}

.cta-button {
  display: block;
  width: 100%;
  padding: 15px 0;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background 0.3s;
  color: #fff;
  background-color: #333;
  font-family: var(--font-ui);
}

.cta-button:hover {
  opacity: 0.9;
}

/* Pricing Responsive */
@media (max-width: 900px) {
  .selector-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .selector-box {
    width: 100%;
  }

  .pricing-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .pricing-card {
    width: 100%;
    max-width: 340px; /* Tighter width on mobile */
    padding: 15px; /* Compact padding */
    padding-top: 35px; /* Adjust for badge */
  }
}

@media (max-width: 768px) {
  /* Enforce Horizontal Toggle */
  .selector-container {
    flex-direction: row; /* FORCE ROW */
    flex-wrap: nowrap;
    width: 95%; /* Use more width on mobile */
    min-width: 0; /* Allow shrinking */
    margin: 0 auto 30px auto;
    padding: 4px; /* Smaller container padding */
  }

  .selector-box {
    width: 50%;
    padding: 10px 4px;
    flex: 1;
    display: flex; /* Flex to center content */
    flex-direction: column;
    justify-content: center;
  }

  .selector-box h3 {
    font-size: 14px; /* Default mobile size */
    line-height: 1.2;
  }
  
  /* Hide description on mobile if strictly needed, or scale it */
  .selector-box p {
    font-size: 11px;
    line-height: 1.1;
    margin-top: 4px;
    display: block !important; /* Ensure it is visible if we want it */
  }
}

/* Extra Small Screens (iPhone SE, Fold) */
@media (max-width: 380px) {
  .selector-container {
    width: 100%;
    border-radius: 12px; /* Less rounded on tiny screens to save space */
  }

  .selector-box {
    padding: 8px 2px;
  }

  .selector-box h3 {
    font-size: 12px; /* Smaller font */
  }

  .selector-box p {
    font-size: 10px; 
    display: none !important; /* Hide description on very small screens to keep toggle clean */
  }
}

/* --- GUARANTEE SECTION --- */
.guarantee-section {
  padding: var(--section-spacing) 20px;
  background-color: #f9f9f9;
}

.guarantee-card {
  max-width: 1000px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  color: #333;
}

.g-header {
  text-align: center;
  margin-bottom: 20px;
}

.g-header h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: #0f2a4a;
  margin-bottom: 15px;
  margin-top: 0;
}

.g-highlight {
  color: #ff6b35;
  text-decoration: underline;
  text-decoration-color: #ff6b35;
  text-underline-offset: 5px;
}

.g-header p {
  font-size: 1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.g-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
}

.g-badge-container {
  flex-shrink: 0;
  position: relative;
  width: 210px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g-badge {
  width: 180px;
  height: 180px;
  background: #ffc107;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  border: 4px solid #ffd54f;
}

.g-badge::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 2px dashed #b7950b;
  border-radius: 50%;
}

.g-badge-text-100 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #b03a2e;
  line-height: 1;
}

.g-badge-text-mb {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  margin-top: 2px;
}

.g-badge-text-g {
  font-size: 16px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.g-ribbon-left,
.g-ribbon-right {
  position: absolute;
  bottom: 0;
  width: 40px;
  height: 60px;
  background: #d32f2f;
  z-index: 1;
}

.g-ribbon-left {
  left: 20px;
  transform: rotate(30deg);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.g-ribbon-right {
  right: 20px;
  transform: rotate(-30deg);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.g-text-col {
  text-align: left;
  max-width: 600px;
}

.g-text-col h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f2a4a;
  margin-top: 15px;
  margin-bottom: 8px;
}

.g-text-col p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin: 0 0 12px 0;
}

.g-text-col strong {
  font-weight: 700;
  color: #333;
}

.g-text-col a {
  color: #0f62fe;
  font-weight: 600;
  text-decoration: none;
}

.g-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  /* Ensure text is left aligned (critical for bullets) */
  display: inline-block;
  /* Allows distinct centering in parent if parent is text-center */
}

.g-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 5px;
  font-size: 0.95rem;
  color: #333;
  font-weight: 600;
}

.g-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #333;
  font-weight: bold;
}

.g-footer {
  text-align: center;
}

.g-btn {
  display: inline-block;
  background-color: #ff5722;
  color: white;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  font-family: var(--font-ui);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.g-btn:hover {
  background-color: #e64a19;
  transform: translateY(-2px);
}

/* Guarantee Responsive */
@media (max-width: 900px) {
  .g-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .g-text-col {
    text-align: center;
  }

  .guarantee-card {
    padding: 40px 20px;
  }
}

/* --- CAREER SECTION --- */
.career-section {
  padding: 50px 20px;
  background-color: #f4f6f8;
}

.career-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: row;
}

.career-content {
  padding: 50px 40px;
  flex: 1;
  text-align: left;
}

.career-header h2 {
  font-size: var(--fs-h2);
  color: var(--space-blue);
  margin-bottom: 10px;
  margin-top: 0;
  font-family: var(--font-heading);
  font-weight: 700;
}

.career-header p {
  font-size: 18px;
  color: #666;
  margin-bottom: 40px;
  font-family: var(--font-body);
}

.highlight-text {
  color: var(--action-orange);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.benefit-card {
  background: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transition: transform 0.2s ease;
}

.benefit-card:hover {
  transform: translateY(-3px);
  border-color: #ffccbc;
}

.benefit-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff3e0;
  border-radius: 50%;
  color: var(--action-orange);
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.benefit-content h4 {
  margin: 0 0 5px 0;
  font-size: 18px;
  color: var(--space-blue);
  font-family: var(--font-heading);
  font-weight: 700;
}

.benefit-content p {
  margin: 0;
  font-size: 14px;
  color: #555;
  font-family: var(--font-body);
}

.target-profile {
  background-color: #e3f2fd;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 40px;
}

.target-profile h3 {
  margin: 0 0 10px 0;
  color: #1565c0;
  font-size: 20px;
  font-family: var(--font-heading);
  font-weight: 700;
}

.target-profile p {
  margin: 0;
  color: #0d47a1;
  font-size: 16px;
  font-family: var(--font-body);
}

.career-cta-section {
  margin-top: 20px;
}

.apply-button {
  background-color: var(--action-orange);
  color: white;
  padding: 16px 40px;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3);
  font-family: var(--font-ui);
}

.apply-button:hover {
  background-color: #e64a19;
  transform: translateY(-2px);
}

.subtext {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: #888;
  font-family: var(--font-body);
}

.career-image-wrapper {
  width: 45%;
  position: relative;
  min-height: 100%;
}

.career-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-line-heading {
  white-space: nowrap;
}

/* Career Responsive */
@media (max-width: 900px) {
  .career-container {
    flex-direction: column;
  }

  .career-content {
    padding: 30px 20px;
  }

  .career-image-wrapper {
    width: 100%;
    height: 300px;
    order: -1;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .single-line-heading {
    white-space: normal;
    text-align: center;
  }
}

/* --- FAQ SECTION --- */
.faq-section {
  padding: var(--section-spacing) 20px;
  background: var(--faq-bg);
  font-family: var(--font-body);
}

.faq-container {
  max-width: 850px;
  margin: 0 auto;
}

.faq-section .section-header {
  text-align: center;
  margin-bottom: 45px;
  color: var(--space-blue);
}

.faq-section .section-header h2 {
  font-size: var(--fs-h2);
  margin-bottom: 10px;
}

.faq-section .section-header p {
  color: #555;
}

/* Center container (if not already present) */

/* FAQ CTA – space blue bg + grey text */
.faq-cta-center {
  background: var(--space-blue);
  color: #e5e7eb;
  /* soft grey text */
}

/* Hover state */
.faq-cta-center:hover {
  background: #0f2a44;
  /* slightly darker space blue */
  color: #f1f5f9;
}

/* Force Space Blue background for FAQ CTA */
button.card-cta.faq-cta-center {
  background-color: var(--space-blue) !important;
  color: #e5e7eb !important;
}

/* Hover */
button.card-cta.faq-cta-center:hover {
  background-color: #0f2a44 !important;
  color: #f1f5f9 !important;
}

.faq-view-more {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.faq-item {
  background: #fff;
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #eee;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
  width: 100%;
  background: #fff;
  border: none;
  padding: 20px 25px;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  color: var(--space-blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.faq-question:hover {
  background-color: #f8fbff;
  color: var(--primary-orange);
}

.faq-question i {
  font-size: 16px;
  color: var(--primary-orange);
  transition: transform 0.3s ease;
}

.faq-question.active i {
  transform: rotate(45deg);
}

.faq-question.active {
  background-color: var(--faq-hover);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background-color: #fff;
  border-top: 1px solid transparent;
}

.faq-question.active+.faq-answer {
  border-top-color: #eee;
}

.answer-content {
  padding: 25px;
  color: #555;
  font-size: 16px;
  line-height: 1.6;
}

.answer-content ul {
  padding-left: 20px;
  margin: 12px 0;
}

.answer-content li {
  margin-bottom: 8px;
  list-style: disc;
}

/* Hide FAQs from 7 onwards */
.faq-hidden {
  display: none;
}

/* View More / View Less CTA */
.faq-view-more {
  text-align: center;
  margin-top: 30px;
}

#faqToggleBtn {
  background: transparent;
  border: 2px solid var(--primary-orange);
  color: var(--primary-orange);
  padding: 10px 26px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#faqToggleBtn:hover {
  background: var(--primary-orange);
  color: #fff;
}

/* FAQ Responsive */
@media (max-width: 600px) {
  .faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }

  .answer-content {
    padding: 20px;
  }
}

/* --- CTA & FOOTER --- */
.cta-section {
  background: var(--space-blue);
  color: white;
  padding: 40px 24px;
  text-align: center;
  border-radius: 20px;
  margin: 40px auto;
  max-width: 1100px;
  position: relative;
  overflow: hidden;
}

.cta-content h2 {
  font-size: var(--fs-h2);
  margin-bottom: 15px;
  font-weight: 800;
  color: white;
}

.cta-content p {
  color: #cbd5e1;
  margin-bottom: 30px;
  font-family: var(--font-body);
}

.btn-cta {
  background: var(--action-orange);
  color: white;
  padding: 14px 40px;
  border-radius: 50px;
  font-family: var(--font-ui);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.footer-tagline {
  margin-top: 6px;
  font-size: var(--fs-small);
  color: #666;
  font-family: var(--font-body);
}

footer {
  background: var(--space-blue);
  color: white;
  margin-top: 0;
  padding: 0;
}

/* Footer Layout */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 60px; /* Standardized top padding */
}

/* Tablet: 2 cols matrix */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* Mobile: Mixed Matrix (Logo & Social full, Links side-by-side) */
/* Mobile Matrix Layout (up to 768px) */
/* Mobile Matrix Layout (up to 768px) */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    /* Force 2 columns */
    gap: 20px;
    padding-bottom: 40px;
  }

  /* Logo Section: Allow it to take 1 column or span 2? 
       User said "next to next like a matrix". 
       If we let Logo span 2, it's "down". 
       If we let Logo be Col 1, then Programs is Col 2.
       This creates a true 2x2 matrix.
    */
  .footer-logo-col {
    grid-column: span 2;
    /* Keep logo full width for readability */
    padding-top: 10px;
    text-align: left;
  }

  /* Programs & Contact -> naturally side by side */

  /* Follow Us -> typically full width, but user wants "next to next".
       If we have 3 items left (Programs, Contact, Follow Us).
       Row 1: Logo (Full)
       Row 2: Programs | Contact
       Row 3: Follow Us | (Empty)
       
       Wait, if user says "align the div items next to next... instead of down to down",
       maybe they want:
       Programs | Contact
       Follow Us | ...
       
       Let's TRY making Follow Us take only 1 column. 
    */
  /* Programs & Contact side-by-side */
  .footer-col {
    min-width: 0;
  }

  .footer-col:last-child {
    grid-column: auto;
    /* Allow to flow into grid */
    text-align: left;
  }
}

.footer-logo a {
  text-decoration: none;
  display: inline-block;
}

.logo-subtitle {
  display: block;
  /* moves to next line */
  font-size: var(--fs-small);
  font-weight: 400;
  color: #fff;
  margin-top: 4px;
  font-family: var(--font-body);
}

/* Footer-desc already space-blue */
/* Footer Bottom Section (Description + Terms) */
.footer-bottom-section {
  background: var(--space-blue);
  color: white;
}

.footer-desc {
  background: var(--space-blue);
  color: white;
  text-align: center;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: normal;
  margin: 0;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* White horizontal line */
/* Footer Separator (white horizontal line) */
.footer-separator {
  width: 100%;
  height: 1px;
  /* thickness of line */
  background-color: white;
  /* white line */
  margin: 0;
  /* small vertical gap above & below */
}

/* Footer Terms */
.footer-terms {
  text-align: center;
  color: var(--space-blue);
  background: white;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: normal;
  margin: 0;
  padding: 10px;
  /* space below terms */
}

.footer-terms a {
  color: var(--space-blue);
  text-decoration: none;
  margin: 0px;
  transition: color 0.3s;
}

.footer-terms a:hover {
  color: var(--action-orange);
}

/* Horizontal white line below the features / footer-desc */

.footer-desc::after {
  display: none;
  /* hides the horizontal line */
}

.footer-features {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-features .feature {
  font-weight: 500;
  font-size: 16px;
  color: #ffffff;
}

.footer-note {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  margin-top: 10px;
}

.footer-logo-col {
  padding-top: 30px;
  text-align: left;
}

/* Footer Columns */
.footer-col {
  padding-top: 30px;
  text-align: left;
  min-width: 150px;
  /* Reduced base min-width just in case, but overridden in mobile query */
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-family: var(--font-body);
  color: #cbd5e1;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-legal {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
}

.footer-legal a {
  color: #cbd5e1;
  margin: 0 15px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: var(--action-orange);
}

/* Social Section in Footer - Vertical List */
.social-section {
  text-align: center;
  font-family: "Quicksand", sans-serif;
  margin-top: 30px;
}

.social-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  /* White title text */
}

.faq-heading {
  scroll-margin-top: 120px;
  /* adjust to your navbar height */
}

/* Vertical container for social icons */
.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-family: var(--font-body);
  color: #cbd5e1;
  font-size: 0.95rem;
  transition: color 0.3s;
}

/* Individual social item: icon + text */
.social-item {
  display: flex;
  align-items: center;
  /* Align icon and text vertically */
  gap: 10px;
  /* Space between icon and name */
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  /* White text */
  text-decoration: none;
}

/* FontAwesome icons */
.social-item i {
  font-size: 22px;
}

.social-icons-vertical {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

/* SVG icons (X, Threads, Y Combinator) */
.social-item img {
  width: 22px;
  height: 22px;
  display: block;
  filter: invert(1);
  /* Make icons white on dark footer */
}

/* Icon + Text color */
.social-item span {
  color: #ffffff;
  /* White text */
  font-size: 14px;
  font-family: "Quicksand", sans-serif;
  white-space: nowrap;
}

/* Hover effect */
.social-item:hover {
  color: var(--action-orange);
}

.social-item:hover img,
.social-item:hover i {
  filter: invert(0.85) sepia(1) saturate(5) hue-rotate(15deg);
  /* Slight color highlight on hover */
}

/* Brand Colors */
.instagram i {
  color: #fff;
}

.linkedin i {
  color: #fff;
}

.youtube i {
  color: #ffffff;
}

.twitter i {
  color: #fff;
}

/* Black-brand platforms → white on dark footer */

.threads i,
.tiktok i {
  color: #ffffff;
}

.social-svg {
  width: 22px;
  height: 22px;
  filter: invert(1);
  /* white on dark footer */
}

/* Footer Responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .footer-desc {
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* --- TRIAL MODAL --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 42, 74, 0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: var(--bg-white);
  width: 90%;
  max-width: 600px;
  border-radius: 24px;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-light);
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #e2e8f0;
  color: var(--space-blue);
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.modal-header h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--space-blue);
}

.modal-header p {
  color: var(--text-light);
  font-size: 1rem;
}

.subject-selection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.modal-subject-card {
  border: 2px solid #eef2f6;
  border-radius: 16px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.modal-subject-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.modal-subject-card.selected {
  border-color: var(--action-orange);
  background: #fff7ed;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
}

.modal-subject-card .m-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 50%;
  color: white;
}

.modal-subject-card h4 {
  font-size: 1rem;
  color: var(--space-blue);
  margin: 0;
}

.m-icon.math {
  background: linear-gradient(135deg, #a78bfa, var(--math-purple));
}

.m-icon.sci {
  background: linear-gradient(135deg, #67e8f9, var(--sci-blue));
}

.m-icon.chess {
  background: linear-gradient(135deg, #fcd34d, var(--chess-gold));
}

.m-icon.ai {
  background: linear-gradient(135deg, #fca5a5, var(--ai-red));
}

.modal-cta-btn {
  width: 100%;
  padding: 16px;
  background: var(--action-orange);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
  font-family: var(--font-ui);
}

.modal-cta-btn:hover {
  background: #e85a25;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

@media (max-width: 480px) {
  .modal-container {
    padding: 30px 20px;
    width: 95%;
  }

  .subject-selection-grid {
    grid-template-columns: 1fr;
  }

  .modal-subject-card {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-align: left;
    gap: 15px;
  }

  .modal-subject-card .m-icon {
    margin-bottom: 0;
    font-size: 1.2rem;
    padding: 8px;
  }
}

/* --- IFRAME MODAL --- */
.iframe-modal-container {
  width: 95%;
  max-width: 900px;
  height: 90vh;
  padding: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  display: block;
  position: relative;
}

.iframe-wrapper {
  width: 100%;
  position: relative;
}

.iframe-wrapper iframe {
  display: block;
  width: 100%;
  border: none;
}

.iframe-modal-container .modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  cursor: pointer;
  border: 1px solid #eee;
}

@media (max-width: 768px) {
  .iframe-modal-container {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    border-radius: 0;
  }

  .iframe-modal-container .modal-close {
    top: 15px;
    right: 15px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

/* --- UTILITIES & ANIMATIONS --- */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--action-orange);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 9999;
}

.scroll-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: #e64a19;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.mobile-sticky-btn {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: var(--growth-green);
  color: white !important;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--font-ui);
  box-shadow: 0 4px 15px rgba(0, 200, 83, 0.4);
  z-index: 9998;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  display: none;
}

.mobile-sticky-btn.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.mobile-sticky-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 200, 83, 0.5);
}

@media (max-width: 900px) {
  .mobile-sticky-btn {
    display: inline-block;
  }

  .scroll-to-top {
    bottom: 20px;
    right: 20px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= LESSON BANNERS ================= */
/* ================= LESSON BANNERS ================= */
.lesson-banner-section {
  padding: var(--section-spacing) 20px;
  background: #f0f8ff;
  /* Light blue container */
  position: relative;
  overflow: hidden;
  text-align: center;
}

.banner-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.banner-content h3 {
  color: var(--action-orange);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.banner-heading {
  font-family: var(--font-heading);
  /* or Montserrat if preferred/available */
  font-weight: 700;
  font-size: 36px;
  color: #1a365d;
  /* Primary Navy */
  line-height: 1.3;
  position: relative;
  display: inline-block;
  padding-bottom: 25px;
  /* Space for accent bar */
  margin-bottom: 10px;
  /* Clear visual break */
  margin-top: 0;
}

.banner-heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #ff7043;
  /* Accent Orange */
  margin: 15px auto 0 auto;
  border-radius: 2px;
}

.banner-carousel-row {
  display: flex;
  overflow: hidden;
  margin-bottom: 30px;
  position: relative;
}

.banner-carousel-track {
  display: flex;
  gap: 20px;
  animation: scrollLeft 30s linear infinite;
}

/* Pause animation on hover */
.banner-carousel-row:hover .banner-carousel-track {
  animation-play-state: paused;
}

/* Static Row (Videos at bottom) */
.banner-static .banner-carousel-track {
  animation: none;
  justify-content: center;
  width: 100%;
}

.banner-static video,
.banner-static img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.banner-move-left .banner-carousel-track {
  animation: scrollLeft 40s linear infinite;
}

.banner-carousel-track img {
  height: 180px;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .banner-heading {
    font-size: 30px;
  }
}

@media (max-width: 600px) {
  .lesson-banner-section {
    padding: 60px 15px;
  }

  .banner-heading {
    font-size: 24px;
    margin-bottom: 60px;
  }

  .banner-carousel-track img {
    height: 140px;
  }
}

/* VIDEO CSS */
.banner-carousel-track video {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ================= ANIMATION ================= */
.banner-move-left .banner-carousel-track {
  animation: banner-scroll-left 35s linear infinite;
}

.banner-carousel-row:hover .banner-carousel-track {
  animation-play-state: paused;
}

@keyframes banner-scroll-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

  .banner-carousel-track img,
  .banner-carousel-track video {
    width: 240px;
  }

  .banner-content h3 {
    font-size: 22px;
  }

  .banner-heading {
    font-size: 20px;
  }

  .banner-carousel-row.banner-static {
    /* Enable grid layout for static row on mobile */
    overflow: visible;
    padding-bottom: 0;
  }

  .banner-carousel-row.banner-static .banner-carousel-track {
    display: grid;
    grid-template-columns: 1fr; /* Stack vertically (1 column) */
    gap: 15px;
    width: 100%;
    justify-content: center;
    padding: 0 15px;
  }

  /* Override width for grid items to fill their cells */
  .banner-carousel-row.banner-static .banner-carousel-track img,
  .banner-carousel-row.banner-static .banner-carousel-track video {
    width: 100%;
    height: 100%;
    /* Ensure uniform height if aspect ratios match, or auto */
    object-fit: cover;
  }
}

/* Footer Logo overrides */
.footer-logo-col .logo {
  color: white;
}

.footer-logo-col .logo .logo-subtitle {
  color: white;
}

/* Footer Description */
.footer-desc-text {
  color: #e0e0e0;
  font-family: var(--font-ui);
  font-size: 16px;
  margin-top: 12px;
  line-height: normal;
  font-weight: 500;
}

/* Video Showcase */
.video-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: #000;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
}

/* Video Showcase Section Styling */
.video-showcase {
  max-width: 1200px;
  margin: 0 auto var(--section-spacing);
  padding: 30px 20px;

  border-radius: 20px;
}

/* Force center alignment for FAQ CTA button */
#faqToggleBtn {
  display: block;
  margin: 30px auto 0 auto;
}
/* --- MOBILE TABBED PRICING --- */
.mobile-tabs-container {
  display: none;
  justify-content: center;
  margin-bottom: 20px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.mobile-tab-btn {
  background: transparent;
  border: none;
  padding: 15px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: #666;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  flex: 1;
  text-align: center;
}

.mobile-tab-btn.active {
  color: var(--space-blue);
  border-bottom-color: var(--space-blue);
}

@media (max-width: 900px) {
  .mobile-tabs-container {
    display: flex;
  }

  /* Hide all cards by default on mobile, show only active */
  .pricing-wrapper {
    flex-direction: column;
  }

  .pricing-card {
    display: none; /* Hidden by default on mobile */
  }

  /* Specific class to show card */
  .pricing-card.mobile-visible {
    display: flex;
    width: 100%;
    margin: 0 auto 20px auto; /* Centre card */
    max-width: 340px; /* Consitent with previous optimization */
    animation: fadeInUp 0.5s ease forwards;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Add padding to prevent sticky button overlap */
  .pricing-section {
    padding-bottom: 120px;
  }
}

/* Hide sticky buttons and prevent scrolling when popup is active */
body.popup-active .scroll-to-top,
body.popup-active .mobile-sticky-btn {
  display: none !important;
}

body.popup-active {
  overflow: hidden;
}
