/* ==========================================================================
   English iTutor - Main Stylesheet
   ========================================================================== */

:root {
  --primary: #3b5bfd;
  --primary-dark: #263ee0;
  --primary-light: #eef1ff;
  --accent: #ffb020;
  --accent-dark: #e89a0c;
  --ink: #10162f;
  --text: #42476b;
  --text-light: #767b9e;
  --bg: #ffffff;
  --bg-alt: #f6f7fd;
  --border: #e7e9f7;
  --success: #17b26a;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(16, 22, 47, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 22, 47, 0.08);
  --shadow-lg: 0 20px 48px rgba(16, 22, 47, 0.14);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--ink);
  line-height: 1.25;
  font-weight: 700;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: 36px;
  margin-bottom: 14px;
}

.section-head p {
  font-size: 17px;
  color: var(--text-light);
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(59, 91, 253, 0.28);
}

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

.btn-accent {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(255, 176, 32, 0.35);
}

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

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

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

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.topbar {
  background: var(--ink);
  color: #cfd3ec;
  font-size: 13px;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}

.topbar-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.topbar-info a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cfd3ec;
}

.topbar-info a:hover {
  color: #fff;
}

.topbar-social {
  display: flex;
  gap: 12px;
}

.topbar-social a {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.topbar-social a:hover {
  background: var(--primary);
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
}

.logo .logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #7c93ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

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

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

.nav-links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.25s;
}

/* ==========================================================================
   Breadcrumb (inner pages)
   ========================================================================== */
.page-hero {
  background: linear-gradient(160deg, var(--ink) 0%, #1c2761 100%);
  color: #fff;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 176, 32, 0.25), transparent 70%);
  top: -160px;
  right: -100px;
}

.page-hero h1 {
  color: #fff;
  font-size: 40px;
  margin-bottom: 12px;
}

.page-hero p {
  color: #c6cbf0;
  max-width: 560px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #aab0e6;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: #aab0e6;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb .sep {
  opacity: 0.6;
}

.breadcrumb .current {
  color: var(--accent);
}

/* ==========================================================================
   Hero (Home)
   ========================================================================== */
.hero {
  position: relative;
  padding: 72px 0 100px;
  overflow: hidden;
  background: linear-gradient(180deg, #eef1ff 0%, #ffffff 78%);
}

.hero::before {
  content: '';
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 32, 0.25), transparent 68%);
  top: -220px;
  right: -160px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 50px;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: var(--primary);
  position: relative;
  white-space: nowrap;
}

.hero p.lead {
  font-size: 18px;
  color: var(--text-light);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.play-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
}

.play-link .play-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 18px;
}

.avatar-stack {
  display: flex;
}

.avatar-stack .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid #fff;
  margin-left: -12px;
  background: linear-gradient(135deg, var(--primary), #7c93ff);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-stack .avatar:first-child {
  margin-left: 0;
}

.hero-trust .stars {
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 2px;
}

.hero-trust small {
  color: var(--text-light);
  font-size: 13px;
}

.hero-visual {
  position: relative;
}

.hero-visual .visual-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.floating-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  animation: floaty 4s ease-in-out infinite;
}

.floating-card .icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fc-1 { top: -18px; left: -30px; }
.fc-2 { bottom: 30px; right: -34px; animation-delay: 1.2s; }
.fc-3 { bottom: -22px; left: 40px; animation-delay: 2s; }

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

/* Stats bar */
.stats-bar {
  background: var(--ink);
  padding: 0;
}

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

.stat-item {
  text-align: center;
  padding: 40px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

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

.stat-item .num {
  font-family: 'Poppins', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
}

.stat-item .num span {
  color: var(--accent);
}

.stat-item .label {
  color: #b6bbe6;
  font-size: 14px;
  margin-top: 6px;
}

/* ==========================================================================
   Logo strip
   ========================================================================== */
.logo-strip {
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}

.logo-strip p {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 26px;
}

.logo-strip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  opacity: 0.6;
}

.logo-strip-row span {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-light);
}

/* ==========================================================================
   Feature cards
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  border: 1px solid transparent;
  transition: 0.25s;
}

.feature-card:hover {
  background: #fff;
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
}

.feature-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

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

.bg-blue { background: linear-gradient(135deg, var(--primary), #7c93ff); }
.bg-amber { background: linear-gradient(135deg, var(--accent), #ffcf6b); }
.bg-green { background: linear-gradient(135deg, var(--success), #5fe0a5); }
.bg-pink { background: linear-gradient(135deg, #fb5f8f, #ff9bb8); }
.bg-purple { background: linear-gradient(135deg, #8b5cf6, #c4b0fb); }
.bg-teal { background: linear-gradient(135deg, #0ea5b7, #6fe0ea); }

/* ==========================================================================
   How it works
   ========================================================================== */
.steps-wrap {
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary-light);
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-sm);
}

.step-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-light);
}

/* ==========================================================================
   Course / Program cards
   ========================================================================== */
.section-alt {
  background: var(--bg-alt);
}

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

.course-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: 0.25s;
}

.course-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.course-thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
}

.course-level {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.course-body {
  padding: 24px;
}

.course-body h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.course-body p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 18px;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 13px;
  color: var(--text-light);
}

.course-meta .price {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
}

/* ==========================================================================
   Tutors
   ========================================================================== */
.tutors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tutor-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 26px 22px;
  text-align: center;
  transition: 0.25s;
}

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

.tutor-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 26px;
}

.tutor-card h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.tutor-card .role {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.tutor-card .stars {
  color: var(--accent);
  font-size: 13px;
}

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

.testi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.testi-card .stars {
  color: var(--accent);
  margin-bottom: 16px;
  font-size: 15px;
}

.testi-card p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 22px;
}

.testi-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7c93ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
}

.testi-person h4 {
  font-size: 14px;
  margin-bottom: 2px;
}

.testi-person span {
  font-size: 12px;
  color: var(--text-light);
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background: linear-gradient(160deg, var(--ink), #1c2761);
  color: #fff;
  transform: scale(1.04);
  box-shadow: var(--shadow-lg);
  position: relative;
  border: none;
}

.price-card.featured h3,
.price-card.featured .price {
  color: #fff;
}

.price-card.featured .price-desc,
.price-card.featured li {
  color: #c6cbf0;
}

.badge-popular {
  position: absolute;
  top: -14px;
  right: 28px;
  background: var(--accent);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}

.price-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.price-desc {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.price {
  font-family: 'Poppins', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
}

.price-card ul {
  margin: 24px 0 28px;
  flex-grow: 1;
}

.price-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text);
}

.price-card li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--success);
}

.price-card.featured li svg {
  color: var(--accent);
}

/* ==========================================================================
   Live Slot Availability
   ========================================================================== */
.slot-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(23, 178, 106, 0.1);
  color: var(--success);
  font-weight: 600;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.slot-live-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  position: relative;
}

.slot-live-badge.on-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #d7ffe9;
}

.slot-live-badge.on-dark .pulse-dot {
  background: #4ade80;
}

.slot-live-badge.on-dark .pulse-dot::after {
  background: #4ade80;
}

.slot-live-badge .pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--success);
  opacity: 0.35;
  animation: pulseDot 1.8s ease-out infinite;
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 0.35; }
  100% { transform: scale(2.4); opacity: 0; }
}

.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 36px;
  font-size: 13.5px;
  color: var(--text-light);
}

.schedule-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.schedule-legend .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-available { background: var(--success); }
.dot-limited { background: var(--accent); }
.dot-full { background: var(--text-light); }

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.schedule-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: 0.25s;
}

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

.schedule-card h4 {
  font-size: 15px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.schedule-card h4 .day-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
  background: rgba(23, 178, 106, 0.1);
  padding: 3px 9px;
  border-radius: 999px;
}

.slot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text);
}

.slot-row:last-child {
  border-bottom: none;
}

.slot-status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.slot-status.available {
  background: rgba(23, 178, 106, 0.12);
  color: var(--success);
}

.slot-status.limited {
  background: rgba(255, 176, 32, 0.16);
  color: var(--accent-dark);
}

.slot-status.full {
  background: var(--bg-alt);
  color: var(--text-light);
}

.schedule-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
  font-size: 13.5px;
  color: var(--text-light);
  text-align: center;
}

/* ==========================================================================
   Payment Methods
   ========================================================================== */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.payment-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px 26px;
  border: 1px solid var(--border);
  position: relative;
  transition: 0.25s;
}

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

.payment-card.featured-payment {
  background: var(--primary-light);
  border: 2px solid var(--primary);
}

.payment-badge {
  position: absolute;
  top: -13px;
  right: 20px;
  background: var(--accent);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.payment-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.payment-card p {
  font-size: 13.5px;
  color: var(--text-light);
}

.qris-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 44px;
  margin-top: 48px;
}

.qris-visual {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.qris-visual .qr-code {
  width: 160px;
  height: 160px;
}

.qris-visual small {
  color: var(--text-light);
  font-size: 12.5px;
}

.qris-steps {
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qris-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text);
}

.qris-steps .step-circle {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qris-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.qris-tags span {
  background: #fff;
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  padding: 6px 14px;
  border-radius: 999px;
}

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

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 15.5px;
}

.faq-question .icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: 0.25s;
}

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

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

.faq-answer p {
  padding: 0 24px 22px;
  color: var(--text-light);
  font-size: 14.5px;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #6b7fff 100%);
  border-radius: var(--radius-lg);
  padding: 56px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  right: -80px;
  bottom: -100px;
}

.cta-banner h2 {
  color: #fff;
  font-size: 30px;
  margin-bottom: 10px;
}

.cta-banner p {
  color: #e4e7ff;
  max-width: 420px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

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

.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: 0.25s;
}

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

.blog-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--primary-light), #dfe4ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.blog-body {
  padding: 22px;
}

.blog-cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  display: block;
}

.blog-body h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.blog-body p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 14px;
}

.blog-meta {
  font-size: 12.5px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Generic content page (Terms/Privacy)
   ========================================================================== */
.legal-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 96px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
}

.legal-toc h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
  margin-bottom: 14px;
}

.legal-toc a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.legal-toc a:last-child {
  border-bottom: none;
}

.legal-toc a:hover {
  color: var(--primary);
}

.legal-content h2 {
  font-size: 22px;
  margin: 36px 0 14px;
  scroll-margin-top: 100px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--text);
}

.legal-content ul {
  margin: 0 0 16px 0;
  padding-left: 0;
}

.legal-content li {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 10px;
  padding-left: 26px;
  position: relative;
}

.legal-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--primary);
}

.legal-content strong {
  color: var(--ink);
}

.legal-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 36px;
  font-size: 13.5px;
  color: var(--text-light);
}

.legal-meta strong {
  color: var(--ink);
}

.contact-highlight {
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 10px;
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-item .icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 14px;
  color: var(--text-light);
}

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

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

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--bg-alt);
  transition: 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 320px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  flex-direction: column;
  gap: 10px;
  margin-top: 40px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: #b6bbe6;
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: #9ba0d4;
  margin-bottom: 22px;
  max-width: 280px;
}

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

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: 0.2s;
}

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

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 14px;
  color: #9ba0d4;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-newsletter p {
  font-size: 14px;
  color: #9ba0d4;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 12px 16px;
  border-radius: 999px 0 0 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 13.5px;
}

.newsletter-form input::placeholder {
  color: #7f85bb;
}

.newsletter-form input:focus {
  outline: none;
}

.newsletter-form button {
  border-radius: 0 999px 999px 0;
  padding: 12px 20px;
}

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

.footer-badges span {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  border-radius: 6px;
  color: #cfd3ec;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  font-size: 13px;
  color: #8489bd;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom .links {
  display: flex;
  gap: 20px;
}

.footer-bottom .links a {
  color: #8489bd;
}

.footer-bottom .links a:hover {
  color: #fff;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
  background: rgba(23, 178, 106, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
}

.badge-dot .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 90;
  border: none;
  cursor: pointer;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
  }
  .features-grid,
  .courses-grid,
  .testi-grid,
  .pricing-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tutors-grid,
  .steps-grid,
  .payment-grid,
  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }
  .qris-panel {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .legal-wrap {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    position: static;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .price-card.featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta .btn-outline,
  .topbar {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .hero h1 {
    font-size: 34px;
  }
  section {
    padding: 60px 0;
  }
  .section-head h2 {
    font-size: 28px;
  }
  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 40px 28px;
  }
  .features-grid,
  .courses-grid,
  .testi-grid,
  .pricing-grid,
  .blog-grid,
  .tutors-grid,
  .steps-grid,
  .payment-grid,
  .schedule-grid {
    grid-template-columns: 1fr;
  }
  .qris-panel {
    padding: 26px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .price-card.featured {
    transform: none;
  }
}

/* Mobile nav drawer */
.nav-links.mobile-open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 24px 28px;
  gap: 4px;
  box-shadow: var(--shadow-md);
  border-top: 1px solid var(--border);
}

.nav-links.mobile-open a {
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
