:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.92);
  --text: #1f2a44;
  --muted: #5f6b7a;
  --line: #e3e8ee;
  --brand: #347a46;
  --brand-dark: #2d673c;
  --brand-light: #eef6f0;
  --blue: #2f67e8;
  --blue-dark: #2251bf;
  --shadow-soft: 0 12px 32px rgba(26, 37, 57, 0.05);
  --shadow-card: 0 14px 28px rgba(20, 31, 55, 0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  text-decoration: none;
  color: var(--brand);
}

img {
  max-width: 100%;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-main {
  padding: 0 0 48px;
}

/* Header */

.site-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}

.nav-wrap {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 58px;
  width: auto;
  display: block;
}

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

.main-nav a {
  color: #243047;
  font-size: 18px;
  font-weight: 500;
}

.nav-join-btn {
  background: var(--brand);
  color: #ffffff !important;
  padding: 10px 20px;
  border-radius: 14px;
  font-weight: 700 !important;
  box-shadow: 0 8px 18px rgba(52, 122, 70, 0.16);
}

.nav-join-btn:hover {
  background: var(--brand-dark);
}

/* Flash */

.flash-wrap {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.flash {
  padding: 12px 14px;
  border-radius: 12px;
}

.flash.success {
  background: #e7f8ed;
}

.flash.warning {
  background: #fff3cd;
}

.flash.danger {
  background: #fde4e4;
}

.flash.info {
  background: #e8f0fe;
}

/* Hero */

.hero-section {
  padding: 28px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: stretch;
  gap: 0;
  min-height: 520px;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at left bottom, rgba(208, 230, 214, 0.45), transparent 30%),
    linear-gradient(90deg, rgba(246,247,249,0.98) 0%, rgba(246,247,249,0.94) 48%, rgba(246,247,249,0.68) 68%, rgba(246,247,249,0.18) 100%);
  box-shadow: var(--shadow-soft);
}

.hero-copy {
  padding: 64px 54px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: 62px;
  line-height: 1.12;
  letter-spacing: -1px;
  color: var(--text);
  max-width: 720px;
}

.hero-copy p {
  margin: 0 0 26px;
  font-size: 22px;
  line-height: 1.65;
  color: #4f5d73;
  max-width: 710px;
}

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

.hero-btn {
  min-height: 62px;
  padding: 0 28px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  border: 1px solid transparent;
}

.hero-btn-primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(52, 122, 70, 0.18);
}

.hero-btn-primary:hover {
  background: var(--brand-dark);
}

.hero-btn-light {
  background: rgba(255, 255, 255, 0.94);
  color: #243047;
  border-color: #e7eaf1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.03);
}

.hero-btn-light img {
  height: 24px;
  margin-right: 12px;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 16px;
  color: #7c869a;
}

.hero-links a {
  color: #3b5fbf;
  font-weight: 500;
}

.hero-image-wrap {
  position: relative;
  min-height: 520px;
}

.hero-image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(246,247,249,0.72) 0%,
      rgba(246,247,249,0.20) 16%,
      rgba(246,247,249,0.00) 34%);
  z-index: 1;
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.98) brightness(1.01);
}

/* Reassurance */

.reassurance-section {
  margin: -24px auto 40px;
  max-width: 1120px;
  position: relative;
  z-index: 5;
}

.reassurance-heading {
  width: fit-content;
  margin: 0 auto 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(227, 232, 238, 0.9);
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 22px;
  font-weight: 500;
  color: #33425f;
  box-shadow: 0 10px 24px rgba(20, 31, 55, 0.05);
}

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

.reassurance-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(227, 232, 238, 0.95);
  border-radius: 24px;
  padding: 24px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(4px);
}

.reassurance-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(180deg, #86c476 0%, #67a958 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.reassurance-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
  color: #243047;
}

.reassurance-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #64748b;
}

/* Sections */

.learning-section,
.how-section,
.featured-section,
.final-cta-section {
  margin-top: 30px;
}

.learning-section h2,
.how-section h2,
.featured-section h2,
.final-cta-card h2 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.2;
  color: #243047;
  letter-spacing: -0.5px;
}

/* Learning cards */

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

.learning-card {
  display: block;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(227, 232, 238, 0.95);
  border-radius: 24px;
  overflow: hidden;
  color: inherit;
  box-shadow: 0 10px 24px rgba(20, 31, 55, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.learning-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.07);
}

.learning-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.learning-body {
  padding: 16px 18px 18px;
}

.learning-body h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #243047;
}

.learning-body p {
  margin: 0;
  font-size: 16px;
  color: #6b7280;
}

/* How it works */

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

.how-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(227, 232, 238, 0.95);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(20, 31, 55, 0.04);
}

.how-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 14px;
}

.how-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #243047;
}

.how-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #64748b;
}

/* Featured tutors */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head a {
  font-weight: 600;
}

.section-subtext {
  margin: 6px 0 0;
  font-size: 15px;
  color: #6b7280;
}

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

.featured-card,
.empty-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(227, 232, 238, 0.95);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(20, 31, 55, 0.04);
}

.featured-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #eef2fa;
}

.featured-body {
  padding: 16px;
}

.featured-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #243047;
}

.featured-qual,
.featured-subjects,
.featured-rating {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
  color: #5f6b7a;
}

.featured-badge {
  display: inline-block;
  margin: 6px 0 10px;
  background: #eef6f0;
  color: var(--brand);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.small-cta {
  display: inline-block;
  margin-top: 4px;
  background: var(--brand-light);
  color: var(--brand);
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

/* Final CTA */

.final-cta-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(244,247,245,0.98) 100%);
  border: 1px solid rgba(227, 232, 238, 0.95);
  border-radius: 28px;
  padding: 34px 24px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(20, 31, 55, 0.04);
}

.final-cta-card p {
  margin: 0;
  font-size: 17px;
  color: #64748b;
}

.final-cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* Generic legacy support */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(14, 32, 73, 0.04);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid.cards {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.badge {
  display: inline-block;
  background: #eef6f0;
  color: var(--brand);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge.alt {
  background: #eefbf8;
  color: #116e70;
}

.muted {
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid.two-col {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-grid.compact {
  grid-template-columns: 1fr auto;
}

input,
select,
textarea,
button,
progress {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

textarea {
  min-height: 110px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.clean-list {
  padding-left: 18px;
}

.review {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.profile-pic {
  width: 100%;
  max-width: 240px;
  border-radius: 14px;
  object-fit: cover;
  background: #eef2fa;
}

.form-card.narrow,
.narrow {
  max-width: 560px;
  margin: 0 auto;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}

.video-shell {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.video-box {
  background: #152238;
  color: #ffffff;
  border-radius: 16px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-box.observer {
  outline: 3px solid #ffd54f;
}

.observer-banner {
  background: #fff2cc;
  border: 1px solid #ffe08a;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0 18px;
  font-weight: 700;
}

.progress-box progress {
  width: 100%;
  height: 18px;
}

/* Responsive */

@media (max-width: 1180px) {
  .hero-copy h1 {
    font-size: 52px;
  }

  .hero-copy p {
    font-size: 19px;
  }

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

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

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    padding: 34px 24px 24px;
  }

  .hero-copy h1 {
    font-size: 40px;
    max-width: none;
  }

  .hero-copy p {
    font-size: 17px;
    max-width: none;
  }

  .hero-image-wrap {
    min-height: 320px;
  }

  .reassurance-section {
    margin: 18px 0 34px;
  }

  .reassurance-heading {
    font-size: 18px;
    padding: 12px 18px;
  }

  .reassurance-grid,
  .learning-grid,
  .how-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    gap: 16px;
  }

  .brand-logo {
    height: 50px;
  }
}

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

  .hero-copy h1 {
    font-size: 32px;
  }

  .hero-actions,
  .final-cta-actions {
    flex-direction: column;
  }

  .hero-btn {
    width: 100%;
  }

  .hero-links {
    font-size: 14px;
  }

  .learning-section h2,
  .how-section h2,
  .featured-section h2,
  .final-cta-card h2 {
    font-size: 24px;
  }

  .reassurance-card {
    padding: 18px;
  }

  .reassurance-icon {
    width: 54px;
    height: 54px;
    font-size: 24px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}