/* ============================================
   IvyPath Academy - Main Stylesheet
   ============================================ */

/* --- Custom Properties --- */
:root {
  --primary: #1B4D3E;
  --primary-light: #2D7D5F;
  --primary-dark: #0F1C2E;
  --accent: #C5A55A;
  --accent-light: #D4BA7A;
  --navy: #1E3A5F;
  --text: #2D3436;
  --text-light: #636E72;
  --text-lighter: #95A5A6;
  --bg: #FFFFFF;
  --bg-alt: #F7FAF8;
  --bg-dark: #0B1D14;
  --border: #E8EDEB;
  --shadow-sm: 0 2px 8px rgba(27, 77, 62, 0.06);
  --shadow-md: 0 8px 30px rgba(27, 77, 62, 0.08);
  --shadow-lg: 0 20px 60px rgba(27, 77, 62, 0.12);
  --shadow-hover: 0 20px 50px rgba(27, 77, 62, 0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.4s var(--ease);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 2.4s cubic-bezier(0.16, 1, 0.3, 1), transform 2.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.15s; }
.reveal:nth-child(3) { transition-delay: 0.30s; }
.reveal:nth-child(4) { transition-delay: 0.45s; }
.reveal:nth-child(5) { transition-delay: 0.25s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }
.reveal:nth-child(7) { transition-delay: 0.50s; }
.reveal:nth-child(8) { transition-delay: 0.60s; }

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: padding 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(27, 77, 62, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-text {
  letter-spacing: -0.3px;
}

/* Logo image version */
.nav-logo-img {
  height: 38px;
  width: auto;
}

.footer .nav-logo-img {
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width 0.3s var(--ease);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(27, 77, 62, 0.3);
}

/* White nav only on pages with dark hero backgrounds (opt-in via .navbar-hero) */
.navbar.navbar-hero:not(.scrolled) .nav-links a {
  color: rgba(255, 255, 255, 0.8);
}

.navbar.navbar-hero:not(.scrolled) .nav-links a:hover {
  color: white;
}

.navbar.navbar-hero:not(.scrolled) .nav-links a::after {
  background: white;
}

.navbar.navbar-hero:not(.scrolled) .nav-logo-img {
  filter: brightness(0) invert(1);
}

.navbar.navbar-hero:not(.scrolled) .nav-cta {
  background: white;
  color: var(--primary);
}

.navbar.navbar-hero:not(.scrolled) .nav-cta:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.navbar.navbar-hero:not(.scrolled) .lang-toggle {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.25);
}

.navbar.navbar-hero:not(.scrolled) .lang-toggle:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar.navbar-hero:not(.scrolled) .mobile-toggle span {
  background: white;
}

.navbar.navbar-hero:not(.scrolled) .cart-toggle {
  color: rgba(255, 255, 255, 0.8);
}

.navbar.navbar-hero:not(.scrolled) .cart-toggle:hover {
  color: white;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 0 100px;
  overflow: hidden;
  background: linear-gradient(170deg, #f0f7f4 0%, #ffffff 40%, #f7f5f0 100%);
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  right: -150px;
  animation: float 20s ease-in-out infinite;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  bottom: -100px;
  left: -100px;
  animation: float 25s ease-in-out infinite reverse;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: var(--navy);
  top: 40%;
  left: 60%;
  animation: float 18s ease-in-out infinite 3s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 10px) scale(1.02); }
}

/* Campus Background Hero */
.hero-campus {
  background: url('assets/hero-campus.jpg') center center / cover no-repeat;
}

.hero-campus-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 29, 20, 0.88) 0%, rgba(27, 77, 62, 0.78) 100%);
  z-index: 0;
}

.hero-campus .hero-title {
  color: white;
}

.hero-campus .hero-subtitle {
  color: rgba(255, 255, 255, 0.78);
}

.hero-campus .hero-badge {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
}

.hero-campus .badge-dot {
  background: var(--accent);
}

.hero-campus .hero-italic {
  color: rgba(255, 255, 255, 0.6);
}

.hero-campus .highlight {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-left {
  text-align: left;
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(27, 77, 62, 0.06);
  border: 1px solid rgba(27, 77, 62, 0.1);
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 28px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-light);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero-italic {
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.55em;
  letter-spacing: 0;
  color: var(--text-light);
  margin-bottom: 8px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--primary-dark);
  margin-bottom: 24px;
}

.highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.15rem);
  color: var(--text-light);
  max-width: 520px;
  margin: 0 0 40px;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Hero Schools Row */
.hero-schools-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-schools-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-lighter);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-schools-logos {
  display: flex;
  gap: 20px;
  align-items: center;
}

.hero-schools-logos img {
  height: 28px;
  width: auto;
  opacity: 0.4;
  filter: grayscale(100%);
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.hero-schools-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Hero Rotating Card */
.hero-card-carousel {
  position: relative;
  width: 320px;
  height: 420px;
}

.hero-card {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  border: 4px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.hero-card.active {
  opacity: 1;
  transform: scale(1);
}

.hero-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-card-initials {
  font-size: 5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: -2px;
  margin-bottom: auto;
  padding-top: 80px;
}

.hero-card-info {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 20px 28px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-top: auto;
}

.hero-card-info strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 2px;
}

.hero-card-info span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(27, 77, 62, 0.25);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(27, 77, 62, 0.3);
}

.btn-secondary {
  background: rgba(27, 77, 62, 0.06);
  color: var(--primary);
  border: 1px solid rgba(27, 77, 62, 0.15);
}

.btn-secondary:hover {
  background: rgba(27, 77, 62, 0.1);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 30px;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(27, 77, 62, 0.3);
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-secondary-light {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary-light:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

/* Hero Trust */
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.trust-avatars {
  display: flex;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid white;
  margin-right: -8px;
}

.trust-text {
  text-align: left;
}

.trust-stars {
  font-size: 0.85rem;
  color: var(--accent);
}

.trust-stars span {
  color: var(--text-light);
  font-size: 0.8rem;
  margin-left: 4px;
}

.trust-text p {
  font-size: 0.8rem;
  color: var(--text-lighter);
}

/* ============================================
   Stats Section
   ============================================ */
.stats {
  padding: 60px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
  line-height: 1;
}

.stat-suffix {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-light);
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 8px;
  font-weight: 500;
}

/* ============================================
   School Logo Marquee
   ============================================ */
.marquee-section {
  padding: 48px 0 40px;
  background: var(--bg);
  overflow: hidden;
}

.marquee-label {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-lighter);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 28px;
}

.marquee-wrapper {
  position: relative;
  width: 100%;
  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);
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 8px;
  transition: opacity 0.4s var(--ease);
}

.marquee-item:hover {
  opacity: 0.7;
}

.marquee-item img {
  height: 48px;
  width: auto;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: opacity 0.5s var(--ease), filter 0.5s var(--ease);
}

.marquee-item:hover img {
  opacity: 1;
  filter: grayscale(0%);
}

.marquee-disclaimer {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-lighter);
  margin-top: 20px;
  opacity: 0.6;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   Section Shared Styles
   ============================================ */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  padding: 6px 16px;
  background: rgba(27, 77, 62, 0.06);
  border-radius: var(--radius-xl);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   Services
   ============================================ */
/* ============================================
   Packages
   ============================================ */
.packages {
  padding: 120px 0;
  background: var(--bg-alt);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.package-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 44px 36px 40px;
  border: 1.5px solid var(--border);
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(27, 77, 62, 0.12);
  border-color: var(--primary);
}

.package-card-featured {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(27, 77, 62, 0.08);
  position: relative;
}

.package-card-featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 5px 20px;
  border-radius: 20px;
}

.package-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.package-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
  min-height: 48px;
}

.package-pricing {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.package-original {
  display: block;
  font-size: 0.92rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-bottom: 4px;
}

.package-price {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.package-rate {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.package-features {
  list-style: none;
  text-align: left;
  margin-bottom: 36px;
  padding: 0;
  flex: 1;
}

.package-features li {
  position: relative;
  font-size: 0.9rem;
  color: var(--text);
  padding: 8px 0 8px 28px;
  line-height: 1.5;
}

.package-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 8px;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.package-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.package-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.package-btn-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.package-btn-outline:hover {
  background: rgba(27, 77, 62, 0.05);
}

.package-btn-solid {
  background: var(--primary-dark);
  color: white;
  border: 1.5px solid var(--primary-dark);
}

.package-btn-solid:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* ============================================
   About Teaser (Home Page)
   ============================================ */
.about-teaser {
  padding: 100px 0;
  background: var(--bg);
  text-align: center;
}

.about-teaser-content {
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================
   About Section (Hermes-inspired, about.html)
   ============================================ */
.about {
  padding: 120px 0;
  background: var(--bg);
}

/* Intro / Mission */
.about-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 80px;
}

.about-intro-text {
  columns: 1;
}

.about-intro-text p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Subtitle for sub-sections */
.about-subtitle {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.3px;
}

/* Lead Tutors */
.about-leads {
  margin-bottom: 80px;
}

.leads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.lead-card {
  display: flex;
  gap: 28px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.lead-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(27, 77, 62, 0.1);
  border-color: transparent;
}

.lead-avatar {
  flex-shrink: 0;
}

.lead-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.lead-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.lead-school {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.lead-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.lead-contact {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.3s var(--ease);
}

.lead-contact:hover {
  color: var(--primary-light);
  letter-spacing: 0.3px;
}

/* Team Grid */
.about-team {
  margin-bottom: 80px;
}

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

.team-member {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(27, 77, 62, 0.1);
  border-color: transparent;
}

.team-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
  margin: 0 auto 14px;
}

.team-member strong {
  display: block;
  font-size: 0.95rem;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.team-member > span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
}

.team-spec {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(27, 77, 62, 0.06);
  padding: 4px 12px;
  border-radius: var(--radius-xl);
}

/* Values Row */
.about-values {
  padding-top: 60px;
  border-top: 1px solid var(--border);
}

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

.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon-sm {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 77, 62, 0.06);
  color: var(--primary);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.value-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.value-item p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================
   Process / How It Works
   ============================================ */
.process {
  padding: 120px 0;
  background: var(--bg-alt);
}

.process-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.process-step {
  flex: 1;
  max-width: 320px;
  text-align: center;
  padding: 40px 32px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(27, 77, 62, 0.12);
  border-color: transparent;
}

.step-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.2;
  margin-bottom: 20px;
  line-height: 1;
}

.process-step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.process-step p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

.process-connector {
  width: 60px;
  height: 2px;
  background: var(--border);
  margin-top: 80px;
  flex-shrink: 0;
}

/* ============================================
   Pricing (Tabbed Table)
   ============================================ */
.pricing {
  padding: 120px 0;
  background: var(--bg);
}

.pricing-hero {
  text-align: center;
  margin-bottom: 48px;
}

.pricing-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.pricing-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
}

.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.pricing-tab {
  padding: 12px 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: white;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.pricing-tab:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.pricing-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.pricing-table-wrapper {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table thead th {
  padding: 20px 32px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.pricing-table thead th:last-child {
  text-align: right;
}

.pricing-table tbody {
  display: none;
}

.pricing-table tbody.active {
  display: table-row-group;
}

.pricing-table tbody td {
  padding: 24px 32px;
  font-size: 0.95rem;
  color: var(--text);
  background: white;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table tbody tr:hover td {
  background: rgba(27, 77, 62, 0.02);
}

.pricing-table td.total {
  text-align: right;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
}

.best-value {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(197, 165, 90, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-xl);
  margin-left: 8px;
  vertical-align: middle;
}

.pricing-cta {
  text-align: center;
  margin-top: 48px;
}

.pricing-note {
  font-size: 0.88rem;
  color: var(--text-lighter);
  margin-top: 16px;
  line-height: 1.6;
}

/* Consulting Package Cards */
.consulting-cards {
  display: none;
}

.consulting-cards.active {
  display: block;
}

.consulting-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 880px;
  margin: 0 auto;
}

.consulting-card {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px 36px 40px;
  text-align: center;
  border: 2px dashed var(--border);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.consulting-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(27, 77, 62, 0.1);
}

.consulting-card-gold {
  border-color: var(--accent);
}

.consulting-card-green {
  border-color: #9ab4a6;
}

.consulting-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 22px;
  border-radius: 20px;
  white-space: nowrap;
  color: white;
}

.consulting-badge-gold {
  background: var(--accent);
}

.consulting-badge-green {
  background: var(--primary);
}

.consulting-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
  margin-top: 8px;
}

.consulting-price {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
  margin-bottom: 32px;
}

.consulting-features {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 36px;
}

.consulting-features li {
  position: relative;
  font-size: 0.9rem;
  color: var(--text);
  padding: 10px 0 10px 30px;
  line-height: 1.5;
}

.consulting-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 10px;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.consulting-btn {
  display: block;
  width: 100%;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
}

.consulting-btn-gold {
  background: var(--accent);
}

.consulting-btn-gold:hover {
  background: #b8953e;
}

.consulting-btn-green {
  background: var(--primary);
}

.consulting-btn-green:hover {
  background: var(--primary-light);
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
  padding: 120px 0;
  background: var(--bg-alt);
}

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

.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(27, 77, 62, 0.1);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--primary-dark);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-lighter);
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: 120px 0;
  background: var(--bg);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-align: left;
  font-family: inherit;
  transition: color 0.3s var(--ease);
}

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

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-light);
  transition: transform 0.4s var(--ease);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), padding 0.5s var(--ease);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding-bottom: 24px;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: white;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 80px 0 40px;
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand .logo-text {
  color: white;
}

.footer-brand > p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s var(--ease);
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer-links h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.footer-links span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s var(--ease);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   X-Shaped Stats Marquee
   ============================================ */
.x-marquee-section {
  position: relative;
  padding: 40px 0;
  overflow: hidden;
  background: var(--bg-alt);
}

.x-marquee-band {
  padding: 14px 0;
  white-space: nowrap;
  overflow: hidden;
}

.x-marquee-dark {
  background: var(--primary-dark);
  transform: rotate(-3deg) scale(1.08);
  margin-bottom: -18px;
  position: relative;
  z-index: 2;
}

.x-marquee-accent {
  background: var(--primary);
  transform: rotate(3deg) scale(1.08);
  position: relative;
  z-index: 1;
}

.x-marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: x-scroll 60s linear infinite;
}

.x-marquee-reverse {
  animation: x-scroll-reverse 65s linear infinite;
}

.x-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 32px;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.3px;
}

.x-star {
  color: var(--accent);
  font-size: 0.9rem;
}

.x-marquee-accent .x-star {
  color: var(--accent-light);
}

@keyframes x-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes x-scroll-reverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ============================================
   Masonry Testimonials Feed
   ============================================ */
.masonry-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.masonry-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feed-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.feed-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(27, 77, 62, 0.12);
  border-color: var(--primary-light);
}

/* Text Cards */
.feed-text {
  padding: 32px;
}

.feed-text h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.feed-text p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.feed-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feed-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--primary-dark);
}

.feed-author span {
  font-size: 0.8rem;
  color: var(--text-lighter);
}

.feed-school-logo {
  height: 24px;
  width: auto;
  margin-left: auto;
  opacity: 0.5;
}

/* Stat Cards */
.feed-stat {
  padding: 32px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-alt) 0%, white 100%);
}

.feed-stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 8px;
}

.feed-stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.feed-stat-detail {
  font-size: 0.82rem;
  color: var(--text-lighter);
  margin-bottom: 20px;
}

.feed-stat .feed-author {
  justify-content: center;
}

/* Video Cards */
.feed-video-thumb {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.feed-video-thumb-short {
  height: 160px;
}

.feed-video-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.feed-video-thumb:hover .feed-video-play {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.25);
}

.feed-video-play svg {
  margin-left: 4px;
}

.feed-video-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.feed-video-info {
  padding: 20px 24px;
}

.feed-video-info strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.feed-video-info span {
  font-size: 0.82rem;
  color: var(--text-lighter);
}

/* ============================================
   Language Toggle
   ============================================ */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
}

.lang-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* ============================================
   Cart Toggle (Navbar)
   ============================================ */
.cart-toggle {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-light);
  transition: color 0.3s var(--ease);
  display: flex;
  align-items: center;
}

.cart-toggle:hover {
  color: var(--primary);
}

.navbar:not(.scrolled) .cart-toggle {
  color: rgba(255, 255, 255, 0.8);
}

.navbar:not(.scrolled) .cart-toggle:hover {
  color: white;
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -6px;
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ============================================
   Cart Drawer
   ============================================ */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: white;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.cart-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.cart-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-light);
  transition: color 0.2s;
}

.cart-close:hover {
  color: var(--text);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  color: var(--text-lighter);
  text-align: center;
}

.cart-browse-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

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

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--text-light);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
}

.cart-qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.cart-qty-btn:hover {
  background: var(--border);
  color: var(--text);
}

.cart-qty {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-lighter);
  padding: 4px;
  transition: color 0.2s;
}

.cart-remove-btn:hover {
  color: #e74c3c;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.cart-checkout-btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-xl);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.2s;
}

.cart-checkout-btn:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.cart-checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   Add to Cart Button (Pricing Table)
   ============================================ */
.btn-add-to-cart {
  padding: 8px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.2s;
  white-space: nowrap;
}

.btn-add-to-cart:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* ============================================
   Package Detail Cards (Pricing Page)
   ============================================ */
.package-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.package-detail-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.package-detail-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.package-detail-desc {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.package-detail-card ul {
  list-style: none;
  margin-bottom: 20px;
}

.package-detail-card ul li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.package-detail-card ul li:last-child {
  border-bottom: none;
}

.package-detail-ideal {
  font-size: 0.9rem;
  color: var(--text-light);
  background: var(--bg-alt);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .packages-grid {
    grid-template-columns: 1fr 1fr;
  }

  .packages-grid .package-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

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

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

@media (max-width: 768px) {
  .nav-links,
  .nav-cta,
  .lang-toggle {
    display: none;
  }

  .nav-right {
    gap: 8px;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-container {
    padding: 0 16px;
  }

  .package-details-grid {
    grid-template-columns: 1fr;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border);
  }

  .nav-links.open + .nav-cta {
    display: none;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-left {
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto 40px;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-schools-row {
    align-items: center;
  }

  .hero-schools-logos {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-card-carousel {
    width: 260px;
    height: 340px;
    margin: 0 auto;
  }

  .hero-card-initials {
    font-size: 3.5rem;
    padding-top: 60px;
  }

  .masonry-feed {
    grid-template-columns: 1fr;
  }

  .x-marquee-item {
    font-size: 0.9rem;
    padding: 0 20px;
  }

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

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

  .packages-grid .package-card:last-child {
    max-width: 100%;
  }

  .package-card {
    padding: 36px 28px 32px;
  }

  .marquee-item img {
    height: 36px;
  }

  .lead-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  .process-grid {
    flex-direction: column;
    align-items: center;
  }

  .process-connector {
    width: 2px;
    height: 40px;
    margin: 0;
  }

  .process-step {
    max-width: 100%;
    width: 100%;
  }

  .pricing-tabs {
    flex-wrap: wrap;
    gap: 6px;
  }

  .pricing-tab {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .pricing-table thead th,
  .pricing-table tbody td {
    padding: 16px 18px;
    font-size: 0.88rem;
  }

  .pricing-table td.total {
    font-size: 0.95rem;
  }

  .consulting-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .consulting-card {
    padding: 40px 28px 32px;
  }

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

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

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

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

  .stat-number {
    font-size: 2.2rem;
  }

  .package-card,
  .process-step,
  .testimonial-card {
    padding: 28px;
  }

  .package-actions {
    grid-template-columns: 1fr;
  }

  .pricing-table thead th,
  .pricing-table tbody td {
    padding: 14px 14px;
    font-size: 0.82rem;
  }

  .section-title {
    font-size: 1.6rem;
  }
}

/* ===== Consulting Card Styles ===== */
.consulting-cards { display: none; }
.consulting-cards.active { display: block; }
.consulting-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 880px; margin: 0 auto; }
.consulting-card { position: relative; background: white; border-radius: var(--radius-lg); padding: 48px 36px 40px; text-align: center; border: 2px dashed var(--border); transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; }
.consulting-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(27, 77, 62, 0.1); }
.consulting-card-gold { border-color: var(--accent); }
.consulting-card-green { border-color: #9ab4a6; }
.consulting-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; padding: 6px 22px; border-radius: 20px; white-space: nowrap; color: white; }
.consulting-badge-gold { background: var(--accent); }
.consulting-badge-green { background: var(--primary); }
.consulting-name { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; margin-top: 8px; }
.consulting-price { display: block; font-size: 2.6rem; font-weight: 800; color: var(--primary); letter-spacing: -1px; margin-bottom: 32px; }
.consulting-features { list-style: none; padding: 0; text-align: left; margin-bottom: 36px; flex: 1; }
.consulting-features li { position: relative; font-size: 0.9rem; color: var(--text); padding: 10px 0 10px 30px; line-height: 1.5; }
.consulting-features li::before { content: '\2713'; position: absolute; left: 0; top: 10px; font-weight: 700; color: var(--primary); font-size: 0.95rem; }
.consulting-btn { display: block; width: 100%; padding: 16px 24px; border-radius: 8px; font-size: 0.95rem; font-weight: 700; text-align: center; text-decoration: none; color: white; transition: all 0.3s ease; }
.consulting-btn-gold { background: var(--accent); }
.consulting-btn-gold:hover { background: #b8953e; }
.consulting-btn-green { background: var(--primary); }
.consulting-btn-green:hover { background: var(--primary-light); }
@media (max-width: 768px) { .consulting-grid { grid-template-columns: 1fr; max-width: 440px; } .consulting-card { padding: 40px 28px 32px; } }

/* ===== Inner Page Styles ===== */

.page-hero {
  background: #FAFBF9;
  padding: 140px 0 80px;
  text-align: center;
}
.page-hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}
.page-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .page-hero { padding: 120px 0 60px; }
  .page-hero-title { font-size: 2.2rem; }
}

/* Single hero stat */
.hero-stat-section {
  padding: 0;
}
.hero-stat {
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
  padding: 60px 0;
}
.hero-stat .stat-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary);
}
.hero-stat .stat-suffix {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}
.hero-stat p {
  font-size: 1rem;
  color: var(--text-light);
  margin-top: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Centered hero (no carousel) */
.hero-split.hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  grid-template-columns: none;
  max-width: 800px;
  margin: 0 auto;
}
.hero-centered .hero-left {
  max-width: 100%;
  width: 100%;
}
.hero-centered .hero-title {
  text-align: center;
}
.hero-centered .hero-subtitle {
  text-align: center;
  margin: 0 auto;
}
.hero-centered .hero-ctas {
  justify-content: center;
  display: flex;
}

/* ===== Results Page ===== */
.results-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 80px 0;
}
.results-gallery-card {
  aspect-ratio: 4/3;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  color: var(--text-lighter);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}
.results-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.score-bars {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 0;
}
.score-bar-group {
  margin-bottom: 32px;
}
.score-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.score-bar-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
}
.score-bar-delta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}
.score-bar-track {
  height: 28px;
  background: #e8e8e8;
  border-radius: 14px;
  margin-bottom: 4px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  border-radius: 14px;
  background: var(--accent);
}
.score-bar-before {
  background: #c0c0c0;
}
.score-bar-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-lighter);
  font-weight: 500;
}

.ap-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 800px;
  margin: 0 auto;
}
.ap-table thead th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 16px 20px;
  text-align: center;
  border-bottom: 2px solid var(--border);
}
.ap-table thead th:first-child {
  text-align: left;
}
.ap-table tbody td {
  padding: 18px 20px;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.ap-table tbody td:first-child {
  text-align: left;
}
.ap-table tbody tr:last-child td { border-bottom: none; }
.ap-table .ap-score {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.05rem;
}

.trajectory-chart {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.trajectory-chart svg {
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .results-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .results-gallery { grid-template-columns: 1fr; }
}

/* ===== Method Page ===== */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 80px;
  bottom: 80px;
  width: 2px;
  background: var(--border);
}
.timeline-step {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
  position: relative;
}
.timeline-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  background: white;
  flex-shrink: 0;
  z-index: 1;
}
.timeline-card {
  flex: 1;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.timeline-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.timeline-card p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
}
.timeline-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  list-style: none;
  padding: 0;
}
.timeline-bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text);
}
.timeline-bullets li::before {
  content: '\2713';
  font-weight: 700;
  color: var(--primary);
  font-size: 0.85rem;
}

.comparison-table {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}
.comparison-table thead th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 16px 20px;
  text-align: center;
  border-bottom: 2px solid var(--border);
}
.comparison-table tbody td {
  padding: 18px 20px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.comparison-table tbody td:first-child {
  text-align: left;
}
.comparison-table thead th:first-child {
  text-align: left;
}
.comparison-table .col-ivypath {
  color: var(--primary);
  font-weight: 600;
}
.comparison-table .col-others {
  color: var(--text-lighter);
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.subject-group {
  padding: 28px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
}
.subject-group h3,
.subject-group h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.subject-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.subject-pill {
  background: var(--bg-alt);
  color: var(--text);
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.subject-pill:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .timeline::before { left: 24px; }
  .timeline-number { width: 48px; height: 48px; font-size: 0.8rem; }
  .timeline-bullets { grid-template-columns: 1fr; }
  .timeline-card { padding: 24px; }
}

/* ===== Testimonials Page ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 80px 0;
}
.score-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 0 80px;
}

@media (max-width: 768px) {
  .testimonial-grid { grid-template-columns: 1fr; }
  .score-results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .score-results-grid { grid-template-columns: 1fr; }
}

/* ===== Page section utilities ===== */
.page-section {
  padding: 80px 0;
}
.page-section-alt {
  padding: 80px 0;
  background: #FAFBF9;
}
.page-section-dark {
  padding: 80px 0;
  background: #F5F7F4;
  color: var(--text);
}
.page-cta {
  text-align: center;
  padding: 80px 0;
  background: #F5F7F4;
  border-top: 1px solid var(--border);
}
.page-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
}
.page-cta p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.page-cta .btn {
  display: inline-block;
}
