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

:root {
  --black: #1a1a1a;
  --white: #ffffff;
  --cream: #f8faf0;

  /* ── New brand palette ── */
  --plum:        #260F26;   /* darkest — deep plum, body text */
  --navy:        #251F47;   /* deep navy-purple — navbar scrolled, dark headings */
  --teal-dark:   #1B4D6E;   /* dark teal-blue — rich accents */
  --lime-pale:   #E9F5A1;   /* pale yellow-lime — light section backgrounds */
  --lime-soft:   #D9ED92;   /* soft lime — subtle tints */
  --lime-bold:   #C5D62B;   /* bold yellow-green — strong CTA accent */
  --lime-bright: #D4E600;   /* neon lime-yellow — hero dot / highlight */
  --olive:       #A8C627;   /* olive-green — mid-weight accent */
  --green:       #5C9E2E;   /* fresh mid-green — primary interactive */
  --emerald:     #2E7D5E;   /* deep emerald — hover states, links */
  --mint:        #7BC67E;   /* mint green — light UI elements, tags */
  --purple:      #9B59B6;   /* purple — quotes, highlights */

  /* ── Semantic aliases ── */
  --dark1:        var(--plum);
  --dark2:        var(--navy);
  --green-light:  var(--mint);
  --green-bright: var(--lime-bold);
  --gold:         var(--green);
  --gold-light:   var(--mint);
  --gold-muted:   var(--lime-pale);
  --green-dark:   var(--navy);
  --btn-hover:    var(--emerald);

  /* ── Neutrals — kept light, warm ── */
  --gray-100: #f6f8f2;
  --gray-200: #e5e9db;
  --gray-400: #8a9a80;
  --gray-600: #4a5a44;
  --gray-800: #2a3224;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 999px;
  --shadow-sm: 0 2px 12px rgba(38,15,38,0.06);
  --shadow-md: 0 8px 32px rgba(38,15,38,0.10);
  --shadow-lg: 0 20px 60px rgba(38,15,38,0.16);
  /* ── Type scale ── */
  --text-xs:   12px;   /* captions, legal, labels        */
  --text-sm:   14px;   /* secondary body, helper text    */
  --text-base: 16px;   /* primary body copy              */
  --text-md:   18px;   /* lead paragraphs, descriptions  */
  --text-lg:   20px;   /* sub-headings, card titles      */
  --text-xl:   20px;   /* section sub-headings           */
  --text-2xl:  30px;   /* small section headings         */
  --text-3xl:  clamp(32px, 3.5vw, 42px);  /* section headings  */
  --text-4xl:  clamp(42px, 4vw,   54px);  /* major headings    */

  --font-display: 'Fraunces', serif;
  --font-body: 'DM Sans', sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --page-max: 1280px;
  --page-pad: clamp(16px, 4vw, 40px);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--plum);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─────────────── STICKY NAVBAR ─────────────── */
/* Sentinel sits at the top of the page-wrap to detect when hero passes */
#nav-sentinel { position: absolute; top: 0; left: 0; height: 1px; width: 1px; pointer-events: none; }

.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100vw - 48px);
  max-width: 1400px;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 8px 8px;
  gap: 14px;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease), padding 0.4s var(--ease);
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid transparent;
}

/* When scrolled past hero — light frosted glass */
.navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 4px 40px rgba(0,0,0,0.09);
  padding: 8px 20px 8px 8px;
}

/* Nav links scrolled — warm teal-green tint */
.navbar.scrolled .nav-links a {
  color: var(--navy);
  border-color: rgba(92,158,46,0.25);
  background: rgba(92,158,46,0.07);
  backdrop-filter: none;
}
.navbar.scrolled .nav-links a:hover {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--white);
}
.navbar.scrolled .btn-signin {
  color: var(--navy);
  border-color: rgba(92,158,46,0.25);
  background: rgba(92,158,46,0.07);
  backdrop-filter: none;
}
.navbar.scrolled .btn-signin:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.navbar.scrolled .btn-login {
  background: var(--navy);
  color: var(--white);
}
.navbar.scrolled .btn-login:hover {
  background: var(--emerald) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 20px rgba(46,125,94,0.4) !important;
}
.navbar.scrolled .hamburger span {
  background: var(--dark2);
}

/* Logo — generous breathing room on all sides */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  padding: 10px 6px 10px 16px;
}

.nav-logo-img {
  height: 50px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s, filter 0.35s var(--ease);
}
.nav-logo:hover .nav-logo-img { opacity: 0.82; }

/* Natural colours once scrolled past hero */
.navbar.scrolled .nav-logo-img {
  filter: none;
}

/* Centre nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

/* Pills — larger, warm stone neutral */
.nav-links a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  padding: 11px 24px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.nav-links a:hover {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--white);
}

/* Nav right */
.nav-right {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}

/* Sign In — same pill size as nav links */
.btn-signin {
  display: inline-flex; align-items: center;
  font-size: 15px; font-weight: 500;
  color: var(--white);
  text-decoration: none;
  padding: 11px 24px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.01em;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.btn-signin:hover {
  background: var(--emerald) !important;
  border-color: var(--emerald) !important;
  color: var(--white) !important;
}

/* Log In — solid dark pill, green on hover */
.btn-login {
  display: inline-flex; align-items: center;
  background: var(--white);
  color: var(--dark2);
  font-family: var(--font-body);
  font-size: 15px; font-weight: 700;
  padding: 11px 28px;
  border-radius: var(--radius-full);
  border: none; cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
  flex-shrink: 0;
}
.btn-login:hover {
  background: var(--emerald) !important;
  color: var(--white) !important;
  box-shadow: 0 6px 24px rgba(46,125,94,0.45) !important;
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 4px;
  cursor: pointer; padding: 6px 14px 6px 6px; background: transparent; border: none;
  align-items: flex-end;
}
.hamburger span {
  display: block; height: 1.5px;
  background: var(--white); border-radius: 2px; transition: all 0.3s;
}
.hamburger span:nth-child(1) { width: 22px; }
.hamburger span:nth-child(2) { width: 14px; }
.hamburger span:nth-child(3) { width: 18px; }
.navbar.scrolled .hamburger span { background: var(--dark2); }

/* ─────────────── MOBILE MENU ─────────────── */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 600;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  padding: 88px 28px 40px;
  flex-direction: column; align-items: stretch; gap: 0;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }

/* Close button — minimal, no background */
.mobile-menu-close {
  position: absolute; top: 22px; right: 22px;
  width: 32px; height: 32px; border-radius: 0;
  background: transparent;
  border: none;
  color: var(--gray-400); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s;
  padding: 0;
}
.mobile-menu-close:hover { color: var(--plum); }

/* Nav links — dark text, understated */
.mobile-menu > a {
  font-family: var(--font-body);
  font-size: 15px; font-weight: 500;
  color: var(--navy); text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
  text-align: center;
  transition: color 0.2s;
}
.mobile-menu > a:hover { color: var(--emerald); }

/* Button container */
.mobile-menu-buttons {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 28px;
}

/* Sign In — ghost pill matching desktop Sign In */
.mobile-menu-btn-outline {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--navy); text-decoration: none;
  padding: 11px; border-radius: var(--radius-full);
  border: 1.5px solid rgba(92,158,46,0.25);
  background: rgba(92,158,46,0.07);
  text-align: center; transition: all 0.25s;
}
.mobile-menu-btn-outline:hover {
  background: var(--emerald);
  color: var(--white);
  border-color: var(--emerald);
}

/* Log In — solid navy pill matching desktop Log In */
.mobile-menu-btn-solid {
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  color: var(--white); text-decoration: none;
  padding: 12px; border-radius: var(--radius-full);
  background: var(--navy);
  border: 2px solid var(--navy);
  text-align: center;
  letter-spacing: 0.01em;
  display: block;
  transition: all 0.25s;
}
.mobile-menu-btn-solid:hover { background: var(--emerald); border-color: var(--emerald); }

/* ─────────────── PAGE WRAP ─────────────── */
.page-wrap {
  width: 100%;
  background: var(--white);
  position: relative;
}

/* Inner sections get a max-width content container */
.inner {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* ─────────────── HERO ─────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  max-height: 960px;
  background: var(--green-dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 65% center;
}

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right, rgba(26,15,26,0.65) 0%, rgba(26,15,26,0.2) 55%, rgba(26,15,26,0.02) 100%),
    linear-gradient(to top,   rgba(26,15,26,0.82) 0%, rgba(26,15,26,0.0) 52%);
}

/* Avatar group + social proof — mid-left */
.hero-avatars {
  position: absolute;
  top: 28%;
  left: clamp(28px, 5vw, 60px);
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.avatar-stack { display: flex; }

.avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.85);
  background: var(--gray-400);
  overflow: hidden;
  margin-left: -18px;
}
.avatar:first-child { margin-left: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-social-proof {
  font-size: 22px;
  line-height: 1.45;
  color: rgba(255,255,255,0.88);
  max-width: 420px;
  font-weight: 400;
}
.hero-social-proof .gold-text { color: var(--lime-bright); }
/* no filter change on hover to keep carousel smooth */

/* Bottom content row: huge title + Join us button */
.hero-bottom {
  position: relative; z-index: 2;
  padding: 0 clamp(28px, 5vw, 60px) clamp(80px, 12vh, 120px);
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 110px);
  font-weight: 700;
  color: var(--white);
  line-height: 0.96;
  letter-spacing: -0.04em;
  flex: 1;
  min-width: 0;
}

/* "Join us" — modern pill with SVG arrow chip */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.16);
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px; font-weight: 600;
  padding: 14px 14px 14px 26px;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.01em;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, gap 0.3s;
}
.btn-hero:hover {
  background: rgba(113,180,141,0.28);
  border-color: var(--green-light);
  box-shadow: 0 12px 48px rgba(113,180,141,0.28);
  gap: 18px;
}
.btn-hero-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--lime-bold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  overflow: hidden;
}
.btn-hero-arrow svg {
  width: 18px; height: 18px;
  stroke: var(--plum);
  stroke-width: 2.5;
  fill: none;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.btn-hero:hover .btn-hero-arrow {
  background: var(--lime-bright);
  transform: scale(1.08);
}
.btn-hero:hover .btn-hero-arrow svg {
  transform: translate(3px, -3px);
}

/* Remove scroll down */
.hero-scroll { display: none; }

/* ─────────────── EXAM CAROUSEL ─────────────── */
.carousel-section {
  overflow: hidden;
  padding: 52px 0;
  background: linear-gradient(135deg,
    rgba(233,245,161,0.55) 0%,
    rgba(197,214,43,0.18) 30%,
    rgba(123,198,126,0.20) 65%,
    rgba(233,245,161,0.45) 100%
  ),
  linear-gradient(to bottom, #f8faf0 0%, #eef5d0 100%);
  border-bottom: none;
  position: relative;
}

.carousel-label {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(38,15,38,0.5);
  margin-bottom: 44px;
}

.carousel-track-wrap {
  overflow: hidden;
  -webkit-mask: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  mask: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: carouselScroll 28s linear infinite;
}

/* carousel never pauses on hover */

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

.carousel-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 72px;
  flex-shrink: 0;
  opacity: 0.92;
  transition: opacity 0.3s;
  cursor: default;
}

.carousel-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.carousel-logo-mark {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}

.carousel-logo-sub {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(38,15,38,0.55);
  white-space: nowrap;
  margin-top: 10px;
}

/* ── WhatsApp floating button ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37,211,102,0.55);
}
.whatsapp-float svg { width: 30px; height: 30px; fill: #ffffff; }
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.4;
  animation: waPulse 2.5s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.4; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--navy);
  font-size: var(--text-xs); font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0;
  border-radius: 0;
}
.tag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-bold); flex-shrink: 0; }

/* ─────────────── ABOUT ─────────────── */
.about {
  padding: clamp(40px,6vw,72px) clamp(24px,5vw,52px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  border-bottom: 1px solid var(--gray-200);
}
.about-top {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 22px;
}
.learn-more {
  font-size: 13px; font-weight: 500; color: var(--gray-600);
  text-decoration: none; display: flex; align-items: center; gap: 5px;
  transition: color 0.2s;
}
.learn-more:hover { color: var(--black); }
.about-body {
  font-size: clamp(var(--text-base),2.2vw,var(--text-xl));
  line-height: 1.5; color: var(--gray-800);
  font-weight: 300; letter-spacing: -0.01em;
}
.about-body strong { font-weight: 600; color: var(--black); }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--lime-pale);
  border-radius: var(--radius-full);
  padding: 2px 11px; font-weight: 600;
  vertical-align: middle; font-size: 0.9em;
}
.about-italic {
  color: var(--emerald); font-style: italic;
  font-family: var(--font-display);
}
.about-right {
  display: flex; align-items: flex-start; justify-content: center; padding-top: 0;
}

/* ── Tutor card ── */
.tutor-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: row;
}
.tutor-card-img {
  width: 220px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  min-height: 100%;
  align-self: stretch;
}
.tutor-card-body {
  padding: 20px 22px 18px;
  flex: 1;
  min-width: 0;
}
.tutor-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2px;
}
.tutor-card-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
}
.tutor-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
  margin-top: 3px;
  flex-shrink: 0;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gray-300, #ccc);
  flex-shrink: 0;
}
.status-dot.online { background: #22c55e; }
.tutor-card-role {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 2px;
}
.tutor-card-visited {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 1px;
}
.tutor-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 10px 0;
}
.tutor-star { color: var(--lime-bold); font-size: 16px; }
.tutor-rating { font-size: 13px; font-weight: 600; color: var(--black); margin-left: 4px; }
.tutor-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.tutor-detail-row { font-size: 13px; color: var(--black); }
.tutor-detail-row strong { font-weight: 700; display: block; margin-bottom: 1px; }
.tutor-detail-val { color: var(--gray-600); }
.tutor-detail-accent { color: var(--emerald); font-weight: 600; }
.tutor-card-divider {
  height: 1px; background: var(--gray-200); margin-bottom: 14px;
}
.tutor-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.tutor-footer-left {
  display: flex; align-items: center; gap: 16px;
}
.tutor-workbook {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--black);
  text-decoration: none;
}
.tutor-workbook-icon {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tutor-workbook-icon svg { width: 14px; height: 14px; }
.tutor-students {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: var(--emerald);
}
.tutor-students-icon { font-size: 15px; }
.btn-book {
  display: inline-flex; align-items: center;
  background: var(--dark2); color: var(--white);
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  padding: 11px 26px; border-radius: var(--radius-full);
  border: none; cursor: pointer; text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.25s, transform 0.2s;
}
.btn-book:hover { background: var(--emerald); transform: translateY(-1px); }

/* ── Card hover blur overlay (all image cards) ── */
.card-hover-overlay {
  position: absolute; inset: 0; z-index: 3;
  background: rgba(10,18,10,0.0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  pointer-events: none;
}
.card-hover-text {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  font-size: var(--text-md);
  line-height: 1.45;
  color: var(--white);
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  max-width: 260px;
}
.card:hover .card-hover-overlay {
  background: rgba(26,15,26,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
}
.card:hover .card-hover-text {
  opacity: 1;
  transform: translateY(0);
}

/* ── Carousel logo images ── */
.carousel-logo-img {
  height: 90px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  filter: none;
  opacity: 0.88;
  transition: opacity 0.3s, transform 0.3s;
}
.carousel-item:hover .carousel-logo-img { opacity: 1; transform: scale(1.04); }
/* no filter change on hover to keep carousel smooth */

/* ── Programs section desc ── */
.programs-desc {
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--gray-600);
  max-width: 580px;
  margin-top: 0;
}

/* ── Talk to Us button ── */
.btn-talk {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--dark2); color: var(--white);
  font-family: var(--font-body); font-size: var(--text-md); font-weight: 600;
  padding: 13px 30px; border-radius: var(--radius-full);
  border: none; cursor: pointer; text-decoration: none;
  transition: background 0.25s, transform 0.2s; margin-top: 0;
  letter-spacing: 0.01em; flex-shrink: 0;
}
.btn-talk:hover { background: var(--emerald); color: var(--white); transform: translateY(-1px); }
  display: flex; align-items: center; gap: clamp(24px,4vw,48px);
  padding: 28px clamp(24px,5vw,52px);
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; gap: 3px; }
.stat-num {
  font-family: var(--font-display); font-size: 30px; font-weight: 700;
  color: var(--black); letter-spacing: -0.03em;
}
.stat-label { font-size: 11px; color: var(--gray-400); font-weight: 500; letter-spacing: 0.03em; }
.stat-div { width: 1px; height: 36px; background: var(--gray-200); flex-shrink: 0; }

/* ─────────────── PROGRAMS ─────────────── */
.programs {
  padding: clamp(40px,6vw,72px) clamp(24px,5vw,52px);
  border-bottom: 1px solid var(--gray-200);
}
.programs-header {
  display: flex; align-items: flex-start;
  flex-direction: column; gap: 12px; margin-bottom: 36px;
  max-width: 640px;
}
.programs-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.1; max-width: 100%;
}
.programs-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
}
.card {
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  cursor: pointer; position: relative;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.card-main {
  background: var(--green-dark);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; min-height: 380px;
}
.card-main img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.card-main-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(10,18,10,0.9) 100%);
}
.card-main-content { position: relative; z-index: 1; }
.card-tags { display: flex; gap: 6px; margin-bottom: 14px; }
.card-tag {
  background: rgba(255,255,255,0.18); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white); font-size: var(--text-sm); font-weight: 600;
  padding: 6px 14px; border-radius: var(--radius-full);
}
.card-title {
  font-family: var(--font-display); font-size: 34px; font-weight: 600;
  color: var(--white); letter-spacing: -0.03em; line-height: 1.05;
}
.card-arrow {
  position: absolute; bottom: 22px; right: 22px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all 0.2s;
}
.card:hover .card-arrow { background: var(--green); transform: rotate(45deg); }

.cards-right { display: flex; flex-direction: column; gap: 16px; }
.cards-right-top { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.card-small { border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 1; }
.card-small img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card-small:hover img { transform: scale(1.05); }
.card-small-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(10,18,10,0.85) 100%);
  display: flex; align-items: flex-end; padding: 20px; z-index: 1;
}
.card-small-title {
  font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600;
  color: var(--white); letter-spacing: -0.02em;
}
.card-small-add {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 18px; font-weight: 300;
}
.card-info {
  background: rgba(113,180,141,0.08); border-radius: var(--radius-lg); padding: 24px; border: 1px solid rgba(113,180,141,0.2);
}
.card-info-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.card-info-title {
  font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600;
  letter-spacing: -0.02em; margin-bottom: 8px;
}
.card-info-desc { font-size: var(--text-xl); line-height: 1.45; color: var(--gray-600); }
.card-progress {
  margin-top: 16px; display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--gray-400);
}
.card-progress-bar {
  flex: 1; height: 2px; background: var(--gray-200); border-radius: 2px;
}
.card-progress-fill { width: 60%; height: 100%; background: var(--black); border-radius: 2px; }


/* ── Schedule Accordion ── */
.schedule-accordion { display: flex; flex-direction: column; }

.acc-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
.acc-item:last-child { border-bottom: none; }

.acc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; cursor: pointer;
  transition: padding-left 0.25s;
  user-select: none;
}
.acc-header:hover { padding-left: 6px; }

.acc-header-left { display: flex; align-items: center; gap: 14px; }
.acc-num { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.4); width: 22px; }
.acc-name { font-size: var(--text-xl); font-weight: 500; color: rgba(255,255,255,0.85); letter-spacing: -0.01em; line-height: 1.2; }
.acc-item.active .acc-name { color: var(--white); font-weight: 700; }

.acc-arrow {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: rgba(255,255,255,0.7);
  transition: all 0.3s; flex-shrink: 0;
}
.acc-item.active .acc-arrow {
  background: var(--lime-bold);
  border-color: var(--lime-bold);
  color: var(--plum);
  transform: rotate(45deg);
}

.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.35s ease;
  opacity: 0;
}
.acc-item.active .acc-panel {
  max-height: 300px;
  opacity: 1;
}

.acc-card {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 12px;
}
.acc-card-desc { font-size: var(--text-xl); line-height: 1.45; color: rgba(255,255,255,0.7); margin-bottom: 14px; }
.acc-card-img { width: 80px; height: 80px; border-radius: var(--radius-md); overflow: hidden; flex-shrink: 0; }
.acc-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─────────────── SCHEDULE ─────────────── */
.schedule {
  padding: clamp(40px,6vw,72px) clamp(24px,5vw,52px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  border-bottom: none;
  background: linear-gradient(135deg, #2E7D5E 0%, #1a5c42 40%, #163d2e 100%);
}
.schedule-pretag { color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.schedule .section-tag { color: rgba(255,255,255,0.9); }
.schedule .section-tag .tag-dot { background: var(--lime-bold); }
.schedule-title {
  font-family: var(--font-display); font-size: var(--text-3xl);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 14px; color: var(--white);
}
.schedule-desc { font-size: var(--text-md); line-height: 1.5; color: rgba(255,255,255,0.7); max-width: 380px; margin-bottom: 28px; }
.schedule-img {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9;
}
.schedule-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; display: block; }
.schedule-img:hover img { transform: scale(1.04); }

.featured-event {
  background: rgba(255,255,255,0.08); border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,0.12);
  padding: 22px 24px; margin-bottom: 16px;
  display: grid; grid-template-columns: 1fr auto; gap: 14px;
  transition: all 0.25s;
}
.featured-event:hover { background: rgba(113,180,141,0.2); transform: translateX(4px); }
.ev-num { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.4); letter-spacing: 0.04em; margin-bottom: 5px; }
.ev-title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; color: var(--white); }
.ev-desc { font-size: var(--text-sm); line-height: 1.45; color: rgba(255,255,255,0.6); }
.ev-img { width: 80px; height: 80px; border-radius: var(--radius-md); overflow: hidden; flex-shrink: 0; }
.ev-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.btn-view {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-md); font-weight: 600; color: var(--dark2);
  background: var(--green-light); border: none;
  border-radius: var(--radius-full); padding: 13px 30px;
  cursor: pointer; transition: all 0.25s; margin-top: 10px; text-decoration: none;
}
.btn-view:hover { background: var(--green); color: var(--white); transform: translateY(-1px); }

.event-list { display: flex; flex-direction: column; }
.event-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  cursor: pointer; transition: padding-left 0.2s;
}
.event-item:last-child { border-bottom: none; }
.event-item:hover { padding-left: 6px; }
.event-left { display: flex; align-items: center; gap: 12px; }
.event-num { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.4); width: 20px; }
.event-name { font-size: var(--text-base); font-weight: 500; color: rgba(255,255,255,0.85); letter-spacing: -0.01em; }
.event-arrow {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: rgba(255,255,255,0.7); transition: all 0.2s;
}
.event-item:hover .event-arrow { background: var(--btn-hover); color: var(--white); transform: rotate(-45deg); }

.schedule-cta { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }
.btn-join {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--dark2); color: var(--white);
  font-family: var(--font-body); font-size: var(--text-md); font-weight: 600;
  padding: 13px 30px; border-radius: var(--radius-full);
  border: none; cursor: pointer; text-decoration: none; transition: all 0.25s;
}
.btn-join:hover { background: var(--emerald); color: var(--white); transform: translateY(-1px); }
.toggle-pill {
  width: 46px; height: 26px; background: var(--black); border-radius: var(--radius-full);
  padding: 3px; display: flex; align-items: center; justify-content: flex-end; cursor: pointer;
}
.toggle-knob { width: 20px; height: 20px; border-radius: 50%; background: var(--green); }

/* ─────────────── TESTIMONIALS ─────────────── */
.testimonials {
  padding: clamp(40px,6vw,72px) clamp(80px,8vw,120px) clamp(20px,3vw,36px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: end;
  border-bottom: 1px solid var(--gray-200);
}
.testimonials-title {
  font-family: var(--font-display); font-size: var(--text-3xl);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.1;
  margin: 16px 0 28px;
}
.testimonials-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.testimonials-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.testimonials-img:hover img { transform: scale(1.04); }



/* ── Carousel wrapper — relative so arrows can be absolute ── */
.testi-carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  align-self: end;
  width: 100%;
  overflow: visible;
}
.testi-carousel-inner {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  overflow: visible;
}

/* Side arrow buttons — sit in the section padding zone, clear of text */
.testi-carousel-inner .testi-prev, .testi-carousel-inner .testi-next {
  position: absolute;
  bottom: 0;
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 0;
  background: none;
  border: none;
  box-shadow: none;
  outline: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--gray-400);
  transition: color 0.2s, transform 0.2s;
  z-index: 2;
  padding: 0;
}
.testi-carousel-inner .testi-prev { left: -56px; }
.testi-carousel-inner .testi-next { right: -40px; }
.testi-carousel-inner .testi-prev svg, .testi-carousel-inner .testi-next svg {
  width: 16px; height: 16px;
  fill: currentColor;
  display: block;
}
.testi-carousel-inner .testi-prev:hover, .testi-carousel-inner .testi-next:hover {
  background: none;
  border: none;
  box-shadow: none;
  color: var(--emerald);
  transform: scale(1.2);
}

/* Content area between arrows */
.testi-slides-wrap {
  flex: 1;
  position: relative;
  height: 360px;
  padding: 0 20px;
}

/* Slides — ALL absolutely positioned so they stack and truly center */
.testi-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 28px;
}
.testi-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Quote text — same weight/style as about body */
.testi-body-text {
  font-family: var(--font-body);
  font-size: clamp(var(--text-md), 2vw, var(--text-xl));
  line-height: 1.7;
  color: var(--gray-800);
  font-weight: 300;
  letter-spacing: -0.01em;
}

/* Author block */
.testi-author-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 20px;
}
.testi-author-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.01em;
}
.testi-author-exam {
  font-size: var(--text-base);
  color: var(--gray-400);
  font-weight: 400;
}

/* Dots row — hidden */
.testi-dots-row {
  display: none;
}
.testi-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gray-200);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  border: none; padding: 0;
}
.testi-dot.active {
  background: var(--emerald);
  transform: scale(1.5);
}

/* Hide big opening quote mark — clean look */
.testi-quote-big { display: none; }
.testi-badge { display: none; }

/* ─────────────── CTA SECTION ─────────────── */
.cta-section {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  min-height: 400px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 60px 40px;
  background: var(--green-dark);
}
.cta-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: saturate(0.7) brightness(0.6);
}
.cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(26,15,26,0.45), rgba(26,77,110,0.6));
  z-index: 1;
}
.cta-content { position: relative; z-index: 2; max-width: 800px; width: 100%; }
.cta-card {
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-xl); padding: 56px 64px;
  box-shadow: var(--shadow-lg);
}
.cta-title {
  font-family: var(--font-display); font-size: var(--text-3xl);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.15;
  color: var(--black); margin-bottom: 14px;
}
.cta-chip {
  display: inline-flex; align-items: center;
  background: var(--lime-pale); border-radius: var(--radius-full);
  padding: 2px 10px; vertical-align: middle; font-size: 88%;
}
.cta-sub { font-size: var(--text-md); line-height: 1.5; color: var(--gray-600); margin-bottom: 28px; }
.cta-btns { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.btn-cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--dark2); color: var(--white);
  font-family: var(--font-body); font-size: var(--text-md); font-weight: 600;
  padding: 13px 30px; border-radius: var(--radius-full);
  border: none; cursor: pointer; text-decoration: none; transition: all 0.25s;
}
.btn-cta-primary:hover { background: var(--btn-hover); color: var(--white); transform: translateY(-1px); }
.btn-cta-outline {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--black);
  font-family: var(--font-body); font-size: var(--text-md); font-weight: 600;
  padding: 13px 32px; border-radius: var(--radius-full);
  border: 1.5px solid rgba(0,0,0,0.18); cursor: pointer; text-decoration: none; transition: all 0.25s;
}
.btn-cta-outline:hover { background: var(--emerald); color: var(--white); border-color: var(--emerald); }
.cta-note { font-size: var(--text-xs); color: var(--gray-400); display: flex; align-items: center; justify-content: center; gap: 7px; }
.cta-player {
  position: absolute; bottom: 36px; right: 36px; z-index: 3;
  width: 96px; height: 116px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.cta-player img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─────────────── FOOTER ─────────────── */
footer {
  background: var(--plum);
  padding: clamp(40px,5vw,56px) clamp(24px,5vw,48px) clamp(24px,3vw,32px);
  color: var(--white);
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 28px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 16px;
}
.footer-logo-icon {
  width: 36px; height: 36px; background: var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.footer-logo-text {
  font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--white); letter-spacing: -0.02em;
}
.footer-tagline { font-size: var(--text-sm); font-weight: 300; line-height: 1.4; color: rgba(255,255,255,0.65); max-width: 240px; }
.footer-col-title { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: var(--text-sm); color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap;
  position: relative;
}
.footer-copy { font-size: var(--text-xs); color: rgba(255,255,255,0.28); text-align: center; }
.footer-contacts { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-contacts a { font-size: 13px; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer-contacts a:hover { color: var(--white); }
.footer-subnav { display: flex; align-items: center; gap: 4px; position: absolute; left: 0; }
.footer-subnav a {
  font-size: 12px; color: rgba(255,255,255,0.35); text-decoration: none;
  padding: 5px 12px; border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.1); transition: all 0.2s;
}
.footer-subnav a:hover { color: var(--white); border-color: rgba(255,255,255,0.3); }
.footer-subnav .up-btn {
  background: var(--lime-bold); color: var(--plum); border-color: var(--lime-bold);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.footer-subnav .up-btn:hover {
  background: var(--purple); color: var(--white); border-color: var(--purple);
}

/* ─────────────── ANIMATIONS ─────────────── */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — 5 breakpoints
   ═══════════════════════════════════════════════════════ */

/* ── Wide desktop (1400px+) — scale up comfortably ── */
@media (min-width: 1400px) {
  .navbar { max-width: 1600px; }
  .hero-title { font-size: clamp(88px, 7vw, 120px); }
  .hero-social-proof { font-size: 24px; max-width: 480px; }
  .about-body { font-size: var(--text-xl); }
  .programs-title, .schedule-title, .testimonials-title { font-size: var(--text-4xl); }
  .testi-body-text { font-size: var(--text-xl); }
  .testi-slides-wrap { height: 400px; }
  .carousel-logo-img { height: 110px; max-width: 280px; }
}

/* ── Large tablet / small desktop (900px–1200px) ── */
@media (max-width: 1200px) {
  /* Navbar */
  .nav-links a { font-size: 14px; padding: 9px 18px; }
  .btn-signin, .btn-login { font-size: 14px; padding: 9px 18px; }

  /* Hero */
  .hero-title { font-size: clamp(44px, 7vw, 80px); }
  .hero-social-proof { font-size: 18px; max-width: 360px; }

  /* ── Small desktop type scale ── */
  .about-body, .programs-desc, .schedule-desc,
  .card-info-desc, .acc-card-desc,
  .acc-name { font-size: 17px; line-height: 1.5; }
  .event-name, .ev-title { font-size: 17px; }
  .btn-talk, .btn-book, .btn-join, .btn-view,
  .btn-cta-primary, .btn-cta-outline {
    font-size: 16px; padding: 12px 26px;
  }

  /* About */
  .about { grid-template-columns: 1fr 1fr; gap: 36px; }

  /* Programs */
  .programs-grid { grid-template-columns: 1fr 1.6fr; }

  /* Carousel */
  .carousel-logo-img { height: 80px; max-width: 200px; }
  .carousel-item { padding: 0 40px; }

  /* Testimonials */
  .testimonials { padding: clamp(40px,5vw,64px) clamp(60px,6vw,100px) clamp(20px,3vw,32px); gap: 60px; }
  .testi-body-text { font-size: 20px; }
  .testi-slides-wrap { height: 320px; }
}

/* ── Tablet (768px–900px) ── */
@media (max-width: 900px) {
  /* Navbar */
  .nav-links { gap: 4px; }
  .nav-links a { font-size: 13px; padding: 8px 14px; }
  .btn-signin { display: none; }
  .btn-login { font-size: 13px; padding: 9px 18px; }

  /* Hero */
  .hero { min-height: 85vh; }
  .hero-title { font-size: clamp(38px, 7vw, 64px); }
  .hero-social-proof { font-size: 16px; max-width: 300px; }
  .avatar { width: 52px; height: 52px; }

  /* ── Tablet type scale ── */
  /* Section headings */
  .programs-title, .schedule-title, .testimonials-title,
  .card-info-title { font-size: 26px; line-height: 1.15; }
  /* Body & descriptions */
  .about-body, .programs-desc, .schedule-desc, .testi-body-text,
  .cta-sub, .card-info-desc, .acc-card-desc,
  .acc-name { font-size: 16px; line-height: 1.5; }
  /* Small labels */
  .section-tag, .acc-num, .event-num,
  .footer-col-title { font-size: 11px; }
  /* Event & accordion items */
  .event-name, .ev-title { font-size: 16px; }
  .ev-desc { font-size: 13px; line-height: 1.4; }
  /* Buttons — tablet */
  .btn-talk, .btn-book, .btn-join, .btn-view,
  .btn-cta-primary, .btn-cta-outline {
    font-size: 15px; padding: 11px 24px;
  }
  /* Footer */
  .footer-links a { font-size: 13px; }
  .footer-copy, .footer-subnav a { font-size: 11px; }

  /* About — stack, show tutor card */
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about-right { display: flex; }

  /* Tutor card — stack vertically */
  .tutor-card { flex-direction: column; }
  .tutor-card-img { width: 100%; height: 320px; align-self: auto; object-position: center 20%; }

  /* Programs */
  .programs-grid { grid-template-columns: 1fr; gap: 16px; }
  .cards-right-top { grid-template-columns: 1fr 1fr; }

  /* Schedule */
  .schedule { grid-template-columns: 1fr; gap: 32px; }
  .schedule-img { aspect-ratio: 16/7; }

  /* Testimonials — stack */
  .testimonials {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 32px 24px;
  }
  .testimonials-img { aspect-ratio: 16/7; }
  .testi-carousel { padding: 0 52px; }
  .testi-slides-wrap { height: auto; min-height: 280px; padding: 0; margin: 0; }
  .testi-prev { left: 0; }
  .testi-next { right: 0; }
  /* Bare triangle arrows — no circle, no border */
  .testi-carousel-inner .testi-prev,
  .testi-carousel-inner .testi-next {
    border: none;
    background: none;
    box-shadow: none;
    border-radius: 0;
  }
  .testi-carousel-inner .testi-prev svg,
  .testi-carousel-inner .testi-next svg {
    fill: currentColor;
    stroke: none;
    width: 14px; height: 14px;
  }
  .testi-body-text { font-size: 18px; }

  /* Carousel */
  .carousel-logo-img { height: 64px; max-width: 160px; }
  .carousel-item { padding: 0 32px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-subnav { position: static; }
  .footer-bottom { justify-content: space-between; }
}

/* ── Mobile (max 640px) ── */
@media (max-width: 640px) {
  /* Navbar */
  .navbar {
    top: 10px;
    width: calc(100vw - 20px);
    padding: 6px 10px 6px 6px;
  }
  .navbar.scrolled { padding: 7px 12px 7px 6px; }
  .nav-logo { padding: 4px 2px 4px 6px; }
  .nav-logo-img { height: 36px; }
  .nav-links { display: none; }
  .btn-signin { display: none; }
  .btn-login { font-size: 13px; padding: 8px 16px; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { min-height: 100svh; max-height: none; }
  .hero-img { object-position: 65% center; }
  .hero-avatars {
    top: 36%;
    left: 20px;
    gap: 12px;
    transform: translateY(-50%);
  }
  .avatar { width: 60px; height: 60px; margin-left: -16px; }
  .hero-social-proof { font-size: 15px; max-width: 280px; line-height: 1.55; }
  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 0 20px clamp(28px,8vh,48px);
  }
  .hero-title { font-size: clamp(32px, 10vw, 48px); line-height: 1.0; }
  .btn-hero { font-size: 15px; padding: 12px 12px 12px 22px; }
  .btn-hero-arrow { width: 36px; height: 36px; }

  /* ── Mobile type scale ── */
  /* Section headings */
  .programs-title, .schedule-title, .testimonials-title { font-size: 22px; line-height: 1.15; }
  .card-info-title { font-size: 18px; line-height: 1.2; }
  .card-small-title { font-size: 18px !important; }
  /* Body & descriptions */
  .about-body, .programs-desc, .schedule-desc, .testi-body-text,
  .cta-sub, .card-info-desc, .acc-card-desc { font-size: 15px; line-height: 1.5; }
  /* Accordion list items */
  .acc-name { font-size: 15px; line-height: 1.4; }
  .event-name { font-size: 15px; }
  .ev-title { font-size: 16px; }
  .ev-desc { font-size: 13px; line-height: 1.4; }
  /* Small labels */
  .section-tag, .acc-num, .event-num,
  .footer-col-title, .cta-note { font-size: 11px; }
  /* Buttons — mobile */
  .btn-talk, .btn-book, .btn-join, .btn-view,
  .btn-cta-primary, .btn-cta-outline {
    font-size: 14px !important; padding: 11px 22px !important;
  }
  /* Footer */
  .footer-links a { font-size: 13px; }
  .footer-tagline { font-size: 13px; line-height: 1.4; }
  .footer-copy { font-size: 11px; }

  /* About */
  .about { padding: 36px 20px; }
  .chip { font-size: 13px; }

  /* Tutor card */
  .tutor-card { flex-direction: column; }
  .tutor-card-img { width: 100%; height: 260px; border-radius: 0; object-position: center 20%; }
  .tutor-card-body { padding: 16px 18px 14px; }
  .tutor-card-name { font-size: 17px; }
  .btn-book { font-size: 13px; padding: 9px 18px; }

  /* Carousel */
  .carousel-section { padding: 40px 0; }
  .carousel-logo-img { height: 64px; max-width: 160px; }
  .carousel-item { padding: 0 24px; }
  .carousel-label { font-size: 11px; margin-bottom: 24px; }

  /* Programs — mobile only */
  .programs { padding: 36px 20px; }
  .programs-grid { grid-template-columns: 1fr; }
  .cards-right { width: 100%; }
  .cards-right-top { grid-template-columns: 1fr; }
  /* All 3 image cards same size on mobile */
  .card-main { min-height: 0 !important; aspect-ratio: 4/3 !important; }
  .card-small { aspect-ratio: 4/3 !important; }
  /* Unified title & tag sizes on mobile only */
  .card-main .card-title { font-size: 20px !important; }
  .card-small-title { font-size: 20px !important; }
  .card-tag { font-size: 11px; padding: 4px 10px; }
  .card-hover-text { font-size: 14px; font-weight: 400; max-width: 100%; }
  .card-info-inner { flex-direction: column; align-items: flex-start; gap: 16px; }

  /* Schedule */
  .schedule { padding: 36px 20px; grid-template-columns: 1fr; gap: 28px; overflow: hidden; }
  .schedule-title { font-size: 26px; }
  .acc-card { grid-template-columns: 1fr; }
  .acc-card-img { display: none; }
  .schedule-accordion { overflow: hidden; }

  /* Testimonials — matching section padding */
  .testimonials {
    display: flex;
    flex-direction: column;
    padding: 52px 20px 36px;
    gap: 0;
  }
  .testimonials > div:first-child {
    order: 1;
    margin-bottom: 32px;
  }
  /* Carousel: row layout so arrows flank the slides-wrap */
  .testi-carousel {
    order: 2;
    padding: 0;
    width: 100%;
    overflow: visible;
    align-self: auto;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .testimonials-title { font-size: 22px; margin-bottom: 12px; }
  .testimonials-img { aspect-ratio: 16/9; width: 100%; }

  /* Slides wrap fills remaining space */
  .testi-slides-wrap {
    flex: 1;
    height: auto; min-height: 0;
    padding: 0; margin: 0;
    overflow: visible;
  }
  .testi-slide {
    position: relative;
    inset: auto;
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    gap: 10px;
    justify-content: flex-start;
    transition: opacity 0.7s ease;
  }
  .testi-slide.active {
    opacity: 1;
    pointer-events: auto;
    max-height: none;
    overflow: visible;
    position: relative;
  }

  /* Author row — simple stack, no arrows here */
  .testi-author-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 14px;
    gap: 3px;
  }
  .testi-author-meta { flex: 1; }
  .testi-author-name { font-size: 14px; }
  .testi-author-exam { font-size: 13px; }

  /* Arrows: static inline, vertically centred beside text block */
  .testi-prev, .testi-next {
    position: static !important;
    transform: none !important;
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 0;
    background: none;
    border: none;
    box-shadow: none;
    outline: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    padding: 0;
    color: var(--gray-400);
    transition: color 0.2s;
    align-self: center;
  }
  .testi-carousel-inner .testi-prev:hover, .testi-carousel-inner .testi-next:hover {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    color: var(--emerald);
  }
  .testi-carousel-inner .testi-prev svg, .testi-carousel-inner .testi-next svg {
    display: block;
    fill: currentColor;
    stroke: none;
    width: 12px; height: 12px;
  }
  .testi-prev::after { content: none; }
  .testi-next::after { content: none; }

  /* CTA */
  .cta-section { padding: 36px 16px; }
  .cta-card { padding: 28px 20px; }
  .cta-title { font-size: 22px; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .btn-cta-primary, .btn-cta-outline { text-align: center; justify-content: center; }

  /* Footer */
  footer { padding: 36px 20px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-tagline { font-size: 13px; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }
  .footer-subnav { position: static; }
}

/* ── Small mobile (max 400px) ── */
@media (max-width: 400px) {
  .hero-title { font-size: 28px; }
  .cards-right-top { grid-template-columns: 1fr; }
  .hero-social-proof { font-size: 13px; max-width: 200px; }
  .btn-hero { font-size: 14px; }
  .testi-body-text { font-size: 15px; }
  .nav-logo-img { height: 32px; }
}

/* ── WhatsApp floating button ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 999;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37,211,102,0.55);
}
.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
}
/* Pulse ring animation */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.4;
  animation: waPulse 2.5s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.4; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

