/* ==========================================================================
   CSS VARIABLES & THEME TOKENS (Easily customizable per academy)
   ========================================================================== */
:root {
  --primary: #3457A4;
  --primary-dark: #25407D;
  --secondary: #75B9E7;
  --accent: #F4C85A;
  --accent-dark: #E0B03B;
  --highlight: #EAE8F7;
  --bg-page: #FAFCFF;
  --bg-white: #FFFFFF;
  --text-navy: #252E40;
  --text-muted: #56627A;
  --success: #79B99A;
  --whatsapp: #25D366;
  --whatsapp-dark: #1EBE5D;
  --border-light: #E2E8F4;

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 14px rgba(37, 46, 64, 0.05);
  --shadow-md: 0 10px 30px rgba(52, 87, 164, 0.09);
  --shadow-lg: 0 18px 42px rgba(37, 46, 64, 0.14);

  --header-height: 78px;
  --transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-navy);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--text-navy);
  line-height: 1.25;
  font-weight: 700;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 84px 0;
}

.bg-tint {
  background-color: #F2F6FD;
}

.bg-lavender-soft {
  background: linear-gradient(180deg, var(--highlight) 0%, #F7F8FE 100%);
}

.text-center { text-align: center; }
.text-white { color: #FFFFFF !important; }
.mt-32 { margin-top: 32px; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(52, 87, 164, 0.25);
}

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

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: #FFFFFF;
}

.btn-accent {
  background-color: var(--accent);
  color: var(--text-navy);
  font-weight: 700;
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.28);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   HEADER & SINGLE-LINE NON-WRAPPING NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(37, 46, 64, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.logo-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 18px;
}

.nav-list li {
  flex-shrink: 0;
}

.nav-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-navy);
  white-space: nowrap;
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: width 0.25s ease;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-cta {
  padding: 10px 18px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.hamburger-btn {
  display: none;
  background: var(--highlight);
  border: none;
  color: var(--primary);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  padding: 18px 24px 26px;
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav-link {
  display: block;
  padding: 10px 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--text-navy);
}

.mobile-nav-link:hover {
  background-color: var(--highlight);
  color: var(--primary);
}

.mobile-cta-wrap {
  margin-top: 8px;
}

.mobile-cta-wrap .btn {
  color: #FFFFFF;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 68px 0 84px;
  background: radial-gradient(circle at top right, rgba(117, 185, 231, 0.22), transparent 50%),
              linear-gradient(135deg, #FAFCFF 0%, var(--highlight) 100%);
  overflow: hidden;
}

.hero-bg-shapes .float-badge {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #FFFFFF;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0.78;
  animation: floatSlow 6s ease-in-out infinite;
  pointer-events: none;
}

.badge-math { top: 12%; left: 4%; color: var(--primary); }
.badge-book { bottom: 14%; left: 6%; color: var(--success); animation-delay: 1.2s; }
.badge-cap { top: 10%; right: 46%; color: var(--accent-dark); animation-delay: 2.1s; }
.badge-atom { bottom: 12%; right: 4%; color: var(--secondary); animation-delay: 0.8s; }
.badge-award { top: 48%; left: 2%; color: var(--primary); animation-delay: 1.7s; }

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #FFFFFF;
  color: var(--primary);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.hero-pill svg {
  width: 16px;
  height: 16px;
  color: var(--accent-dark);
}

.hero-title {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--text-navy);
}

.hero-description {
  font-size: 1.06rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 580px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-bottom: 30px;
}

.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text-navy);
}

.hero-highlights svg {
  width: 19px;
  height: 19px;
  color: var(--success);
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-trust {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 12px;
  background: #FFFFFF;
  box-shadow: var(--shadow-lg);
}

.hero-image-frame img {
  border-radius: calc(var(--radius-lg) - 6px);
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.hero-floating-card {
  position: absolute;
  background: #FFFFFF;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-light);
}

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

.hero-floating-card span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-top {
  top: 24px;
  left: -24px;
}

.card-bottom {
  bottom: 24px;
  right: -18px;
}

.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}

.bg-yellow { background-color: var(--accent-dark); }
.bg-green { background-color: var(--success); }

/* ==========================================================================
   SECTION HEADERS & BADGES
   ========================================================================== */
.section-header {
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: rgba(52, 87, 164, 0.1);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.editable-badge {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--highlight);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   ABOUT SECTION & STATS
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 48px;
}

.about-media {
  position: relative;
}

.about-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.demo-tag-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.section-lead {
  color: var(--text-muted);
  margin-bottom: 26px;
  font-size: 1.02rem;
}

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

.feature-mini-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.f-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--highlight);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-mini-card h3 {
  font-size: 0.96rem;
  margin-bottom: 4px;
}

.feature-mini-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.stats-banner {
  margin-top: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, #264385 100%);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
}

.stat-item {
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0 12px;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.92;
}

.stat-sample-tag {
  display: block;
  font-size: 0.68rem;
  opacity: 0.7;
  margin-top: 4px;
}

/* ==========================================================================
   SUBJECTS & COURSES
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-light);
  background: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-navy);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(52, 87, 164, 0.22);
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.subject-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.subject-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.subject-thumb {
  position: relative;
  height: 175px;
  overflow: hidden;
}

.subject-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.subject-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(37, 46, 64, 0.85);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
}

.subject-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.subject-body h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.subject-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.subject-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  margin-top: auto;
}

.meta-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--highlight);
  color: var(--primary);
}

.subject-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ==========================================================================
   CLASSES BY GRADE / EDUCATIONAL LEVEL
   ========================================================================== */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.level-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.level-card:hover {
  border-color: var(--secondary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.level-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.level-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--highlight);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.level-grade-tag {
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(244, 200, 90, 0.28);
  color: var(--text-navy);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.level-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.level-topics {
  margin-bottom: 16px;
  flex-grow: 1;
}

.level-topics li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.level-topics li::before {
  content: '\2022';
  color: var(--primary);
  font-weight: 800;
}

.level-mode {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 16px;
}

/* ==========================================================================
   ONLINE & OFFLINE MODES + COMPARISON
   ========================================================================== */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 44px;
}

.mode-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.mode-img-wrap {
  position: relative;
  height: 230px;
}

.mode-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mode-badge {
  position: absolute;
  bottom: 14px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  color: #FFFFFF;
}

.badge-blue { background-color: var(--primary); }
.badge-green { background-color: var(--success); }

.mode-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.mode-body h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.mode-list {
  margin-bottom: 22px;
  flex-grow: 1;
}

.mode-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 9px;
}

.mode-list svg {
  width: 17px;
  height: 17px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 3px;
}

.location-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--highlight);
  color: var(--primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.comparison-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.comparison-title {
  text-align: center;
  margin-bottom: 18px;
  font-size: 1.25rem;
}

.table-responsive {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
}

.comparison-table th {
  background: var(--highlight);
  color: var(--primary);
  font-family: var(--font-heading);
}

/* ==========================================================================
   TUTOR PROFILES
   ========================================================================== */
.tutors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.tutor-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

.tutor-photo-wrap {
  position: relative;
  height: 250px;
  background: var(--highlight);
}

.tutor-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.tutor-exp-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--accent);
  color: var(--text-navy);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.tutor-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tutor-role {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.tutor-body h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.tutor-qual {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.tutor-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

.tutor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ==========================================================================
   TEACHING METHODOLOGY
   ========================================================================== */
.methodology-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.method-step {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 22px 18px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.step-num {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--highlight);
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.method-step h3 {
  font-size: 1.02rem;
  margin-bottom: 10px;
}

.method-step ul li {
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 3px 0;
  display: flex;
  gap: 6px;
}

.method-step ul li::before {
  content: '\2713';
  color: var(--success);
  font-weight: 700;
}

/* ==========================================================================
   TUITION PACKAGES & PRICING
   ========================================================================== */
.pricing-controls {
  text-align: center;
  margin-bottom: 36px;
}

.billing-toggle {
  display: inline-flex;
  background: var(--highlight);
  padding: 5px;
  border-radius: var(--radius-pill);
  gap: 4px;
  margin-bottom: 10px;
}

.toggle-btn {
  border: none;
  background: transparent;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-navy);
  cursor: pointer;
  transition: var(--transition);
}

.toggle-btn.active {
  background: var(--primary);
  color: #FFFFFF;
}

.pricing-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.package-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.package-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.popular-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--text-navy);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.pkg-tier {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.package-card h3 {
  font-size: 1.35rem;
  margin: 4px 0 12px;
}

.pkg-price-box {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 18px;
  border: 1px dashed var(--secondary);
}

.pkg-price {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.pkg-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pkg-features {
  margin-bottom: 22px;
  flex-grow: 1;
}

.pkg-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--text-navy);
  margin-bottom: 10px;
}

.pkg-features svg {
  width: 17px;
  height: 17px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 3px;
}

.pkg-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   FREE DEMO SECTION
   ========================================================================== */
.demo-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1E3770 100%);
  color: #FFFFFF;
}

.demo-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.demo-pill {
  display: inline-block;
  background: rgba(244, 200, 90, 0.22);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.demo-subheading {
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.demo-desc {
  opacity: 0.92;
  margin-bottom: 22px;
}

.demo-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 500;
}

.demo-benefits svg {
  width: 19px;
  height: 19px;
  color: var(--accent);
  flex-shrink: 0;
}

.demo-disclaimer {
  margin-top: 22px;
  font-size: 0.8rem;
  opacity: 0.78;
}

.demo-form-card {
  background: #FFFFFF;
  color: var(--text-navy);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.demo-form-card h3 {
  font-size: 1.35rem;
  margin-bottom: 18px;
  color: var(--primary);
}

/* ==========================================================================
   FORMS & VALIDATION
   ========================================================================== */
.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-navy);
  background: #FFFFFF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(52, 87, 164, 0.12);
}

.field-error {
  font-size: 0.78rem;
  color: #D93025;
  margin-top: 4px;
  min-height: 16px;
}

.enquiry-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-page);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 14px 0 22px;
}

.privacy-note svg {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

.form-submit-row {
  text-align: center;
}

.form-status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}

.form-status.success {
  display: block;
  background: #E8F7F0;
  color: #1A5E3E;
  border: 1px solid var(--success);
}

.form-status.error {
  display: block;
  background: #FDECEA;
  color: #A51D24;
  border: 1px solid #F5C2C7;
}

/* ==========================================================================
   RESOURCES & ACHIEVEMENTS
   ========================================================================== */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.resource-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.resource-card:hover {
  transform: translateY(-4px);
  border-color: var(--secondary);
}

.res-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--highlight);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.resource-card h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.resource-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.achievement-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.ach-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.student-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ach-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--highlight);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

/* ==========================================================================
   TESTIMONIAL CAROUSEL
   ========================================================================== */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-viewport {
  overflow: hidden;
  width: 100%;
}

.testimonial-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.testimonial-slide {
  flex: 0 0 50%;
  padding: 0 12px;
}

.testimonial-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.stars {
  color: var(--accent-dark);
  margin-bottom: 12px;
  font-size: 1.05rem;
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.96rem;
  color: var(--text-navy);
  font-style: italic;
  margin-bottom: 20px;
  flex-grow: 1;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--highlight);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: var(--transition);
}

.carousel-arrow:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #CBD5E1;
  cursor: pointer;
  transition: var(--transition);
}

.dot-btn.active {
  width: 26px;
  border-radius: 99px;
  background: var(--primary);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-container {
  max-width: 860px;
}

.accordion-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 22px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.accordion-header svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-item.active .accordion-header svg {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.accordion-content {
  padding: 0 22px 18px;
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CONTACT & FOOTER
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-info-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.contact-tagline {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.contact-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.c-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--highlight);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-details-list strong {
  display: block;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.contact-details-list span,
.contact-details-list a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-navy);
}

.social-links {
  display: flex;
  gap: 12px;
  margin: 22px 0;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--highlight);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 420px;
  border: 1px solid var(--border-light);
}

.contact-map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.site-footer {
  background: #1B2436;
  color: #CBD5E1;
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: #FFFFFF;
}

.footer-desc {
  font-size: 0.9rem;
  margin-bottom: 18px;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--primary);
}

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

.footer-links li {
  margin-bottom: 9px;
}

.footer-links a {
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  font-size: 0.85rem;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal {
  display: flex;
  gap: 10px;
}

.footer-legal a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   FLOATING BOTTOM-RIGHT BUTTONS (Scroll-Top ABOVE WhatsApp)
   ========================================================================== */
.floating-actions-right {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  transition: var(--transition);
  position: relative;
}

.scroll-top-btn {
  width: 46px;
  height: 46px;
  background-color: var(--primary);
  color: #FFFFFF;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

.whatsapp-float-btn {
  background-color: var(--whatsapp);
  color: #FFFFFF;
  animation: waPulse 2.4s infinite;
}

.whatsapp-float-btn:hover {
  background-color: var(--whatsapp-dark);
  transform: scale(1.07);
}

.float-tooltip {
  position: absolute;
  right: 64px;
  background: var(--text-navy);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.whatsapp-float-btn:hover .float-tooltip {
  opacity: 1;
}

@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   MODAL / LIGHTBOX
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27, 36, 54, 0.68);
  backdrop-filter: blur(4px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--highlight);
  color: var(--text-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATION
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1120px) {
  .nav-list { gap: 12px; }
  .nav-link { font-size: 0.84rem; }
  .brand-tagline { display: none; }
  .methodology-timeline { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .hamburger-btn {
    display: inline-flex;
  }

  .hero-grid,
  .about-grid,
  .demo-container,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .card-top { left: 12px; }
  .card-bottom { right: 12px; }

  .subjects-grid,
  .levels-grid,
  .tutors-grid,
  .packages-grid,
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .package-card.popular {
    transform: none;
  }

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

  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .stats-banner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 16px;
  }

  .feature-mini-grid,
  .subjects-grid,
  .levels-grid,
  .tutors-grid,
  .packages-grid,
  .achievements-grid,
  .methodology-timeline,
  .resources-grid,
  .form-row-2,
  .form-row-3,
  .form-grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-slide {
    flex: 0 0 100%;
  }

  .hero-image-frame img {
    height: 310px;
  }

  .floating-actions-right {
    right: 14px;
    bottom: 14px;
  }
}
