/* ============================================
   BRAINIAC EDUCATION — GLOBAL STYLES
   Colors: #FFFFFF #E6F9FF #26A9E0 #0C7CB7 #FDD900
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800&display=swap');

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

:root {
  --white:      #FFFFFF;
  --light-blue: #E6F9FF;
  --sky:        #26A9E0;
  --deep-blue:  #0C7CB7;
  --yellow:     #FDD900;
  --yellow-dark:#E6C400;
  --text-dark:  #1a2a3a;
  --text-mid:   #3a5068;
  --text-light: #6b8aa0;
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  40px;
  --shadow-sm:  0 2px 8px rgba(12,124,183,0.08);
  --shadow-md:  0 8px 32px rgba(12,124,183,0.13);
  --shadow-lg:  0 20px 60px rgba(12,124,183,0.18);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --- Utility --- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-block;
  background: var(--light-blue);
  color: var(--deep-blue);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-headline {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  color: var(--text-dark);
  margin-bottom: 14px;
}

.section-headline span { color: var(--sky); }

.section-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 640px;
  margin: 0 auto 48px;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--yellow);
  color: var(--text-dark);
  box-shadow: 0 4px 16px rgba(253,217,0,0.35);
}
.btn-primary:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(253,217,0,0.45);
}

.btn-secondary {
  background: var(--white);
  color: var(--deep-blue);
  border: 2px solid var(--sky);
}
.btn-secondary:hover {
  background: var(--light-blue);
  transform: translateY(-2px);
}

.btn-sky {
  background: var(--sky);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(38,169,224,0.35);
}
.btn-sky:hover {
  background: var(--deep-blue);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--deep-blue);
  border: 2px solid rgba(38,169,224,0.4);
  font-weight: 600;
  font-size: 0.9rem;
}
.btn-ghost:hover {
  border-color: var(--sky);
  background: var(--light-blue);
}

.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(38,169,224,0.12);
  box-shadow: 0 2px 20px rgba(12,124,183,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.site-logo { height: 44px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 4px; }

/* --- Nav Dropdowns --- */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }

.nav-dropdown-trigger {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-mid);
  padding: 8px 14px;
  border-radius: 50px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}
.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger {
  color: var(--deep-blue);
  background: var(--light-blue);
}

.nav-chevron {
  font-size: 0.65rem;
  transition: transform 0.2s;
  display: inline-block;
}
.nav-dropdown:hover .nav-chevron,
.nav-dropdown.open .nav-chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(12,124,183,0.12);
  border: 1px solid var(--light-blue);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-section { padding: 4px 0; }
.dropdown-section + .dropdown-section { border-top: 1px solid var(--light-blue); }

.dropdown-section-header {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sky);
  padding: 8px 18px 4px;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 18px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: background 0.15s, color 0.15s;
  border-radius: 0;
}
.nav-dropdown-menu a:hover {
  background: var(--light-blue);
  color: var(--deep-blue);
}

/* Mobile dropdown behaviour */
.mobile-menu .nav-dropdown { display: block; width: 100%; position: static; }
.mobile-menu .nav-dropdown-trigger {
  width: 100%;
  justify-content: space-between;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.mobile-menu .nav-dropdown-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border: none;
  border-radius: 0;
  padding: 0;
  background: var(--light-blue);
  display: none;
}
.mobile-menu .nav-dropdown.open .nav-dropdown-menu { display: block; }
.mobile-menu .nav-dropdown-menu a {
  padding: 9px 16px 9px 24px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(38,169,224,0.15);
}
.mobile-menu .dropdown-section-header { padding: 8px 16px 2px 16px; }

/* ===== Nav Sub-Dropdown (IGCSE Syllabus — hover flyout to the right) ===== */
.nav-sub-dropdown { position: relative; }

/* Trigger: inherits .nav-dropdown-menu a styles; only additions here */
.nav-sub-trigger { white-space: nowrap; }
.nav-sub-dropdown:hover .nav-sub-trigger { background: var(--light-blue); color: var(--deep-blue); }
.nav-sub-trigger.active { color: var(--deep-blue); font-weight: 700; }

.sub-arrow {
  float: right;
  font-size: 0.6rem;
  color: var(--sky);
  margin-left: 6px;
}

/* Desktop: flyout panel to the right, triggered by hover */
.site-nav .nav-sub-menu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(12,124,183,0.12);
  border: 1px solid var(--light-blue);
  padding: 6px 0;
  z-index: 300;
}
.site-nav .nav-sub-dropdown:hover .nav-sub-menu { display: block; }
.site-nav .nav-sub-menu .dropdown-section-header { padding: 8px 18px 3px; }
.site-nav .nav-sub-menu a { padding: 8px 18px; font-size: 0.88rem; }

/* Mobile: click accordion */
.mobile-menu .nav-sub-dropdown { position: static; }
.mobile-menu .nav-sub-menu {
  display: none;
  position: static;
  background: rgba(255,255,255,0.4);
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}
.mobile-menu .nav-sub-dropdown.open .nav-sub-menu { display: block; }
.mobile-menu .nav-sub-dropdown.open .sub-arrow { transform: rotate(90deg); }
.mobile-menu .nav-sub-trigger {
  padding: 9px 16px 9px 24px;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(38,169,224,0.15);
}
.mobile-menu .nav-sub-menu .dropdown-section-header { padding: 8px 16px 2px 36px; }
.mobile-menu .nav-sub-menu a { padding: 9px 16px 9px 44px; font-size: 0.82rem; border-bottom: 1px solid rgba(38,169,224,0.1); }

.site-nav a {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-mid);
  padding: 8px 14px;
  border-radius: 50px;
  transition: var(--transition);
}
.site-nav a:hover, .site-nav a.active {
  color: var(--deep-blue);
  background: var(--light-blue);
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--deep-blue);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--light-blue);
  padding: 16px 24px 24px;
  gap: 4px;
}
.mobile-menu a {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-mid);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: block;
}
.mobile-menu a:hover { color: var(--deep-blue); background: var(--light-blue); }
.mobile-menu .btn { margin-top: 12px; justify-content: center; }
.mobile-menu.open { display: flex; }

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--white) 0%, var(--light-blue) 100%);
  padding: 80px 0 60px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(38,169,224,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--text-dark);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero h1 span { color: var(--sky); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  background: var(--white);
  padding: 6px 14px;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
}

.trust-pill .icon { font-size: 1rem; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--light-blue);
}

.tutor-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--deep-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.tutor-info .name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.tutor-info .meta {
  font-size: 0.78rem;
  color: var(--text-light);
}

.live-badge {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #059669;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 50px;
}
.live-dot {
  width: 7px;
  height: 7px;
  background: #059669;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.class-topic {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.class-meta-text {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.student-roster {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.student-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--light-blue);
  border-radius: var(--radius-sm);
}

.student-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}

.student-name { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); }
.student-school { font-size: 0.75rem; color: var(--text-light); }
.student-star { margin-left: auto; color: var(--yellow-dark); font-size: 0.8rem; }

.class-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-light);
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--light-blue);
  border-radius: 50px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sky), var(--deep-blue));
  border-radius: 50px;
  width: 65%;
}

.hero-float-badge {
  position: absolute;
  background: var(--yellow);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  font-family: 'Poppins', sans-serif;
}
.hero-float-badge.top-left {
  top: -20px;
  left: -30px;
}
.hero-float-badge.bottom-right {
  bottom: -20px;
  right: -30px;
}
.badge-label { font-size: 0.7rem; color: var(--text-mid); font-weight: 600; }
.badge-value { font-size: 1.2rem; font-weight: 800; color: var(--text-dark); }

/* --- Section spacing --- */
section { padding: 80px 0; }
.section-alt { background: var(--light-blue); }
.section-dark {
  background: linear-gradient(135deg, var(--deep-blue) 0%, #0a5f8e 100%);
  color: var(--white);
}
.section-dark .section-headline { color: var(--white); }
.section-dark .section-sub { color: rgba(255,255,255,0.8); }

/* --- Proof Bar --- */
.proof-bar {
  background: var(--deep-blue);
  padding: 20px 0;
}
.proof-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.proof-bar-text {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 600;
}
.school-chip {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* --- Problem Cards --- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.problem-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--sky);
  transition: var(--transition);
}
.problem-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.problem-icon {
  width: 56px;
  height: 56px;
  background: var(--light-blue);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 20px;
}

.problem-card h3 {
  font-size: 1rem;
  color: var(--deep-blue);
  margin-bottom: 8px;
}
.problem-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* --- Hero Visual Card (stats variant) --- */
.hvc-card { padding: 0 !important; overflow: hidden; }

.hvc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--light-blue);
  padding: 12px 28px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--deep-blue);
}
.hvc-header-icon { font-size: 1rem; }

.hvc-stat { padding: 28px 28px 24px; }
.hvc-stat-gold { border-left: 5px solid var(--yellow); }
.hvc-stat-sky  { border-left: 5px solid var(--sky); }

.hvc-top-row { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 6px; }

.hvc-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 4.8rem;
  line-height: 1;
  color: var(--deep-blue);
}
.hvc-stat-sky .hvc-num { color: var(--sky); }
.hvc-unit { font-size: 2.6rem; }

.hvc-badge-icon {
  font-size: 2.2rem;
  margin-top: 6px;
}

.hvc-label {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.5;
}

.hvc-bar-wrap {
  background: var(--light-blue);
  border-radius: 50px;
  height: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hvc-bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  border-radius: 50px;
  opacity: 0.85;
}
.hvc-bar-label {
  position: relative;
  z-index: 1;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--text-dark);
  padding-left: 14px;
}

.hvc-divider { height: 1px; background: var(--light-blue); }

/* --- Singapore Advantage --- */
.advantage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.advantage-stat-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.stat-badge {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--sky), var(--deep-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.stat-content .number {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--deep-blue);
  line-height: 1;
}
.stat-content .label {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-top: 4px;
}

.uni-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.uni-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--light-blue);
  color: var(--deep-blue);
  border-radius: 50px;
  padding: 8px 16px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
}

/* --- Comparison Table --- */
.compare-wrapper {
  overflow-x: auto;
  margin-top: 48px;
  padding-top: 20px;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: visible;
  box-shadow: var(--shadow-md);
}

.compare-table thead th:first-child { border-top-left-radius: var(--radius-lg); }
.compare-table thead th:last-child { border-top-right-radius: var(--radius-lg); }
.compare-table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--radius-lg); }
.compare-table tbody tr:last-child td:last-child { border-bottom-right-radius: var(--radius-lg); }

.compare-table th {
  padding: 20px 24px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
}

.compare-table th:first-child { text-align: left; }

.compare-table th.col-brainiac {
  background: linear-gradient(135deg, var(--sky), var(--deep-blue));
  color: var(--white);
  position: relative;
}

.compare-table th.col-brainiac::before {
  content: '★ BEST VALUE';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--text-dark);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 50px;
  white-space: nowrap;
}

.compare-table th.col-other { background: var(--light-blue); color: var(--text-mid); }

.compare-table td {
  padding: 16px 24px;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid rgba(38,169,224,0.1);
}
.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-dark);
}
.compare-table td.col-brainiac {
  background: rgba(38,169,224,0.05);
  font-weight: 700;
  color: var(--deep-blue);
}
.compare-table .check { color: #059669; font-size: 1.1rem; }
.compare-table .cross { color: #ef4444; font-size: 1.1rem; }
.compare-table .partial { color: var(--yellow-dark); font-size: 1.1rem; }

/* --- Subjects Cards --- */
.subjects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}

.subject-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.subject-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--sky), var(--deep-blue));
}
.subject-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.subject-icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.subject-card h3 {
  font-size: 1.35rem;
  color: var(--deep-blue);
  margin-bottom: 12px;
}

.subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.subject-tag {
  background: var(--light-blue);
  color: var(--deep-blue);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

.subject-card p { font-size: 0.92rem; color: var(--text-mid); line-height: 1.65; }

/* Subject clickable link rows */
.subj-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  width: 100%;
}

.subj-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: var(--light-blue);
  border-radius: var(--radius-md);
  border: 2px solid rgba(38,169,224,0.2);
  text-decoration: none;
  transition: var(--transition);
  width: 100%;
  box-sizing: border-box;
}

.subj-link:hover {
  background: var(--sky);
  border-color: var(--sky);
  box-shadow: 0 4px 16px rgba(38,169,224,0.3);
  transform: translateY(-2px);
}

.subj-link-label {
  flex: 1;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--deep-blue);
  text-align: left;
}

.subj-link:hover .subj-link-label { color: var(--white); }

.subj-code {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-light);
  background: rgba(38,169,224,0.12);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.03em;
}

.subj-link:hover .subj-code {
  background: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
}

.subj-link-level {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
  background: rgba(255,255,255,0.7);
  padding: 3px 8px;
  border-radius: 20px;
}

.subj-link:hover .subj-link-level {
  background: rgba(255,255,255,0.25);
  color: var(--white);
}

.subj-link-arrow {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sky);
  transition: transform 0.18s ease;
  flex-shrink: 0;
}

.subj-link:hover .subj-link-arrow {
  color: var(--white);
  transform: translateX(4px);
}

/* --- Steps --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--deep-blue));
  z-index: 0;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--deep-blue));
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(38,169,224,0.4);
}

.step-icon { font-size: 1.8rem; margin-bottom: 12px; }

.step-card h3 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.step-card p { font-size: 0.85rem; color: var(--text-mid); line-height: 1.6; }

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.testimonial-card::before {
  content: '"';
  font-family: 'Poppins', sans-serif;
  font-size: 5rem;
  font-weight: 900;
  color: var(--light-blue);
  position: absolute;
  top: 10px;
  left: 24px;
  line-height: 1;
}

.stars { color: var(--yellow-dark); margin-bottom: 16px; font-size: 1rem; letter-spacing: 2px; }

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

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

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}

.author-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-dark);
}
.author-school {
  font-size: 0.78rem;
  color: var(--text-light);
}

.grade-badge {
  margin-left: auto;
  background: var(--light-blue);
  color: var(--deep-blue);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  text-align: center;
}
.grade-badge .from { color: var(--text-light); }
.grade-badge .arrow { color: var(--sky); }
.grade-badge .to { color: var(--deep-blue); }

.results-strip {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding: 32px;
  background: var(--light-blue);
  border-radius: var(--radius-lg);
}

.result-stat { text-align: center; }
.result-stat .num {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--deep-blue);
  display: block;
}
.result-stat .desc { font-size: 0.82rem; color: var(--text-mid); margin-top: 4px; }

/* --- Pricing level table --- */
.pricing-levels-wrap {
  overflow-x: auto;
  margin-top: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.pricing-level-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pricing-level-table thead th {
  background: var(--deep-blue);
  color: white;
  padding: 14px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.pricing-level-table tbody td { text-align: center; }
.pricing-level-table tbody tr { border-bottom: 1px solid var(--light-blue); }
.pricing-level-table tbody tr:last-child { border-bottom: none; }
.pricing-level-table tbody tr:hover { background: #f5fcff; }
.pricing-level-table tbody td {
  padding: 18px 20px;
  font-size: 0.9rem;
  color: var(--text-dark);
  vertical-align: middle;
}
.level-years { font-size: 0.78rem; color: var(--text-light); }
.rate-cell { color: var(--text-mid); font-size: 0.88rem; }
.price-cell {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--deep-blue);
}
.price-cell.bundle { color: var(--sky); }
.save-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--text-dark);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cta-cell { display: flex; flex-direction: column; gap: 8px; min-width: 150px; }

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--transition);
  border: 2px solid transparent;
}

.pricing-card.featured {
  border-color: var(--sky);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--text-dark);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 4px 16px;
  border-radius: 50px;
  white-space: nowrap;
}

.plan-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.plan-price {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--deep-blue);
  line-height: 1;
  margin: 16px 0 6px;
}

.plan-price .currency { font-size: 1.2rem; vertical-align: top; margin-top: 6px; display: inline-block; }
.plan-price .per { font-size: 0.9rem; color: var(--text-light); font-weight: 500; }

.plan-desc { font-size: 0.85rem; color: var(--text-mid); margin-bottom: 24px; }

.plan-features { list-style: none; margin-bottom: 28px; }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--light-blue);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li .checkmark { color: #059669; font-weight: 800; flex-shrink: 0; margin-top: 1px; }

.guarantee-box {
  background: linear-gradient(135deg, var(--light-blue), #d4f0fb);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  text-align: center;
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.guarantee-icon { font-size: 3rem; }
.guarantee-text { flex: 1; text-align: left; }
.guarantee-text h3 {
  font-size: 1.2rem;
  color: var(--deep-blue);
  margin-bottom: 8px;
}
.guarantee-text p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 0; }

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

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid rgba(38,169,224,0.15);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  gap: 16px;
  transition: var(--transition);
}
.faq-question:hover { color: var(--deep-blue); }

.faq-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--light-blue);
  color: var(--deep-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); background: var(--sky); color: white; }

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  border-top: 1px solid var(--light-blue);
  padding-top: 16px;
}
.faq-item.open .faq-answer { display: block; }

/* --- Final CTA band --- */
.cta-band {
  background: linear-gradient(135deg, var(--sky) 0%, var(--deep-blue) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: rgba(253,217,0,0.12);
  border-radius: 50%;
}
.cta-band::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 250px; height: 250px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.cta-band p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}
.cta-band-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* --- Article hero two-column layout --- */
.art-hero-inner { display: flex; align-items: center; gap: 48px; }
.art-hero-text { flex: 0 0 55%; min-width: 0; }
.art-hero-img {
  flex: 1;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
}
@media (max-width: 768px) {
  .art-hero-inner { flex-direction: column; }
  .art-hero-img { max-height: 220px; }
}

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

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

.footer-brand p {
  font-size: 0.88rem;
  margin: 16px 0 20px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

.footer-trust-line {
  font-style: italic;
  font-size: 0.82rem;
  color: var(--sky);
  font-weight: 600;
}

.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--sky); }

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

.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); }

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

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
}
.social-btn:hover { background: var(--sky); color: white; }

.footer-logo { height: 40px; background: white; border-radius: 8px; padding: 4px 10px; }

/* --- WhatsApp float --- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  text-decoration: none;
  transition: var(--transition);
  animation: float-bob 3s ease-in-out infinite;
}
.whatsapp-float:hover {
  background: #1da851;
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37,211,102,0.55);
}

@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* --- Page hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.page-hero p { font-size: 1rem; color: var(--text-mid); max-width: 560px; margin: 0 auto; }

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.82rem;
  color: var(--text-light);
}
.breadcrumb a { color: var(--sky); }
.breadcrumb span { margin: 0 6px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-grid, .advantage-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: scale(1); }
}

@media (max-width: 768px) {
  .site-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .problem-grid { grid-template-columns: 1fr; }
  .subjects-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .compare-table th, .compare-table td { padding: 12px 14px; font-size: 0.82rem; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .results-strip { gap: 24px; }
  .hero-float-badge { display: none; }
  .guarantee-box { flex-direction: column; text-align: center; }
  .guarantee-text { text-align: center; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .btn-lg { padding: 16px 28px; }
  .cta-band-buttons { flex-direction: column; align-items: center; }
}
