/* =========================================================
   Fehm Quran - Global Stylesheet (Premium Minimal)
   Palette: Deep Forest Green #447438 | Cream #F3ECDC
            Soft Gold #F6E19B | Charcoal #1E1E1E | White
   Mobile-first, vanilla CSS3 (Flexbox + Grid)
   ========================================================= */

:root {
  --green: #447438;
  --green-700: #3A5F30;
  --green-900: #2E4D26;
  --cream: #F3ECDC;
  --cream-soft: #F8F4EA;
  --gold: #F6E19B;
  --gold-soft: #FAF3D8;
  --dark: #1E1E1E;
  --body: #525252;
  --muted: #8C8C8C;
  --line: #EBE6DB;
  --white: #FFFFFF;
  --shadow-xs: 0 1px 2px rgba(30, 30, 30, 0.05);
  --shadow-sm: 0 1px 3px rgba(30, 30, 30, 0.06);
  --shadow-md: 0 8px 24px rgba(30, 30, 30, 0.07);
  --shadow-lg: 0 18px 40px rgba(30, 30, 30, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --font: 'Segoe UI', -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--body);
  background-color: var(--white);
  line-height: 1.7;
  font-size: 0.92rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul {
  list-style: none;
}

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

/* ---------------- Typography ---------------- */

h1, h2, h3, h4 {
  line-height: 1.35;
  color: var(--dark);
  font-weight: 600;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
h3 { font-size: clamp(1.02rem, 1.7vw, 1.18rem); }

p {
  color: var(--body);
}

.section {
  padding: 60px 0;
}

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

.section-head .eyebrow {
  display: inline-block;
  color: var(--green);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 { margin-bottom: 0; }

.section-head p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 0.95rem;
}

.section-alt {
  background: var(--cream-soft);
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  line-height: 1.3;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

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

.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--green-700);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp {
  background: #1FBF60;
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-whatsapp:hover {
  transform: translateY(-1px);
  background: #18a852;
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: var(--gold);
  color: var(--green-900);
  box-shadow: var(--shadow-sm);
}

.btn-gold:hover {
  transform: translateY(-1px);
  background: #fbecc1;
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--green-700);
  border-color: rgba(68, 116, 56, 0.35);
}

.btn-outline:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--green-700);
}

.btn-lg {
  padding: 13px 30px;
  font-size: 0.92rem;
}

/* ---------------- Header / Navigation ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(68, 116, 56, 0.08);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.brand-logo {
  width: 180px;
  height: 70px;
  object-fit: contain;
}

.brand-name {
  display: none;
}

.brand-name span {
  color: var(--green);
}

.site-nav {
  display: none;
}

.site-nav.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 10px 20px 20px;
}

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

.nav-link {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--body);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  color: var(--green-700);
  background: var(--cream-soft);
}

.nav-link.is-active {
  color: var(--green);
  font-weight: 600;
  background: transparent;
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--green-900);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  background: var(--green);
  color: var(--white);
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.4px);
  background-size: 26px 26px;
  pointer-events: none;
  display: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
  padding-top: 68px;
  padding-bottom: 76px;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.hero-badge svg {
  width: 13px;
  height: 13px;
  color: var(--gold);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero h1 .gold {
  color: var(--gold);
}

.hero p.lead {
  font-size: 0.98rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
}

.hero-trust .trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

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

.hero-logo-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 28px 32px;
  width: min(272px, 100%);
  text-align: center;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

.hero-logo-card img {
  width: 122px;
  height: auto;
  margin: 0 auto 14px;
  border-radius: 14px;
}

.hero-logo-card .hero-logo-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: -0.01em;
}

.hero-logo-card p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-card-float {
  position: absolute;
  background: var(--white);
  color: var(--dark);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.76rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-card-float svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.float-top { top: -14px; left: -4px; animation: float 5s ease-in-out infinite; }
.float-bottom { bottom: -14px; right: -4px; animation: float 7s ease-in-out infinite; }

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

/* ---------------- Feature Cards ---------------- */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(68, 116, 56, 0.3);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-soft);
  color: var(--green);
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-card h3 { margin-bottom: 6px; font-size: 1.02rem; }
.feature-card p { color: var(--muted); font-size: 0.86rem; }

/* ---------------- Cards / Grid generic ---------------- */

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 18px; }

/* ---------------- Course Cards ---------------- */

.course-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.course-card-top {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-900) 100%);
  color: var(--white);
  padding: 24px 24px 22px;
}

.course-card-top svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
  margin-bottom: 12px;
}

.course-card-top h3 { color: var(--white); font-size: 1.1rem; }

.course-card-body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-card-body ul {
  margin-bottom: 20px;
}

.course-card-body ul li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 9px;
  color: var(--body);
  font-size: 0.87rem;
}

.course-card-body ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 600;
  font-size: 0.8rem;
}

.course-card .btn { margin-top: auto; }

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.course-meta span {
  background: var(--cream-soft);
  color: var(--green-700);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------------- Pricing ---------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.price-card:hover {
  transform: translateY(-2px);
  border-color: rgba(68, 116, 56, 0.3);
  box-shadow: var(--shadow-sm);
}

.price-card.is-featured {
  border: 1px solid rgba(68, 116, 56, 0.45);
  background:
    linear-gradient(180deg, rgba(246, 225, 155, 0.08) 0%, rgba(255, 255, 255, 0) 40%),
    var(--white);
  box-shadow: var(--shadow-sm);
}

.price-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--green-900);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
}

.price-badge.premium {
  background: var(--green);
  color: var(--white);
}

.price-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.price-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.price-box {
  background: var(--cream-soft);
  border: 1px solid rgba(68, 116, 56, 0.08);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  margin-bottom: 18px;
}

.price-original {
  text-decoration: line-through;
  color: #A6A6A6;
  font-size: 0.8rem;
  margin-right: 8px;
}

.price-now {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green-900);
  letter-spacing: -0.01em;
}

.price-now small {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.price-save {
  display: inline-block;
  margin-top: 6px;
  background: var(--gold-soft);
  color: var(--green-700);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

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

.price-features li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 9px;
  font-size: 0.87rem;
  color: var(--body);
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 600;
  font-size: 0.8rem;
}

.price-features li.muted {
  opacity: 0.5;
}

.price-features li.muted::before { content: "–"; color: #999; }

/* ---------------- Testimonials ---------------- */

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px;
}

.testimonial-card:hover {
  border-color: rgba(68, 116, 56, 0.25);
}

.stars {
  color: var(--gold);
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
}

.stars svg {
  width: 15px;
  height: 15px;
}

.testimonial-text {
  color: var(--body);
  font-size: 0.9rem;
  margin-bottom: 18px;
  font-style: italic;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--green), var(--green-900));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.82rem;
}

.testimonial-name { font-weight: 600; font-size: 0.88rem; color: var(--dark); }
.testimonial-role { font-size: 0.75rem; color: var(--muted); }

/* ---------------- Forms ---------------- */

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 30px 28px;
  max-width: 620px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-field { display: flex; flex-direction: column; gap: 7px; }

.form-field label {
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--dark);
}

.form-field label .req {
  color: #C0392B;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--dark);
  background: var(--cream-soft);
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(68, 116, 56, 0.5);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(68, 116, 56, 0.08);
}

.form-field textarea { resize: vertical; min-height: 100px; }

.form-note {
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
}

.form-note svg {
  width: 12px;
  height: 12px;
  vertical-align: -2px;
}

/* ---------------- Accordion (FAQ) ---------------- */

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item[open] {
  border-color: rgba(68, 116, 56, 0.3);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.94rem;
  color: var(--dark);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .faq-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cream-soft);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.25s ease, background 0.25s ease;
}

.faq-item[open] summary .faq-icon {
  transform: rotate(45deg);
  background: var(--green);
  color: var(--white);
}

.faq-item .faq-answer {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.faq-item .faq-answer a { font-weight: 600; }

/* ---------------- Teachers ---------------- */

.teacher-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.teacher-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.teacher-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(160deg, var(--green), var(--green-900));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 600;
}

.teacher-name { font-weight: 600; font-size: 1rem; color: var(--dark); }
.teacher-role { color: var(--green); font-weight: 600; font-size: 0.8rem; margin: 2px 0 10px; letter-spacing: 0.02em; }
.teacher-desc { font-size: 0.85rem; color: var(--muted); }

/* ---------------- Stats / About ---------------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stat-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 14px;
}

.stat-number {
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1;
  letter-spacing: -0.01em;
}

.stat-number span { color: var(--green); }

.stat-label {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.value-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.value-list .value-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cream-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-list .value-icon svg { width: 19px; height: 19px; }

.value-list h4 { margin-bottom: 2px; font-size: 0.98rem; }
.value-list p { font-size: 0.86rem; color: var(--muted); }

/* ---------------- Blog ---------------- */

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.blog-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--green) 0%, var(--green-900) 100%);
  color: var(--gold);
}

.blog-thumb svg { width: 42px; height: 42px; opacity: 0.85; }

.blog-thumb.gold-bg { background: linear-gradient(160deg, var(--gold), #E9C96B); color: var(--green-900); }
.blog-thumb.cream-bg { background: linear-gradient(160deg, var(--cream), var(--gold-soft)); color: var(--green); }

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

.blog-tag {
  align-self: flex-start;
  background: var(--cream-soft);
  color: var(--green-700);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.blog-date { font-size: 0.74rem; color: var(--muted); margin-bottom: 6px; }

.blog-body h3 { font-size: 1rem; margin-bottom: 6px; line-height: 1.45; }
.blog-body h3 a { color: var(--dark); }
.blog-body h3 a:hover { color: var(--green); }

.blog-excerpt { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; flex: 1; }

.read-more {
  font-weight: 600;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.read-more svg { width: 13px; height: 13px; transition: transform 0.25s ease; }
.read-more:hover svg { transform: translateX(4px); }

/* ---------------- Blog Article ---------------- */

.article-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 22px;
  align-items: center;
}

.article-body p {
  margin-bottom: 18px;
  color: var(--body);
}

.article-body h2 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
}

.article-body ul {
  margin: 0 0 18px 4px;
}

.article-body ul li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 9px;
}

.article-body ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 600;
}

.callout {
  background: var(--cream-soft);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 24px 0;
  color: var(--body);
  font-size: 0.92rem;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.article-tags span {
  background: var(--gold-soft);
  color: var(--green-700);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
}

/* ---------------- Legal / Plain pages ---------------- */

.legal-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.legal-wrap h2 {
  font-size: 1.2rem;
  margin: 30px 0 10px;
}

.legal-wrap p {
  margin-bottom: 14px;
  color: var(--body);
}

.legal-wrap ul { margin: 0 0 14px 4px; }

.legal-wrap ul li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.legal-wrap ul li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: var(--green);
  font-weight: 600;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 6px;
}

/* ---------------- 404 ---------------- */

.notfound {
  text-align: center;
  padding: 96px 20px;
}

.notfound-code {
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(160deg, var(--green), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notfound h1 { margin-bottom: 10px; }
.notfound p { color: var(--muted); max-width: 420px; margin: 0 auto 28px; }

/* ---------------- CTA band ---------------- */

.cta-band {
  background:
    radial-gradient(ellipse 50% 70% at 90% 10%, rgba(246, 225, 155, 0.14) 0%, transparent 60%),
    linear-gradient(160deg, var(--green-900) 0%, var(--green) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
}

.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 480px; margin: 0 auto 26px; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------------- Footer ---------------- */

.site-footer {
  background: #253D1F;
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 0;
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}

.footer-brand img {
  width: 180px;
  height: 70px;
  object-fit: contain;
}

.footer-brand span {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
}

.footer-about {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.68);
  max-width: 280px;
  margin-bottom: 20px;
  line-height: 1.7;
}

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

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--green-900);
  transform: translateY(-2px);
}

.footer-social a[aria-label="Instagram"]:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: var(--white);
}

.footer-social a[aria-label="Facebook"]:hover {
  background: #1877F2;
  color: var(--white);
}

.site-footer h4 {
  color: rgba(246, 225, 155, 0.9);
  font-size: 0.72rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.site-footer ul li { margin-bottom: 10px; }

.site-footer ul li a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.site-footer ul li a:hover {
  color: var(--gold);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  color: rgba(246, 225, 155, 0.8);
  flex: 0 0 auto;
  margin-top: 4px;
}

.footer-contact a { color: rgba(255, 255, 255, 0.85); }
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

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

/* ---------------- Popup Modal ---------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(24, 32, 20, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 400px;
  width: 100%;
  padding: 36px 30px;
  text-align: center;
  position: relative;
  transform: translateY(16px) scale(0.99);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  transform: rotate(90deg);
}

.modal-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: linear-gradient(160deg, var(--green), var(--green-900));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2.4s ease-in-out infinite;
}

.modal-icon svg { width: 26px; height: 26px; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(68, 116, 56, 0.22); }
  50% { box-shadow: 0 0 0 14px rgba(68, 116, 56, 0); }
}

.modal h3 { margin-bottom: 8px; }
.modal p { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }
.modal .btn { width: 100%; }
.modal .modal-skip {
  display: block;
  margin: 15px auto 0;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
}

/* ---------------- Scroll reveal ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- Back to top ---------------- */

.back-top {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 90;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green-700);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

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

.back-top svg { width: 18px; height: 18px; }
.back-top:hover { background: var(--green); border-color: var(--green); color: var(--white); }

/* ---------------- Dropdown Navigation ---------------- */

.has-dropdown {
  position: relative;
}

.has-dropdown > .nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
}

.has-dropdown > .nav-link::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23447438' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center / contain;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.has-dropdown:hover > .nav-link::after {
  transform: rotate(180deg);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: -12px;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 6px 0;
  z-index: 200;
  animation: dropdownFade 0.2s ease;
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: var(--white);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}

.nav-dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-size: 0.88rem;
  color: var(--body);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown li a:hover {
  background: var(--cream-soft);
  color: var(--green-700);
}

.nav-dropdown li a.is-active {
  color: var(--green);
  font-weight: 600;
}

/* Desktop click-based dropdown */
.has-dropdown.is-open .nav-dropdown {
  display: block;
}

/* Mobile dropdown */
.site-nav.is-open .nav-dropdown {
  display: none;
  position: static;
  box-shadow: none;
  border: none;
  border-radius: 0;
  padding: 0 0 0 16px;
}

.site-nav.is-open .has-dropdown.is-open .nav-dropdown {
  display: block;
}

.site-nav.is-open .has-dropdown > .nav-link::after {
  content: "";
  width: 10px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23447438' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center / contain;
}

.site-nav.is-open .has-dropdown.is-open > .nav-link::after {
  transform: rotate(180deg);
}

/* Desktop dropdown trigger */
@media (min-width: 768px) {
  .nav-dropdown {
    animation: dropdownFade 0.2s ease;
  }

  @keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ---------------- Teacher Cards with Images ---------------- */

.teacher-card-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--cream-soft);
  box-shadow: var(--shadow-sm);
}

/* ---------------- Hero Image Carousel ---------------- */

.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4/3.5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.hero-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-carousel img.is-active {
  opacity: 1;
}

/* ---------------- Icon Background ---------------- */

.icon-bg {
  position: absolute;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

/* ---------------- Equal Dimension Image Placeholders ---------------- */

.img-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius);
}

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

.img-placeholder-square {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
}

.img-placeholder-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------- Country Flag Pills ---------------- */

.country-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.country-flag {
  font-size: 1.1em;
  line-height: 1;
}

/* ---------------- Page Hero Image ---------------- */

.hero-page-img {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

/* =========================================================
   Media Queries
   ========================================================= */

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .form-field-full { grid-column: 1 / -1; }
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    padding-top: 88px;
    padding-bottom: 96px;
  }
  .site-nav {
    display: flex;
    position: static;
    background: none;
    border: none;
    padding: 0;
  }
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }
  .nav-link { padding: 8px 13px; font-size: 0.86rem; }
  .nav-cta { display: inline-flex; padding: 9px 18px; font-size: 0.82rem; }
  .nav-toggle { display: none; }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; }
  .nav-link { font-size: 0.9rem; }
}

/* =========================================================
   Carousel (slides merge in from alternating sides)
   ========================================================= */

.carousel {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.carousel-track {
  display: grid;
  align-items: center;
}

.carousel-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateX(0);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

.carousel-slide.enter-left,
.carousel-slide.exit-left {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-90px);
}

.carousel-slide.enter-right,
.carousel-slide.exit-right {
  opacity: 0;
  visibility: hidden;
  transform: translateX(90px);
}

.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.carousel-arrow svg {
  width: 18px;
  height: 18px;
}

.carousel-arrow:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  transform: translateY(-50%) scale(1.05);
}

.carousel-arrow.prev { left: 8px; }
.carousel-arrow.next { right: 8px; }

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

.carousel-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #D8D3C4;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.carousel-dot:hover { background: var(--green); }

.carousel-dot.is-active {
  width: 22px;
  background: var(--green);
}

/* Horizontal merge entrance variants (one-time, on scroll) */
.reveal-left { transform: translateX(-90px); }
.reveal-right { transform: translateX(90px); }
.reveal-merge { transform: translateX(0); }

.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-merge.is-visible {
  transform: translateX(0);
}

@media (min-width: 768px) {
  .carousel-arrow.prev { left: -66px; }
  .carousel-arrow.next { right: -66px; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-slide { transition: none; }
  .carousel-slide:not(.is-active) { opacity: 0; visibility: hidden; }
}

/* =========================================================
   Students Around the World (regions & country pills)
   ========================================================= */

.region-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.region-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.region-card:hover {
  transform: translateY(-2px);
  border-color: rgba(68, 116, 56, 0.3);
}

.region-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-soft);
  color: var(--green);
  margin-bottom: 16px;
}

.region-icon svg { width: 20px; height: 20px; }

.region-card h3 { font-size: 1.02rem; margin-bottom: 4px; }

.region-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.country-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.country-pill {
  background: var(--cream-soft);
  color: var(--green-700);
  font-size: 0.76rem;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 999px;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .region-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .region-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Image protection - prevent right-click download and open in new tab */
img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.site-footer img {
  -webkit-user-drag: auto;
  user-select: auto;
  -webkit-touch-callout: auto;
}

/* Hero random image fade-in */
.hero-page-img {
  animation: heroImgFade 0.6s ease-out;
}

@keyframes heroImgFade {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1); }
}