/* ==========================================================================
   Alfa Academic Tuition Centre — Design Tokens & Base Styles
   ========================================================================== */
:root {
  --crimson: #b91c1c;
  --crimson-dark: #8c131d;
  --crimson-soft: #fef2f2;
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --ink: #1e293b;
  --muted: #526071;
  --ivory: #faf8f5;
  --white: #ffffff;
  --border: #e6dfd5;
  --gold: #c9960a;
  --gold-light: #fde68a;
  --wa-green: #16a34a;
  --wa-green-dark: #15803d;

  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 56px rgba(15, 23, 42, 0.13);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

main,
.section {
  overflow-x: clip;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(1160px, calc(100% - 2.25rem));
  margin-inline: auto;
}

.section {
  padding: 5.25rem 0;
}

.section-header {
  max-width: 700px;
  margin-bottom: 2.75rem;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.65rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  font-weight: 800;
}

.section-desc {
  color: var(--muted);
  font-size: 1.04rem;
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--crimson);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.58rem 1.15rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 0.92rem 1.65rem;
  font-size: 0.98rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--crimson);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(185, 28, 28, 0.24);
}

.btn-primary:hover {
  background: var(--crimson-dark);
  box-shadow: 0 14px 30px rgba(185, 28, 28, 0.32);
}

.btn-outline {
  border-color: #cbd5e1;
  color: var(--navy);
  background: var(--white);
}

.btn-outline:hover {
  border-color: var(--navy);
  background: #f8fafc;
}

.btn-outline-dark {
  padding: 0.78rem 1.45rem;
  font-size: 0.94rem;
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

.icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

/* ==========================================================================
   INTRO SPLASH OVERLAY — Majestic White, Champagne Gold & Soft Sky Veil
   ========================================================================== */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 68% 58% at 50% 44%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 252, 242, 0.85) 38%, rgba(226, 240, 252, 0.72) 72%, rgba(203, 228, 248, 0.88) 100%),
    linear-gradient(165deg, #dceefb 0%, #f5faff 48%, #fdfaf0 100%);
  overflow: hidden;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.intro-overlay.is-hiding {
  opacity: 0;
  transform: scale(1.018);
  pointer-events: none;
}

.intro-overlay.is-hidden {
  display: none;
}

/* Soft drifting silk sky-mist veils (no bubbles) */
.intro-sky-veils {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.intro-veil {
  position: absolute;
  border-radius: 999px;
  filter: blur(55px);
}

.intro-veil-1 {
  width: 65vw;
  height: 36vh;
  top: -8%;
  left: -10%;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.34) 0%, rgba(147, 197, 253, 0) 70%);
  animation: veilDriftRight 14s ease-in-out infinite alternate;
}

.intro-veil-2 {
  width: 70vw;
  height: 40vh;
  bottom: -12%;
  right: -12%;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.16) 0%, rgba(186, 230, 253, 0.24) 45%, transparent 72%);
  animation: veilDriftLeft 16s ease-in-out infinite alternate;
}

.intro-sun-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(560px, 85vw);
  height: min(320px, 55vw);
  transform: translate(-50%, -56%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(243, 213, 132, 0.22) 48%, transparent 74%);
  filter: blur(22px);
  animation: auraBreathe 4.8s ease-in-out infinite;
}

/* Intro center content */
.intro-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 92vw;
  animation: introContentIn 1.1s var(--ease-out) 0.1s both;
}

.intro-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: introFloat 5s ease-in-out infinite;
}

.intro-logo {
  width: min(330px, 78vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 26px rgba(15, 23, 42, 0.08));
  animation: introLogoReveal 1.25s var(--ease-out) 0.18s both;
}

.intro-gold-rule {
  width: 0;
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #c99a2e, #ebd082, #c99a2e, transparent);
  animation: goldRuleSweep 1.15s var(--ease-out) 0.45s forwards;
}

.intro-name {
  font-family: var(--font-serif);
  font-size: clamp(1.38rem, 3.8vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.015em;
  color: var(--navy);
  opacity: 0;
  animation: introTextIn 0.95s var(--ease-out) 0.62s both;
}

.intro-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 1.9vw, 0.88rem);
  font-weight: 600;
  color: #8a6b24;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  animation: introTextIn 0.95s var(--ease-out) 0.86s both;
}

.intro-skip {
  position: absolute;
  bottom: 1.85rem;
  right: 1.85rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(184, 137, 23, 0.28);
  color: var(--navy-mid);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.46rem 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  opacity: 0;
  animation: introTextIn 0.7s ease 1.1s both;
}

.intro-skip:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  transform: translateY(-1px);
}

@keyframes veilDriftRight {
  0% { transform: translate3d(-2%, 0, 0); }
  100% { transform: translate3d(4%, 3%, 0); }
}

@keyframes veilDriftLeft {
  0% { transform: translate3d(2%, 0, 0); }
  100% { transform: translate3d(-4%, -3%, 0); }
}

@keyframes auraBreathe {
  0%, 100% { transform: translate(-50%, -56%) scale(1); opacity: 0.85; }
  50% { transform: translate(-50%, -56%) scale(1.06); opacity: 1; }
}

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

@keyframes introLogoReveal {
  from { opacity: 0; transform: translateY(10px) scale(0.96); filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.04)); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: drop-shadow(0 14px 26px rgba(15, 23, 42, 0.08)); }
}

@keyframes goldRuleSweep {
  from { width: 0; opacity: 0; }
  to   { width: 110px; opacity: 1; }
}

@keyframes introContentIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes introTextIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 223, 213, 0.75);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
}

.brand-logo {
  height: 46px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-mid);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease-out);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 9px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-drawer {
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 1rem 0 1.35rem;
}

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.mobile-link {
  font-weight: 600;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.mobile-cta {
  margin-top: 0.4rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  background: linear-gradient(155deg, var(--ivory) 0%, #ffffff 56%, #fff7f7 100%);
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(185, 28, 28, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 72% 35%, black 20%, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 3.25rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.eyebrow-tag {
  background: var(--crimson-soft);
  color: var(--crimson);
  border: 1px solid rgba(185, 28, 28, 0.2);
  padding: 0.24rem 0.72rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
}

.hero-title {
  font-size: clamp(2.15rem, 4.1vw, 3.35rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.15rem;
}

.text-accent {
  color: var(--crimson);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 1.85rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  flex-wrap: wrap;
  margin-bottom: 2.15rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-item strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--navy);
}

.trust-item span {
  font-size: 0.8rem;
  color: var(--muted);
}

.trust-divider {
  width: 1px;
  height: 30px;
  background: var(--border);
}

/* Hero Visual & Floating Cards */
.hero-visual {
  position: relative;
}

.hero-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
  background: var(--navy);
  aspect-ratio: 4 / 3;
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: gentleZoom 16s ease-in-out infinite alternate;
}

.hero-photo-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.72), transparent);
  display: flex;
  justify-content: flex-start;
}

.overlay-pill {
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.floating-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.05rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}

.floating-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--navy);
}

.floating-card span {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
}

.floating-card-top {
  top: -18px;
  right: -12px;
  animation: floatSlow 5.5s ease-in-out infinite;
}

.floating-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--crimson-soft);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

.floating-card-bottom {
  bottom: -20px;
  left: -18px;
  animation: floatSlow 6.2s ease-in-out 0.8s infinite;
}

.floating-stat {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--crimson);
  background: var(--crimson-soft);
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
}

/* Hero initial staggered animation */
.hero-animate {
  opacity: 0;
  transform: translateY(20px);
  animation: heroSlideUp 0.75s var(--ease-out) forwards;
  animation-delay: var(--delay, 0ms);
}

/* ==========================================================================
   KPI Strip
   ========================================================================== */
.metrics-strip {
  background: var(--navy);
  color: var(--white);
  padding: 2.35rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.metric-card {
  padding: 0.5rem 0.75rem;
}

.metric-number {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  font-weight: 800;
  color: #fde68a;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.metric-label {
  font-size: 0.88rem;
  color: #cbd5e1;
}

/* ==========================================================================
   Sliding Showcase Carousel
   ========================================================================== */
.gallery-section {
  background: var(--ivory);
}

.slider-wrapper {
  position: relative;
}

.slider-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--white);
  border: 1px solid var(--border);
}

.slider-track {
  display: flex;
  transition: transform 0.65s var(--ease-out);
  will-change: transform;
}

.slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  background: var(--white);
}

.slide-media {
  height: 450px;
  background: #f1ede6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #141c2f;
  transition: transform 0.7s var(--ease-out);
}

.slide-media-wide img {
  background: #9f121b;
}

.slide-body {
  padding: 2.75rem 3rem;
}

.slide-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--crimson);
  background: var(--crimson-soft);
  padding: 0.26rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.slide-body h3 {
  font-size: 1.6rem;
  margin-bottom: 0.85rem;
}

.slide-body p {
  color: var(--muted);
  margin-bottom: 1.15rem;
}

.slide-points {
  margin: 0 0 1.65rem;
  padding-left: 1.15rem;
  color: var(--navy-mid);
  font-size: 0.95rem;
}

.slide-points li {
  margin-bottom: 0.42rem;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.slider-btn:hover {
  background: var(--crimson);
  border-color: var(--crimson);
  color: var(--white);
  transform: scale(1.06);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  padding: 0;
  transition: width 0.3s var(--ease-out), background-color 0.3s ease;
}

.slider-dot.is-active {
  width: 28px;
  background: var(--crimson);
}

/* ==========================================================================
   Mission, Vision & Goal — open / airy free-roam layout
   ========================================================================== */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem 2.75rem;
}

.mission-card {
  background: transparent;
  border: none;
  border-top: 3px solid var(--crimson);
  border-radius: 0;
  padding: 1.5rem 0 0;
  box-shadow: none;
  transition: transform 0.3s var(--ease-out);
}

.mission-card:hover {
  transform: translateY(-3px);
}

.mission-card-featured {
  border-top: 3px solid var(--crimson);
  background: transparent;
  border-radius: 0;
  padding: 1.5rem 0 0;
}

.card-icon-badge {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--crimson);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}

.mission-card h3 {
  font-size: 1.22rem;
  margin-bottom: 0.6rem;
}

.mission-lead {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.98rem;
  margin-bottom: 0.65rem;
}

.mission-card p:last-child {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 0.94rem;
}

/* ==========================================================================
   Heritage & History Timeline — center line, alternating right & left
   ========================================================================== */
.history-section {
  background: var(--ivory);
}

.history-layout {
  display: flex;
  flex-direction: column;
  gap: 3.25rem;
}

.history-intro {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.history-intro p {
  color: var(--muted);
}

.heritage-quote {
  margin: 1.5rem auto;
  padding: 0.85rem 1.35rem;
  max-width: 660px;
  background: transparent;
  border-left: 3px solid var(--crimson);
  border-radius: 0;
  box-shadow: none;
  text-align: left;
}

.heritage-quote p {
  margin: 0;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.96rem;
}

.group-badge {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.group-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  color: var(--navy-mid);
}

/* Center-line alternating timeline */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.35rem;
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  padding: 0.5rem 0;
}

/* Center vertical line */
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(to bottom, var(--crimson), #cbd5e1);
}

/* Each item spans full width with marker centered on col 2 */
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-start;
  gap: 0;
}

.timeline-marker {
  position: relative;
  z-index: 2;
  width: 82px;
  text-align: center;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  background: var(--crimson);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  box-shadow: 0 6px 16px rgba(185, 28, 28, 0.25);
  margin: 0 auto;
  flex-shrink: 0;
  grid-column: 2;
  grid-row: 1;
}

/* Card for right items (odd: 1st, 3rd) — starts from right */
.timeline-item--right .timeline-card {
  grid-column: 3;
  grid-row: 1;
  margin-left: 1.75rem;
  text-align: left;
}

/* Card for left items (even: 2nd, 4th) */
.timeline-item--left .timeline-card {
  grid-column: 1;
  grid-row: 1;
  margin-right: 1.75rem;
  text-align: right;
}

/* Directional slide-in from right and left */
.timeline-item--right.reveal {
  transform: translateX(42px);
}

.timeline-item--left.reveal {
  transform: translateX(-42px);
}

.timeline-item--right.reveal.is-visible,
.timeline-item--left.reveal.is-visible {
  transform: translateX(0);
}

/* Timeline milestone — clean unboxed editorial typography */
.timeline-card {
  background: transparent;
  border: none;
  border-top: 2px solid rgba(185, 28, 28, 0.28);
  border-radius: 0;
  padding: 0.85rem 0.25rem 0.25rem;
  box-shadow: none;
}

.timeline-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.45rem;
}

.timeline-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

/* ==========================================================================
   Programmes Sliding Tabs & Subjects Box
   ========================================================================== */
.tab-buttons {
  position: relative;
  display: inline-flex;
  background: #f1ede6;
  padding: 0.35rem;
  border-radius: 999px;
  gap: 0.25rem;
  margin-bottom: 2rem;
  max-width: 100%;
  overflow-x: auto;
}

.tab-indicator {
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 0.35rem;
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.38s var(--ease-out), width 0.38s var(--ease-out);
  z-index: 0;
}

.tab-btn {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.tab-btn.is-active {
  color: var(--crimson);
}

.tab-panels-viewport {
  overflow: hidden;
}

.tab-panels-track {
  display: flex;
  transition: transform 0.52s var(--ease-out);
  will-change: transform;
}

.tab-panel {
  min-width: 100%;
}

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

/* Programme cards — open layout, no box */
.prog-card {
  background: transparent;
  border: none;
  border-top: 2px solid var(--border);
  border-radius: 0;
  padding: 1.5rem 0 0.5rem;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease;
}

.prog-card:hover {
  border-top-color: var(--crimson);
}

.prog-level {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--crimson);
  background: var(--crimson-soft);
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.prog-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.prog-card p {
  font-size: 0.93rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.prog-card ul {
  margin: auto 0 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  color: var(--navy-mid);
}

.prog-card li {
  margin-bottom: 0.38rem;
}

/* Subjects box — keep the dark block as intended accent */
.subjects-box {
  margin-top: 2.75rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.35rem 2.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.subjects-box h3 {
  color: var(--white);
  font-size: 1.28rem;
  margin-bottom: 0.55rem;
}

.subjects-box p {
  color: #cbd5e1;
  font-size: 0.94rem;
  margin-bottom: 1.1rem;
}

.subject-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.subject-pills span {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  padding: 0.36rem 0.82rem;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 500;
}

.advantage-list {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: #e2e8f0;
  font-size: 0.94rem;
}

.advantage-list li {
  margin-bottom: 0.55rem;
}

/* ==========================================================================
   Contact & Free Trial Form
   ========================================================================== */
.contact-section {
  background: linear-gradient(180deg, var(--ivory) 0%, #ffffff 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: stretch;
}

.inquiry-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.35rem;
  box-shadow: var(--shadow-md);
  min-width: 0;
}

.campus-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.75rem 0 0.75rem 0.5rem;
  box-shadow: none;
  min-width: 0;
}

.hero-grid > *,
.contact-grid > *,
.subjects-box > *,
.slide > *,
.tabs-container,
.slider-wrapper {
  min-width: 0;
}

.inquiry-card h2 {
  font-size: 1.65rem;
}

.inquiry-sub {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 1.5rem;
}

.trial-form {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.78rem 0.92rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.14);
}

.form-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.campus-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.campus-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1.35rem;
}

.campus-details {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.detail-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--crimson);
  margin-bottom: 0.25rem;
}

.detail-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--navy);
}

.detail-item a:hover {
  color: var(--crimson);
  text-decoration: underline;
}

.transit-note {
  display: inline-block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.social-pill {
  padding: 0.36rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--navy);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.social-pill:hover {
  background: var(--crimson);
  border-color: var(--crimson);
  color: var(--white);
  text-decoration: none;
}

.map-preview-card {
  margin-top: 1.6rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: transform 0.25s var(--ease-out);
}

.map-preview-card:hover {
  transform: translateY(-2px);
}

.map-preview-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.94rem;
}

.map-preview-card span {
  font-size: 0.8rem;
  color: #cbd5e1;
}

.map-btn {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fde68a !important;
  white-space: nowrap;
}

/* ==========================================================================
   Footer & Floating WhatsApp
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 2.35rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-brand img {
  height: 40px;
  width: auto;
  background: var(--white);
  padding: 4px 8px;
  border-radius: 8px;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
}

.footer-brand span {
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 1.35rem;
  font-size: 0.88rem;
}

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

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.floating-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--wa-green);
  color: var(--white);
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.35);
  transition: transform 0.25s var(--ease-out), background-color 0.25s ease;
}

.floating-wa:hover {
  background: var(--wa-green-dark);
  transform: translateY(-3px);
}

/* ==========================================================================
   Scroll Reveal & Keyframe Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.72s var(--ease-out), transform 0.72s var(--ease-out);
}

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

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

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

@keyframes gentleZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 980px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .hero-grid,
  .history-layout,
  .subjects-box,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .history-intro {
    position: static;
  }
  .slide {
    grid-template-columns: 1fr;
  }
  .slide-media {
    height: 320px;
  }
  .mission-grid,
  .cards-three {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .floating-card-top {
    right: 8px;
  }
  .floating-card-bottom {
    left: 8px;
  }

  /* Timeline: collapse to left-line on tablet */
  .timeline::before {
    left: 41px;
    transform: none;
  }
  .timeline-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.15rem;
  }
  .timeline-item--right .timeline-card,
  .timeline-item--left .timeline-card {
    grid-column: auto;
    margin: 0;
    text-align: left;
    flex: 1;
  }
  .timeline-item--left .timeline-marker {
    grid-column: auto;
    grid-row: auto;
    order: -1;
  }
  .timeline-marker {
    margin-top: 0.65rem;
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1160px, calc(100% - 2rem));
  }
  .section {
    padding: 3.5rem 0;
  }
  .brand-logo {
    height: 38px;
    max-width: 190px;
  }
  .nav-actions .btn {
    display: none;
  }
  .slide-body,
  .inquiry-card,
  .subjects-box {
    padding: 1.45rem;
  }
  .campus-card {
    padding: 0.5rem 0;
    text-align: center;
  }
  .floating-card {
    padding: 0.65rem 0.85rem;
    max-width: calc(100% - 20px);
  }
  .floating-card-top {
    top: 10px;
    right: 10px;
  }
  .floating-card-bottom {
    bottom: 10px;
    left: 10px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .map-preview-card {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  /* Center everything cleanly on phone */
  .hero-content,
  .hero-cta-group,
  .hero-trust,
  .eyebrow,
  .section-header,
  .history-intro,
  .slide-body,
  .mission-card,
  .prog-card,
  .subjects-left,
  .subjects-right,
  .campus-details,
  .social-links,
  .footer-inner,
  .footer-links,
  .footer-brand {
    text-align: center;
    justify-content: center;
    align-items: center;
    margin-inline: auto;
  }
  .hero-title,
  .hero-subtitle,
  .section-header .section-kicker {
    text-align: center;
  }
  .heritage-quote {
    text-align: center;
    border-left: none;
    border-top: 3px solid var(--crimson);
    padding: 1rem 0.5rem 0;
  }
  .slide-points,
  .prog-card ul,
  .advantage-list {
    text-align: left;
    display: inline-block;
    margin-inline: auto;
  }
  .prog-level {
    align-self: center;
  }
  .subject-pills {
    justify-content: center;
  }
  .timeline {
    padding: 0;
    gap: 1.75rem;
  }
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
    display: block;
    opacity: 0.4;
  }
  .timeline-item,
  .timeline-item--right,
  .timeline-item--left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
  }
  .timeline-item--right .timeline-card,
  .timeline-item--left .timeline-card {
    margin: 0;
    text-align: center;
    width: 100%;
    background: var(--ivory);
    border-top: 2px solid rgba(185, 28, 28, 0.35);
    padding: 0.85rem 0.5rem 0.5rem;
  }
  .timeline-marker {
    margin-top: 0;
    order: 0 !important;
  }
  .floating-wa span {
    display: none;
  }
  .floating-wa {
    padding: 0.92rem;
    right: 16px;
    bottom: 16px;
  }
  .mission-grid {
    gap: 1.75rem;
  }
  .footer-inner {
    flex-direction: column;
  }
  .footer-brand {
    flex-direction: column;
  }
  .footer-links {
    flex-wrap: wrap;
  }
  .trust-divider {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .hero-animate {
    opacity: 1 !important;
    transform: none !important;
  }
  .intro-overlay {
    display: none !important;
  }
}
