:root {
  /* Vibrant Color Palette */
  --pink: #ff006e;
  --pink-light: #ff4d9a;
  --blue: #3a86ff;
  --blue-light: #6ba3ff;
  --purple: #8338ec;
  --purple-light: #a855f7;
  --orange: #ff6b35;
  --orange-light: #ff8c61;
  --yellow: #ffbe0b;
  --yellow-light: #ffd93d;

  /* Teal Green Colors */
  --teal: #0e2f1b;
  --teal-light: #1a5a3a;
  --teal-dark: #0a1f12;
  --teal-accent: #2d7a4f;

  /* Neutrals - Subtle Background */
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --card: #ffffff;
  --card-alt: #e8f4f2;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: rgba(14, 47, 27, 0.2);

  /* Gradients with Teal */
  --gradient-1: linear-gradient(135deg, #0e2f1b 0%, #3a86ff 50%, #8338ec 100%);
  --gradient-2: linear-gradient(135deg, #0e2f1b 0%, #1a5a3a 100%);
  --gradient-3: linear-gradient(135deg, #0a1f12 0%, #0e2f1b 100%);
  --gradient-4: linear-gradient(135deg, #8338ec 0%, #0e2f1b 100%);

  /* Shadows - Subtle */
  --shadow-sm: 0 2px 4px rgba(14, 47, 27, 0.1);
  --shadow-md: 0 4px 12px rgba(14, 47, 27, 0.15);
  --shadow-lg: 0 8px 24px rgba(14, 47, 27, 0.2);
  --shadow-glow: 0 0 20px rgba(14, 47, 27, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(at 0% 0%, rgba(14, 47, 27, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(58, 134, 255, 0.05) 0px, transparent 50%);
}

img {
  max-width: 100%;
  display: block;
  border-radius: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Hero Section */
.hero {
  padding: 2rem clamp(1rem, 6vw, 5rem) 6rem;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  min-height: 90vh;
  display: flex;
  flex-direction: column;
}

/* Home: tighter spacing above/below nav and before hero headline */
.hero:has(.hero__content) {
  padding-top: 1rem;
  padding-bottom: 5rem;
}

.hero:has(.hero__content) .nav {
  padding: 0.5rem 0;
  margin-bottom: 1.25rem;
}

/* Nav-only header (all pages except home): don’t reserve full viewport height */
.hero:not(:has(.hero__content)) {
  min-height: 0;
  padding-bottom: 0.5rem;
}

.hero:not(:has(.hero__content)) .nav {
  margin-bottom: 0;
}

/* Tighter gap between nav and page content (same on every inner page) */
.hero:not(:has(.hero__content)) + main > .section:first-child {
  padding-top: 2.75rem;
}

.hero__bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-2);
  opacity: 0.08;
  filter: blur(120px);
  z-index: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  position: relative;
  z-index: 10;
  gap: 2rem;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  z-index: 11;
}

.logo img {
  height: 70px;
  width: auto;
  max-width: 600px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.logo:hover img {
  transform: scale(1.05);
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.nav__links li {
  display: flex;
  align-items: center;
}

.nav__links a {
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  position: relative;
}

.nav__links a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-3);
  transition: width 0.3s ease;
}

.nav__links a:hover::before {
  width: 80%;
}

.nav__links a:hover {
  background: rgba(14, 47, 27, 0.1);
  transform: translateY(-2px);
}

.nav__links a.btn {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
}

.nav__links li:has(a[href="blogs.html"]),
.nav__links li:has(a[href="podcasts.html"]) {
  display: none;
  pointer-events: none;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 11;
}

.nav__toggle span {
  width: 28px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.nav__toggle.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav__toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.hero__content {
  display: grid;
  gap: 4rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  z-index: 2;
  margin-top: 0.75rem;
}

.hero__badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gradient-3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
  color: white;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.hero__text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 50ch;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero__stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat__number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal);
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero__visual {
  position: relative;
}

.hero__image-stack {
  position: relative;
  height: 500px;
}

.hero__img {
  position: absolute;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.hero__img--1 {
  top: 0;
  left: 0;
  width: 60%;
  z-index: 3;
  transform: rotate(-5deg);
}

.hero__img--2 {
  top: 20%;
  right: 0;
  width: 55%;
  z-index: 2;
  transform: rotate(3deg);
}

.hero__img--3 {
  bottom: 0;
  left: 20%;
  width: 50%;
  z-index: 1;
  transform: rotate(-2deg);
}

.hero__img:hover {
  transform: rotate(0deg) scale(1.05);
  z-index: 10;
}

.hero__card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--card);
  border: 2px solid var(--teal);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow-glow);
  z-index: 5;
  backdrop-filter: blur(10px);
  max-width: 250px;
}

.hero__card.floating {
  animation: float 3s ease-in-out infinite;
}

#home .hero__card {
  display: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.card__icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero__card h3 {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.hero__card p {
  margin: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card__progress {
  height: 6px;
  background: rgba(14, 47, 27, 0.1);
  border-radius: 3px;
  margin: 1rem 0;
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  background: var(--gradient-3);
  border-radius: 3px;
  animation: progress 2s ease;
}

@keyframes progress {
  from {
    width: 0;
  }
}

.btn--small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Sections */
.section {
  padding: 6rem clamp(1rem, 5vw, 4rem);
  position: relative;
}

.section--gradient {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  background-image:
    radial-gradient(at 20% 50%, rgba(14, 47, 27, 0.08) 0px, transparent 50%),
    radial-gradient(at 80% 80%, rgba(58, 134, 255, 0.08) 0px, transparent 50%);
}

.section--gradient-alt {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  background-image:
    radial-gradient(at 50% 20%, rgba(14, 47, 27, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 50%, rgba(131, 56, 236, 0.08) 0px, transparent 50%);
}

.section--image-bg {
  background-image: url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=2000&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.section__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(248, 250, 252, 0.95) 0%,
    rgba(241, 245, 249, 0.92) 100%
  );
  z-index: 1;
}

.section__content {
  position: relative;
  z-index: 2;
}

.section__header {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: inline-block;
}

.eyebrow--vibrant {
  color: var(--teal);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1.5rem;
}

.section__header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Cards */
.card {
  background: var(--card);
  border-radius: 24px;
  padding: 2rem;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-3);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

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

.card--vibrant {
  border: none;
}

.card--pink {
  background: linear-gradient(
    135deg,
    rgba(255, 0, 110, 0.1) 0%,
    rgba(131, 56, 236, 0.1) 100%
  );
  border: 2px solid var(--pink);
}

.card--blue {
  background: linear-gradient(
    135deg,
    rgba(58, 134, 255, 0.1) 0%,
    rgba(14, 47, 27, 0.1) 100%
  );
  border: 2px solid var(--blue);
}

.card--purple {
  background: linear-gradient(
    135deg,
    rgba(131, 56, 236, 0.1) 0%,
    rgba(14, 47, 27, 0.1) 100%
  );
  border: 2px solid var(--purple);
}

.card--green {
  background: linear-gradient(
    135deg,
    rgba(14, 47, 27, 0.15) 0%,
    rgba(26, 90, 58, 0.15) 100%
  );
  border: 2px solid var(--teal);
}

.card--orange {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.1) 0%,
    rgba(255, 190, 11, 0.1) 100%
  );
  border: 2px solid var(--orange);
}

.card--yellow {
  background: linear-gradient(
    135deg,
    rgba(255, 190, 11, 0.1) 0%,
    rgba(255, 107, 53, 0.1) 100%
  );
  border: 2px solid var(--yellow);
}

.card--glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(14, 47, 27, 0.2);
}

.card__icon-large {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

/* Vibrant cards with a top image (Why Us, Parents, etc.): same frame + spacing */
.card--vibrant .card__icon-large {
  font-size: unset;
  margin-bottom: 1rem;
  display: block;
  height: 200px;
  border-radius: 16px;
  background: rgba(14, 47, 27, 0.06);
  overflow: hidden;
}

.card--vibrant .card__icon-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  margin-top: 1.5rem;
  border-radius: 16px;
  background: rgba(14, 47, 27, 0.06);
  display: block;
}

.card > .card__image:first-child {
  margin-top: 0;
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.card p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Blog Cards */
.blog {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: all 0.3s ease;
}

.blog:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

.blog--vibrant {
  border: none;
  background: var(--card);
}

.blog__image-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.blog__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog:hover .blog__image {
  transform: scale(1.1);
}

.blog__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gradient-3);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.blog__content {
  padding: 1.5rem;
}

.blog__tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.blog__tag--pink {
  background: rgba(255, 0, 110, 0.2);
  color: var(--pink-light);
}

.blog__tag--blue {
  background: rgba(58, 134, 255, 0.2);
  color: var(--blue-light);
}

.blog__tag--purple {
  background: rgba(131, 56, 236, 0.2);
  color: var(--purple-light);
}

.blog h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.blog p {
  color: var(--text-muted);
  margin: 0.5rem 0;
}

.blog__link {
  color: var(--teal);
  font-weight: 600;
  display: inline-block;
  margin-top: 0.5rem;
  transition: transform 0.2s ease;
}

.blog__link:hover {
  transform: translateX(5px);
}

/* Podcasts */
.podcasts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.podcasts--vibrant {
  gap: 2rem;
}

.podcast {
  background: var(--card);
  border-radius: 20px;
  padding: 1.5rem;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.podcast:hover {
  transform: translateX(5px);
  border-color: var(--teal);
}

.podcast--featured {
  background: linear-gradient(
    135deg,
    rgba(14, 47, 27, 0.1) 0%,
    rgba(26, 90, 58, 0.1) 100%
  );
  border: 2px solid var(--teal);
  padding: 2rem;
}

.podcast__image-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
}

.podcast__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.podcast__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-3);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.podcast__play:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.podcast__thumb {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.podcast__content {
  flex: 1;
}

.podcast__tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--gradient-3);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}

.podcast h3,
.podcast h4 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

.podcast__meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Curriculum */
.curriculum {
  position: relative;
  padding: 2.5rem;
}

.curriculum__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.curriculum__level {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.curriculum__icon {
  font-size: 2rem;
}

.curriculum--pink {
  border: 2px solid var(--pink);
  background: linear-gradient(
    135deg,
    rgba(255, 0, 110, 0.08) 0%,
    rgba(131, 56, 236, 0.08) 100%
  );
}

.curriculum--blue {
  border: 2px solid var(--blue);
  background: linear-gradient(
    135deg,
    rgba(58, 134, 255, 0.08) 0%,
    rgba(14, 47, 27, 0.08) 100%
  );
}

.curriculum--purple {
  border: 2px solid var(--teal);
  background: linear-gradient(
    135deg,
    rgba(14, 47, 27, 0.12) 0%,
    rgba(26, 90, 58, 0.12) 100%
  );
}

.curriculum__desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.curriculum ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.curriculum li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
}

.curriculum li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Curriculum top image — same frame as Why Us / Parents cards */
.curriculum .card__icon-large {
  font-size: unset;
  margin-bottom: 1rem;
  display: block;
  height: 200px;
  border-radius: 16px;
  background: rgba(14, 47, 27, 0.06);
  overflow: hidden;
}

.curriculum .card__icon-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Testimonials */
.testimonial {
  padding: 2.5rem;
  background: var(--card);
  border-radius: 24px;
  border: 2px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
}

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

/* Match Why Us card palette */
.testimonial--pink {
  background: linear-gradient(
    135deg,
    rgba(255, 0, 110, 0.1) 0%,
    rgba(131, 56, 236, 0.1) 100%
  );
  border: 2px solid var(--pink);
}

.testimonial--pink:hover {
  border-color: var(--pink-light);
}

.testimonial--blue {
  background: linear-gradient(
    135deg,
    rgba(58, 134, 255, 0.1) 0%,
    rgba(14, 47, 27, 0.1) 100%
  );
  border: 2px solid var(--blue);
}

.testimonial--blue:hover {
  border-color: var(--blue-light);
}

.testimonial--green {
  background: linear-gradient(
    135deg,
    rgba(14, 47, 27, 0.15) 0%,
    rgba(26, 90, 58, 0.15) 100%
  );
  border: 2px solid var(--teal);
}

.testimonial--green:hover {
  border-color: var(--teal-accent);
}

.testimonial--orange {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.1) 0%,
    rgba(255, 190, 11, 0.1) 100%
  );
  border: 2px solid var(--orange);
}

.testimonial--orange:hover {
  border-color: var(--orange-light);
}

.testimonial--yellow {
  background: linear-gradient(
    135deg,
    rgba(255, 190, 11, 0.1) 0%,
    rgba(255, 107, 53, 0.1) 100%
  );
  border: 2px solid var(--yellow);
}

.testimonial--yellow:hover {
  border-color: var(--yellow-light);
}

.testimonial--vibrant {
  background: linear-gradient(
    135deg,
    rgba(14, 47, 27, 0.1) 0%,
    rgba(26, 90, 58, 0.1) 100%
  );
  border: 2px solid var(--teal);
}

.testimonial--vibrant:hover {
  border-color: var(--teal-accent);
}

.testimonial__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 3px solid var(--teal);
}

.testimonial__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial__stars {
  color: var(--yellow);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial p {
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial h4 {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Testimonials carousel (Reviews page) — 3 cards visible on desktop, 1 on small screens */
.testimonials-carousel {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.testimonials-carousel__viewport {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 2rem;
  width: 100%;
  /* Room so borders + float animation aren’t clipped at top/bottom */
  padding: 8px 0 12px;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonials-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.testimonials-carousel__viewport .testimonial {
  flex: 0 0 calc((100% - 4rem) / 3);
  scroll-snap-align: start;
  min-width: calc((100% - 4rem) / 3);
  box-sizing: border-box;
  animation: testimonial-card-float 8s ease-in-out infinite;
}

.testimonials-carousel__viewport .testimonial:nth-child(2) {
  animation-delay: -1.6s;
}

.testimonials-carousel__viewport .testimonial:nth-child(3) {
  animation-delay: -3.2s;
}

.testimonials-carousel__viewport .testimonial:nth-child(4) {
  animation-delay: -4.8s;
}

.testimonials-carousel__viewport .testimonial:nth-child(5) {
  animation-delay: -6.4s;
}

@keyframes testimonial-card-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-2px) rotate(0.2deg);
  }
}

.testimonials-carousel__viewport .testimonial:hover {
  animation: none;
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonials-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.testimonials-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(14, 47, 27, 0.2);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.testimonials-carousel__dot.is-active {
  background: var(--teal);
  transform: scale(1.2);
  animation: testimonial-dot-pulse 2s ease-in-out infinite;
}

@keyframes testimonial-dot-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(14, 47, 27, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(14, 47, 27, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-carousel__viewport .testimonial {
    animation: none;
  }

  .testimonials-carousel__dot.is-active {
    animation: none;
  }
}

/* Contact */
.contact-layout {
  max-width: 560px;
  margin: 0 auto;
}

.contact-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.contact-card__intro {
  margin: 0 0 1.75rem;
  line-height: 1.65;
}

.contact-card__intro a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-card__intro a:hover {
  color: var(--teal-light);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0;
}

.contact-form__field {
  margin-bottom: 1.25rem;
}

.contact-form__field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 47, 27, 0.12);
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.contact-form__submit {
  margin-top: 0.5rem;
  width: 100%;
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq__item {
  border-left: 4px solid var(--teal);
  transition: all 0.3s ease;
}

.faq__item:hover {
  border-left-color: var(--teal-dark);
  transform: translateX(5px);
}

.faq__item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn--primary {
  background: var(--gradient-3);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--teal);
}

.btn--secondary:hover {
  background: var(--teal);
  color: white;
  transform: translateY(-3px);
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Footer */
.footer {
  padding: 4rem clamp(1rem, 5vw, 4rem) 2rem;
  background: var(--bg-alt);
  border-top: 2px solid rgba(14, 47, 27, 0.2);
}

.footer__main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer__main > div:first-child {
  text-align: center;
}

.footer .logo {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.footer .logo img {
  height: 45px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.footer__main > div:first-child p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer__main > div:first-child .footer__social {
  justify-content: center;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer__social a:hover {
  background: var(--gradient-3);
  transform: translateY(-3px);
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer__links h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--teal);
}

.footer__links a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.footer__links a:hover {
  color: var(--teal);
  transform: translateX(5px);
}

.footer__links a[href="blogs.html"],
.footer__links a[href="podcasts.html"],
.footer__links a[href="login.html"] {
  display: none;
}

.footer__copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(14, 47, 27, 0.15);
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

  .hero__visual {
    order: -1;
  }

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

/* Phones & small tablets — desktop layouts unchanged above 900px */
@media (max-width: 900px) {
  body.nav-open {
    overflow: hidden;
  }

  .nav {
    gap: 1rem;
  }

  .logo img {
    height: 52px;
    max-width: min(280px, 70vw);
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    padding: 5rem 2rem 2rem;
    border-radius: 0;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
    gap: 0.5rem;
    z-index: 100;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav__links.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links li {
    width: 100%;
  }

  .nav__links a {
    width: 100%;
    padding: 1.25rem;
    border-radius: 12px;
    justify-content: flex-start;
    font-size: 1.1rem;
  }

  .nav__toggle {
    display: flex;
  }

  .section {
    padding: 4rem clamp(1rem, 4vw, 1.5rem);
  }

  .hero:not(:has(.hero__content)) + main > .section:first-child {
    padding-top: 2.25rem;
  }

  .section__header {
    margin-bottom: 2.5rem;
  }

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

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

  .footer__links {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer {
    padding: 3rem clamp(1rem, 4vw, 1.5rem) 2rem;
  }

  /* Home hero: avoid excessive min-height and cramped image stack */
  .hero {
    min-height: auto;
    padding-left: clamp(0.75rem, 4vw, 1.25rem);
    padding-right: clamp(0.75rem, 4vw, 1.25rem);
    padding-bottom: 3.5rem;
  }

  .hero:has(.hero__content) {
    padding-bottom: 3rem;
  }

  .hero__content {
    gap: 2rem;
    margin-top: 0.25rem;
  }

  .hero__text h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .lead {
    font-size: 1.05rem;
    max-width: none;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 22rem;
  }

  .hero__stats {
    gap: 1.25rem;
    justify-content: space-between;
  }

  .stat__number {
    font-size: 1.65rem;
  }

  .hero__image-stack {
    height: clamp(220px, 58vw, 340px);
    margin: 0 auto;
    max-width: 100%;
  }

  .hero__img--1 {
    width: 58%;
    left: 0;
  }

  .hero__img--2 {
    width: 52%;
    top: 14%;
    right: 0;
  }

  .hero__img--3 {
    width: 48%;
    bottom: 4%;
    left: 22%;
  }

  /* Parallax + fixed backgrounds are janky on many phones */
  .section--image-bg {
    background-attachment: scroll;
  }

  .card,
  .curriculum {
    padding: 1.5rem;
  }

  .card--vibrant .card__icon-large,
  .curriculum .card__icon-large {
    height: min(180px, 42vw);
  }

  .blog__image-wrapper {
    height: min(200px, 48vw);
  }

  .podcast {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .podcast__image-wrapper {
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 1;
  }

  .podcast--featured {
    padding: 1.5rem;
  }

  .testimonial {
    padding: 1.75rem;
  }

  .testimonials-carousel__viewport {
    gap: 1rem;
    padding-left: 2px;
    padding-right: 2px;
  }

  .testimonials-carousel__viewport .testimonial {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .faq__item h3 {
    font-size: 1.05rem;
  }
}
