/* =========================================================
   EduAdvise Education Consultancy — site styles
   Brand: Navy #04314E · Beige #D8C7AB
   ========================================================= */

:root {
  --navy: #04314e;
  --navy-900: #021c2e;
  --navy-700: #0a4268;
  --navy-100: #e3ebf1;
  --beige: #d8c7ab;
  --beige-300: #e6d9c3;
  --beige-100: #f3ece0;
  --beige-50: #faf7f1;
  --bronze: #8a6a3b;          /* beige-family colour that passes contrast on light backgrounds */
  --ink: #12202c;
  --muted: #56636e;
  --line: #e4ddd0;
  --white: #ffffff;
  --success: #1f7a4d;
  --danger: #b3261e;
  --whatsapp: #25d366;

  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(4, 49, 78, .06), 0 2px 8px rgba(4, 49, 78, .05);
  --shadow: 0 10px 30px -12px rgba(4, 49, 78, .22);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: clip; /* not "hidden": that would break the sticky header */
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
[data-icon] svg { width: 1.15em; height: 1.15em; }
:focus-visible { outline: 3px solid var(--beige); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tint { background: var(--beige-50); }
.section--navy { background: var(--navy); color: #dbe5ee; }
.section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--bronze); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section--navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--beige); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.lead { font-size: 1.125rem; color: var(--muted); }
.section--navy .lead { color: #c3d2de; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .95rem/1 var(--font-sans);
  padding: 14px 22px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-700); color: var(--white); }
.btn--beige { background: var(--beige); color: var(--navy-900); }
.btn--beige:hover { background: var(--beige-300); color: var(--navy-900); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--ghost-light { border-color: rgba(255,255,255,.5); color: var(--white); background: transparent; }
.btn--ghost-light:hover { background: var(--white); color: var(--navy); }
.btn--whatsapp { background: var(--whatsapp); color: #06301a; }
.btn--whatsapp:hover { background: #3be07a; color: #06301a; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); /* no backdrop-filter: it would trap the fixed mobile menu panel */
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.topbar { background: var(--navy-900); color: #b9c8d4; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { color: #dfe8ef; text-decoration: none; }
.topbar a:hover { color: var(--beige); }
.topbar__links { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar__tag { font-family: var(--font-serif); font-style: italic; color: var(--beige); }
@media (max-width: 720px) { .topbar__tag { display: none; } .topbar .container { justify-content: center; } }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 54px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font: 800 1.45rem/1 var(--font-sans); letter-spacing: -.02em; color: var(--navy); }
.brand__name span { color: #c4ab82; }
.brand__sub { font: 500 .78rem/1.3 var(--font-serif); color: var(--navy); margin-top: 4px; letter-spacing: .02em; }

.nav__menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__menu a {
  display: block; padding: 10px 12px; border-radius: 8px;
  font-size: .93rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.nav__menu a:hover { background: var(--beige-50); color: var(--navy); }
.nav__menu a[aria-current="page"] { color: var(--navy); font-weight: 600; box-shadow: inset 0 -2px 0 var(--beige); border-radius: 0; }
.nav__cta { display: flex; gap: 10px; align-items: center; }
.nav__toggle {
  display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--white); color: var(--navy); cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle svg { width: 24px; height: 24px; }

@media (max-width: 1200px) {
  .nav__toggle { display: inline-flex; }
  .nav__cta .btn--primary { display: none; }
  .nav__panel {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw);
    background: var(--white);
    padding: 88px 24px 28px; transform: translateX(100%); visibility: hidden;
    transition: transform .28s ease, visibility 0s linear .28s;
    overflow-y: auto; z-index: 120;
  }
  .nav__panel.is-open { transform: none; visibility: visible; transition: transform .28s ease; box-shadow: -20px 0 60px rgba(2,28,46,.25); }
  .nav__menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__menu a { padding: 14px 12px; font-size: 1.02rem; border-bottom: 1px solid var(--beige-100); border-radius: 0; }
  .nav__menu a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--beige); padding-left: 16px; }
  .nav__panel-cta { display: grid; gap: 10px; margin-top: 22px; }
  .nav__close { position: absolute; top: 20px; right: 20px; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(2,28,46,.45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 110; }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
}
@media (min-width: 1201px) { .nav__panel-cta, .nav__close, .nav-backdrop { display: none; } .nav__panel { display: block; } }
@media (max-width: 420px) { .brand__sub { display: none; } .brand img { width: 46px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(1200px 600px at 85% 10%, #0b4a76 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #d5e1ea;
  padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 10vw, 130px);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { color: var(--white); margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--beige); font-weight: 600; }
.hero .lead { color: #c3d2de; max-width: 560px; margin-bottom: 30px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 36px; font-size: .9rem; color: #b6c6d3; }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 18px; height: 18px; color: var(--beige); }
.hero__visual { position: relative; aspect-ratio: 1 / 1; max-width: 480px; margin-left: auto; width: 100%; }
.hero__orbit { position: absolute; inset: 0; color: var(--beige); }
.hero__orbit-spin { transform-origin: 200px 200px; animation: lg-spin 90s linear infinite; }
.hero__logo { position: absolute; inset: 0; display: grid; place-items: center; }
.hero-logo { width: 104%; max-width: none; height: auto; overflow: visible; }
.hero-logo .lg-star { fill: #fff; opacity: .5; animation: lg-twinkle 4s ease-in-out infinite; }
.hero-logo .lg-glow { transform-origin: 120.39px 40.91px; }
.hero-logo:not(.is-ready) .lg-glow { animation: lg-breathe 6s ease-in-out infinite; }
.hero-logo.is-playing .lg-glow { animation: lg-fade 1.2s ease-out .4s both, lg-breathe 6s ease-in-out 1.6s infinite; }

/* ---------- Animated hero logo ----------
   Final state is the default (no JS / reduced motion). JS adds .is-ready to hide the
   pieces, then .is-playing once the images have loaded to run the intro. */
.hero-logo .lg-book-left  { transform-origin: 120px 96px; }
.hero-logo .lg-book-right { transform-origin: 120px 96px; }
.hero-logo .lg-globe      { transform-origin: 120px 78px; }
.hero-logo .lg-wordmark, .hero-logo .lg-tagline { transform-origin: 130px 120px; }
.hero-logo .lg-float      { transform-origin: 120px 40px; }

.hero-logo.is-ready:not(.is-playing) .lg-anim,
.hero-logo.is-ready:not(.is-playing) #lg-plane { opacity: 0; }

.hero-logo.is-playing .lg-stars,
.hero-logo.is-playing .lg-orbit      { animation: lg-fade 1.6s ease-out 1.6s both; }
.hero-logo.is-playing .lg-book-left  { animation: lg-page-left .8s cubic-bezier(.2,.8,.2,1) both; }
.hero-logo.is-playing .lg-book-right { animation: lg-page-right .8s cubic-bezier(.2,.8,.2,1) both; }
.hero-logo.is-playing .lg-globe      { animation: lg-rise .9s cubic-bezier(.2,.9,.25,1.15) .35s both; }
.hero-logo.is-playing .lg-swoosh     { animation: lg-sweep 1.3s cubic-bezier(.45,0,.25,1) .95s both; }
.hero-logo.is-playing .lg-wordmark   { animation: lg-fade-up .7s ease-out 2.15s both; }
.hero-logo.is-playing .lg-tagline    { animation: lg-write 1s ease-out 2.55s both; }
.hero-logo.is-playing .lg-float      { animation: lg-float 6s ease-in-out 3.6s infinite; }
.hero-logo.is-playing .lg-plane-bob  { animation: lg-bob 3s ease-in-out 3.6s infinite; }
.hero-logo.is-playing .lg-shine      { animation: lg-shine 7s ease-in-out 3.2s infinite; }
.hero-logo .lg-shine { opacity: 0; }

@keyframes lg-page-left  { from { opacity: 0; transform: rotate(28deg) scaleX(.15); } to { opacity: 1; transform: none; } }
@keyframes lg-page-right { from { opacity: 0; transform: rotate(-28deg) scaleX(.15); } to { opacity: 1; transform: none; } }
@keyframes lg-rise   { from { opacity: 0; transform: translateY(22px) scale(.35); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes lg-sweep  { from { opacity: 1; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes lg-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes lg-write  { from { opacity: 1; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes lg-float  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
@keyframes lg-bob    { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(.8px, -1.6px); } }
@keyframes lg-shine  { 0% { opacity: 0; transform: translateX(0); } 10% { opacity: 1; } 35% { opacity: 1; } 45%, 100% { opacity: 0; transform: translateX(110px); } }
@keyframes lg-spin   { to { transform: rotate(360deg); } }
@keyframes lg-fade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes lg-twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .9; } }
@keyframes lg-breathe { 0%, 100% { opacity: .75; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }

@media (prefers-reduced-motion: reduce) {
  .hero__orbit-spin, .hero-logo .lg-anim, .hero-logo .lg-float, .hero-logo .lg-plane-bob, .hero-logo .lg-shine,
  .hero-logo .lg-star, .hero-logo .lg-glow { animation: none !important; }
  .hero-logo .lg-anim, .hero-logo #lg-plane { opacity: 1 !important; }
}
.hero__chip {
  position: absolute; background: var(--white); color: var(--navy); border-radius: 12px;
  padding: 10px 14px; font-size: .85rem; font-weight: 600; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.hero__chip small { display: block; font-weight: 500; color: var(--muted); font-size: .74rem; }
.hero__chip .dot { width: 34px; height: 34px; border-radius: 10px; background: var(--beige-100); display: grid; place-items: center; font-size: 1.05rem; }
.hero__chip { z-index: 2; }
.hero__chip--a { top: 3%; left: -6%; }
.hero__chip--b { top: 40%; right: -10%; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 400px; margin: 8px auto 0; }
  .hero__chip { display: none; } /* no room beside the globe in the single-column layout */
  .hero-logo { width: 100%; }
}
@media (max-width: 420px) { .hero__chip { font-size: .76rem; padding: 8px 10px; } .hero__chip .dot { width: 28px; height: 28px; } }

/* Inner page hero */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #c9d7e2; padding: clamp(48px, 7vw, 88px) 0 clamp(44px, 6vw, 72px);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border: 2px solid rgba(216,199,171,.25); border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(216,199,171,.05), 0 0 0 90px rgba(216,199,171,.03);
}
.page-hero h1 { color: var(--white); max-width: 820px; }
.page-hero .lead { color: #c3d2de; max-width: 680px; margin: 0; }
.breadcrumb { font-size: .85rem; margin-bottom: 14px; color: #9fb3c3; }
.breadcrumb a { color: var(--beige); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--beige-300); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); }
.card .card__link { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.card .card__link:hover { gap: 10px; }
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; background: var(--beige-100); color: var(--navy);
  display: grid; place-items: center; margin-bottom: 18px; flex-shrink: 0;
}
.icon-badge svg { width: 26px; height: 26px; }
.section--navy .card { background: rgba(255,255,255,.04); border-color: rgba(216,199,171,.18); box-shadow: none; }
.section--navy .card p { color: #b8c8d5; }
.section--navy .icon-badge { background: rgba(216,199,171,.15); color: var(--beige); }

/* Destination cards */
.dest-card { padding: 0; overflow: hidden; }
.dest-card__top {
  padding: 24px 26px 20px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%); color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative;
}
.dest-card__top h3 { color: var(--white); margin: 0; font-size: 1.35rem; }
.dest-card__top small { color: var(--beige); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.dest-card__flag { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(216,199,171,.16); border: 1.5px solid var(--beige); color: var(--beige); font: 700 .9rem/1 var(--font-sans); letter-spacing: .06em; flex-shrink: 0; }
.dest-card__body { padding: 22px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.dest-card__facts { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; font-size: .92rem; }
.dest-card__facts li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.dest-card__facts li span:first-child { color: var(--muted); }
.dest-card__facts li span:last-child { font-weight: 600; color: var(--navy); text-align: right; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.stat { background: var(--white); padding: 28px 24px; text-align: center; }
.stat strong { display: block; font: 700 clamp(1.8rem, 3.5vw, 2.4rem)/1.1 var(--font-serif); color: var(--navy); }
.stat span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--beige-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304314e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.section--navy .check-list li::before { background-color: rgba(216,199,171,.2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d8c7ab' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

.panel {
  background: var(--beige-50); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px);
}
.panel--navy { background: var(--navy); border-color: var(--navy); color: #c9d7e2; }
.panel--navy h3 { color: var(--white); }

/* ---------- Journey map ---------- */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.journey li {
  counter-increment: step; position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 56px 20px 22px;
}
.journey li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 16px; left: 20px;
  font: 700 1.05rem/1 var(--font-serif); color: var(--navy);
  background: var(--beige); border-radius: 999px; padding: 6px 10px;
}
.journey li h4 { margin-bottom: .35em; }
.journey li p { color: var(--muted); font-size: .92rem; margin: 0; }
.section--navy .journey li { background: rgba(255,255,255,.04); border-color: rgba(216,199,171,.2); }
.section--navy .journey li h4 { color: var(--white); }
.section--navy .journey li p { color: #b8c8d5; }
@media (max-width: 980px) { .journey { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .journey { grid-template-columns: 1fr; } }

/* Vertical timeline (study in Europe) */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--beige), var(--navy-100)); }
.timeline > li { position: relative; padding: 0 0 34px 68px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline__num {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--beige); display: grid; place-items: center;
  font: 700 1rem/1 var(--font-serif); box-shadow: 0 0 0 6px var(--white);
}
.section--tint .timeline__num { box-shadow: 0 0 0 6px var(--beige-50); }
.timeline h3 { margin-bottom: .3em; padding-top: 8px; }
.timeline p, .timeline li li { color: var(--muted); }

/* ---------- Scholarships ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 28px; padding: 18px; background: var(--beige-50); border: 1px solid var(--line); border-radius: var(--radius); }
.filters .field { margin: 0; min-width: 170px; flex: 1; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px;
  padding: 8px 14px; font: 500 .88rem/1 var(--font-sans); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.result-count { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }

.sch-card { gap: 0; }
.sch-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.sch-card__org { color: var(--bronze); font-size: .85rem; font-weight: 600; margin-bottom: 10px; }
.sch-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 6px 0 16px; font-size: .88rem; }
.sch-meta dt { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.sch-meta dd { margin: 0; font-weight: 600; color: var(--ink); }
.coverage { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.coverage span { font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: var(--navy-100); color: var(--navy); font-weight: 500; }
.coverage span.no { background: #f4f0ea; color: #8b8178; text-decoration: line-through; }
.sch-card details { border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 14px; font-size: .92rem; }
.sch-card summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.sch-card details ul { margin: 8px 0 0; color: var(--muted); }
.sch-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 .74rem/1 var(--font-sans); padding: 6px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.badge--open { background: #e2f3ea; color: var(--success); }
.badge--upcoming { background: #fff3dc; color: #8a5a00; }
.badge--closed { background: #f1f1f1; color: #666; }
.badge--funded { background: var(--navy); color: var(--beige); }
.badge--partial { background: var(--beige-100); color: var(--bronze); }

.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 12px;
  background: #fff8ea; border: 1px solid #f0dcb0; color: #6b4e14; font-size: .9rem; margin-bottom: 24px;
}
.notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }

/* Funding coverage legend */
.legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.legend > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--white); }
.legend strong { display: block; color: var(--navy); font-family: var(--font-serif); font-size: 1.05rem; margin-bottom: 4px; }
.legend p { margin: 0; color: var(--muted); font-size: .88rem; }
@media (max-width: 900px) { .legend { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .legend { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quote-card { position: relative; }
.quote-card blockquote { margin: 0 0 20px; font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.55; color: var(--ink); }
.quote-card::before {
  content: "\201C"; position: absolute; top: 6px; right: 22px; font: 700 5rem/1 var(--font-serif); color: var(--beige-300);
}
.quote-card__who { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--beige); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.quote-card__who strong { display: block; color: var(--navy); }
.quote-card__who span { font-size: .85rem; color: var(--muted); }
.sample-tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bronze); font-weight: 600; }

/* ---------- Partners ---------- */
.partner-card { align-items: flex-start; }
.partner-logo {
  width: 64px; height: 64px; border-radius: 16px; border: 1px solid var(--line); background: var(--beige-50);
  display: grid; place-items: center; font: 700 1.2rem/1 var(--font-serif); color: var(--navy); margin-bottom: 16px;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.tag-list li { font-size: .78rem; background: var(--beige-50); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: 40px; }
.faq-group h2 { font-size: 1.5rem; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 10px; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
  font-weight: 600; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .2s;
}
.faq[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq[open] { border-color: var(--beige); box-shadow: var(--shadow-sm); }
.faq__body { padding: 0 22px 20px; color: var(--muted); }
.faq__body p:last-child { margin: 0; }
.faq-search { max-width: 520px; margin: 0 auto 36px; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
legend {
  font: 700 1.2rem/1.3 var(--font-serif); color: var(--navy); margin-bottom: 18px; padding: 0;
  display: flex; align-items: center; gap: 12px;
}
legend .step { width: 32px; height: 32px; border-radius: 50%; background: var(--beige); color: var(--navy); display: grid; place-items: center; font-size: .95rem; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field label .req { color: var(--danger); }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: 400 1rem/1.4 var(--font-sans); color: var(--ink);
  padding: 12px 14px; border: 1.5px solid #d6d0c4; border-radius: 10px; background: var(--white);
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(4,49,78,.12); }
.field .hint { font-size: .8rem; color: var(--muted); }
.field .error { font-size: .82rem; color: var(--danger); display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .error { display: block; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; padding: 10px 14px; border: 1.5px solid #d6d0c4; border-radius: 10px; cursor: pointer; }
.radio-row input { width: auto; accent-color: var(--navy); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.field label.consent { font-weight: 400; font-size: .9rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); flex-shrink: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.form-actions small { color: var(--muted); }
.form-alert { display: none; padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: .95rem; }
.form-alert.is-error { display: block; background: #fdecea; color: var(--danger); border: 1px solid #f5c2bd; }
.form-success { display: none; text-align: center; padding: clamp(28px, 5vw, 48px) 10px; }
.form-success.is-visible { display: block; }
.form-success:focus { outline: none; }
.panel--navy .timeline__num { background: var(--beige); color: var(--navy); box-shadow: 0 0 0 6px var(--navy) !important; }
.panel--navy .timeline::before { background: rgba(216,199,171,.35); }
.form-success .icon-badge { margin: 0 auto 18px; width: 68px; height: 68px; border-radius: 50%; background: #e2f3ea; color: var(--success); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon-badge { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.contact-list .icon-badge svg { width: 20px; height: 20px; }
.contact-list strong { display: block; color: var(--navy); }
.contact-list a, .contact-list span { color: var(--muted); text-decoration: none; }
.contact-list a:hover { color: var(--navy); text-decoration: underline; }
.map-placeholder {
  border-radius: var(--radius-lg); border: 1px dashed var(--beige); background: var(--beige-50);
  min-height: 240px; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 24px;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-700) 100%); border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px); color: #c9d7e2; display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; right: -80px; bottom: -140px; width: 320px; height: 320px; border-radius: 50%; border: 2px solid rgba(216,199,171,.25); }
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { margin: 0; }
.cta-band .btn-row { position: relative; z-index: 1; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

/* Prose (privacy etc.) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose p, .prose li { color: #33414d; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #a9bccb; padding-top: clamp(48px, 7vw, 80px); font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; text-decoration: none; }
.footer-brand__mark { width: 60px; height: 60px; border-radius: 50%; background: var(--beige-50); display: grid; place-items: center; flex-shrink: 0; }
.footer-brand__mark img { width: 46px; }
.footer-brand .brand__name { color: var(--white); }
.footer-brand .brand__name span { color: var(--beige); }
.footer-brand .brand__sub { color: #c3d2de; }
.footer-tag { font-family: var(--font-serif); font-style: italic; color: var(--beige); font-size: 1.05rem; }
.site-footer h4 { color: var(--white); font-family: var(--font-sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #c7d5e0; text-decoration: none; }
.site-footer a:hover { color: var(--beige); }
.footer-bottom { border-top: 1px solid rgba(216,199,171,.15); padding: 22px 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: .84rem; color: #8ea3b4; }

.footer-credit a { color: var(--beige); font-weight: 600; }
.footer-credit a:hover { color: var(--white); text-decoration: underline; }

/* Social buttons */
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: grid; place-items: center; border-radius: 50%; transition: background .2s, color .2s, transform .2s, border-color .2s; }
.social a:hover { transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }
.site-footer ul.social--footer { display: flex; margin-top: 20px; }
.site-footer .social--footer a { width: 40px; height: 40px; border: 1px solid rgba(216,199,171,.35); color: var(--beige); }
.site-footer .social--footer a:hover { background: var(--beige); border-color: var(--beige); color: var(--navy-900); }
.social--topbar { gap: 4px; align-items: center; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.15); }
.topbar .social--topbar a { width: 28px; height: 28px; color: #dfe8ef; }
.topbar .social--topbar a:hover { color: var(--navy-900); background: var(--beige); }
.social--topbar svg { width: 15px; height: 15px; }
.topbar__links { align-items: center; }
@media (max-width: 720px) { .social--topbar { display: none; } }

/* ---------- AI chat assistant ---------- */
.chat-launcher {
  position: fixed; right: 18px; bottom: 88px; z-index: 91;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px 12px 14px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--navy); color: var(--white); font: 600 .9rem/1 var(--font-sans);
  box-shadow: 0 10px 30px rgba(2,28,46,.35), 0 0 0 2px var(--beige); transition: transform .2s, background .2s;
}
.chat-launcher:hover { transform: translateY(-2px); background: var(--navy-700); }
.chat-launcher svg { width: 22px; height: 22px; color: var(--beige); }
.chatbot.is-open .chat-launcher { display: none; }
.chatbot.is-open ~ .wa-float, body:has(.chatbot.is-open) .wa-float { display: none; }

.chat-panel {
  position: fixed; right: 18px; bottom: 18px; z-index: 130;
  width: min(380px, calc(100vw - 24px)); height: min(600px, calc(100vh - 36px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border-radius: 20px; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(2,28,46,.35);
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: var(--navy); color: var(--white); }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--beige-50); display: grid; place-items: center; flex-shrink: 0; }
.chat-avatar img { width: 32px; height: auto; }
.chat-head__text { flex: 1; min-width: 0; }
.chat-head h2 { font: 700 1rem/1.2 var(--font-sans); color: var(--white); margin: 0; }
.chat-head span { font-size: .76rem; color: var(--beige); }
.chat-icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: #dfe8ef; display: grid; place-items: center; cursor: pointer; }
.chat-icon-btn:hover { background: rgba(255,255,255,.1); color: var(--white); }
.chat-icon-btn svg { width: 18px; height: 18px; }

.chat-log { flex: 1; overflow-y: auto; padding: 16px 14px; background: var(--beige-50); display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.chat-msg { display: flex; }
.chat-msg--user { justify-content: flex-end; }
.chat-bubble { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }
.chat-msg--bot .chat-bubble { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink); }
.chat-msg--user .chat-bubble { background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; white-space: pre-wrap; }
.chat-msg--error .chat-bubble { border-color: #f0dcb0; background: #fff8ea; }
.chat-bubble p { margin: 0 0 .55em; }
.chat-bubble p:last-child, .chat-bubble ul:last-child { margin-bottom: 0; }
.chat-bubble ul { margin: 0 0 .55em; padding-left: 1.1em; }
.chat-bubble a { color: var(--navy-700); font-weight: 600; word-break: break-word; }
.chat-typing .chat-bubble { display: inline-flex; gap: 4px; padding: 13px 14px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--bronze); opacity: .4; animation: chat-dot 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; background: var(--beige-50); }
.chat-suggest[hidden] { display: none; }
.chat-chip { border: 1px solid var(--beige); background: var(--white); color: var(--navy); border-radius: 999px; padding: 7px 11px; font: 500 .8rem/1.2 var(--font-sans); cursor: pointer; text-align: left; }
.chat-chip:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--white); }
.chat-form textarea { flex: 1; resize: none; border: 1.5px solid #d6d0c4; border-radius: 12px; padding: 10px 12px; font: 400 .95rem/1.4 var(--font-sans); max-height: 120px; color: var(--ink); }
.chat-form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(4,49,78,.12); }
.chat-send { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; border: 0; background: var(--navy); color: var(--beige); display: grid; place-items: center; cursor: pointer; }
.chat-send:disabled { opacity: .5; cursor: default; }
.chat-send svg { width: 19px; height: 19px; }
.chat-note { margin: 0; padding: 0 14px 10px; font-size: .72rem; color: var(--muted); background: var(--white); }
.chat-note a { color: var(--navy-700); }

@media (max-width: 520px) {
  .chat-launcher span { display: none; }
  .chat-launcher { padding: 15px; }
  .chat-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { .chat-typing span { animation: none; opacity: .7; } }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp); color: var(--white);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); color: var(--white); }
.wa-float svg { width: 30px; height: 30px; }

/* Utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.anchor-offset { scroll-margin-top: 130px; }

/* Hidden-until-visible only when JS runs, so content never disappears without it. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Server-rendered additions */
.btn--sm { padding: 10px 16px; font-size: .88rem; }
.field__label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.sticky-aside { position: sticky; top: 130px; }
@media (max-width: 900px) { .sticky-aside { position: static; } }
.partner-logo--img { object-fit: contain; padding: 6px; background: var(--white); }
img.avatar { object-fit: cover; }
.map-embed { width: 100%; min-height: 280px; border: 0; border-radius: var(--radius-lg); display: block; }
.hero__chip .dot svg { color: var(--navy); }
.js-autosubmit .filters__submit { display: none; }
.filters__submit { align-self: end; }
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 95; max-width: 640px;
  background: var(--navy-900); color: #d5e1ea; border-radius: var(--radius); padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0; font-size: .9rem; flex: 1 1 260px; }
.consent-banner a { color: var(--beige); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; animation-duration: 0s !important; }
}
