/* ============================================================
   DS Educational Group — Premium Upgrade Layer
   Layered over styles.css. Does NOT change brand identity,
   colors, structure, or layout. Elevates polish, spacing,
   hierarchy, interaction quality, and trust factor.
   ============================================================ */

/* ── 1. ROOT TOKENS ──────────────────────────────────────── */
:root {
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Elevation shadows — warm-tinted for cream palette */
  --shadow-xs:  0 1px 3px rgba(26,26,26,0.05), 0 1px 2px rgba(26,26,26,0.04);
  --shadow-sm:  0 4px 12px rgba(26,26,26,0.06), 0 1px 4px rgba(26,26,26,0.04);
  --shadow-md:  0 8px 24px rgba(26,26,26,0.08), 0 2px 8px rgba(26,26,26,0.04);
  --shadow-lg:  0 16px 48px rgba(26,26,26,0.10), 0 4px 16px rgba(26,26,26,0.05);
  --shadow-xl:  0 24px 64px rgba(26,26,26,0.12), 0 8px 24px rgba(26,26,26,0.06);
  --shadow-olive-sm: 0 6px 20px rgba(107,124,92,0.18);
  --shadow-olive-md: 0 12px 32px rgba(107,124,92,0.24);
  --shadow-olive-lg: 0 20px 48px rgba(107,124,92,0.30);

  /* Spacing rhythm tokens */
  --gap-xs: 8px;
  --gap-sm: 16px;
  --gap-md: 24px;
  --gap-lg: 36px;
  --gap-xl: 52px;
  --gap-2xl: 72px;

  /* Section vertical rhythm */
  --section-py: 72px;
  --hero-py-top: 80px;
  --hero-py-bottom: 60px;

  /* Transition tokens */
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med: 320ms;
  --dur-slow: 500ms;
}

/* ── 2. GLOBAL TYPOGRAPHY UPGRADES ──────────────────────── */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

h1 {
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 800px;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.28rem;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive-dark);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--olive);
  border-radius: 1px;
  flex-shrink: 0;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.78;
  color: #56544e;
  margin-top: 18px;
  max-width: 680px;
}

/* ── 3. SECTION RHYTHM & SPACING ────────────────────────── */
.section {
  padding: var(--section-py) 0;
}

.hero {
  padding: var(--hero-py-top) 0 var(--hero-py-bottom);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gap-lg);
  margin-bottom: 36px;
}

.section-head h2 {
  max-width: 680px;
}

.section-head p {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 0;
  padding-top: 6px;
}

/* Subtle section dividers via border-top on alternating sections */
.section + .section {
  border-top: 1px solid rgba(26,26,26,0.06);
}

/* ── 4. NAVBAR — PREMIUM GLASS EFFECT ───────────────────── */
.site-header {
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(26,26,26,0.07);
  transition: box-shadow var(--dur-med) var(--ease-smooth),
              background var(--dur-med) ease;
}

.site-header.scrolled {
  background: rgba(250, 248, 243, 0.98);
  box-shadow: 0 4px 32px rgba(26,26,26,0.06), 0 1px 0 rgba(26,26,26,0.04);
}

.navbar {
  min-height: 88px;
}

.nav-links {
  gap: 6px;
  font-size: 0.9rem;
}

.nav-links a {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: rgba(26,26,26,0.75);
  transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(107,124,92,0.07);
}

.nav-links a.active {
  color: var(--olive-dark);
}

/* Remove the sliding underline on links (replaced by bg hover) */
.nav-links a::after {
  display: none;
}

/* Active page indicator: left bar on active link */
.nav-links a.active {
  background: rgba(107,124,92,0.1);
  font-weight: 900;
}

/* Dropdown refinement */
.dropdown-list {
  border-radius: var(--radius);
  border: 1px solid rgba(26,26,26,0.07);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 210px;
  transform: translateY(8px);
  transition: opacity var(--dur-med) var(--ease-out),
              visibility var(--dur-med) ease,
              transform var(--dur-med) var(--ease-out);
}

.dropdown-menu:hover .dropdown-list {
  transform: translateY(0);
}

.dropdown-list a {
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.9rem;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}

.dropdown-list a:hover {
  background: rgba(107,124,92,0.09);
  color: var(--olive-dark);
}

/* Mobile nav refinement */
@media (max-width: 1080px) {
  .nav-links {
    top: 92px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(26,26,26,0.08);
    gap: 4px;
    padding: 20px;
  }

  .nav-links a {
    width: 100%;
    padding: 11px 14px;
  }
}

/* ── 5. BUTTONS — PREMIUM INTERACTION ──────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform var(--dur-med) var(--ease-smooth),
              box-shadow var(--dur-med) var(--ease-smooth),
              background var(--dur-med) ease,
              border-color var(--dur-med) ease,
              color var(--dur-med) ease;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep on primary btn hover */
.btn.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 30%,
    rgba(255,253,248,0.22) 50%,
    transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}

.btn.primary:hover::after {
  transform: translateX(100%);
}

.btn.primary {
  background: var(--olive);
  color: var(--white);
  border: 2px solid var(--olive);
  box-shadow: var(--shadow-olive-sm);
}

.btn.primary:hover {
  background: var(--olive-dark);
  border-color: var(--olive-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-olive-md);
}

.btn.primary:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-olive-sm);
}

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

.btn.outline:hover {
  background: rgba(107,124,92,0.09);
  border-color: var(--olive-dark);
  color: var(--olive-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* CTA section white button */
.cta .btn {
  background: var(--white);
  color: var(--olive-dark);
  border: 2px solid transparent;
  box-shadow: 0 4px 16px rgba(26,26,26,0.12);
  font-size: 0.94rem;
}

.cta .btn:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(26,26,26,0.18);
}

/* ── 6. HERO SECTIONS ───────────────────────────────────── */
.hero-grid {
  gap: var(--gap-2xl);
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-image,
.feature-image {
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(26,26,26,0.07);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--white);
}

.hero-image img,
.feature-image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform 700ms var(--ease-smooth);
}

.hero-image:hover img,
.feature-image:hover img {
  transform: scale(1.04);
}

/* ── 7. CARDS — PREMIUM ELEVATION ──────────────────────── */
.card,
.form-panel,
.contact-panel {
  border-radius: var(--radius);
  border: 1px solid rgba(26,26,26,0.08);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-med) var(--ease-smooth),
              box-shadow var(--dur-med) var(--ease-smooth),
              border-color var(--dur-med) ease;
}

.card {
  padding: 26px;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(107,124,92,0.28);
}

/* Program icon enhancement */
.program-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(107,124,92,0.09);
  border: 1.5px solid rgba(107,124,92,0.18);
  margin-bottom: 18px;
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  transition: background var(--dur-med) ease, transform var(--dur-med) var(--ease-smooth);
}

.card:hover .program-icon {
  background: rgba(107,124,92,0.15);
  transform: scale(1.08) rotate(-3deg);
}

.card h3 {
  margin-bottom: 6px;
  color: var(--ink);
  line-height: 1.3;
}

.card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.72;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--olive);
  font-weight: 900;
  font-size: 0.9rem;
  transition: gap var(--dur-fast) ease, color var(--dur-fast) ease;
}

.text-link::after {
  content: "→";
  transition: transform var(--dur-fast) ease;
}

.text-link:hover {
  color: var(--olive-dark);
  gap: 10px;
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* ── 8. GRID GAP REFINEMENT ─────────────────────────────── */
.grid {
  gap: 20px;
}

.cards-3 {
  gap: 22px;
}

.cards-4 {
  gap: 18px;
}

.cards-5 {
  gap: 16px;
}

/* ── 9. STATS — PREMIUM SOCIAL PROOF ───────────────────── */
.stats {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(26,26,26,0.08);
  background: rgba(26,26,26,0.06);
}

.stat {
  padding: 28px 20px;
  background: var(--cream);
  text-align: center;
  transition: background var(--dur-med) ease;
}

.stat:hover {
  background: var(--white);
}

.stat strong {
  font-size: 2.6rem;
  letter-spacing: -0.02em;
  color: var(--olive);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat small {
  font-size: 0.88rem;
  color: var(--muted);
  display: block;
  font-weight: 700;
}

/* ── 10. TRUST STRIP ────────────────────────────────────── */
.trust-strip {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(107,124,92,0.13);
}

.trust-item {
  padding: 22px 20px;
  background: var(--white);
  transition: background var(--dur-med) ease, transform var(--dur-med) var(--ease-smooth);
}

.trust-item:hover {
  background: rgba(250,248,243,0.95);
}

.trust-item strong {
  font-size: 1.55rem;
  line-height: 1.1;
  color: var(--olive-dark);
  display: block;
  letter-spacing: -0.015em;
}

.trust-item span {
  font-size: 0.88rem;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}

/* ── 11. TICKER BAR ─────────────────────────────────────── */
.ticker {
  background: var(--olive-dark);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.ticker-track {
  padding: 10px 0;
  gap: 44px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

/* ── 12. CTA SECTIONS ───────────────────────────────────── */
.cta {
  padding: 52px 48px;
  border-radius: var(--radius-lg);
  background: var(--olive);
  box-shadow: var(--shadow-olive-lg);
  position: relative;
  overflow: hidden;
}

/* Subtle noise texture overlay on CTA */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  border-radius: inherit;
}

.cta-content {
  position: relative;
}

.cta h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--white);
}

.cta p {
  margin: 14px 0 0;
  color: rgba(250,248,243,0.82);
  font-size: 1.06rem;
  line-height: 1.7;
  max-width: 580px;
}

/* ── 13. TESTIMONIAL CARDS ──────────────────────────────── */
.testimonial-card {
  border-radius: var(--radius);
  border: 1px solid rgba(26,26,26,0.07);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  background: var(--white);
  transition: transform var(--dur-med) var(--ease-smooth),
              box-shadow var(--dur-med) var(--ease-smooth),
              border-color var(--dur-med) ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(107,124,92,0.25);
}

.testimonial-card .stars {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: #f5a623;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.testimonial-card .quote {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--ink);
  font-style: italic;
}

.testimonial-card .person {
  margin-top: 20px;
  color: var(--olive-dark);
  font-size: 0.92rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Avatar circle */
.testimonial-card .person::before {
  content: "";
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: rgba(107,124,92,0.12);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236B7C5C"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
  background-size: 20px;
  background-position: center;
  background-repeat: no-repeat;
  display: block;
}

.google-pill {
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.82rem;
  border: 1px solid rgba(26,26,26,0.08);
  background: var(--cream);
}

/* Review slider (CSS keyframe version on some pages) */
.review-slider-outer {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.review-slider-outer::before,
.review-slider-outer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.review-slider-outer::before {
  left: 0;
  background: linear-gradient(to right, var(--cream) 0%, transparent 100%);
}

.review-slider-outer::after {
  right: 0;
  background: linear-gradient(to left, var(--cream) 0%, transparent 100%);
}

/* ── 14. FLIP CARDS ─────────────────────────────────────── */
.flip-cards-grid {
  gap: 22px;
}

.flip-card {
  height: 260px;
}

.flip-card-inner {
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.flip-card-front {
  border-radius: var(--radius);
  background: var(--flip-bg, var(--white));
  border: 1px solid rgba(26,26,26,0.08);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-med) ease;
}

.flip-card:hover .flip-card-front {
  box-shadow: var(--shadow-md);
}

.flip-card-back {
  border-radius: var(--radius);
  background: var(--olive);
  border: 1px solid var(--olive-dark);
  box-shadow: var(--shadow-md);
}

.flip-card-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  display: block;
}

.flip-card-title {
  font-size: 1.08rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.flip-card-back .flip-card-title {
  color: var(--white);
}

.flip-card-back p {
  font-size: 0.97rem;
  line-height: 1.6;
  color: rgba(250,248,243,0.9);
  margin: 10px 0 0;
}

/* ── 15. FORMS — PREMIUM INPUT STYLING ──────────────────── */
.form-panel {
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(26,26,26,0.07);
}

.form-grid {
  gap: 18px;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: 1.5px solid rgba(26,26,26,0.11);
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.97rem;
  box-shadow: inset 0 2px 4px rgba(26,26,26,0.02);
  transition: border-color var(--dur-med) ease,
              box-shadow var(--dur-med) ease,
              background var(--dur-med) ease;
  -webkit-appearance: none;
  appearance: none;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(107,124,92,0.35);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 4px rgba(107,124,92,0.14),
              inset 0 2px 4px rgba(26,26,26,0.02);
  background: #fff;
}

textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2362605a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
  cursor: pointer;
}

::placeholder {
  color: rgba(98,96,90,0.5);
  font-size: 0.95rem;
}

/* ── 16. CHECK-LIST ITEMS ───────────────────────────────── */
.check-list {
  gap: 10px;
}

.check-list li {
  padding: 14px 16px 14px 44px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(26,26,26,0.08);
  background: var(--white);
  font-size: 0.97rem;
  line-height: 1.5;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.check-list li:hover {
  background: rgba(107,124,92,0.05);
  border-color: rgba(107,124,92,0.2);
}

.check-list li::before {
  width: 9px;
  height: 9px;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--olive);
}

/* ── 17. TABS ───────────────────────────────────────────── */
.tabs {
  gap: 8px;
  margin-bottom: 28px;
}

.tab-btn {
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-size: 0.9rem;
  border: 1.5px solid rgba(26,26,26,0.11);
  transition: all var(--dur-med) var(--ease-smooth);
}

.tab-btn:hover {
  border-color: var(--olive);
  color: var(--olive);
}

.tab-btn.active {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--white);
  box-shadow: var(--shadow-olive-sm);
}

/* ── 18. TIMELINE ───────────────────────────────────────── */
.timeline {
  border-left: 2px solid rgba(107,124,92,0.3);
  padding-left: 28px;
  gap: 24px;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  width: 14px;
  height: 14px;
  left: -35px;
  top: 5px;
  background: var(--olive);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--olive);
}

.timeline-item h3 {
  font-size: 1.05rem;
  color: var(--olive-dark);
  margin-bottom: 4px;
}

.timeline-item p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

/* ── 19. GALLERY ────────────────────────────────────────── */
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(26,26,26,0.07);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur-med) ease;
}

.gallery-item:hover {
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  transition: transform 700ms var(--ease-smooth);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ── 20. FOUNDER NOTE ───────────────────────────────────── */
.founder-note {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(26,26,26,0.08);
  box-shadow: var(--shadow-sm);
  padding: clamp(32px, 5vw, 64px);
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.founder-note::before {
  content: "\201C";
  position: absolute;
  top: -20px;
  left: 32px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 200px;
  color: rgba(107,124,92,0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.founder-note h2 {
  max-width: 820px;
  font-style: italic;
}

/* ── 21. FOUNDER PHOTOS ─────────────────────────────────── */
.founder-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(107,124,92,0.2);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  background: rgba(107,124,92,0.08);
}

/* ── 22. FOOTER ─────────────────────────────────────────── */
.site-footer {
  background: #f0ebe0;
  border-top: 1px solid rgba(26,26,26,0.08);
  padding: 56px 0 28px;
}

.footer-title {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
}

.footer-links {
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.93rem;
  transition: color var(--dur-fast) ease;
}

.footer-links a:hover {
  color: var(--olive-dark);
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(107,124,92,0.3);
  color: var(--olive);
  background: rgba(107,124,92,0.06);
  transition: background var(--dur-fast) ease,
              border-color var(--dur-fast) ease,
              transform var(--dur-fast) ease;
}

.socials a:hover {
  background: var(--olive);
  color: var(--white);
  border-color: var(--olive);
  transform: translateY(-2px);
}

.copyright {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(26,26,26,0.08);
  font-size: 0.88rem;
  color: rgba(98,96,90,0.7);
}

/* ── 23. FLOAT BUTTONS ──────────────────────────────────── */
.float-btn {
  width: 54px;
  height: 54px;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-med) var(--ease-smooth),
              box-shadow var(--dur-med) var(--ease-smooth);
}

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

.float-btn svg {
  width: 24px;
  height: 24px;
}

/* ── 24. STARS ──────────────────────────────────────────── */
.stars-display {
  font-size: 32px;
  color: #f5a623;
  letter-spacing: 2px;
  animation: starFloat 3s ease-in-out infinite;
}

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

.stars {
  color: #f5a623;
  letter-spacing: 0.1em;
}

.google-badge {
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  border: 1px solid rgba(26,26,26,0.08);
  background: rgba(107,124,92,0.06);
  font-size: 0.76rem;
  font-weight: 700;
}

.review-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(107,124,92,0.09);
  color: var(--olive-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

/* ── 25. SCROLL REVEAL ANIMATIONS ───────────────────────── */
.fade-section,
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease-out),
              transform 700ms var(--ease-out);
  will-change: opacity, transform;
}

.fade-section.in-view,
.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.delay-100  { transition-delay: 80ms;  }
.delay-200  { transition-delay: 160ms; }
.delay-300  { transition-delay: 240ms; }
.delay-400  { transition-delay: 320ms; }

.fade-delay-100 { transition-delay: 80ms;  }
.fade-delay-200 { transition-delay: 160ms; }
.fade-delay-300 { transition-delay: 240ms; }
.fade-delay-400 { transition-delay: 320ms; }

/* ── 26. STEP COUNTERS ──────────────────────────────────── */
.step::before {
  content: "0" counter(steps);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--olive);
  background: rgba(107,124,92,0.09);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-bottom: 16px;
  border: 1.5px solid rgba(107,124,92,0.2);
}

/* ── 27. PROOF LINE ─────────────────────────────────────── */
.proof-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--olive-dark);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

/* ── 28. MICRO-INTERACTIONS: IMAGE ZOOM ─────────────────── */
.img-hover-zoom img,
.gallery-item img,
.hero-image img,
.feature-image img {
  transition: transform 700ms var(--ease-smooth);
  will-change: transform;
}

/* ── 29. MOBILE REFINEMENTS ─────────────────────────────── */
@media (max-width: 820px) {
  :root {
    --section-py: 52px;
    --hero-py-top: 52px;
    --hero-py-bottom: 42px;
  }

  .hero-grid {
    gap: 40px;
  }

  .section-head {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
  }

  .section-head p {
    padding-top: 0;
  }

  .cta {
    padding: 36px 28px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .cta .btn {
    align-self: flex-start;
    margin-top: 0;
  }

  .form-panel {
    padding: 26px 20px;
  }

  .flip-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .hero-image img,
  .feature-image img {
    height: 300px;
  }
}

@media (max-width: 560px) {
  :root {
    --section-py: 44px;
    --hero-py-top: 44px;
    --hero-py-bottom: 36px;
  }

  h1 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
    letter-spacing: -0.015em;
  }

  h2 {
    font-size: clamp(1.75rem, 9vw, 2.4rem);
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .eyebrow::before {
    width: 16px;
  }

  .lead {
    font-size: 1.02rem;
  }

  .card {
    padding: 20px;
  }

  .btn {
    min-height: 48px;
    padding: 12px 22px;
    font-size: 0.9rem;
  }

  .stats {
    border-radius: var(--radius-sm);
  }

  .stat {
    padding: 22px 16px;
  }

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

  .testimonial-card {
    padding: 24px;
  }

  .flip-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .flip-card {
    height: 220px;
  }

  .form-panel {
    padding: 22px 18px;
  }

  .form-grid {
    gap: 14px;
  }

  .float-btn {
    width: 50px;
    height: 50px;
  }
}

/* ── 30. DS ABROAD — INTERNATIONAL PREMIUM FEEL ─────────── */
/* Applied via body class or page-specific selector via .abroad-hero */
.abroad-hero h1,
[data-page="abroad"] h1 {
  font-size: clamp(2.8rem, 5.5vw, 5.4rem);
  letter-spacing: -0.025em;
}

/* Elevated trust badge styling for abroad page */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: rgba(107,124,92,0.1);
  border: 1px solid rgba(107,124,92,0.2);
  color: var(--olive-dark);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

/* ── 31. BUTTON CONSISTENCY RESET ───────────────────────── */
/* Ensure all buttons across pages use the same base */
a.btn, button.btn {
  text-decoration: none;
}

/* ── 32. CONTACT PANEL ──────────────────────────────────── */
.contact-panel {
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ── 33. MAP EMBED ──────────────────────────────────────── */
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(26,26,26,0.08);
  box-shadow: var(--shadow-xs);
}

/* ── 34. PROGRAM ICON HOVER (CARD LEVEL) ────────────────── */
@keyframes iconPop {
  0%   { transform: scale(1) rotate(0deg); }
  50%  { transform: scale(1.14) rotate(-6deg); }
  100% { transform: scale(1.08) rotate(-3deg); }
}

.card:hover .program-icon {
  animation: iconPop 0.4s var(--ease-smooth) forwards;
}

/* ── 35. SMOOTH SCROLLBAR (WEBKIT) ──────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: rgba(107,124,92,0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(107,124,92,0.5);
}

/* ── 36. SELECTION COLOR ────────────────────────────────── */
::selection {
  background: rgba(107,124,92,0.22);
  color: var(--ink);
}

/* ── 37. TUTOR SECTION ──────────────────────────────────── */
.tutor-section {
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  background: rgba(107,124,92,0.06);
  border: 1px solid rgba(107,124,92,0.12);
}

@media (max-width: 820px) {
  .tutor-section {
    padding: 36px 24px;
    border-radius: var(--radius);
  }
}

@media (max-width: 560px) {
  .tutor-section {
    padding: 28px 18px;
  }
}

/* ── 38. HERO EYEBROW GLOBAL ────────────────────────────── */
.hero .eyebrow {
  margin-bottom: 18px;
}

/* ── 39. SPLIT LAYOUT SPACING ───────────────────────────── */
.split {
  gap: var(--gap-xl);
  align-items: start;
}

/* ── 40. FINAL CONSISTENCY PASS ─────────────────────────── */

/* All interactive elements get consistent focus ring */
:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Consistent card border color on all states */
.card,
.form-panel,
.contact-panel,
.testimonial-card,
.flip-card-front {
  border-color: rgba(26,26,26,0.08);
}

/* Consistent hover border */
.card:hover,
.testimonial-card:hover {
  border-color: rgba(107,124,92,0.28);
}

/* Consistent animation timing on all transform transitions */
.trust-item,
.stat,
.gallery-item,
.flip-card-front,
.float-btn,
.socials a,
.tab-btn,
.check-list li {
  transition-timing-function: var(--ease-smooth);
}
/* Mobile hamburger fix */
.menu-toggle {
  position: relative;
  z-index: 9999;
  pointer-events: all;
}

.site-header {
  position: relative;
  z-index: 9998;
}
.review-track {
  display: flex;
  gap: 22px;
  width: max-content;
  padding: 8px 0 24px;
  animation: reviewScroll 38s linear infinite;
}

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

@keyframes reviewScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.review-track .card {
  min-width: 340px;
  max-width: 340px;
  flex: 0 0 340px;
}
