/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #F4F7FD; color: #1A2B4A; min-height: 100vh; }

:root {
  --blue: #1B5FC1;
  --blue-dark: #134AA0;
  --blue-light: #EEF4FF;
  --orange: #F5921A;
  --orange-light: #FFF4E6;
  --navy: #1A2B4A;
  --gray: #64748B;
  --gray-light: #F1F5F9;
  --border: #E2E8F0;
  --shadow: 0 2px 16px rgba(27,95,193,0.08);
  --shadow-hover: 0 8px 32px rgba(27,95,193,0.16);
  --radius: 14px;
}

button { cursor: pointer; border: none; font-family: inherit; background: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }

/* ── Layout ─────────────────────────────────────────────── */
.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.page-content { flex: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(27,95,193,0.06);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.navbar-logo { display: flex; align-items: center; }
.navbar-logo img { height: 58px; width: auto; }
.navbar-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 8px 15px;
  border-radius: 8px;
  color: var(--navy);
  font-weight: 500;
  font-size: 14px;
  transition: all .15s;
  display: inline-block;
}
.nav-link:hover { background: var(--gray-light); }
.nav-link.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }
.navbar-actions { display: flex; gap: 10px; align-items: center; }
.btn-login {
  padding: 9px 20px;
  border-radius: 9px;
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  border: 1.5px solid var(--border);
  cursor: pointer;
}
.btn-quiz-nav {
  padding: 9px 20px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
}

/* ── Hero (shared blue) ─────────────────────────────────── */
.hero-blue {
  background: linear-gradient(135deg, #0F3B8C 0%, #1B5FC1 100%);
  padding: 52px 24px 60px;
  color: #fff;
  text-align: center;
}
.hero-pill {
  display: inline-block;
  background: rgba(245,146,26,0.2);
  border: 1px solid rgba(245,146,26,0.4);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  color: #FFD08A;
}
.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 14px;
}
.hero-sub { color: rgba(255,255,255,0.8); font-size: 17px; max-width: 480px; margin: 0 auto 32px; }

/* ── Home Hero ──────────────────────────────────────────── */
.home-hero {
  background: linear-gradient(135deg, #0F3B8C 0%, #1B5FC1 50%, #2575D4 100%);
  color: #fff;
  padding: 80px 24px 90px;
  position: relative;
  overflow: hidden;
}
.home-hero-deco1 {
  position: absolute; top: -80px; right: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(245,146,26,0.12); pointer-events: none;
}
.home-hero-deco2 {
  position: absolute; bottom: -100px; left: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,0.05); pointer-events: none;
}
.home-hero-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.home-hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,146,26,0.2);
  border: 1px solid rgba(245,146,26,0.4);
  border-radius: 100px; padding: 6px 16px; margin-bottom: 24px;
}
.home-hero-pill span:last-child { font-size: 13px; font-weight: 600; color: #FFD08A; }
.home-hero-h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 52px; font-weight: 800; line-height: 1.1; margin-bottom: 20px;
}
.home-hero-h1 em { color: #F5921A; font-style: normal; }
.home-hero-p { font-size: 18px; line-height: 1.7; color: rgba(255,255,255,0.8); margin-bottom: 36px; max-width: 460px; }
.home-hero-ctas { display: flex; gap: 14px; }
.btn-hero-orange {
  padding: 14px 28px; border-radius: 10px;
  background: var(--orange); color: #fff;
  font-weight: 700; font-size: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-shadow: 0 4px 20px rgba(245,146,26,0.4); cursor: pointer;
}
.btn-hero-ghost {
  padding: 14px 28px; border-radius: 10px;
  background: rgba(255,255,255,0.12); color: #fff;
  font-weight: 600; font-size: 16px;
  border: 1.5px solid rgba(255,255,255,0.25); cursor: pointer;
}
.home-hero-stats { display: flex; gap: 32px; margin-top: 40px; }
.hero-stat-n { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 26px; font-weight: 800; color: #F5921A; }
.hero-stat-l { font-size: 13px; color: rgba(255,255,255,0.6); }
.home-hero-visual { display: flex; justify-content: center; }
.home-hero-card {
  background: rgba(255,255,255,0.08); border-radius: 24px;
  padding: 32px; backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  position: relative;
}
.home-hero-card img { width: 280px; }
.floating-card {
  position: absolute;
  background: #fff; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.float-level { bottom: -20px; left: -30px; padding: 12px 18px; display: flex; align-items: center; gap: 10px; }
.float-level .icon { font-size: 22px; }
.float-level .label { font-size: 12px; color: #64748B; }
.float-level .value { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; font-weight: 700; color: var(--navy); }
.float-word { top: -16px; right: -20px; padding: 10px 16px; }
.float-word .wlabel { font-size: 12px; color: #64748B; margin-bottom: 2px; }
.float-word .wvalue { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 16px; color: var(--blue); }
.float-word .wtrans { font-size: 12px; color: #F5921A; font-style: italic; }

/* ── Section headers ────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 52px; }
.section-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.section-tag {
  display: inline-block; font-size: 13px; font-weight: 700;
  padding: 5px 14px; border-radius: 100px; margin-bottom: 14px;
}
.tag-blue { background: var(--blue-light); color: var(--blue); }
.tag-orange { background: var(--orange-light); color: var(--orange); }
.section-h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 36px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.section-sub { color: var(--gray); font-size: 17px; max-width: 520px; margin: 0 auto; }

/* ── Feature cards ──────────────────────────────────────── */
.feature-card {
  background: #fff; border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px;
}
.feature-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 19px; font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.feature-desc { color: var(--gray); font-size: 15px; line-height: 1.65; }

/* ── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #F5921A 0%, #F97316 100%);
  border-radius: 20px; max-width: 1152px;
  margin: 0 auto 72px;
}
.cta-banner-inner {
  padding: 56px 64px; display: flex;
  align-items: center; justify-content: space-between; gap: 40px;
}
.cta-banner h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 34px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 17px; max-width: 480px; }
.btn-cta-white {
  flex-shrink: 0; padding: 16px 36px; border-radius: 12px;
  background: #fff; color: var(--orange);
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 17px; font-weight: 800;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15); white-space: nowrap; cursor: pointer;
  display: inline-block;
}

/* ── Newsletter section ─────────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, #EEF4FF 0%, #F0F7FF 100%);
  border: 1.5px solid #C7DEFF; border-radius: 20px;
  padding: 56px 64px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  max-width: 1200px; margin: 0 auto 72px;
  overflow: hidden;
}
.newsletter-h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 32px; font-weight: 800; color: var(--navy); margin-bottom: 12px; line-height: 1.2; }
.newsletter-p { color: var(--gray); font-size: 16px; line-height: 1.7; }
.nl-form { display: flex; flex-direction: column; gap: 14px; }
.nl-input-row {
  display: flex; border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(27,95,193,0.15);
}
.nl-input-row input {
  flex: 1; padding: 14px 20px; border: none; font-size: 15px;
  outline: none; font-family: 'Inter', sans-serif; color: var(--navy); background: #fff;
}
.nl-input-row button {
  padding: 14px 24px; background: var(--blue); color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 15px;
  white-space: nowrap; cursor: pointer;
}
.nl-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray); }
.nl-perks { display: flex; gap: 20px; }
.nl-perk { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray); }
.nl-done { text-align: center; padding: 24px; }
.nl-done .emoji { font-size: 44px; margin-bottom: 12px; }
.nl-done .title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.nl-done .sub { font-size: 15px; color: var(--gray); }
/* dark variant */
.nl-check.dark { color: rgba(255,255,255,0.6); }
.nl-perk.dark { color: rgba(255,255,255,0.65); }
.nl-done.dark .title { color: #fff; }
.nl-done.dark .sub { color: rgba(255,255,255,0.7); }

/* ── Categories section ─────────────────────────────────── */
.cats-section { background: var(--navy); padding: 72px 24px; }
.cats-header { text-align: center; margin-bottom: 48px; }
.cats-header h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.cats-header p { color: #94A3B8; font-size: 16px; }
.cats-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-tile {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 24px 16px; color: #fff;
  text-align: center; transition: all .2s; cursor: pointer; display: block;
}
.cat-tile:hover { background: var(--tile-bg, #EEF4FF); color: var(--tile-text, #1B5FC1); border-color: var(--tile-bg, #EEF4FF); }
.cat-tile .icon { font-size: 28px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; }
.cat-tile .name { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 15px; }
.cat-tile .count { font-size: 12px; opacity: 0.6; margin-top: 4px; }

/* ── Image placeholder ──────────────────────────────────── */
.img-ph {
  background: linear-gradient(135deg, #E8F0FE 0%, #D1E3FF 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
}
.img-ph span { font-size: 11px; color: #94A3B8; font-family: monospace; text-align: center; padding: 0 8px; }

/* ── Post Cards ─────────────────────────────────────────── */
.post-card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s; cursor: pointer;
  text-decoration: none; color: inherit;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.post-card-img { height: 180px; }
.post-card-img-real { width: 100%; height: 180px; object-fit: cover; }
.post-card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.post-card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.post-card-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
.post-card-excerpt { font-size: 14px; color: var(--gray); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.post-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.post-card-date { font-size: 13px; color: var(--gray); }
.read-link { font-size: 13px; color: var(--blue); font-weight: 600; }

/* horizontal variant */
.post-card-h {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow); display: flex; overflow: hidden;
  transition: transform .2s, box-shadow .2s; cursor: pointer;
  text-decoration: none; color: inherit;
}
.post-card-h:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.post-card-h-thumb { width: 160px; flex-shrink: 0; }
.post-card-h-thumb-real { width: 160px; object-fit: cover; flex-shrink: 0; }
.post-card-h-body { padding: 20px 24px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.post-card-h-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }

/* ── Badge ──────────────────────────────────────────────── */
.badge {
  padding: 3px 10px; border-radius: 100px;
  font-size: 12px; font-weight: 600; display: inline-block;
}
.badge-Grammar    { background: #EEF4FF; color: #1B5FC1; }
.badge-Vocabulary { background: #FFF4E6; color: #D97706; }
.badge-Pronunciation { background: #F0FDF4; color: #16A34A; }
.badge-Culture    { background: #FDF2F8; color: #9333EA; }
.badge-Tips       { background: #FFF1F2; color: #E11D48; }

/* ── Blog page ──────────────────────────────────────────── */
.blog-search-wrap { max-width: 520px; margin: 0 auto; position: relative; }
.blog-search {
  width: 100%; padding: 14px 50px 14px 20px; border-radius: 12px;
  border: none; font-size: 15px; outline: none;
  font-family: 'Inter', sans-serif; color: var(--navy);
}
.blog-search-icon { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 18px; }
.blog-main { max-width: 1200px; margin: 0 auto; padding: 40px 24px 80px; }
.cat-pills { display: flex; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.cat-pill {
  padding: 8px 20px; border-radius: 100px; font-weight: 600; font-size: 14px;
  background: #fff; color: var(--navy); border: 1.5px solid var(--border);
  cursor: pointer; transition: all .15s;
}
.cat-pill.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.post-list { display: flex; flex-direction: column; gap: 20px; }
.no-results { text-align: center; padding: 60px 0; color: var(--gray); }
.no-results .icon { font-size: 36px; margin-bottom: 12px; }
.no-results h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; font-weight: 700; }
.no-results p { font-size: 15px; margin-top: 6px; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.pg-btn {
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 10px; border: 1.5px solid var(--border);
  background: #fff; color: var(--navy); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .15s; font-family: 'Plus Jakarta Sans', sans-serif;
  display: inline-flex; align-items: center; justify-content: center;
}
.pg-btn:hover:not(.pg-disabled) { border-color: var(--blue); color: var(--blue); }
.pg-btn.pg-active { background: var(--blue); color: #fff; border-color: var(--blue); }
.pg-btn.pg-disabled { opacity: .35; cursor: not-allowed; }
.pg-arrow { min-width: 40px; }
.pg-ellipsis { color: var(--gray); font-size: 14px; font-weight: 600; padding: 0 4px; user-select: none; }

/* sidebar */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 24px; }
.sidebar-h { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 16px; margin-bottom: 16px; color: var(--navy); }
.sidebar-quiz-cta {
  background: linear-gradient(135deg, #1B5FC1 0%, #2575D4 100%);
  border-radius: var(--radius); padding: 28px 24px; color: #fff; text-align: center;
}
.sidebar-quiz-cta h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.sidebar-quiz-cta p { font-size: 14px; color: rgba(255,255,255,0.8); margin-bottom: 18px; line-height: 1.6; }
.sidebar-quiz-cta .btn-quiz-sidebar {
  width: 100%; padding: 12px; border-radius: 9px;
  background: var(--orange); color: #fff; font-weight: 700; font-size: 15px;
  font-family: 'Plus Jakarta Sans', sans-serif; cursor: pointer; display: block;
  text-align: center;
}
.sidebar-cat-btn {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-radius: 8px; background: transparent;
  cursor: pointer; transition: background .15s; text-align: left; width: 100%;
  font-size: 14px; font-weight: 600; color: var(--navy);
}
.sidebar-cat-count { font-size: 12px; padding: 2px 8px; border-radius: 100px; font-weight: 600; }
.sidebar-recent-item { display: flex; gap: 12px; cursor: pointer; background: none; border: none; text-align: left; padding: 0; width: 100%; }
.sidebar-recent-thumb { width: 56px; height: 56px; border-radius: 8px; flex-shrink: 0; }
.sidebar-recent-title { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.4; margin-bottom: 4px; }
.sidebar-recent-date { font-size: 12px; color: var(--gray); }

/* ── Post page ──────────────────────────────────────────── */
.post-hero { background: linear-gradient(135deg, #0F3B8C 0%, #1B5FC1 100%); padding: 48px 24px; color: #fff; margin-bottom: 40px;}
.post-hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15); color: #fff; padding: 7px 14px;
  border-radius: 8px; font-size: 14px; margin-bottom: 24px; cursor: pointer;
}
.post-hero-meta { display: flex; gap: 10px; margin-bottom: 20px; align-items: center; justify-content: center; }
.post-hero-h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 38px; font-weight: 800; line-height: 1.2; margin-bottom: 40px; }
.post-body-wrap { max-width: 820px; margin: 0 auto; padding: 0 24px 80px; }
.post-sidebar { display: none; }
.post-featured-img { width: 100%; height: 320px; border-radius: 0 0 16px 16px; margin-bottom: 40px; }
.post-featured-img-real { width: 100%; height: 320px; object-fit: cover; border-radius: 0 0 16px 16px; margin-bottom: 40px; }
.post-article p { font-size: 17px; line-height: 1.8; color: #334155; margin-bottom: 24px; }
.post-example {
  background: var(--blue-light); border: 1px solid #BFDBFE;
  border-radius: 12px; padding: 24px 28px; margin: 32px 0;
}
.post-example .ex-label { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; color: var(--blue); margin-bottom: 12px; font-size: 15px; }
.post-example .ex-sentence { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.post-example .ex-trans { font-size: 15px; color: var(--gray); font-style: italic; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 40px 0 32px; }
.post-tag { padding: 5px 14px; border-radius: 100px; background: var(--gray-light); color: var(--gray); font-size: 13px; font-weight: 600; }
.post-related-h { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 22px; margin-bottom: 20px; color: var(--navy); }
.post-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 24px; margin-top: 40px; }
.sidebar-orange-cta {
  background: linear-gradient(135deg, #F5921A, #F97316);
  border-radius: var(--radius); padding: 28px 24px; color: #fff; text-align: center;
}
.sidebar-orange-cta h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 18px; margin-bottom: 8px; }
.sidebar-orange-cta p { font-size: 14px; color: rgba(255,255,255,0.85); margin-bottom: 18px; line-height: 1.6; }
.btn-sidebar-quiz {
  width: 100%; padding: 12px; border-radius: 9px;
  background: #fff; color: var(--orange); font-weight: 700; font-size: 15px;
  font-family: 'Plus Jakarta Sans', sans-serif; cursor: pointer; display: block; text-align: center;
}
.sidebar-cat-page-btn {
  display: flex; justify-content: space-between; padding: 9px 10px;
  border-radius: 8px; border: none; background: transparent; cursor: pointer;
  color: var(--navy); font-size: 14px; font-weight: 600; text-align: left; width: 100%;
  transition: background .15s;
}
.sidebar-cat-page-btn:hover { background: var(--gray-light); }

/* ── Quiz page ──────────────────────────────────────────── */
.quiz-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.quiz-intro-box { max-width: 600px; width: 100%; text-align: center; }
.quiz-intro-icon {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #2575D4);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; margin: 0 auto 28px;
}
.quiz-intro-h { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 40px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.quiz-intro-p { font-size: 17px; color: var(--gray); line-height: 1.7; margin-bottom: 36px; }
.quiz-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.quiz-stat { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px 12px; text-align: center; }
.quiz-stat-n { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 26px; font-weight: 800; color: var(--blue); margin-bottom: 4px; }
.quiz-stat-l { font-size: 13px; color: var(--gray); }
.btn-start-quiz {
  padding: 16px 48px; border-radius: 12px;
  background: var(--blue); color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; font-weight: 800;
  box-shadow: 0 4px 20px rgba(27,95,193,0.35); cursor: pointer;
}
.quiz-free-note { margin-top: 16px; font-size: 13px; color: var(--gray); }

/* active quiz */
.quiz-active-box { max-width: 640px; width: 100%; }
.quiz-progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.quiz-progress-label { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 15px; color: var(--navy); }
.quiz-level-badge { padding: 3px 12px; border-radius: 100px; background: var(--blue-light); color: var(--blue); font-size: 13px; font-weight: 600; }
.quiz-progress-track { height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; margin-bottom: 32px; }
.quiz-progress-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--orange)); transition: width .4s ease; }
.quiz-card { background: #fff; border-radius: 20px; border: 1px solid var(--border); box-shadow: var(--shadow); padding: 40px 36px; margin-bottom: 20px; }
.quiz-question { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 32px; line-height: 1.4; }
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-option {
  padding: 16px 20px; border-radius: 12px; background: #fff;
  border: 1.5px solid var(--border); color: var(--navy);
  font-size: 16px; font-weight: 500; text-align: left;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; width: 100%; transition: all .15s;
}
.quiz-option:hover:not(.answered) { border-color: var(--blue); background: var(--blue-light); color: var(--blue); }
.quiz-option.correct { background: #F0FDF4; border-color: #22C55E; color: #15803D; cursor: default; }
.quiz-option.wrong   { background: #FFF1F2; border-color: #FB7185; color: #BE123C; cursor: default; }
.quiz-option.answered { cursor: default; }
.option-letter {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gray-light); color: var(--gray);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.quiz-option.correct .option-letter { background: #22C55E; color: #fff; }
.quiz-option.wrong .option-letter   { background: #FB7185; color: #fff; }
.quiz-hint { text-align: center; font-size: 13px; color: var(--gray); }

/* ── Result page ────────────────────────────────────────── */
.result-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.result-inner { max-width: 680px; width: 100%; }
.result-card {
  background: #fff; border-radius: 24px; border: 1px solid var(--border);
  box-shadow: 0 8px 48px rgba(27,95,193,0.12);
  padding: 48px 48px 40px; text-align: center; margin-bottom: 28px;
}
.result-level-circle {
  width: 100px; height: 100px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.result-level-circle span { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 28px; color: #fff; }
.result-eyebrow { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; font-weight: 600; color: var(--gray); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
.result-h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 36px; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.result-desc { font-size: 16px; color: var(--gray); line-height: 1.7; max-width: 480px; margin: 0 auto 32px; }
.score-box { background: var(--gray-light); border-radius: 16px; padding: 24px; margin-bottom: 32px; }
.score-label { font-size: 13px; color: var(--gray); margin-bottom: 12px; }
.score-bar-track { height: 10px; border-radius: 5px; background: var(--border); overflow: hidden; margin-bottom: 10px; }
.score-bar-fill { height: 100%; border-radius: 5px; transition: width 1s ease; }
.score-text { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; font-weight: 800; color: var(--navy); }
.cefr-scale { display: flex; gap: 6px; justify-content: center; margin-bottom: 36px; }
.cefr-item {
  flex: 1; max-width: 80px; padding: 8px 4px; border-radius: 8px;
  background: var(--gray-light); color: var(--gray);
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 14px; text-align: center;
}
.cefr-item .you { font-size: 9px; margin-top: 2px; }
.cefr-item.active { color: #fff; }
.result-actions { display: flex; gap: 14px; justify-content: center; }
.btn-primary { padding: 14px 28px; border-radius: 10px; background: var(--blue); color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 16px; cursor: pointer; display: inline-block; }
.btn-secondary { padding: 14px 24px; border-radius: 10px; border: 1.5px solid var(--border); color: var(--navy); font-weight: 600; font-size: 15px; background: #fff; cursor: pointer; display: inline-block; }
.recommended-card { background: #fff; border-radius: 20px; border: 1px solid var(--border); padding: 32px 36px; }
.recommended-h { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 20px; color: var(--navy); margin-bottom: 20px; }
.rec-post {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--gray-light); cursor: pointer; text-align: left;
  margin-bottom: 12px; text-decoration: none; color: inherit; width: 100%;
}
.rec-post:last-child { margin-bottom: 0; }
.rec-post-title { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.rec-arrow { color: var(--blue); font-size: 18px; margin-left: 16px; }

/* ── About page ─────────────────────────────────────────── */
.mission-section { max-width: 900px; margin: 0 auto; padding: 72px 24px; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.mission-h { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 34px; font-weight: 800; color: var(--navy); margin-bottom: 16px; line-height: 1.2; }
.mission-p { font-size: 16px; color: var(--gray); line-height: 1.75; margin-bottom: 16px; }
.mission-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mission-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px 18px; }
.mission-card .icon { font-size: 26px; margin-bottom: 10px; }
.mission-card .title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 15px; color: var(--navy); margin-bottom: 6px; }
.mission-card .desc { font-size: 13px; color: var(--gray); line-height: 1.6; }
.team-section { background: var(--gray-light); padding: 72px 24px; }
.team-inner { max-width: 900px; margin: 0 auto; }
.team-header { text-align: center; margin-bottom: 52px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { background: #fff; border-radius: 16px; border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); }
.team-photo { height: 160px; }
.team-body { padding: 20px 22px 24px; }
.team-name { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 17px; color: var(--navy); margin-bottom: 4px; }
.team-role { font-size: 13px; color: var(--blue); font-weight: 600; margin-bottom: 12px; }
.team-bio { font-size: 14px; color: var(--gray); line-height: 1.65; }
.stats-section { background: var(--navy); padding: 64px 24px; }
.stats-grid { max-width: 800px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-n { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 36px; font-weight: 800; color: var(--orange); margin-bottom: 8px; }
.stat-l { font-size: 14px; color: rgba(255,255,255,0.6); }
.about-cta { max-width: 700px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.about-cta h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 32px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.about-cta p { color: var(--gray); font-size: 16px; margin-bottom: 32px; }
.about-cta-btns { display: flex; gap: 14px; justify-content: center; }

/* ── Contact page ───────────────────────────────────────── */
.contact-layout { max-width: 1100px; margin: 0 auto; padding: 64px 24px 80px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.contact-info-list { display: flex; flex-direction: column; gap: 24px; }
.contact-info-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px 22px; display: flex; gap: 16px; align-items: flex-start; box-shadow: var(--shadow); }
.contact-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.contact-info-title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.contact-info-email { font-size: 14px; color: var(--blue); font-weight: 600; margin-bottom: 2px; }
.contact-info-sub { font-size: 13px; color: var(--gray); }
.contact-nl-card { background: linear-gradient(135deg, #1B5FC1, #2575D4); border-radius: 16px; padding: 28px 24px; color: #fff; }
.contact-nl-title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 17px; margin-bottom: 8px; }
.contact-nl-p { font-size: 14px; color: rgba(255,255,255,0.8); margin-bottom: 20px; line-height: 1.6; }
.contact-form-card { background: #fff; border-radius: 20px; border: 1px solid var(--border); padding: 40px; box-shadow: var(--shadow); }
.contact-form-h { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 26px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.contact-form-p { color: var(--gray); font-size: 15px; margin-bottom: 32px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; }
.form-label { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--border); font-size: 15px; outline: none; font-family: 'Inter', sans-serif; color: var(--navy); background: #fff; }
.form-input:focus { border-color: var(--blue); }
.form-select { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--border); font-size: 15px; outline: none; font-family: 'Inter', sans-serif; color: var(--navy); background: #fff; }
.form-textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--border); font-size: 15px; outline: none; font-family: 'Inter', sans-serif; color: var(--navy); resize: vertical; }
.form-textarea:focus { border-color: var(--blue); }
.btn-submit {
  padding: 15px; border-radius: 10px; background: var(--blue); color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 16px;
  box-shadow: 0 4px 16px rgba(27,95,193,0.3); cursor: pointer; width: 100%;
}
.contact-success { text-align: center; padding: 40px 0; }
.contact-success .flag { font-size: 56px; margin-bottom: 20px; }
.contact-success h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 26px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.contact-success p { color: var(--gray); font-size: 16px; line-height: 1.6; }

/* ── Login Modal ────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,30,60,0.5); backdrop-filter: blur(4px); cursor: pointer; }
.modal-box { position: relative; background: #fff; border-radius: 20px; width: 100%; max-width: 460px; box-shadow: 0 24px 80px rgba(27,95,193,0.2); overflow: hidden; }
.modal-header { background: linear-gradient(135deg, #0F3B8C, #1B5FC1); padding: 32px 36px 28px; text-align: center; }
.modal-header img { height: 44px; margin: 0 auto 12px; }
.modal-header p { color: rgba(255,255,255,0.75); font-size: 14px; }
.modal-tabs { display: flex; border-bottom: 1px solid var(--border); }
.modal-tab { flex: 1; padding: 14px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 15px; background: none; border: none; border-bottom: 2.5px solid transparent; cursor: pointer; transition: all .2s; color: var(--gray); }
.modal-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.modal-body { padding: 32px 36px 36px; }
.modal-form { display: flex; flex-direction: column; gap: 16px; }
.modal-form-group { display: flex; flex-direction: column; }
.modal-label-row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.modal-label { font-size: 13px; font-weight: 600; color: var(--navy); }
.forgot-link { font-size: 13px; color: var(--blue); font-weight: 600; cursor: pointer; }
.modal-input { width: 100%; padding: 12px 16px; border-radius: 10px; border: 1.5px solid var(--border); font-size: 15px; outline: none; font-family: 'Inter', sans-serif; color: var(--navy); }
.modal-input:focus { border-color: var(--blue); }
.modal-checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 4px; }
.modal-checkbox-row span { font-size: 13px; color: var(--gray); line-height: 1.5; }
.modal-checkbox-row a { color: var(--blue); font-weight: 600; }
.btn-modal-submit { margin-top: 8px; padding: 14px; border-radius: 10px; background: var(--blue); color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 16px; box-shadow: 0 4px 16px rgba(27,95,193,0.3); cursor: pointer; width: 100%; }
.modal-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0; }
.modal-divider span { font-size: 13px; color: var(--gray); }
.modal-divider-line { flex: 1; height: 1px; background: var(--border); }
.btn-google { padding: 12px; border-radius: 10px; border: 1.5px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--navy); cursor: pointer; width: 100%; }
.modal-close { position: absolute; top: 14px; right: 16px; background: rgba(255,255,255,0.2); border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; }
.modal-success { text-align: center; padding: 20px 0; }
.modal-success .emoji { font-size: 48px; margin-bottom: 16px; }
.modal-success h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.modal-success p { color: var(--gray); font-size: 15px; line-height: 1.6; margin-bottom: 24px; }
.btn-start-learning { padding: 12px 32px; border-radius: 10px; background: var(--blue); color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 15px; cursor: pointer; }

/* ── Footer ─────────────────────────────────────────────── */
.footer { background: var(--navy); color: #94A3B8; margin-top: 80px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 56px 24px 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 260px; }
.footer-col-title { color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 16px; font-family: 'Plus Jakarta Sans', sans-serif; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { color: #94A3B8; font-size: 14px; cursor: pointer; transition: color .15s; text-decoration: none; display: block; }
.footer-link:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.footer-tagline { color: #F5921A; font-weight: 600; }

/* ── Grids ──────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ── GP margin override ─────────────────────────────────── */
.page-content,
.page-content:not(:first-child),
.entry-content:not(:first-child),
.entry-summary:not(:first-child) { margin-top: 0 !important; }

/* ── Link underline reset ───────────────────────────────── */
a, a:hover, a:visited, a:focus, a:active { text-decoration: none !important; }

/* ── Spacing reductions ─────────────────────────────────── */
.home-hero                { padding: 52px 24px 60px; }
.home-hero-stats          { margin-top: 28px; }
.newsletter-section       { padding: 40px 48px; margin-bottom: 48px; }
.cta-banner               { margin-bottom: 48px; }
.cta-banner-inner         { padding: 40px 48px; }
.cats-section             { padding: 48px 24px; }
.cats-header              { margin-bottom: 32px; }
.mission-section          { padding: 48px 24px; }
.team-section             { padding: 48px 24px; }
.stats-section            { padding: 48px 24px; }
.about-cta                { padding: 52px 24px; }
.footer                   { margin-top: 40px; }
.footer-inner             { padding: 40px 24px 24px; }
.footer-grid              { margin-bottom: 32px; }
.section-header           { margin-bottom: 36px; }
.blog-main                { padding: 28px 24px 56px; }
.post-body-wrap           { padding: 0 24px 56px; max-width: 820px; }
.contact-layout           { padding: 44px 24px 56px; }
.quiz-wrap                { min-height: 70vh; padding: 28px 24px; }
.result-wrap              { padding: 40px 24px; }

/* ── FA icon sizing in containers ──────────────────────── */
.feature-icon i           { font-size: 22px; }
.cat-tile .icon i         { font-size: 26px; }
.contact-icon i           { font-size: 18px; color: var(--blue); }
.mission-card .icon i     { font-size: 24px; }
.quiz-intro-icon i        { font-size: 38px; color: #fff; }
.sidebar-quiz-cta i, .sidebar-orange-cta i { font-size: 28px; }
.home-hero-pill i         { font-size: 14px; color: #FFD08A; }
.float-level .icon i      { font-size: 20px; }
.nl-done .emoji i         { font-size: 40px; color: var(--blue); }
.contact-success .flag i  { font-size: 52px; }
.no-results .icon i       { font-size: 32px; color: var(--gray); }
.ex-label i               { font-size: 13px; color: var(--blue); }
.nl-perk i                { font-size: 12px; margin-right: 2px; }
.blog-search-icon i       { font-size: 16px; color: var(--gray); }
.contact-nl-title i       { font-size: 15px; }

/* ── Legal pages (Privacy Policy, Terms of Use) ─────────── */
.legal-page-wrap { min-height: 100vh; }
.legal-hero { background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%); color: #fff; padding: 64px 24px 56px; }
.legal-hero-inner { max-width: 800px; margin: 0 auto; }
.legal-h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(28px, 5vw, 42px); font-weight: 800; margin: 0 0 12px; }
.legal-meta { font-size: 14px; color: rgba(255,255,255,0.6); margin: 0; }
.legal-body { background: #F8FAFC; padding: 48px 24px 80px; }
.legal-inner { max-width: 800px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 48px 56px; box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.legal-section { margin-bottom: 40px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 700; color: var(--navy); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid #EEF2FF; }
.legal-section h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; font-weight: 700; color: var(--navy); margin: 20px 0 8px; }
.legal-section p { font-size: 15px; line-height: 1.8; color: #374151; margin: 0 0 12px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { padding-left: 24px; margin: 8px 0 12px; }
.legal-section ul li { font-size: 15px; line-height: 1.8; color: #374151; margin-bottom: 6px; }
.legal-section a { color: var(--blue); font-weight: 500; }
.legal-section a:hover { text-decoration: underline !important; }

/* ── Hamburger (hidden on desktop) ──────────────────────── */
.navbar-hamburger { display: none; }

/* ── Responsive — Tablet (≤ 900px) ──────────────────────── */
@media (max-width: 900px) {
  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }

  /* Grids */
  .grid-3 { grid-template-columns: 1fr 1fr; }

  /* Home hero — stack to single column, hide decorative visual */
  .home-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .home-hero-visual { display: none; }
  .home-hero-h1 { font-size: 40px; }

  /* Blog — collapse sidebar layout */
  .blog-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }

  /* Contact — stack */
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }

  /* Mission — stack */
  .mission-grid { grid-template-columns: 1fr; gap: 32px; }

  /* About */
  .team-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  /* CTA & Newsletter — stack */
  .cta-banner-inner { flex-direction: column; gap: 24px; }
  .newsletter-section { grid-template-columns: 1fr; gap: 28px; padding: 32px 28px; }

  /* Legal */
  .legal-inner { padding: 36px 32px; }

  /* WoD recent */
  .wod-recent-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Responsive — Mobile (≤ 640px) ──────────────────────── */
@media (max-width: 640px) {
  /* ── Navbar ── */
  .navbar { position: sticky; top: 0; z-index: 100; }
  .navbar-inner { height: 60px; position: relative; }
  .navbar-logo img { height: 44px; }

  /* Hide desktop nav, show hamburger */
  .navbar-links { display: none; }
  .navbar-actions { display: none; }
  .navbar-hamburger {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 8px;
    background: var(--gray-light); border: none;
    cursor: pointer; font-size: 20px; color: var(--navy);
  }

  /* Mobile nav open state */
  .navbar-links.mobile-open {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; top: 60px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 10px 16px 16px; z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .navbar-links.mobile-open .nav-link {
    padding: 12px 14px; font-size: 15px; border-radius: 10px;
  }

  /* ── Home hero ── */
  .home-hero { padding: 36px 20px 44px; }
  .home-hero-h1 { font-size: 30px; line-height: 1.15; }
  .home-hero-p { font-size: 15px; margin-bottom: 28px; }
  .home-hero-ctas { flex-direction: column; gap: 12px; }
  .btn-hero-orange, .btn-hero-ghost { width: 100%; text-align: center; padding: 13px 20px; }
  .home-hero-stats { flex-wrap: wrap; gap: 20px 32px; margin-top: 24px; }

  /* ── Section headings ── */
  .section-h2 { font-size: 26px; }
  .hero-title { font-size: 28px; }
  .section-header-row { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* ── Grids ── */
  .features-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .mission-cards { grid-template-columns: 1fr; }

  /* ── Blog ── */
  .post-hero-h1 { font-size: 24px; line-height: 1.25; }
  .blog-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .cat-pills { gap: 8px; }

  /* ── CTA & Newsletter ── */
  .cta-banner-inner { padding: 28px 20px; gap: 20px; }
  .btn-cta-white { width: 100%; text-align: center; }
  .newsletter-section { padding: 28px 20px; }
  .nl-input-row { flex-direction: column; border-radius: 12px; overflow: visible; gap: 10px; box-shadow: none; }
  .nl-input-row input { border-radius: 12px; border: 1.5px solid var(--border); padding: 14px 18px; box-shadow: 0 2px 8px rgba(27,95,193,0.10); }
  .nl-input-row button { border-radius: 12px; padding: 14px; font-size: 15px; width: 100%; box-shadow: 0 2px 8px rgba(27,95,193,0.20); }
  .nl-perks { flex-direction: column; gap: 8px; }

  /* ── Contact ── */
  .contact-layout { gap: 20px; }
  .form-row-2 { grid-template-columns: 1fr; }

  /* ── Quiz ── */
  .quiz-intro-box { padding: 36px 20px; }
  .quiz-stats { grid-template-columns: 1fr; gap: 10px; }
  .quiz-card { padding: 28px 20px; }
  .quiz-question { font-size: 18px; }

  /* ── Result ── */
  .result-card { padding: 32px 20px; }
  .result-actions { flex-direction: column; gap: 10px; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }
  .cefr-scale { gap: 4px; }
  .cefr-item { font-size: 12px; padding: 6px 2px; }
  .score-box { padding: 20px; }

  /* ── Footer ── */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* ── Legal ── */
  .legal-inner { padding: 28px 20px; border-radius: 12px; }
  .legal-hero { padding: 44px 20px 36px; }

  /* ── Post article ── */
  .post-article p { font-size: 16px; }
  .post-hero { padding: 36px 20px; }

  /* ── Tool pages ── */
  .fc-card { height: 260px; }
  .wod-main-word { font-size: 36px; }
  .wod-recent-grid { grid-template-columns: 1fr; }

  /* ── Phrasebook ── */
  .pb-list { grid-template-columns: 1fr; }
  .pb-cats-row { top: 60px; }
  .pb-phrase-top { flex-wrap: wrap; gap: 8px; }
  .pb-phrase-right { flex-shrink: 0; margin-top: 0; }
  .pb-cat-badge { white-space: normal; }
  .pb-dutch { font-size: 16px; }
  .pb-english { font-size: 14px; }

  /* ── About stats ── */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat-n { font-size: 28px; }
}

/* ── Tool pages shared hero ──────────────────────────────── */
.tool-hero { background: linear-gradient(135deg, #0F3B8C 0%, #1B5FC1 100%); padding: 56px 24px 52px; color: #fff; text-align: center; }
.tool-hero-inner { max-width: 680px; margin: 0 auto; }
.tool-hero-h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(28px, 5vw, 40px); font-weight: 800; margin-bottom: 14px; }
.tool-hero-p { font-size: 17px; color: rgba(255,255,255,0.8); margin-bottom: 28px; }
.tool-hero-pills { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.tool-hero-pill { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); border-radius: 100px; padding: 5px 16px; font-size: 13px; font-weight: 600; color: #fff; }

/* ── Flashcards ──────────────────────────────────────────── */
.fc-wrap { max-width: 560px; margin: 0 auto; padding: 40px 24px 80px; }
.fc-cats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.fc-cat-btn { padding: 7px 16px; border-radius: 100px; border: 1.5px solid var(--border); font-size: 13px; font-weight: 600; color: var(--gray); background: #fff; cursor: pointer; transition: all .15s; }
.fc-cat-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.fc-progress { text-align: center; font-size: 13px; color: var(--gray); margin-bottom: 20px; font-weight: 500; }
.fc-scene { perspective: 1000px; margin-bottom: 20px; cursor: pointer; }
.fc-card { width: 100%; height: 300px; position: relative; transform-style: preserve-3d; transition: transform 0.5s ease; border-radius: 20px; }
.fc-card.flipped { transform: rotateY(180deg); }
.fc-front, .fc-back { position: absolute; inset: 0; border-radius: 20px; backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; }
.fc-front { background: #fff; border: 2px solid var(--border); box-shadow: 0 8px 32px rgba(27,95,193,0.10); }
.fc-back { background: linear-gradient(135deg, var(--blue) 0%, #0F3B8C 100%); color: #fff; transform: rotateY(180deg); }
.fc-lang-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gray); margin-bottom: 16px; }
.fc-back .fc-lang-label { color: rgba(255,255,255,0.6); }
.fc-word-text { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 36px; font-weight: 800; color: var(--navy); text-align: center; margin-bottom: 16px; }
.fc-back .fc-word-text { color: #fff; font-size: 32px; }
.fc-example-text { font-size: 14px; font-style: italic; color: rgba(255,255,255,0.8); text-align: center; line-height: 1.6; }
.fc-tap-hint { font-size: 13px; color: #94A3B8; margin-top: auto; }
.fc-nav { display: flex; gap: 12px; justify-content: center; margin-bottom: 16px; }
.fc-btn { padding: 10px 24px; border-radius: 10px; border: 1.5px solid var(--border); background: #fff; font-size: 14px; font-weight: 600; color: var(--navy); cursor: pointer; transition: all .15s; }
.fc-btn:hover { background: var(--gray-light); }
.fc-btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.fc-btn.primary:hover { background: var(--blue-dark); }
.fc-known-link { display: block; text-align: center; font-size: 13px; color: var(--gray); cursor: pointer; transition: color .15s; }
.fc-known-link:hover { color: var(--navy); }
.fc-done { text-align: center; padding: 48px 24px; }
.fc-done-icon { font-size: 48px; margin-bottom: 16px; }
.fc-done h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.fc-done p { color: var(--gray); font-size: 15px; margin-bottom: 24px; }

/* ── Word of the Day ─────────────────────────────────────── */
.wod-hero { background: linear-gradient(135deg, #0F3B8C 0%, #1B5FC1 100%); padding: 56px 24px 60px; color: #fff; text-align: center; }
.wod-hero-inner { max-width: 680px; margin: 0 auto; }
.wod-pill { display: inline-block; background: rgba(245,146,26,0.2); border: 1px solid rgba(245,146,26,0.4); border-radius: 100px; padding: 5px 16px; font-size: 13px; font-weight: 600; color: #FFD08A; margin-bottom: 20px; }
.wod-main-word { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 58px; font-weight: 800; line-height: 1.1; margin-bottom: 16px; }
.wod-type-badge { display: inline-block; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); border-radius: 100px; padding: 5px 16px; font-size: 13px; color: rgba(255,255,255,0.85); font-weight: 500; }
.wod-body { background: #F8FAFC; padding: 48px 24px 80px; }
.wod-cards-wrap { max-width: 700px; margin: 0 auto 48px; display: flex; flex-direction: column; gap: 16px; }
.wod-detail-card { background: #fff; border-radius: 16px; padding: 24px 28px; border: 1px solid var(--border); box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.wod-card-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.wod-card-content { font-size: 16px; line-height: 1.7; color: #334155; }
.wod-card-content em { font-style: italic; color: var(--navy); font-weight: 600; }
.wod-recent-section { max-width: 700px; margin: 0 auto; }
.wod-recent-h { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 20px; }
.wod-recent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.wod-recent-card { background: #fff; border-radius: 12px; padding: 18px 20px; border: 1px solid var(--border); }
.wod-recent-word { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.wod-recent-type { font-size: 12px; color: var(--blue); font-weight: 600; margin-bottom: 6px; }
.wod-recent-meaning { font-size: 13px; color: var(--gray); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wod-cta { text-align: center; }
.wod-cta-btn { display: inline-block; padding: 14px 32px; border-radius: 12px; background: var(--blue); color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 16px; }

/* ── Phrasebook ──────────────────────────────────────────── */
.pb-hero { background: linear-gradient(135deg, #0F3B8C 0%, #1B5FC1 100%); padding: 56px 24px 52px; color: #fff; text-align: center; }
.pb-hero-inner { max-width: 680px; margin: 0 auto; }
.pb-hero-h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(28px, 5vw, 42px); font-weight: 800; margin: 16px 0 12px; }
.pb-hero-p { font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 28px; }
.pb-search-wrap { position: relative; max-width: 520px; margin: 0 auto; }
.pb-search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.6); font-size: 15px; pointer-events: none; }
.pb-search-input { width: 100%; padding: 14px 16px 14px 44px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.12); color: #fff; font-size: 15px; font-family: 'Inter', sans-serif; outline: none; transition: all .2s; }
.pb-search-input::placeholder { color: rgba(255,255,255,0.5); }
.pb-search-input:focus { border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.2); }

.pb-body { background: #F4F7FD; padding: 0 0 80px; }
.pb-cats-row { background: #fff; border-bottom: 1px solid var(--border); padding: 0 24px; position: sticky; top: 0; z-index: 10; }
.pb-cats { max-width: 900px; margin: 0 auto; display: flex; gap: 8px; flex-wrap: wrap; }
.pb-cat-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 100px; border: 1.5px solid var(--border); font-size: 13px; font-weight: 600; color: var(--gray); background: #fff; cursor: pointer; transition: all .15s; font-family: 'Plus Jakarta Sans', sans-serif; margin: 8px 0; }
.pb-cat-btn i { font-size: 12px; }
.pb-cat-btn.active { background: var(--cat-c, var(--blue)); border-color: var(--cat-c, var(--blue)); color: #fff; }
.pb-cat-btn[data-cat="All"].active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pb-cat-btn:hover:not(.active) { background: var(--gray-light); }

.pb-content { max-width: 900px; margin: 32px auto 0; padding: 0 24px; }
.pb-list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.pb-result-count { font-size: 14px; color: var(--gray); }
.pb-result-count strong { color: var(--navy); font-weight: 700; }

.pb-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pb-phrase-card { background: #fff; border-radius: 14px; border: 1px solid var(--border); overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: box-shadow .2s, transform .2s; }
.pb-phrase-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.09); transform: translateY(-2px); }
.pb-phrase-inner { display: flex; height: 100%; }
.pb-phrase-accent { width: 4px; background: var(--cat-color, #1B5FC1); flex-shrink: 0; }
.pb-phrase-body { flex: 1; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.pb-phrase-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pb-phrase-texts { flex: 1; }
.pb-dutch { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; line-height: 1.4; }
.pb-english { font-size: 13px; color: var(--gray); line-height: 1.4; }
.pb-phrase-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-top: 2px; }
.pb-cat-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 100px; background: var(--cat-bg, #EEF4FF); color: var(--cat-color, #1B5FC1); white-space: nowrap; }
.pb-tip-btn { background: none; border: none; color: #CBD5E1; cursor: pointer; font-size: 15px; padding: 2px; line-height: 1; transition: color .15s; }
.pb-tip-btn:hover, .pb-tip-btn.active { color: var(--cat-color, var(--blue)); }
.pb-tip-box { display: none; padding: 10px 12px; background: var(--cat-bg, #EEF4FF); border-radius: 8px; font-size: 13px; color: var(--cat-color, var(--blue)); line-height: 1.6; }
.pb-tip-box i { margin-right: 5px; }
.pb-tip-box.open { display: block; }

.pb-no-results { grid-column: 1 / -1; text-align: center; padding: 64px 24px; background: #fff; border-radius: 14px; border: 1px solid var(--border); }
.pb-no-results i { font-size: 32px; margin-bottom: 12px; display: block; color: #CBD5E1; }
.pb-no-results p { color: var(--gray); font-size: 15px; margin-bottom: 20px; }
.pb-clear-btn { padding: 9px 22px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; border: none; font-family: 'Plus Jakarta Sans', sans-serif; }
