/* ============================================
   BrightPath Learning Centre — Main Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #1B2D4F;
  --primary-light: #2C4A7C;
  --primary-dark: #111D33;
  --secondary: #3B82F6;
  --secondary-light: #60A5FA;
  --accent: #F97316;
  --accent-light: #FB923C;
  --accent-dark: #EA580C;
  --text: #111827;
  --text-light: #374151;
  --text-muted: #6B7280;
  --bg: #F9FAFB;
  --bg-white: #FFFFFF;
  --bg-light: #F1F5F9;
  --bg-dark: #1B2D4F;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-hover: 0 16px 48px rgba(0,0,0,0.14);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 50%;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 80px;
}

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

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

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  overflow-x: hidden;
  font-size: 1.05rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; color: var(--text-light); font-size: 1.05rem; }

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent); }

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

ul, ol { list-style: none; }

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

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

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
}

.accent-line {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
}

.slide-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 80ms; }
.stagger > *:nth-child(3) { transition-delay: 160ms; }
.stagger > *:nth-child(4) { transition-delay: 240ms; }
.stagger > *:nth-child(5) { transition-delay: 320ms; }
.stagger > *:nth-child(6) { transition-delay: 400ms; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(249,115,22,0.3);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.4);
}

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

.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--accent);
}

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

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

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

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

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

.nav-cta {
  margin-left: 8px;
}

.nav-cta .btn {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* Mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

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

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

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

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background: #fff;
  box-shadow: var(--shadow-lg);
  padding: 100px 32px 40px;
  transition: right var(--transition);
  z-index: 999;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), padding-left var(--transition);
}

.mobile-nav a:hover {
  color: var(--accent);
  padding-left: 8px;
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--transition);
}

.mobile-overlay.open {
  opacity: 1;
}

/* --- Hero V2 (Modern Split Layout) --- */
.hero-v2 {
  position: relative;
  margin-top: var(--header-height);
  padding: 80px 0 60px;
  min-height: calc(90vh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-v2-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0F1B2D 0%, var(--primary) 40%, var(--primary-light) 100%);
  z-index: 0;
}

.hero-v2-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroPulse 8s ease-in-out infinite;
}

.hero-v2-bg::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: 5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(249,115,22,0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroPulse 10s ease-in-out infinite reverse;
}

@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

.hero-v2 .container {
  position: relative;
  z-index: 1;
}

.hero-v2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-v2-content h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  margin-bottom: 18px;
  line-height: 1.15;
}

.hero-v2-content .tagline {
  color: rgba(255,255,255,0.85);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-v2-content .hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 50px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.15);
}

.hero-trust-strip {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 500;
}

/* Hero visual / image side */
.hero-v2-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img-stack {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.hero-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
}

.hero-img-main img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.hero-float-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 2;
  animation: floatCard 4s ease-in-out infinite;
}

.hero-float-card--stats {
  bottom: -24px;
  left: -28px;
  animation-delay: 0s;
}

.hero-float-card--students {
  top: -20px;
  right: -24px;
  animation-delay: 2s;
}

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

.hero-float-number {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  line-height: 1.2;
}

.hero-float-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero responsive */
@media (max-width: 768px) {
  .hero-v2 {
    padding: 48px 0 40px;
    min-height: auto;
  }

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

  .hero-v2-content .hero-btns {
    justify-content: center;
  }

  .hero-trust-strip {
    justify-content: center;
  }

  .hero-img-stack {
    max-width: 360px;
    margin: 0 auto;
  }

  .hero-img-main img {
    height: 260px;
  }

  .hero-float-card--stats {
    left: -12px;
    bottom: -16px;
  }

  .hero-float-card--students {
    right: -12px;
    top: -14px;
  }
}

@media (max-width: 480px) {
  .hero-v2-content .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-v2-content .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-float-card {
    padding: 12px 16px;
  }

  .hero-float-number {
    font-size: 1.2rem;
  }

  .hero-float-label {
    font-size: 0.82rem;
  }
}

/* --- Page Header (inner pages) --- */
.page-header {
  background: linear-gradient(160deg, #0F1B2D 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 120px 0 60px;
  margin-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 350px;
  height: 350px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-full);
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-header--no-curve::after {
  display: none;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 600px;
}

.page-header .breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.page-header .breadcrumb a {
  color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb a:hover {
  color: #fff;
}

.page-header .breadcrumb span {
  color: var(--accent);
}

/* --- Cards --- */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  transition: all var(--transition);
  border: 1px solid var(--border);
}

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

/* Subject cards */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.subject-card {
  text-align: center;
  padding: 36px 24px;
  cursor: pointer;
}

.subject-card .icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  transition: all var(--transition);
}

.subject-card:hover .icon {
  transform: scale(1.1);
}

.subject-card h4 {
  color: var(--primary);
  margin-bottom: 8px;
}

.subject-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

.icon-english { background: #E8F0FE; color: #4A90D9; }
.icon-math { background: #FFF3E0; color: #F5A623; }
.icon-science { background: #E8F5E9; color: #4CAF50; }
.icon-chinese { background: #FCE4EC; color: #E91E63; }
.icon-malay { background: #F3E5F5; color: #9C27B0; }
.icon-tamil { background: #E0F7FA; color: #00BCD4; }

/* Programme cards */
.programme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.programme-card {
  overflow: hidden;
  padding: 0;
}

.programme-card .card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.programme-card .card-body {
  padding: 28px;
}

.programme-card h3 {
  margin-bottom: 12px;
}

.programme-card .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--bg-light);
  border-radius: 50px;
  font-size: 0.88rem;
  color: var(--text-light);
  font-weight: 500;
}

.programme-card .price {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.programme-card .price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* --- Photo Strip --- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.photo-strip-img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.photo-strip-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.photo-strip-img:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .photo-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .photo-strip-img {
    aspect-ratio: 16/9;
  }
}

/* --- Why Section (Features) --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: transparent;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--secondary);
  font-size: 1.4rem;
  transition: all var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--secondary);
  color: #fff;
}

.feature-card h4 {
  margin-bottom: 8px;
  color: var(--primary);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* --- Stats Bar --- */
.stats-bar {
  background: linear-gradient(160deg, #0F1B2D 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-full);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-item h3 {
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 8px;
}

.stat-item p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
}

/* Counter animation */
.counter {
  display: inline-block;
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  padding: 36px;
  position: relative;
  border-top: 3px solid transparent;
  background-image: linear-gradient(var(--bg-white), var(--bg-white)), linear-gradient(90deg, var(--accent), var(--secondary));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

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

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--bg-light);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-info strong {
  display: block;
  color: var(--primary);
  font-size: 0.95rem;
}

.testimonial-info span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --- Location Card --- */
.location-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
}

.location-map {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border);
  overflow: hidden;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.location-details h3 {
  margin-bottom: 20px;
}

.location-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.location-item .loc-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  flex-shrink: 0;
  font-size: 1rem;
}

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

.location-item small {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* --- CTA Bar --- */
.cta-bar {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 56px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bar::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
}

.cta-bar::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -3%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-full);
}

.cta-bar .container {
  position: relative;
  z-index: 1;
}

.cta-bar h2 {
  color: #fff;
  margin-bottom: 8px;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.cta-bar p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
}

/* --- Tabs --- */
.tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 28px;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  background: rgba(59,130,246,0.04);
}

.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(27,45,79,0.2);
}

.tab-content {
  display: none;
  animation: fadeTab 0.4s ease;
}

.tab-content.active {
  display: block;
}

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

/* --- Tutor Profiles --- */
.tutor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.tutor-card {
  display: flex;
  gap: 24px;
  padding: 32px;
}

.tutor-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tutor-info h3 {
  margin-bottom: 4px;
}

.tutor-info .quals {
  color: var(--secondary);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.tutor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tutor-tag {
  padding: 4px 12px;
  background: var(--bg-light);
  border-radius: 50px;
  font-size: 0.84rem;
  color: var(--text-light);
  font-weight: 500;
}

.tutor-info .philosophy {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin-top: 12px;
}

/* --- Approach --- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.approach-card {
  text-align: center;
  padding: 40px 28px;
  position: relative;
}

.approach-card h3 {
  margin-bottom: 12px;
}

.approach-number {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 12px rgba(249,115,22,0.25);
}

/* --- Schedule Table --- */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.schedule-table thead {
  background: var(--primary);
}

.schedule-table th {
  padding: 16px 20px;
  text-align: left;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.schedule-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
  color: var(--text);
}

.schedule-table tbody tr {
  transition: background var(--transition);
}

.schedule-table tbody tr:hover {
  background: var(--bg-light);
}

.schedule-table .level-row {
  background: var(--bg-light);
}

.schedule-table .level-row td {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  padding: 12px 20px;
}

/* --- Achievement Cards --- */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.achievement-card {
  padding: 28px;
  text-align: center;
  border-left: 4px solid var(--accent);
  border-top: none;
}

.achievement-card:hover {
  border-left-color: var(--secondary);
}

.achievement-card .result {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.achievement-card .student-name {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}

.achievement-card .student-level {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.achievement-card .quote {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-category {
  margin-bottom: 32px;
}

.faq-category h3 {
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--secondary-light);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: var(--bg-white);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
  transition: all var(--transition);
}

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

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  font-size: 1.1rem;
  color: var(--secondary);
}

.faq-item.open .faq-icon {
  background: var(--primary);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.94rem;
}

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

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group label .required {
  color: #e74c3c;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-white);
  transition: all var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  appearance: none;
  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='%23888' stroke-width='2'%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: 40px;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-light);
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 16px;
  height: 16px;
}

/* Contact info side */
.contact-info-card {
  padding: 36px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-info-item p {
  margin: 0;
  font-size: 0.9rem;
}

/* --- Discount Banner --- */
.discount-banner {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: center;
  border: 1px dashed var(--accent);
}

.discount-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* --- Blog Cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.blog-card {
  overflow: hidden;
  padding: 0;
}

.blog-card .card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .card-img {
  transform: scale(1.05);
}

.blog-card .card-img-wrapper {
  overflow: hidden;
}

.blog-card .card-body {
  padding: 24px;
}

.blog-card .card-date {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.blog-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  transition: color var(--transition);
}

.blog-card:hover h3 {
  color: var(--secondary);
}

.blog-card .excerpt {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 14px;
}

.blog-card .read-more {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-card .read-more::after {
  content: '\2192';
  transition: transform var(--transition);
}

.blog-card:hover .read-more::after {
  transform: translateX(4px);
}

/* --- Footer --- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: inline-block;
}

.footer-brand .tagline {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.7);
  padding: 6px 0;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.7);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* --- Payment Icons --- */
.payment-methods {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-light);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .subject-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }

  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }

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

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

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

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

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

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

  .tutor-avatar {
    margin: 0 auto;
  }

  .tutor-tags {
    justify-content: center;
  }

  .tutor-info .philosophy {
    text-align: left;
  }

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

  .location-card {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

  .discount-banner {
    flex-direction: column;
    text-align: center;
  }

  .schedule-table {
    display: block;
    overflow-x: auto;
  }

  .testimonial-grid.six-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }


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

  .subject-card { padding: 24px 16px; }

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

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

  .checkbox-group {
    grid-template-columns: 1fr;
  }
}

/* Testimonials 2-col for results page */
.testimonial-grid.six-col {
  grid-template-columns: repeat(2, 1fr);
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 900;
  font-size: 1.2rem;
}

.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  z-index: 900;
  transition: all var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}
