/* =====================================================================
   Prime' New Generation — Design System (professional / institutional light theme)
   Plain CSS, no build tools. All visual tokens live here.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette — Prime Education Group: deep purple + gold on cream.
     NOTE: token NAMES are kept (referenced inline by JS/HTML); only the
     VALUES are remapped to the purple/gold/cream identity. */
  --navy-900: #16123B;   /* purple-ink  */
  --navy-800: #211C58;   /* purple-deep */
  --navy-700: #3A338F;   /* purple-mid  */
  --blue-600: #5852D6;   /* primary purple */
  --blue-500: #5852D6;
  --blue-100: rgba(88, 82, 214, 0.12);
  --gold-600: #C99E00;
  --gold-500: #F5C300;

  /* Neutrals / surfaces */
  --bg: #FAF6EC;         /* cream */
  --bg-alt: #FFFFFF;
  --surface: #ffffff;
  --surface-2: #FBF8F0;
  --border: rgba(88, 82, 214, 0.16);
  --border-strong: rgba(88, 82, 214, 0.28);
  --text: #1A1633;
  --text-dim: #6A6488;
  --text-faint: #9A93B5;

  /* Brand shorthands used by the redesign blocks */
  --purple: #5852D6;
  --purple-deep: #211C58;
  --purple-ink: #16123B;
  --gold: #F5C300;
  --gold-d: #C99E00;
  --cream: #FAF6EC;
  --cyan-300: #F5C300;   /* legacy name (countries.js) → gold accent */
  --serif: Georgia, "Times New Roman", serif;

  /* Accents kept as solids (no neon) */
  --accent: var(--blue-500);
  --accent-soft: var(--blue-100);

  /* Radius / shadow */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 33, 64, 0.06), 0 1px 3px rgba(16, 33, 64, 0.08);
  --shadow: 0 8px 24px rgba(16, 33, 64, 0.08);
  --shadow-md: 0 12px 32px rgba(16, 33, 64, 0.12);

  --container: 1180px;
  --nav-h: 84px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul { list-style: none; }

/* Subtle institutional backdrop (no animated blobs) */
.bg-grid { display: none; }
body::before {
  content: ""; position: fixed; inset: 0 0 auto 0; height: 480px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #eaf0fa 0%, var(--bg) 100%);
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 84px; position: relative; }
.section-sm { padding-block: 48px; }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--blue-600);
  padding: 6px 14px; border-radius: 6px;
  background: var(--accent-soft); border: 1px solid #d7e2f9;
}
.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; line-height: 1.12;
  letter-spacing: -0.02em; margin-block: 16px 12px; color: var(--navy-800);
}
.section-lead { color: var(--text-dim); font-size: 1.08rem; max-width: 620px; }
.center .section-lead { margin-inline: auto; }
.gradient-text { color: var(--blue-600); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 8px; font-weight: 700; font-size: 0.97rem;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s, border-color 0.18s;
  white-space: nowrap; border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-800); box-shadow: var(--shadow); }
.btn-accent { background: var(--gold-500); color: #fff; }
.btn-accent:hover { background: var(--gold-600); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--navy-800); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--blue-500); color: var(--blue-600); }
.btn-lg { padding: 15px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.glass { background: var(--surface); border: 1px solid var(--border); }

/* =====================================================================
   NAVBAR
   ===================================================================== */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
/* Nav content spans (almost) full width so the logo hugs the far left
   and the actions hug the far right — no big empty side gaps. */
.nav .container { display: flex; align-items: center; gap: 18px; max-width: 1500px; padding-inline: 40px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--navy-800); }
.brand .logo { width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--navy-700); border-radius: 11px; }
.brand .logo svg { width: 26px; height: 26px; }
.brand .logo svg path { stroke: #fff !important; }
.brand b { color: var(--navy-800); }

/* Real logo — transparent PNG, sits directly on the deep-purple navbar.
   Slightly taller than the nav bar itself (overflow is visible) for more presence. */
.nav-logo { display: inline-flex; align-items: center; margin-inline-start: 12px; transition: transform 0.18s var(--ease); }
.nav-logo:hover { transform: translateY(-2px); }
.nav-logo img { height: 104px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav-links a {
  padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: 1rem;
  color: var(--text-dim); transition: color 0.18s, background 0.18s;
}
.nav-links a:hover { color: var(--navy-800); background: var(--bg-alt); }
.nav-links a.active { color: var(--blue-600); background: var(--accent-soft); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: 8px; }

/* Language switcher */
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 7px; padding: 8px 13px;
  border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--navy-800); font-weight: 600; font-size: 0.88rem; transition: border-color 0.18s, background 0.18s;
}
.lang-btn:hover { background: var(--surface-2); border-color: var(--blue-500); }
.lang-btn .flag { font-size: 1.05rem; line-height: 1; }
.lang-btn .chev { width: 14px; height: 14px; transition: transform 0.22s; }
.lang.open .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 184px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 6px; box-shadow: var(--shadow-md); z-index: 120;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all 0.18s var(--ease);
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: start;
  padding: 10px 12px; border-radius: 8px; color: var(--text-dim); font-weight: 600; transition: all 0.15s;
}
.lang-menu button:hover { background: var(--bg-alt); color: var(--navy-800); }
.lang-menu button.active { background: var(--accent-soft); color: var(--blue-600); }
.lang-menu .flag { font-size: 1.15rem; }
.lang-menu .native { margin-inline-start: auto; font-size: 0.76rem; color: var(--text-faint); }

/* Mobile nav */
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--border-strong); align-items: center; justify-content: center; color: var(--navy-800); }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 940px) {
  .nav .container { padding-inline: 20px; }
  .nav-toggle { display: flex; margin-inline-start: auto; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 4px;
    background: var(--surface); padding: 16px 24px 24px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform 0.3s var(--ease); margin: 0;
  }
  .nav.open .nav-links { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 13px 14px; }
  .nav-actions { margin-inline-start: 0; }
}

/* =====================================================================
   HERO
   ===================================================================== */
/* Full-bleed hero image (class.jpg): sharp on the left behind the text,
   fading to clear on the right where the photo shows through. */
.hero {
  position: relative; padding-block: clamp(56px, 8vw, 96px) 76px; overflow: hidden;
  background: url("../class.jpg") center right / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg,
    rgba(7, 12, 24, 0.94) 0%, rgba(7, 12, 24, 0.82) 36%,
    rgba(7, 12, 24, 0.45) 64%, rgba(7, 12, 24, 0.12) 100%);
}
/* Smoothly blend the bottom of the photo into the page background. */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 0;
  pointer-events: none; background: linear-gradient(180deg, transparent, var(--bg));
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em;
  color: #fff;
}
.hero .gradient-text { color: #9fe06a; }
.hero p.lead { color: rgba(255, 255, 255, 0.86); font-size: 1.15rem; margin-block: 20px 28px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; gap: 36px; margin-top: 42px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 1.8rem; font-weight: 800; color: #fff; }
.hero-stats .stat span { color: rgba(255, 255, 255, 0.72); font-size: 0.88rem; }

/* Hero visual card */
.hero-visual { position: relative; }
.hero-card {
  border-radius: var(--radius-xl); padding: 30px; position: relative;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.hero-card .ring { display: grid; place-items: center; margin-bottom: 20px; }
.score-ring { position: relative; width: 164px; height: 164px; }
.score-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.score-ring .track { fill: none; stroke: var(--bg-alt); stroke-width: 12; }
.score-ring .prog { fill: none; stroke: url(#ringGrad); stroke-width: 12; stroke-linecap: round;
  transition: stroke-dashoffset 1.1s var(--ease); }
.score-ring .num { position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2.4rem; font-weight: 800; color: var(--navy-800); }
.hero-card .label { text-align: center; color: var(--text-dim); font-weight: 600; font-size: 0.95rem; }
.hero-rows { margin-top: 20px; display: grid; gap: 10px; }
.hero-row { display: flex; align-items: center; gap: 13px; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); }
.hero-row .ic { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--blue-600); flex-shrink: 0; }
.hero-row .ic svg { width: 19px; height: 19px; }
.hero-row b { font-size: 0.93rem; color: var(--navy-800); } .hero-row small { color: var(--text-faint); }
.hero-badge { position: absolute; top: -14px; inset-inline-end: 18px; background: var(--gold-500);
  color: #fff; font-weight: 700; font-size: 0.78rem; padding: 7px 15px; border-radius: 6px; box-shadow: var(--shadow-sm); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 420px; margin-inline: auto; }
  /* Stacked layout — darken the whole image so all text stays readable. */
  .hero::before { background: linear-gradient(180deg, rgba(7, 12, 24, 0.78), rgba(7, 12, 24, 0.9)); }
}

/* =====================================================================
   FEATURE / GENERIC GRIDS
   ===================================================================== */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.feature .fic { width: 50px; height: 50px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid #d7e2f9; margin-bottom: 16px; }
.feature .fic svg { width: 24px; height: 24px; color: var(--blue-600); }
.feature h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 8px; color: var(--navy-800); }
.feature p { color: var(--text-dim); font-size: 0.96rem; }

/* Steps (how it works) */
.steps { counter-reset: step; }
.step-card { position: relative; padding-top: 30px; }
.step-card::before { counter-increment: step; content: counter(step);
  position: absolute; top: -20px; inset-inline-start: 24px;
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.1rem; color: #fff; background: var(--navy-700); box-shadow: var(--shadow-sm); }
.step-card h3 { color: var(--navy-800); }

/* =====================================================================
   COUNTRIES
   ===================================================================== */
.country-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.country-card .top { padding: 22px 24px 0; display: flex; align-items: center; gap: 13px; }
.country-card .flag { font-size: 2.4rem; line-height: 1; }
.country-card h3 { font-size: 1.28rem; font-weight: 750; color: var(--navy-800); }
.country-card .region { color: var(--text-faint); font-size: 0.84rem; }
.country-card .body { padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.country-card p { color: var(--text-dim); font-size: 0.94rem; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 0.9rem;
  padding: 9px 0; border-top: 1px solid var(--border); }
.kv span { color: var(--text-faint); } .kv b { font-weight: 700; color: var(--navy-800); }
.country-card .go { margin-top: auto; display: inline-flex; align-items: center; gap: 7px;
  color: var(--blue-600); font-weight: 700; font-size: 0.93rem; }
.country-card .go svg { width: 17px; height: 17px; transition: transform 0.2s; }
.country-card:hover .go svg { transform: translateX(4px); }
[dir="rtl"] .country-card:hover .go svg { transform: translateX(-4px); }

/* Country detail */
.detail-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.detail-hero h1 { color: var(--navy-900); }
.detail-hero .flag-xl { font-size: clamp(4.5rem, 13vw, 8rem); line-height: 1; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .detail-hero { grid-template-columns: 1fr; } .detail-grid { grid-template-columns: 1fr; } }
.detail-grid h3 { color: var(--navy-800); }
.uni-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.uni-list li:last-child { border-bottom: none; }
.uni-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); flex-shrink: 0; }

/* =====================================================================
   FORUM
   ===================================================================== */
.forum-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .forum-layout { grid-template-columns: 1fr; } }
.forum-cats { display: flex; flex-direction: column; gap: 7px; position: sticky; top: 92px; }
@media (max-width: 860px) { .forum-cats { flex-direction: row; flex-wrap: wrap; position: static; } }
.cat-chip { display: flex; align-items: center; gap: 9px; padding: 11px 15px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); font-weight: 600;
  transition: all 0.18s; font-size: 0.92rem; }
.cat-chip:hover { border-color: var(--border-strong); color: var(--navy-800); }
.cat-chip.active { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.cat-chip .count { margin-inline-start: auto; font-size: 0.76rem; color: var(--text-faint);
  background: var(--bg-alt); padding: 2px 9px; border-radius: 999px; }
.cat-chip.active .count { background: rgba(255,255,255,0.2); color: #fff; }
.threads { display: flex; flex-direction: column; gap: 12px; }
.thread { display: flex; gap: 16px; align-items: flex-start; cursor: pointer; }
.thread .avatar { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: var(--navy-700) !important; }
.thread .meta { flex: 1; min-width: 0; }
.thread h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 4px; color: var(--navy-800); }
.thread .sub { color: var(--text-faint); font-size: 0.84rem; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tag { font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 5px;
  background: var(--accent-soft); color: var(--blue-600); }
.thread .stats { display: flex; gap: 18px; flex-shrink: 0; text-align: center; }
.thread .stats b { display: block; font-size: 1.02rem; color: var(--navy-800); } .thread .stats span { font-size: 0.72rem; color: var(--text-faint); }
@media (max-width: 560px) { .thread .stats { display: none; } }
.forum-note { text-align: center; color: var(--text-faint); font-size: 0.9rem; margin-top: 24px;
  padding: 15px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface-2); }

/* =====================================================================
   FORMS (contact + assessment)
   ===================================================================== */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--navy-800); }
.input, .select, .textarea {
  width: 100%; padding: 13px 15px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  transition: border-color 0.18s, box-shadow 0.18s; outline: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37,99,235,0.14); }
.textarea { resize: vertical; min-height: 130px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2351607a' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-inline-end: 42px; }
[dir="rtl"] .select { background-position: left 15px center; }
.phone-row { display: flex; gap: 10px; }
.phone-row .cc { flex: 0 0 84px; text-align: center; background: var(--bg-alt); font-weight: 700; color: var(--navy-800); }
.field-error { color: #c0392b; font-size: 0.82rem; min-height: 1px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; gap: 14px; align-items: center; }
.contact-item .ic { width: 48px; height: 48px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid #d7e2f9; flex-shrink: 0; }
.contact-item .ic svg { width: 22px; height: 22px; color: var(--blue-600); }
.contact-item b { display: block; color: var(--navy-800); } .contact-item span, .contact-item a { color: var(--text-dim); font-size: 0.92rem; }
.contact-item a:hover { color: var(--blue-600); }

/* Options (radio cards) */
.options { display: grid; gap: 10px; }
.options.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 540px) { .options.cols-2 { grid-template-columns: 1fr; } }
.opt {
  display: flex; align-items: center; gap: 13px; padding: 15px 17px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer;
  transition: all 0.16s var(--ease); font-weight: 600; color: var(--navy-800);
}
.opt:hover { border-color: var(--blue-500); background: var(--surface-2); }
.opt .check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong);
  flex-shrink: 0; display: grid; place-items: center; transition: all 0.16s; }
.opt.selected { border-color: var(--blue-500); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--blue-500) inset; }
.opt.selected .check { border-color: var(--blue-500); background: var(--blue-500); }
.opt.selected .check::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.opt .emoji { display: none; } /* keep the form clean & official — no decorative emojis */

/* =====================================================================
   ASSESSMENT WIZARD
   ===================================================================== */
.assess-wrap { max-width: 800px; margin-inline: auto; }
.assess-shell { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow); background: var(--surface); }
.assess-top { background: var(--navy-800); padding: 18px 28px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.assess-top .pill { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); padding: 6px 14px;
  border-radius: 6px; font-size: 0.8rem; font-weight: 700; color: #fff; }
.assess-top .spacer { margin-inline-start: auto; }
.assess-progress { padding: 22px 28px 0; }
.assess-progress .row { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-dim);
  font-weight: 600; margin-bottom: 8px; }
.assess-progress .row b { color: var(--navy-800); }
.progress-track { height: 8px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; }
.progress-bar { height: 100%; width: 8%; border-radius: 999px; background: var(--navy-700);
  transition: width 0.45s var(--ease); }
.assess-body { padding: 30px 28px; min-height: 280px; }
.assess-body .q-eyebrow { color: var(--blue-600); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.assess-body h2 { font-size: clamp(1.4rem, 3.2vw, 1.85rem); font-weight: 800; margin-block: 8px 6px; line-height: 1.2; color: var(--navy-900); }
.assess-body .q-help { color: var(--text-dim); margin-bottom: 22px; }
.assess-foot { display: flex; gap: 12px; padding: 0 28px 28px; }
.assess-foot .btn-primary { flex: 1; }
@media (max-width: 540px) { .assess-body, .assess-progress, .assess-top, .assess-foot { padding-inline: 18px; } }

.step-pane { animation: fadeUp 0.32s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

/* Result */
.result { text-align: center; padding: 14px 6px; }
.result .big-ring { width: 210px; height: 210px; margin: 6px auto 16px; position: relative; }
.result .big-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.result .big-ring .track { fill: none; stroke: var(--bg-alt); stroke-width: 14; }
.result .big-ring .prog { fill: none; stroke: url(#ringGrad); stroke-width: 14; stroke-linecap: round;
  transition: stroke-dashoffset 1.3s var(--ease); }
.result .big-ring .center { position: absolute; inset: 0; display: grid; place-content: center; }
.result .big-ring .center b { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--navy-800); }
.result .big-ring .center span { color: var(--text-faint); font-size: 0.78rem; font-weight: 600; }
.result .band { display: inline-block; padding: 7px 18px; border-radius: 6px; font-weight: 800; margin-bottom: 14px; font-size: 0.9rem; }
.band-high { background: #e6f4ec; color: #1c7a45; border: 1px solid #bfe3cd; }
.band-mid { background: #fdf3e2; color: #9a6512; border: 1px solid #f0dcb6; }
.band-low { background: #fbecea; color: #b23c2c; border: 1px solid #f2cdc6; }
.result h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 10px; color: var(--navy-900); }
.result .interp { color: var(--text-dim); max-width: 520px; margin: 0 auto 24px; }
.next-steps { text-align: start; max-width: 480px; margin: 0 auto 26px; display: grid; gap: 10px; }
.next-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); color: var(--navy-800); }
.next-steps .ck { width: 22px; height: 22px; border-radius: 50%; background: var(--navy-700);
  display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.next-steps .ck svg { width: 13px; height: 13px; }
.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
/* Submission confirmation */
.submitted { text-align: center; padding: 30px 10px 16px; }
.success-badge { width: 116px; height: 116px; margin: 6px auto 26px; border-radius: 50%;
  background: #e6f4ec; display: grid; place-content: center; animation: popIn 0.45s var(--ease) both; }
.success-badge svg { width: 62px; height: 62px; }
.success-badge .ring { fill: none; stroke: #1c7a45; stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 158; stroke-dashoffset: 158; animation: draw 0.55s var(--ease) 0.18s forwards; }
.success-badge .tick { fill: none; stroke: #1c7a45; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.4s var(--ease) 0.62s forwards; }
@keyframes popIn { from { opacity: 0; transform: scale(0.7); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.submitted h2 { font-size: 1.7rem; font-weight: 800; color: var(--navy-900); margin-bottom: 12px; }
.submitted p { color: var(--text-dim); max-width: 500px; margin: 0 auto 28px; line-height: 1.65; }

/* =====================================================================
   CTA BAND + FOOTER
   ===================================================================== */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl);
  padding: clamp(36px, 5vw, 60px); text-align: center;
  background: var(--navy-800); border: 1px solid var(--navy-700); color: #fff; }
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; position: relative; color: #fff; }
.cta-band p { color: #c4d0e6; font-size: 1.05rem; margin-block: 12px 24px; position: relative; }
.cta-band .btn-primary { background: var(--gold-500); }
.cta-band .btn-primary:hover { background: var(--gold-600); }

.footer { margin-top: 40px; padding-block: 56px 28px; background: var(--navy-900); color: #c4d0e6; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer .brand { margin-bottom: 14px; color: #fff; }
.footer .brand b { color: #fff; }
.footer .brand .logo { background: rgba(255,255,255,0.12); }
.footer p.about { color: #9fb0cc; font-size: 0.93rem; max-width: 320px; }
.footer h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.09em; color: #7e90af;
  margin-bottom: 15px; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: #b6c4dc; font-size: 0.93rem; transition: color 0.18s; }
.footer ul a:hover { color: #fff; }
.socials { display: flex; gap: 9px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: #c4d0e6; transition: all 0.18s; }
.socials a:hover { background: rgba(255,255,255,0.16); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #8294b3; font-size: 0.86rem; }

/* ---------- Page header (sub pages) ---------- */
.page-head { padding-block: clamp(44px, 7vw, 76px) 18px; text-align: center; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; color: var(--navy-900); }
.page-head p { color: var(--text-dim); font-size: 1.1rem; max-width: 600px; margin: 14px auto 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }

/* Checklist with ticks (used on the Support page) */
.check-list { list-style: none; display: grid; gap: 13px; }
.check-list li { position: relative; padding-inline-start: 32px; color: var(--text-dim); line-height: 1.5; }
.check-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--purple, #5852d6); color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 13px;
}
.hidden { display: none !important; }
.text-dim { color: var(--text-dim); }
.flex { display: flex; } .gap { gap: 14px; } .wrap { flex-wrap: wrap; } .center-y { align-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   VIDEO BAND (home page)
   ===================================================================== */
.video-band { position: relative; border-radius: var(--radius-xl); overflow: hidden;
  min-height: 440px; display: flex; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.video-band .video-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-band .video-overlay { position: relative; z-index: 1; width: 100%;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px;
  padding: clamp(28px, 5vw, 60px);
  background: linear-gradient(90deg, rgba(8,18,40,0.88) 0%, rgba(8,18,40,0.6) 45%, rgba(8,18,40,0.2) 100%);
  color: #fff; }
[dir="rtl"] .video-band .video-overlay { align-items: flex-end; text-align: right;
  background: linear-gradient(270deg, rgba(8,18,40,0.88) 0%, rgba(8,18,40,0.6) 45%, rgba(8,18,40,0.2) 100%); }
.video-band .eyebrow { background: rgba(255,255,255,0.14); color: #dbe6ff; border-color: rgba(255,255,255,0.28); }
.video-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; max-width: 560px; color: #fff; }
.video-band p { color: #d6deec; max-width: 480px; font-size: 1.05rem; }
.video-band .btn { margin-top: 6px; }
@media (max-width: 560px) {
  .video-band .video-overlay { align-items: center; text-align: center;
    background: linear-gradient(180deg, rgba(8,18,40,0.5), rgba(8,18,40,0.86)); }
}

/* =====================================================================
   FLOATING THEME TOGGLE (light / dark)
   ===================================================================== */
.theme-fab { position: fixed; bottom: 22px; inset-inline-end: 22px; width: 52px; height: 52px;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md); color: var(--navy-800); display: grid; place-items: center;
  z-index: 200; transition: transform 0.2s var(--ease), background 0.2s, color 0.2s; }
.theme-fab:hover { transform: translateY(-3px) scale(1.05); color: var(--blue-600); }
.theme-fab svg { width: 23px; height: 23px; }
html[data-theme="dark"] .theme-fab { color: #ffd166; }

/* =====================================================================
   DARK THEME
   ===================================================================== */
html[data-theme="dark"] {
  --bg: #0a1120;
  --bg-alt: #131e36;
  --surface: #121c33;
  --surface-2: #0e1830;
  --border: #233354;
  --border-strong: #324367;
  --text: #e9eef8;
  --text-dim: #a4b3cf;
  --text-faint: #70819f;
  --blue-600: #7da5ff;     /* lighter accent so blue text/icons stay readable */
  --blue-100: #15223d;
  --accent-soft: #15223d;
}
html[data-theme="dark"] body::before {
  background: linear-gradient(180deg, #0f1a30 0%, var(--bg) 100%);
}
html[data-theme="dark"] .nav { background: rgba(10, 17, 32, 0.9); }

/* Headings / labels that hard-code navy → make them readable on dark */
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .hero-stats .stat b,
html[data-theme="dark"] .score-ring .num,
html[data-theme="dark"] .feature h3,
html[data-theme="dark"] .step-card h3,
html[data-theme="dark"] .country-card h3,
html[data-theme="dark"] .kv b,
html[data-theme="dark"] .detail-hero h1,
html[data-theme="dark"] .detail-grid h3,
html[data-theme="dark"] .thread h3,
html[data-theme="dark"] .thread .stats b,
html[data-theme="dark"] .field label,
html[data-theme="dark"] .phone-row .cc,
html[data-theme="dark"] .assess-progress .row b,
html[data-theme="dark"] .assess-body h2,
html[data-theme="dark"] .result .big-ring .center b,
html[data-theme="dark"] .result h2,
html[data-theme="dark"] .submitted h2,
html[data-theme="dark"] .next-steps li,
html[data-theme="dark"] .page-head h1,
html[data-theme="dark"] .contact-item b,
html[data-theme="dark"] .brand, html[data-theme="dark"] .brand b,
html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .lang-btn,
html[data-theme="dark"] .opt,
html[data-theme="dark"] .nav-toggle,
html[data-theme="dark"] .nav-links a:hover,
html[data-theme="dark"] .cat-chip:hover { color: var(--text); }

/* Footer brand stays white even in dark */
html[data-theme="dark"] .footer .brand, html[data-theme="dark"] .footer .brand b { color: #fff; }
html[data-theme="dark"] .eyebrow { border-color: #2a3f63; }

/* =====================================================================
   ★ PRIME EDUCATION GROUP — REDESIGN LAYER
   Purple + gold + cream identity, ported from the approved home design.
   Appended last so these rules win over the older navy/blue styles.
   ===================================================================== */

/* Soft cream backdrop instead of the old blue wash */
body::before {
  background: radial-gradient(120% 60% at 80% -10%, rgba(88,82,214,0.10), transparent 60%);
  height: 520px;
}

/* ---- Eyebrow: clean uppercase label, no box ---- */
.eyebrow {
  background: none; border: none; padding: 0;
  font-size: 0.74rem; letter-spacing: 0.28em; font-weight: 700;
  text-transform: uppercase; color: var(--gold-600);
}
.eyebrow.p, .center .eyebrow { color: var(--purple); }
.hero .eyebrow, .land .eyebrow, .final .eyebrow { color: var(--gold); }

/* Ghost button reads on the dark purple hero */
.hero .btn-ghost { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.hero .btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: transparent; }

/* ---- Buttons: pill shape + gold primary CTA ---- */
.btn { border-radius: 40px; }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: #4a45c4; box-shadow: 0 10px 24px rgba(88,82,214,0.35); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--purple-ink); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(245,195,0,0.40); }
.btn-accent { background: var(--gold); color: var(--purple-ink); }
.btn-accent:hover { background: var(--gold-d); }
.cta-band .btn-primary, .cta-band .btn-gold { background: var(--gold); color: var(--purple-ink); }
.cta-band .btn-primary:hover, .cta-band .btn-gold:hover { background: var(--gold-d); }

/* ---- NAVBAR on deep purple ---- */
.nav {
  background: rgba(22,18,59,0.92);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
/* ---- Real logo, displayed clearly on a white panel in the footer ---- */
.foot-logo {
  display: inline-block; background: #fff; border-radius: 16px; padding: 16px 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.28); transition: transform 0.18s var(--ease);
}
.foot-logo:hover { transform: translateY(-3px); }
.foot-logo img { height: 78px; width: auto; display: block; }
.brand b { display: none; } /* logo art already carries the name */
.nav-links a { color: rgba(255,255,255,0.82); }
.nav-links a:hover { color: var(--gold); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--gold); background: rgba(255,255,255,0.08); }
.lang-btn { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); color: #fff; }
.lang-btn:hover { background: rgba(255,255,255,0.16); border-color: var(--gold); }
.nav .btn-gold { padding: 10px 18px; font-size: 0.9rem; }
.nav-toggle { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); color: #fff; }
@media (max-width: 940px) {
  .nav-links { background: var(--purple-deep); border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-links a { color: rgba(255,255,255,0.9); }
}

/* ---- Trust strip (under nav, site-wide) ---- */
.trust { background: var(--purple-deep); border-bottom: 1px solid rgba(255,255,255,0.08); }
.trust .row { max-width: 1180px; margin-inline: auto; padding: 11px 24px;
  display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: center; }
.trust span { font-size: 0.78rem; color: rgba(255,255,255,0.75); display: inline-flex; align-items: center; gap: 8px; }
.trust b { color: var(--gold); font-weight: 700; }
.trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: 0.6; }

/* ---- Alternating section surface ---- */
.section.alt { background: #fff; }

/* ---- Section background video ---- */
.section.has-bg-video { overflow: hidden; }
.section-bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none;
}
/* Light wash so dark headings stay readable over the footage */
.section.has-bg-video::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(255,255,255,0.78);
}
.section.has-bg-video > .container { position: relative; z-index: 2; }

/* ---- Section background map (faded world-map watermark) ---- */
.section.has-bg-map {
  position: relative; overflow: hidden; isolation: isolate;
  background-color: #fff;
  background-image:
    /* faint brand-purple tint keeps the map on-theme rather than a stock photo */
    linear-gradient(0deg, rgba(88,82,214,0.06), rgba(88,82,214,0.06)),
    /* soft white→cream wash fades the map to a watermark so cards stay crisp */
    radial-gradient(120% 95% at 50% 0%,
      rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.70) 55%, rgba(250,246,236,0.85) 100%),
    url("../Map.jpg");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
}
.section.has-bg-map > .container { position: relative; z-index: 1; }
@media (hover: hover) and (min-width: 881px) {
  .section.has-bg-map { background-attachment: scroll, scroll, fixed; }
}

/* ---- HERO (purple gradient, no photo) ---- */
.hero {
  background-color: var(--purple-deep); /* on-brand fallback before image loads / if it 404s */
  background-image:
    radial-gradient(120% 90% at 78% -10%,
      rgba(58, 51, 143, 0.90) 0%, rgba(33, 28, 88, 0.95) 48%, rgba(22, 18, 59, 0.98) 100%),
    url("../class.jpg");
  background-size: cover, cover;
  background-position: center, center 35%;
  background-repeat: no-repeat;
  /* heavy single-hue gradient × photo maps the photo's tones into a brand-purple duotone */
  background-blend-mode: multiply, normal;
  padding-block: clamp(56px, 8vw, 90px) 0; color: #fff;
}
.hero::before { display: none; }
@media (hover: hover) and (min-width: 881px) {
  .hero { background-attachment: fixed, scroll; }
}
.hero::after {
  content: ""; position: absolute; width: 540px; height: 540px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,195,0,0.18), transparent 65%);
  top: -160px; inset-inline-end: -140px; left: auto; height: 540px; filter: blur(10px); z-index: 0;
}
.hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 50px; }
.hero h1 { color: #fff; font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem); letter-spacing: -0.025em; line-height: 1.06; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p.lead { color: rgba(255,255,255,0.82); font-weight: 300; }
.hero-doors { display: flex; gap: 12px; margin-top: 32px; }
.door-mini { flex: 1; border: 1px solid rgba(255,255,255,0.16); border-radius: 16px;
  padding: 20px 22px; background: rgba(255,255,255,0.05); cursor: pointer; transition: 0.18s; }
.door-mini:hover { background: rgba(255,255,255,0.1); border-color: var(--gold); }
.door-mini .t { font-family: var(--serif); font-size: 1.28rem; color: #fff; }
.door-mini .t span { color: var(--gold); }
.door-mini .s { font-size: 0.82rem; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* Hero "Official Representative" card (overrides old score-ring card) */
.hero-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px; padding: 28px; box-shadow: none; backdrop-filter: blur(6px); }
.hero-card .badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 700;
  border: 1px solid rgba(245,195,0,0.35); border-radius: 30px; padding: 6px 13px; }
.hero-card h3 { font-size: 1.4rem; color: #fff; margin: 16px 0 6px; }
.hero-card > p { font-size: 0.9rem; color: rgba(255,255,255,0.72); }
.hero-card .ck { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px;
  font-size: 0.88rem; color: rgba(255,255,255,0.86); }
.hero-card .ck b { color: var(--gold); font-weight: 800; }

/* Hero stats — 4-up row */
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 56px; }
.hero-stats > div { padding: 24px 6px 32px; text-align: center; border-inline-end: 1px solid rgba(255,255,255,0.1); }
.hero-stats > div:last-child { border-inline-end: none; }
.hero-stats .n { font-family: var(--serif); font-size: 2.3rem; color: var(--gold); }
.hero-stats .l { font-size: 0.78rem; color: rgba(255,255,255,0.66); margin-top: 2px; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats > div:nth-child(2) { border-inline-end: none; }
}

/* ---- TWO DOORS ---- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 52px; }
.door { border-radius: 26px; padding: 54px 52px; color: #fff; min-height: 400px;
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.door.g { background: linear-gradient(160deg, #5852D6, #3A338F); }
.door.a { background: linear-gradient(160deg, #1D9E75, #0F6E56); }
.door .tag { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; font-weight: 700; }
.door h3 { font-size: 2.6rem; color: #fff; margin: 10px 0 14px; }
.door p { font-size: 1rem; color: rgba(255,255,255,0.85); max-width: 420px; }
.door ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 26px; }
.door ul li { font-size: 0.82rem; background: rgba(255,255,255,0.15); border-radius: 30px; padding: 6px 15px; }
.door .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; color: var(--gold); cursor: pointer; }
.door.a .go { color: #fff; }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; gap: 16px; } .door { padding: 40px 32px; min-height: 320px; } .door h3 { font-size: 2rem; } }

/* ---- FUNNEL (learn → succeed) ---- */
.funnel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 44px; }
.fstep { background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 24px 20px; border-top: 4px solid var(--purple); }
.fstep:nth-child(4), .fstep:nth-child(5) { border-top-color: var(--gold); }
.fstep .n { font-family: var(--serif); font-size: 1.9rem; color: var(--gold); }
.fstep h4 { font-size: 1.12rem; color: var(--purple); margin: 8px 0 6px; }
.fstep p { font-size: 0.86rem; color: var(--text-dim); }
@media (max-width: 860px) { .funnel { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .funnel { grid-template-columns: 1fr; } }

/* ---- "YOU WON'T LAND ALONE" ---- */
.land { background: linear-gradient(180deg, var(--purple-deep), var(--purple-ink)); color: #fff;
  border-radius: 0; }
.land-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; }
.land h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.land h2 em { font-style: italic; color: var(--gold); }
.land .lead { color: rgba(255,255,255,0.78); margin-top: 16px; }
.land-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lf { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 22px; }
.lf .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--gold); color: var(--purple-ink);
  display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 1.2rem; margin-bottom: 12px; }
.lf h4 { font-size: 1.1rem; color: #fff; margin-bottom: 5px; }
.lf p { font-size: 0.85rem; color: rgba(255,255,255,0.72); }
@media (max-width: 880px) { .land-grid, .land-feats { grid-template-columns: 1fr; } }

/* ---- DESTINATIONS (restyle country cards into clean tiles) ---- */
.country-card { border-radius: 16px; }
.country-card h3 { color: var(--purple); }
.country-card .go { color: var(--purple); }
.dest-more { display: grid; place-items: center; text-align: center; min-height: 100%;
  border-style: dashed; }

/* ---- SCHOLARSHIP BAND ---- */
.schol { background: var(--gold); color: var(--purple-ink); border-radius: 24px;
  padding: clamp(32px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 24px; }
.schol .big { font-family: var(--serif); font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
.schol p { font-size: 1rem; max-width: 520px; margin-top: 8px; color: rgba(33,28,88,0.82); }

/* ---- STORIES ---- */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.story { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
.story .q { font-family: var(--serif); font-size: 1.1rem; color: var(--text); line-height: 1.4; }
.story .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.story .av { width: 42px; height: 42px; border-radius: 50%; background: var(--purple); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.1rem; }
.story .nm { font-weight: 700; font-size: 0.88rem; color: var(--text); }
.story .dt { font-size: 0.8rem; color: var(--text-dim); }
@media (max-width: 860px) { .stories { grid-template-columns: 1fr; } }

/* ---- FINAL CTA ---- */
.final { background: radial-gradient(100% 120% at 50% 0%, #3A338F, var(--purple-ink));
  color: #fff; text-align: center; padding-block: clamp(64px, 9vw, 100px); }
.final h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); }
.final h2 em { font-style: italic; color: var(--gold); }
.final p { color: rgba(255,255,255,0.78); margin: 16px auto 0; max-width: 560px; font-weight: 300; }
.final .sm { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-top: 16px; }

/* ---- BOOK-CONSULTATION MODAL (site-wide) ---- */
.modal-bg { position: fixed; inset: 0; background: rgba(22,18,59,0.6); backdrop-filter: blur(4px);
  z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-bg.on { display: flex; }
.modal { background: #fff; border-radius: 20px; max-width: 440px; width: 100%; padding: 34px; position: relative; }
.modal h3 { font-size: 1.7rem; color: var(--purple); }
.modal > #form-view > p, .modal .ok p { font-size: 0.92rem; color: var(--text-dim); margin-top: 6px; }
.modal label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--text); margin: 16px 0 6px; }
.modal input, .modal select { width: 100%; padding: 12px 14px; border: 1px solid var(--border-strong);
  border-radius: 10px; font-family: inherit; font-size: 0.92rem; color: var(--text); background: #fff; }
.modal input:focus, .modal select:focus { outline: none; border-color: var(--purple); }
.modal .btn-gold { width: 100%; margin-top: 22px; }
.modal .x { position: absolute; top: 16px; inset-inline-end: 18px; font-size: 1.5rem; color: var(--text-dim);
  background: none; border: none; cursor: pointer; line-height: 1; }
.modal .ok { text-align: center; padding: 14px 0; }
.modal .ok .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--gold);
  color: var(--purple-ink); display: grid; place-items: center; font-size: 1.8rem; margin: 0 auto 14px; }
.consult-toast { position: fixed; top: calc(var(--nav-h) + 18px); inset-inline-end: 22px; z-index: 420;
  display: flex; align-items: center; gap: 12px; max-width: min(360px, calc(100vw - 32px));
  padding: 14px 18px; border-radius: 14px; background: #fff; color: var(--navy-800);
  border: 1px solid rgba(31,122,61,0.20); box-shadow: 0 18px 42px rgba(33,28,88,0.18);
  font-weight: 700; font-size: 0.94rem; pointer-events: none; opacity: 0;
  transform: translateY(-12px) scale(0.96); transition: opacity 0.24s var(--ease), transform 0.24s var(--ease); }
.consult-toast.on { opacity: 1; transform: translateY(0) scale(1); }
.consult-toast-tick { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: #1f7a3d; color: #fff; font-size: 1rem; box-shadow: 0 0 0 7px rgba(31,122,61,0.10);
  animation: toastTick 0.38s var(--ease) both; }
@keyframes toastTick { from { transform: scale(0.55); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (max-width: 540px) {
  .consult-toast { top: auto; bottom: 18px; inset-inline: 16px; justify-content: center; }
}

/* ---- Floating WhatsApp button ---- */
.float-wa { position: fixed; bottom: 24px; inset-inline-end: 24px; width: 56px; height: 56px;
  border-radius: 50%; background: #25D366; display: grid; place-items: center; color: #fff;
  z-index: 250; box-shadow: 0 8px 24px rgba(0,0,0,0.25); transition: 0.18s; }
.float-wa:hover { transform: scale(1.08); }
.float-wa svg { width: 28px; height: 28px; }

/* WhatsApp contact button keeps brand green */
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1da851; }

/* ---- Auth modal + nav account slot ---- */
.modal .auth-lead { font-size: 0.92rem; color: var(--text-dim); margin-top: 6px; }
.modal textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border-strong);
  border-radius: 10px; font-family: inherit; font-size: 0.92rem; color: var(--text); background: #fff; resize: vertical; min-height: 90px; }
.modal textarea:focus { outline: none; border-color: var(--purple); }
.auth-error { color: #c0392b; font-size: 0.85rem; margin-top: 10px; }
.auth-switch { margin-top: 14px; font-size: 0.85rem; text-align: center; }
.auth-switch a { color: var(--purple); font-weight: 600; text-decoration: none; cursor: pointer; }
.auth-account { display: flex; align-items: center; gap: 10px; }
.auth-name { font-weight: 700; color: var(--navy-800); font-size: 0.88rem; max-width: 120px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Forum: ask/answer ---- */
.forum-toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-bottom: 16px; }
.forum-signin-hint { color: var(--text-faint); font-size: 0.85rem; }
.answer-list { display: flex; flex-direction: column; gap: 14px; margin: 18px 0; }
.answer-item { padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.answer-item .who { font-weight: 700; font-size: 0.85rem; color: var(--navy-800); margin-bottom: 4px; }
.answer-item p { font-size: 0.92rem; color: var(--text-dim); }
.qdetail-body { color: var(--text-dim); font-size: 0.95rem; margin: 6px 0 18px; white-space: pre-wrap; }

/* =====================================================================
   ★ DISTINCTIVE POLISH — our own signature, not a copy of the mock
   ===================================================================== */

/* Links inside dark strips / cards */
.trust a { color: #fff; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(245,195,0,0.6); }
.trust a:hover { color: var(--gold); }
.hero-card h3 a { transition: color 0.18s; }
.hero-card h3 a:hover { color: var(--gold); }

/* A small gold "pen-nib" tick under centred section eyebrows — echoes the logo */
.center > .eyebrow { position: relative; }

/* Hero slogan: a hand-drawn gold underline under the italic accents */
.hero h1 em { background-image: linear-gradient(transparent 78%, rgba(245,195,0,0.35) 0); }

/* Door cards: soft corner glow + arrow nudge (distinct from the flat mock) */
.door { position: relative; }
.door::after { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%;
  background: rgba(255,255,255,0.07); top: -64px; inset-inline-end: -46px; pointer-events: none; }
.door > div { position: relative; z-index: 1; }
.door .go { transition: gap 0.18s; }
.door:hover .go { gap: 14px; }

/* FUNNEL reimagined: connected circular numbered steps */
.funnel { position: relative; }
.fstep { position: relative; padding-top: 36px; border: 1px solid var(--border); border-top: 1px solid var(--border);
  transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.fstep:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(88,82,214,0.12); }
.fstep .n { position: absolute; top: -23px; inset-inline-start: 22px; width: 46px; height: 46px;
  border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; color: #fff;
  background: var(--purple); border: 3px solid #fff; box-shadow: 0 8px 18px rgba(88,82,214,0.30); }
.fstep:nth-child(4) .n, .fstep:nth-child(5) .n { background: var(--gold); color: var(--purple-ink);
  box-shadow: 0 8px 18px rgba(245,195,0,0.35); }
/* dotted connector behind the badges on wide screens */
@media (min-width: 861px) {
  .funnel::before { content: ""; position: absolute; top: -1px; left: 5%; right: 5%; height: 0;
    border-top: 2px dotted var(--border-strong); z-index: 0; }
}

/* STORIES: big decorative quote + gold side accent */
.story { position: relative; border-inline-start: 3px solid var(--gold); }
.story::before { content: "\201C"; position: absolute; top: 6px; inset-inline-end: 22px;
  font-family: var(--serif); font-size: 4.6rem; line-height: 1; color: rgba(88,82,214,0.12); pointer-events: none; }
.story .q { position: relative; z-index: 1; }

/* Destination tiles: purple lift on hover */
.country-card:hover { border-color: var(--purple); box-shadow: 0 16px 34px rgba(88,82,214,0.14); }

/* Section-title gets a subtle gold accent dash when centred */
.center .section-title::after { content: ""; display: block; width: 54px; height: 3px; border-radius: 3px;
  background: var(--gold); margin: 16px auto 0; }

.nav .btn-gold { box-shadow: 0 6px 16px rgba(245,195,0,0.28); }
.land .lead { font-size: 1.05rem; }

/* ---- Blog & Opportunities ---- */
.blog-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.blog-tab { padding: 8px 20px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-dim); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.18s; }
.blog-tab:hover { background: var(--surface-2); border-color: var(--blue-500); color: var(--navy-800); }
.blog-tab.active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.blog-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.blog-cat { font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 5px; text-transform: uppercase; letter-spacing: 0.06em; }
.blog-cat--news { background: #e0eaff; color: #1d4ed8; }
.blog-cat--scholarship { background: #d1fae5; color: #065f46; }
.blog-cat--testimony { background: #fef3c7; color: #92400e; }
.blog-date { font-size: 0.82rem; color: var(--text-faint); }
.blog-card { display: flex; flex-direction: column; }
.blog-card-title { font-size: 1.1rem; font-weight: 700; color: var(--navy-800); margin-bottom: 10px; line-height: 1.4; }
.blog-card-body { color: var(--text-dim); font-size: 0.94rem; line-height: 1.65; flex: 1; }
.blog-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--border); padding: 6px 12px; border-radius: 7px; font-size: 0.84rem; font-weight: 700; color: var(--navy-800); }
.blog-card-footer { margin-top: 14px; }
.blog-author { margin-top: 16px; display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.blog-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.blog-author-info { display: flex; flex-direction: column; gap: 2px; }
.blog-author-name { font-weight: 700; color: var(--navy-800); font-size: 0.9rem; }
.blog-author-route { font-size: 0.8rem; color: var(--text-faint); }
.blog-empty { color: var(--text-dim); font-size: 1rem; padding: 40px 0; }
.btn-sm { padding: 7px 16px; font-size: 0.88rem; }
