/* HaUI International – site styles
   Layout idea: white pages, one navy-photo hero, quiet content, and a metro-line motif
   (the campus sits on the Nhổn – Hanoi Railway Station line) used for the application steps.
   Brand colours come from the HaUI logo. */

@font-face{font-family:"Be Vietnam Pro";font-weight:400;font-style:normal;font-display:swap;
  src:url("../fonts/BeVietnamPro-Regular.woff") format("woff"),url("../fonts/BeVietnamPro-Regular.ttf") format("truetype")}
@font-face{font-family:"Be Vietnam Pro";font-weight:500;font-style:normal;font-display:swap;
  src:url("../fonts/BeVietnamPro-Medium.woff") format("woff"),url("../fonts/BeVietnamPro-Medium.ttf") format("truetype")}
@font-face{font-family:"Be Vietnam Pro";font-weight:600;font-style:normal;font-display:swap;
  src:url("../fonts/BeVietnamPro-SemiBold.woff") format("woff"),url("../fonts/BeVietnamPro-SemiBold.ttf") format("truetype")}
@font-face{font-family:"Be Vietnam Pro";font-weight:700;font-style:normal;font-display:swap;
  src:url("../fonts/BeVietnamPro-Bold.woff") format("woff"),url("../fonts/BeVietnamPro-Bold.ttf") format("truetype")}
@font-face{font-family:"Be Vietnam Pro";font-weight:800;font-style:normal;font-display:swap;
  src:url("../fonts/BeVietnamPro-ExtraBold.woff") format("woff"),url("../fonts/BeVietnamPro-ExtraBold.ttf") format("truetype")}

:root{
  --navy:#153c88;
  --navy-deep:#0e2a63;
  --navy-ink:#0a1d46;
  --sky:#eaf0fb;
  --snow:#f5f8fd;
  --line:#d8e1f1;
  --text:#18233b;
  --muted:#55627c;
  --red:#de2737;
  --red-dark:#b81d2c;
  --gold:#ffcc4e;
  --gold-deep:#e3bb25;
  --white:#fff;
  --font:"Be Vietnam Pro","Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --radius:18px;
  --radius-s:10px;
  --gutter:clamp(18px,4vw,40px);
  --max:1200px;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--white);color:var(--text);font-family:var(--font);font-size:1.0625rem;line-height:1.65;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--navy);text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{color:var(--navy-deep)}
:focus-visible{outline:3px solid var(--gold-deep);outline-offset:3px;border-radius:4px}
h1,h2,h3,h4{margin:0;line-height:1.12;letter-spacing:-.015em;color:var(--navy-ink);text-wrap:balance}
h1{font-size:clamp(2.35rem,5.4vw,4.35rem);font-weight:800;letter-spacing:-.025em}
h2{font-size:clamp(1.75rem,3.3vw,2.7rem);font-weight:800}
h3{font-size:1.2rem;font-weight:700;line-height:1.3}
p{margin:0 0 1em}
ul{margin:0;padding:0}
.lead{font-size:clamp(1.08rem,1.6vw,1.25rem);color:var(--muted);max-width:60ch}
.small{font-size:.875rem;color:var(--muted)}
.skip{position:absolute;left:-999px;top:8px;background:var(--navy);color:#fff;padding:10px 16px;border-radius:8px;z-index:100}
.skip:focus{left:8px;color:#fff}

.container{width:100%;max-width:var(--max);margin-inline:auto;padding-inline:var(--gutter)}
.section{padding-block:clamp(56px,8vw,104px)}
.section--tint{background:var(--snow)}
.section--navy{background:var(--navy-deep);color:#e6edfb}
.section--navy h2,.section--navy h3{color:#fff}
.section--navy .lead{color:#c5d3f0}
.section-head{display:flex;flex-direction:column;gap:14px;margin-bottom:clamp(28px,4vw,52px);max-width:760px}

/* ---------- demo notice (delete this bar before launch) ---------- */
.demo-bar{background:var(--navy-ink);color:#cdd9f3;font-size:.8125rem;line-height:1.4;text-align:center;padding:8px var(--gutter)}
.demo-bar strong{color:var(--gold)}

/* ---------- header ---------- */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid var(--line)}
.site-header .container{display:flex;align-items:center;gap:24px;min-height:72px}
.brand{display:flex;align-items:center;flex:none}
.brand img{height:42px;width:auto}
.nav{display:flex;align-items:center;gap:2px;margin-left:auto}
.nav a{padding:10px 12px;border-radius:8px;color:var(--text);text-decoration:none;font-weight:500;font-size:.95rem;white-space:nowrap}
.nav a:hover{background:var(--sky);color:var(--navy)}
.nav a[aria-current="page"]{color:var(--navy);font-weight:700;box-shadow:inset 0 -3px 0 var(--gold-deep);border-radius:0}
.nav-toggle{display:none;margin-left:auto;background:none;border:1px solid var(--line);border-radius:10px;width:46px;height:46px;cursor:pointer;color:var(--navy)}
.nav-toggle svg{width:24px;height:24px}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font:inherit;font-weight:700;font-size:1rem;line-height:1.2;padding:14px 24px;border-radius:999px;border:2px solid transparent;text-decoration:none;cursor:pointer;transition:background-color .18s,color .18s,border-color .18s,transform .18s}
.btn:active{transform:translateY(1px)}
.btn--red{background:var(--red);color:#fff}
.btn--red:hover{background:var(--red-dark);color:#fff}
.btn--gold{background:var(--gold);color:var(--navy-ink)}
.btn--gold:hover{background:#ffd978;color:var(--navy-ink)}
.btn--navy{background:var(--navy);color:#fff}
.btn--navy:hover{background:var(--navy-deep);color:#fff}
.btn--ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.7)}
.btn--ghost:hover{background:#fff;color:var(--navy-deep)}
.btn--line{background:#fff;color:var(--navy);border-color:var(--navy)}
.btn--line:hover{background:var(--navy);color:#fff}
.btn--sm{padding:10px 18px;font-size:.92rem}
.site-header .btn{margin-left:8px}

/* ---------- hero ---------- */
.hero{position:relative;isolation:isolate;color:#fff;background:var(--navy-ink)}
.hero__img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:50% 72%}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(10,29,70,.94) 0%,rgba(10,29,70,.82) 38%,rgba(10,29,70,.28) 72%,rgba(10,29,70,.05) 100%),linear-gradient(0deg,rgba(10,29,70,.55),rgba(10,29,70,0) 40%)}
.hero .container{padding-block:clamp(72px,11vw,150px) clamp(56px,7vw,92px)}
.hero__copy{max-width:680px;display:flex;flex-direction:column;gap:26px;animation:rise .8s cubic-bezier(.2,.7,.2,1) both}
.hero h1{color:#fff}
.hero .lead{color:#dbe5fa;font-size:clamp(1.08rem,1.7vw,1.3rem)}
.hero__notice{align-self:flex-start;background:rgba(255,204,78,.14);border:1px solid rgba(255,204,78,.55);color:var(--gold);border-radius:999px;padding:7px 16px;font-size:.875rem;font-weight:600}
.hero__actions{display:flex;flex-wrap:wrap;gap:12px}
.hero__fine{font-size:.8125rem;color:#b8c7e8;max-width:56ch;margin:0}
@keyframes rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}

.page-hero{background:var(--navy-deep);color:#fff;padding-block:clamp(48px,7vw,88px);position:relative;overflow:hidden}
.page-hero h1{color:#fff;font-size:clamp(2.1rem,4.4vw,3.4rem)}
.page-hero .lead{color:#c9d7f3;margin-top:16px}
.page-hero .container{position:relative}
.page-hero::after{content:"";position:absolute;right:-60px;bottom:-1px;width:min(46vw,520px);height:6px;background:linear-gradient(90deg,transparent,var(--gold) 40%);}
.crumbs{font-size:.875rem;color:#a9bde8;margin-bottom:18px}
.crumbs a{color:#cdd9f3}

/* ---------- facts row ---------- */
.facts{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--line)}
.fact{padding:30px clamp(14px,2.4vw,32px);border-left:1px solid var(--line)}
.fact:first-child{border-left:0;padding-left:0}
.fact b{display:block;font-size:clamp(1.7rem,3.2vw,2.5rem);font-weight:800;color:var(--navy);line-height:1.1;letter-spacing:-.02em}
.fact span{display:block;margin-top:6px;font-size:.92rem;color:var(--muted);line-height:1.4}

/* ---------- why (two column, lines not cards) ---------- */
.split{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(32px,6vw,88px);align-items:start}
.split--even{grid-template-columns:repeat(2,minmax(0,1fr));align-items:center}
.sticky{position:sticky;top:104px}
.why{display:grid;grid-template-columns:1fr 1fr;gap:0}
.why li{list-style:none;padding:26px 28px 26px 0;border-top:1px solid var(--line)}
.why li:nth-child(even){padding-left:28px;padding-right:0;border-left:1px solid var(--line)}
.why--stack{grid-template-columns:1fr}
.why--stack li,.why--stack li:nth-child(even){padding:22px 0;border-left:0}
.why h3{margin-bottom:8px}
.why p{margin:0;color:var(--muted);font-size:.98rem}

/* ---------- fields (program groups) ---------- */
.fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.field{background:var(--snow);border:1px solid var(--line);border-radius:var(--radius);padding:30px 28px;display:flex;flex-direction:column;gap:16px}
.field--navy{background:var(--navy);border-color:var(--navy);color:#dfe8fb}
.field--navy h3{color:#fff}
.field--navy a{color:#fff}
.field h3{font-size:1.35rem}
.field .count{font-size:.9rem;color:var(--muted)}
.field--navy .count{color:#b9c9ee}
.field ul{list-style:none;display:flex;flex-direction:column;gap:2px}
.field li a{display:block;padding:8px 0;text-decoration:none;border-bottom:1px solid rgba(21,60,136,.14);font-weight:500}
.field--navy li a{border-color:rgba(255,255,255,.2)}
.field li a:hover{text-decoration:underline}
.field .more{margin-top:auto;font-weight:700;padding-top:6px}

/* ---------- scholarship band ---------- */
.aid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(28px,5vw,72px);align-items:center}
.aid__list{list-style:none;display:flex;flex-direction:column;margin:26px 0 22px}
.aid__list li{display:flex;gap:16px;align-items:baseline;padding:16px 0;border-top:1px solid rgba(255,255,255,.2)}
.aid__list li:last-child{border-bottom:1px solid rgba(255,255,255,.2)}
.aid__list b{font-size:clamp(1.5rem,2.6vw,2.1rem);font-weight:800;color:var(--gold);flex:none;min-width:4.2ch;line-height:1.1}
.aid__list span{color:#e6edfb}
.photo{border-radius:var(--radius);overflow:hidden;background:var(--sky)}
.photo img{width:100%;height:100%;object-fit:cover}
.photo--tall{aspect-ratio:4/5}
.photo--wide{aspect-ratio:3/2}
figure{margin:0}
figcaption{font-size:.84rem;color:var(--muted);padding-top:8px;line-height:1.45}
.section--navy figcaption{color:#b9c9ee}

/* ---------- stories ---------- */
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.card{display:flex;flex-direction:column;gap:14px;text-decoration:none;color:inherit}
.card .photo{aspect-ratio:3/2}
.card img{transition:transform .5s}
.card:hover img{transform:scale(1.03)}
.card h3{color:var(--navy-ink)}
.card:hover h3{color:var(--navy)}
.card p{margin:0;color:var(--muted);font-size:.97rem}
.meta{font-size:.84rem;color:var(--muted);font-weight:500}
.tag{display:inline-block;background:var(--sky);color:var(--navy);font-size:.78rem;font-weight:700;padding:3px 10px;border-radius:999px}

/* ---------- life mosaic ---------- */
.mosaic{display:grid;grid-template-columns:repeat(6,1fr);grid-auto-rows:clamp(110px,15vw,190px);gap:14px}
.mosaic figure{position:relative;border-radius:var(--radius-s);overflow:hidden;background:var(--sky)}
.mosaic img{width:100%;height:100%;object-fit:cover}
.mosaic figcaption{position:absolute;left:0;right:0;bottom:0;padding:26px 14px 10px;color:#fff;background:linear-gradient(0deg,rgba(10,29,70,.8),transparent);font-size:.82rem}
.m1{grid-column:span 3;grid-row:span 2}
.m2{grid-column:span 3}
.m3{grid-column:span 3}
.m4,.m5,.m6{grid-column:span 2}

/* ---------- metro route (application steps) ---------- */
.route{list-style:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:relative;margin-top:8px}
.route::before{content:"";position:absolute;left:0;right:0;top:19px;height:6px;border-radius:3px;background:var(--navy)}
.route li{position:relative;padding:56px 14px 0 0}
.route li::before{content:"";position:absolute;z-index:1;left:0;top:10px;width:24px;height:24px;border-radius:50%;background:#fff;border:6px solid var(--navy)}
.route li:last-child::before{background:var(--gold);border-color:var(--navy)}
.route h3{font-size:1.05rem;margin-bottom:6px}
.route p{font-size:.92rem;color:var(--muted);margin:0}
.route-label{display:inline-flex;align-items:center;gap:10px;font-size:.84rem;font-weight:700;color:var(--navy);margin-bottom:22px}
.route-label i{display:inline-block;width:34px;height:6px;border-radius:3px;background:var(--navy)}

/* ---------- cta band ---------- */
.cta{background:var(--gold);color:var(--navy-ink)}
.cta .container{display:flex;flex-wrap:wrap;gap:28px 48px;align-items:center;justify-content:space-between;padding-block:clamp(40px,5vw,64px)}
.cta h2{max-width:20ch}
.cta p{margin:10px 0 0;max-width:52ch}
.cta .actions{display:flex;flex-wrap:wrap;gap:12px}

/* ---------- programs page ---------- */
.filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:28px}
.chip{font:inherit;font-weight:600;font-size:.95rem;border:1.5px solid var(--line);background:#fff;color:var(--text);border-radius:999px;padding:9px 18px;cursor:pointer}
.chip:hover{border-color:var(--navy);color:var(--navy)}
.chip[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:#fff}
.plist{list-style:none;border-top:2px solid var(--navy-ink)}
.prog{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,5fr) 210px;gap:8px 32px;align-items:start;padding:22px 0;border-bottom:1px solid var(--line)}
.prog[hidden]{display:none}
.prog h3{font-size:1.18rem}
.prog .code{font-size:.82rem;color:var(--muted);margin-top:4px;font-variant-numeric:tabular-nums}
.prog p{margin:0;color:var(--muted);font-size:.97rem}
.prog .badges{display:flex;flex-direction:column;align-items:flex-end;gap:6px;min-width:150px}
.badge{display:inline-block;font-size:.76rem;font-weight:700;padding:4px 10px;border-radius:999px;background:var(--sky);color:var(--navy);white-space:nowrap}
.badge--abet{background:#fff6d6;color:#6b5400;border:1px solid var(--gold-deep)}
.group-title{margin:42px 0 6px;font-size:1.5rem}
.group-title[hidden]{display:none}
.note{background:var(--snow);border-left:4px solid var(--gold-deep);padding:16px 20px;border-radius:0 var(--radius-s) var(--radius-s) 0;font-size:.95rem;color:var(--text)}
.note p:last-child{margin:0}

/* ---------- content pages ---------- */
.prose{max-width:70ch}
.prose h2{margin:44px 0 14px;font-size:clamp(1.5rem,2.6vw,2rem)}
.prose h2:first-child{margin-top:0}
.prose ul,.prose ol{padding-left:1.3em;margin:0 0 1.2em}
.prose li{margin-bottom:.5em}
.checklist{list-style:none;padding:0!important;display:flex;flex-direction:column}
.checklist li{display:flex;gap:14px;padding:14px 0;border-bottom:1px solid var(--line);margin:0}
.checklist li::before{content:"";flex:none;width:22px;height:22px;margin-top:2px;border:2px solid var(--navy);border-radius:6px}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius-s)}
table{border-collapse:collapse;width:100%;min-width:520px;font-size:.98rem}
th,td{padding:14px 18px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
th{background:var(--snow);font-weight:700;color:var(--navy-ink);font-size:.92rem}
tr:last-child td{border-bottom:0}
td.num,th.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
.panel{border:1px solid var(--line);border-radius:var(--radius);padding:28px}
.panel--navy{background:var(--navy);border-color:var(--navy);color:#e6edfb}
.panel--navy h3{color:#fff}
.panel h3{margin-bottom:12px}
.yes li,.no li{list-style:none;position:relative;padding:8px 0 8px 30px;border-bottom:1px solid var(--line)}
.yes li::before{content:"";position:absolute;left:2px;top:15px;width:14px;height:8px;border-left:3px solid var(--navy);border-bottom:3px solid var(--navy);transform:rotate(-45deg)}
.no li::before{content:"";position:absolute;left:2px;top:20px;width:14px;height:3px;background:var(--red)}
.cost-bar{display:flex;height:14px;border-radius:7px;overflow:hidden;margin:14px 0 8px;background:var(--sky)}
.cost-bar i{display:block;height:100%}

.faq details{border-bottom:1px solid var(--line)}
.faq summary{cursor:pointer;list-style:none;padding:22px 44px 22px 0;font-weight:700;color:var(--navy-ink);font-size:1.08rem;position:relative;line-height:1.4}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";position:absolute;right:6px;top:50%;width:11px;height:11px;border-right:3px solid var(--navy);border-bottom:3px solid var(--navy);transform:translateY(-70%) rotate(45deg);transition:transform .2s}
.faq details[open] summary::after{transform:translateY(-30%) rotate(-135deg)}
.faq .answer{padding:0 0 24px;color:var(--text);max-width:68ch}
.faq .answer p:last-child{margin-bottom:0}
.faq-group{margin:44px 0 6px;font-size:1.4rem}
.faq-group:first-child{margin-top:0}

/* photo placeholder */
.ph{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px;aspect-ratio:3/2;border:2px dashed #9db3e0;border-radius:var(--radius);background:repeating-linear-gradient(135deg,var(--snow) 0 14px,#edf2fb 14px 28px);color:var(--navy);font-weight:600;padding:20px}
.ph small{font-weight:400;color:var(--muted);max-width:32ch}

/* story feature */
.quote{border-left:5px solid var(--gold-deep);padding:6px 0 6px 22px;margin:26px 0;font-size:clamp(1.2rem,2.2vw,1.55rem);line-height:1.4;font-weight:600;color:var(--navy-ink)}
.quote cite{display:block;margin-top:10px;font-size:.9rem;font-weight:500;color:var(--muted);font-style:normal}

/* contact */
.contact-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(28px,5vw,72px);align-items:start}
.contact-list{list-style:none;display:flex;flex-direction:column}
.contact-list li{padding:18px 0;border-bottom:1px solid var(--line)}
.contact-list li:first-child{border-top:1px solid var(--line)}
.contact-list b{display:block;font-size:.84rem;color:var(--muted);font-weight:600;margin-bottom:2px}
.contact-list a,.contact-list span.val{font-weight:600;font-size:1.05rem;overflow-wrap:anywhere}
form.form{display:grid;gap:18px}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.f{display:flex;flex-direction:column;gap:6px}
.f label{font-weight:600;font-size:.92rem;color:var(--navy-ink)}
.f input,.f select,.f textarea{font:inherit;color:var(--text);padding:13px 14px;border:1.5px solid #b9c7e4;border-radius:10px;background:#fff;width:100%}
.f textarea{min-height:130px;resize:vertical}
.f input:focus,.f select:focus,.f textarea:focus{outline:3px solid rgba(21,60,136,.25);border-color:var(--navy)}
.consent{display:flex;gap:12px;align-items:flex-start;font-size:.92rem;color:var(--muted)}
.consent input{margin-top:5px;width:18px;height:18px;flex:none}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form-status{padding:14px 16px;border-radius:10px;background:var(--sky);color:var(--navy-ink);font-size:.95rem}
.form-status[hidden]{display:none}
.builder{background:var(--snow);border:1px solid var(--line);border-radius:var(--radius);padding:26px;display:grid;gap:16px}
.subject-out{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92rem;background:#fff;border:1.5px dashed var(--navy);border-radius:10px;padding:14px;overflow-wrap:anywhere}

/* ---------- footer ---------- */
.site-footer{background:var(--navy-ink);color:#c5d3f0;font-size:.95rem}
.site-footer .container{padding-block:clamp(44px,6vw,72px) 28px}
.foot{display:grid;grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,1fr));gap:36px}
.foot h4{color:#fff;font-size:.95rem;margin-bottom:14px;font-weight:700}
.foot ul{list-style:none;display:flex;flex-direction:column;gap:9px}
.foot a{color:#c5d3f0;text-decoration:none}
.foot a:hover{color:#fff;text-decoration:underline}
.foot .logo-pill{background:#fff;border-radius:12px;padding:10px 14px;display:inline-block;margin-bottom:18px}
.foot .logo-pill img{height:40px;width:auto}
.legal{border-top:1px solid rgba(255,255,255,.16);margin-top:40px;padding-top:22px;font-size:.84rem;color:#9fb3df;display:flex;flex-wrap:wrap;gap:8px 28px;justify-content:space-between}

/* ---------- responsive ---------- */
@media (max-width:1080px){
  .nav a{padding:10px 9px;font-size:.9rem}
  .fields,.cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .route{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:34px}
  .route::before{display:none}
  .route li::after{content:"";position:absolute;left:12px;right:0;top:19px;height:6px;background:var(--navy)}
}
@media (max-width:900px){
  .split,.split--even,.aid,.contact-grid,.two{grid-template-columns:1fr}
  .sticky{position:static}
  .facts{grid-template-columns:repeat(2,1fr)}
  .fact:nth-child(3){border-left:0;padding-left:0}
  .fact:nth-child(n+3){border-top:1px solid var(--line)}
  .foot{grid-template-columns:1fr 1fr}
  .prog{grid-template-columns:1fr}
  .prog .badges{flex-direction:row;flex-wrap:wrap;align-items:flex-start}
  .hero::before{background:linear-gradient(0deg,rgba(10,29,70,.95) 0%,rgba(10,29,70,.8) 55%,rgba(10,29,70,.55) 100%)}
}
@media (max-width:640px){
  body{font-size:1rem}
  .why{grid-template-columns:1fr}
  .why li:nth-child(even){padding-left:0;border-left:0}
  .fields,.cards{grid-template-columns:1fr}
  .field-row{grid-template-columns:1fr}
  .mosaic{grid-template-columns:repeat(2,1fr);grid-auto-rows:150px}
  .m1,.m2,.m3,.m4,.m5,.m6{grid-column:span 1;grid-row:span 1}
  .m1,.m6{grid-column:span 2}
  .route{display:flex;flex-direction:column;gap:0}
  .route li{padding:0 0 30px 52px}
  .route li::before{top:0;left:0}
  .route li::after{left:11px;right:auto;top:24px;bottom:-6px;width:6px;height:auto}
  .route li:last-child::after{display:none}
  .foot{grid-template-columns:1fr}
  .hero .btn,.cta .btn{width:100%}
  .brand img{height:36px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero__copy{animation:none}
  .card img,.btn{transition:none}
}

/* grid children must be allowed to shrink so wide tables scroll inside their own box */
.split>*,.two>*,.contact-grid>*,.aid>*,.cards>*{min-width:0}
.table-wrap{max-width:100%}

/* ---------- language menu (opens an online translation of the current page) ---------- */
.lang{position:relative;margin-left:8px}
.lang__btn{display:inline-flex;align-items:center;gap:8px;font:inherit;font-weight:600;font-size:.92rem;color:var(--navy);background:#fff;border:1.5px solid var(--line);border-radius:999px;padding:9px 14px;cursor:pointer}
.lang__btn:hover{border-color:var(--navy)}
.lang__btn svg{width:18px;height:18px}
.lang__menu{position:absolute;right:0;top:calc(100% + 8px);min-width:210px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 36px rgba(10,29,70,.16);padding:8px;z-index:60}
.lang__menu[hidden]{display:none}
.lang__menu a{display:flex;justify-content:space-between;gap:16px;padding:10px 12px;border-radius:8px;text-decoration:none;color:var(--text);font-weight:500;white-space:nowrap}
.lang__menu a:hover{background:var(--sky);color:var(--navy)}
.lang__menu a small{color:var(--muted);font-weight:400}
.lang__note{margin:6px 12px 4px;font-size:.78rem;line-height:1.4;color:var(--muted)}

/* ---------- route animation: the line draws once when it scrolls into view ---------- */
@keyframes draw{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes stop{from{transform:scale(0)}60%{transform:scale(1.25)}to{transform:scale(1)}}
.route::before{transform-origin:left center}
.route.play::before{animation:draw 1.5s cubic-bezier(.5,0,.2,1) both}
.route.play li::before{animation:stop .45s ease-out both}
.route.play li:nth-child(1)::before{animation-delay:.05s}
.route.play li:nth-child(2)::before{animation-delay:.35s}
.route.play li:nth-child(3)::before{animation-delay:.65s}
.route.play li:nth-child(4)::before{animation-delay:.95s}
.route.play li:nth-child(5)::before{animation-delay:1.25s}

@media (prefers-reduced-motion:reduce){.route.play::before,.route.play li::before{animation:none}}

/* collapse the menu earlier than the rest of the layout: Be Vietnam Pro is wide */
@media (max-width:1120px){
  .site-header .container{position:relative}
  .nav-toggle{display:inline-flex;align-items:center;justify-content:center}
  .nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--line);flex-direction:column;align-items:stretch;padding:12px var(--gutter) 20px;gap:2px;box-shadow:0 14px 24px rgba(10,29,70,.12)}
  .nav.is-open{display:flex}
  .nav a{padding:14px 10px;font-size:1.02rem}
  .nav a[aria-current="page"]{box-shadow:none;background:var(--sky);border-radius:8px}
  .site-header .btn{margin:8px 0 0}
  .lang{margin:8px 0 0}
  .lang__btn{width:100%;justify-content:center;padding:13px}
  .lang__menu{position:static;box-shadow:none;margin-top:8px}
}

/* ---------- v2: friendlier, image-led home (full-bleed hero, quick links, area cards) ---------- */
:root{--radius:26px;--radius-s:16px}
.hero--full{min-height:clamp(560px,88vh,820px);display:flex;align-items:flex-end}
.hero--full .hero__img{object-position:50% 60%}
.hero--full::before{background:linear-gradient(0deg,rgba(10,29,70,.88) 0%,rgba(10,29,70,.5) 38%,rgba(10,29,70,.08) 70%),linear-gradient(90deg,rgba(10,29,70,.55),rgba(10,29,70,0) 60%)}
.hero--full .container{padding-block:clamp(48px,8vw,96px) clamp(120px,14vw,168px);width:100%}
.hero--full h1{font-size:clamp(2.6rem,6.6vw,5.4rem);line-height:1.04}
.hero--full .hero__copy{max-width:760px}

.quick{position:relative;z-index:2;margin-top:clamp(-110px,-9vw,-72px)}
.quick ul{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.quick a{display:flex;flex-direction:column;gap:6px;height:100%;background:#fff;border-radius:var(--radius);padding:22px 22px 24px;text-decoration:none;color:var(--text);box-shadow:0 18px 40px rgba(10,29,70,.16);border-bottom:5px solid var(--gold);transition:transform .2s,box-shadow .2s}
.quick a:hover{transform:translateY(-4px);box-shadow:0 24px 48px rgba(10,29,70,.22)}
.quick b{font-size:1.1rem;color:var(--navy-ink);line-height:1.25}
.quick span{font-size:.92rem;color:var(--muted);line-height:1.4}

.facts{border-bottom:0;margin-top:clamp(40px,6vw,72px)}
.fact--rank b{color:var(--red)}
.tbc{display:inline-block;margin-top:6px;font-style:normal;font-size:.78rem;font-weight:600;color:#8a6a00;background:#fff6d6;border-radius:999px;padding:2px 10px}

.areas{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.area{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 8px 24px rgba(10,29,70,.06)}
.area .photo{border-radius:0;aspect-ratio:3/2}
.area__body{display:flex;flex-direction:column;gap:12px;padding:24px 26px 28px;flex:1}
.area .count{font-size:.8rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--red);margin:0}
.area h3{font-size:1.4rem}
.area ul{list-style:none;display:flex;flex-direction:column}
.area li a{display:block;padding:7px 0;text-decoration:none;border-bottom:1px solid var(--line);font-weight:500;font-size:.97rem}
.area li a:hover{color:var(--red)}
.area .more{margin-top:auto;padding-top:10px;font-weight:700;text-decoration:none}

.card .photo,.photo{border-radius:var(--radius)}
.page-hero{border-radius:0 0 var(--radius) var(--radius)}
.field,.panel,.builder{border-radius:var(--radius)}
.cta{border-radius:var(--radius) var(--radius) 0 0}
.mosaic figure{border-radius:var(--radius-s)}

@media (max-width:1080px){.quick ul{grid-template-columns:repeat(2,minmax(0,1fr))}.areas{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:900px){.fact:nth-child(3){border-left:0}.fact:nth-child(n+3){border-top:1px solid var(--line)}}
@media (max-width:640px){.areas{grid-template-columns:1fr}.quick ul{grid-template-columns:1fr 1fr;gap:10px}.quick a{padding:16px}.hero--full{min-height:600px}}
@media (prefers-reduced-motion:reduce){.quick a{transition:none}}
.areas>*{min-width:0}
.hero--full h1{font-size:clamp(2.4rem,5.2vw,4.5rem)}
.hero--full .hero__notice{background:rgba(10,29,70,.72);backdrop-filter:blur(4px)}

/* ---------- v3: flat quick-link strip (replaces the four floating cards) ---------- */
.hero--full .container{padding-bottom:clamp(56px,7vw,104px)}
.strip{background:var(--navy-deep);color:#fff}
.strip ul{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.strip li+li{border-left:1px solid rgba(255,255,255,.16)}
.strip a{position:relative;display:flex;flex-direction:column;gap:4px;height:100%;padding:24px 44px 24px 26px;color:#fff;text-decoration:none;transition:background-color .2s}
.strip li:first-child a{padding-left:0}
.strip a:hover{background:rgba(255,255,255,.07)}
.strip a::after{content:"\2192";position:absolute;right:20px;top:50%;transform:translateY(-50%);color:var(--gold);font-size:1.25rem;transition:transform .2s}
.strip a:hover::after{transform:translate(4px,-50%)}
.strip b{font-size:1.05rem;line-height:1.3;color:#fff}
.strip span{font-size:.88rem;color:#b9c9ee;line-height:1.4}
@media (max-width:900px){
  .strip ul{grid-template-columns:1fr 1fr}.strip li:nth-child(odd){border-left:0}.strip li:nth-child(n+3){border-top:1px solid rgba(255,255,255,.16)}
  .strip li:first-child a,.strip li:nth-child(3) a{padding-left:0}.strip a{padding:18px 34px 18px 18px}.strip a::after{right:10px}
}
@media (max-width:520px){.strip ul{grid-template-columns:1fr}.strip li+li{border-left:0;border-top:1px solid rgba(255,255,255,.16)}.strip a,.strip li:first-child a,.strip li:nth-child(3) a{padding:16px 40px 16px 0}.strip a::after{right:4px}}

/* ---------- v3: menu with sub-links ---------- */
.dd{position:relative;display:flex;align-items:center}
.dd>a{padding-right:4px}
.dd__t{background:none;border:0;color:var(--text);width:26px;height:36px;display:grid;place-items:center;cursor:pointer;border-radius:8px;padding:0}
.dd__t svg{width:11px;height:8px;transition:transform .2s}
.dd__t:hover{background:var(--sky)}
.dd__t[aria-expanded="true"] svg{transform:rotate(180deg)}
.dd__m{display:none;position:absolute;left:0;top:calc(100% + 6px);min-width:230px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 36px rgba(10,29,70,.16);padding:8px;z-index:60;flex-direction:column}
.dd__m a{padding:10px 12px;border-radius:8px;white-space:nowrap}
.dd:hover .dd__m,.dd:focus-within .dd__m,.dd.is-open .dd__m{display:flex}
.dd--on>a{color:var(--navy);font-weight:700}
@media (max-width:1120px){
  .dd{flex-wrap:wrap}.dd>a{flex:1}.dd__t{height:46px;width:46px}
  .dd__m{position:static;display:none;width:100%;box-shadow:none;border:0;border-left:3px solid var(--sky);border-radius:0;padding:0 0 4px 12px;margin:0 0 6px 10px;min-width:0}
  .dd:hover .dd__m,.dd:focus-within .dd__m{display:none}.dd.is-open .dd__m{display:flex}
  .dd__m a{white-space:normal}
}

/* ---------- v3: news cards, news list, articles ---------- */
.section-head--row{flex-direction:row;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;max-width:none}
.ncards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 28px}
.ncard{display:flex;flex-direction:column;gap:14px;text-decoration:none;color:inherit}
.ncard .photo{aspect-ratio:3/2;border-radius:var(--radius-s)}
.ncard .photo img{transition:transform .5s}.ncard:hover .photo img{transform:scale(1.04)}
.ncard h3{font-size:1.2rem;color:var(--navy-ink)}.ncard:hover h3{color:var(--navy);text-decoration:underline;text-underline-offset:4px}
.ncard p{margin:0;color:var(--muted);font-size:.96rem}.ncard .meta{margin:0 0 6px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ncard--big{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:32px;align-items:center;margin-bottom:40px}
.ncard--big .photo{aspect-ratio:16/10}.ncard--big h3{font-size:clamp(1.5rem,2.6vw,2.1rem);line-height:1.2}.ncard--big p{font-size:1.05rem}
.ph-fill{display:block;width:100%;height:100%;background:linear-gradient(135deg,var(--sky),#dbe5f7)}
.pager{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:44px}
.post-hero{background:var(--navy-deep);color:#fff;padding-block:clamp(40px,6vw,72px) clamp(56px,8vw,96px)}
.post-hero h1{color:#fff;font-size:clamp(2rem,4.4vw,3.4rem);max-width:22ch}
.post-hero .lead{color:#c9d7f3;margin-top:16px}.post-hero .meta{color:#c9d7f3;margin:18px 0 0}.post-hero .crumbs a{color:#cdd9f3}
.tag--on{background:var(--gold);color:var(--navy-ink)}
.post-cover{margin:calc(-1*clamp(32px,5vw,64px)) auto 0;max-width:1040px;position:relative}
.post-cover img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:var(--radius)}
.section--post{padding-top:clamp(36px,5vw,64px)}
.article{margin-inline:auto;font-size:1.12rem;line-height:1.75}
.article h2{font-size:clamp(1.5rem,2.6vw,2rem);margin:1.8em 0 .6em}.article h3{font-size:1.3rem;margin:1.5em 0 .5em}
.article figure.pimg{margin:2em -6vw;}
.article figure.pimg img{width:100%;border-radius:var(--radius-s)}
@media (min-width:1100px){.article figure.pimg{margin-inline:-90px}}
@media (max-width:700px){.article figure.pimg{margin-inline:0}}
.pquote{margin:2em 0;padding:4px 0 4px 24px;border-left:5px solid var(--gold-deep);font-size:1.3rem;line-height:1.45;font-weight:600;color:var(--navy-ink)}
.pquote p{margin:0}.pquote cite{display:block;margin-top:10px;font-size:.9rem;font-weight:500;color:var(--muted);font-style:normal}
.article ul,.article ol{padding-left:1.3em}.article li{margin-bottom:.4em}
@media (max-width:900px){.ncards{grid-template-columns:repeat(2,minmax(0,1fr))}.ncard--big{grid-template-columns:1fr;gap:16px}}
@media (max-width:640px){.ncards{grid-template-columns:1fr}}
.ncards>*,.ncard--big>*{min-width:0}
.tbc:empty{display:none}

/* ---- program pages ---- */
.plist a{color:inherit;text-decoration:none}.plist a:hover{color:var(--navy);text-decoration:underline}
.badges--on{margin-top:22px}.badges--on .badge{background:rgba(255,255,255,.14);color:#fff;border-color:transparent}
.pfacts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--radius-s);overflow:hidden;margin-bottom:44px}
.pfacts div{background:#fff;padding:18px 20px}.pfacts dt{font-size:.78rem;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.pfacts dd{font-size:1.15rem;font-weight:700;color:var(--navy-ink);margin-top:4px}
.pcols{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:48px;align-items:start}
.pbox{background:var(--snow);border-radius:var(--radius-s);padding:24px 26px;margin-bottom:20px}.pbox h2{font-size:1.15rem;margin-bottom:12px}
.pbox--cta{background:var(--navy-deep);color:#fff}.pbox--cta h2{color:#fff}.pbox--cta p{color:#c9d7f3;margin-bottom:16px}.pbox--cta .btn{margin:0 8px 8px 0}
.ticks{list-style:none}.ticks li{padding:7px 0 7px 26px;position:relative;border-bottom:1px solid var(--line)}.ticks li:last-child{border:0}.ticks li::before{content:"";position:absolute;left:2px;top:15px;width:12px;height:7px;border-left:3px solid var(--gold-deep);border-bottom:3px solid var(--gold-deep);transform:rotate(-45deg)}
@media(max-width:860px){.pcols{grid-template-columns:1fr;gap:28px}.pfacts{grid-template-columns:repeat(2,minmax(0,1fr))}}
.fact .src{display:block;margin-top:6px;font-style:normal;font-size:.78rem;color:var(--muted)}

/* ---- full-width photo bands with parallax ---- */
.band{position:relative;overflow:hidden;min-height:clamp(340px,62vh,640px);display:flex;align-items:flex-end;color:#fff;isolation:isolate}
.band__bg{position:absolute;inset:0;z-index:-2}
.band__img{position:absolute;left:0;top:-12%;width:100%;height:124%;object-fit:cover;will-change:transform}
.band::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(10,29,70,.05) 25%,rgba(10,29,70,.82) 100%)}
.band__over{padding-block:clamp(36px,6vw,72px)}
.band__over h2{color:#fff;font-size:clamp(2rem,5vw,3.6rem);max-width:16ch}
.band__over p{color:#e3ebfb;font-size:clamp(1.05rem,1.6vw,1.25rem);max-width:52ch;margin-top:12px}
.band__over h2::after{content:"";display:block;width:64px;height:5px;background:var(--gold);margin-top:16px;border-radius:3px}
@media (prefers-reduced-motion:reduce){.band__img{top:0;height:100%;transform:none!important}}

/* ---- rich text written in the admin editor ---- */
.rt{overflow-wrap:anywhere}.rt>*:first-child{margin-top:0}
.rt p{margin:0 0 1.1em}.rt h2{font-size:clamp(1.5rem,2.6vw,2rem);margin:1.6em 0 .5em}.rt h3{font-size:1.3rem;margin:1.4em 0 .4em}.rt h4{font-size:1.1rem;margin:1.2em 0 .4em}
.rt ul,.rt ol{padding-left:1.4em;margin:0 0 1.1em}.rt li{margin-bottom:.35em}
.rt blockquote{border-left:4px solid var(--gold);margin:1.4em 0;padding:.4em 1.2em;background:var(--snow);border-radius:0 var(--radius-s) var(--radius-s) 0;font-size:1.05em}
.rt blockquote p:last-child{margin-bottom:0}
.rt table{border-collapse:collapse;width:100%;margin:1.4em 0;font-size:.97em;display:block;overflow-x:auto}
.rt td,.rt th{border:1px solid var(--line);padding:9px 12px;vertical-align:top;text-align:left}.rt th{background:var(--snow);font-weight:700}
.rt img{max-width:100%;height:auto;border-radius:12px}.rt img[style*="float:left"]{margin:4px 22px 12px 0}.rt img[style*="float:right"]{margin:4px 0 12px 22px}
@media (max-width:600px){.rt img[style*="float"]{float:none!important;display:block;margin:12px auto!important}}
.rt figure{margin:1.6em 0}.rt figcaption{font-size:.88rem;color:var(--muted);margin-top:8px}
.rt hr{border:0;border-top:1px solid var(--line);margin:2em 0}.rt a{color:var(--navy);text-decoration:underline}
.rt::after{content:"";display:block;clear:both}

/* Subtle dot-map texture */
.section--navy,.section--tint,.footer{position:relative;isolation:isolate}
.section--navy::before,.section--tint::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-repeat:no-repeat;background-position:center;background-size:min(1200px,130%) auto}
.section--navy::before{background-image:url(../img/worlddots-white.svg);opacity:.07;-webkit-mask-image:linear-gradient(90deg,transparent,#000 30%,#000 70%,transparent);mask-image:linear-gradient(90deg,transparent,#000 30%,#000 70%,transparent)}
.section--tint::before{background-image:url(../img/worlddots-blue.svg);opacity:.04;background-position:right -80px center}
@media (max-width:700px){.section--navy::before,.section--tint::before{background-size:900px auto}}

/* news cards: keep long summaries tidy */
.ncard p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ncard--big p{-webkit-line-clamp:5}

/* article body: justified text, centred image captions */
.prose.article p,.prose.article li,.rt p,.rt li{text-align:justify;text-justify:inter-word;hyphens:auto;-webkit-hyphens:auto}
.prose.article figure,.pimg,.post-cover,.rt figure{text-align:center}
.prose.article figure img,.pimg img{margin-left:auto;margin-right:auto}
.prose.article figcaption,.pimg figcaption,.post-cover figcaption,.rt figcaption{text-align:center;font-style:italic}

/* smoother image loading: reserve space, soft placeholder, fade in */
.pimg img,.post-cover img,.rt img,.photo img{background:linear-gradient(100deg,#eef2f9 30%,#f7f9fd 50%,#eef2f9 70%) 0 0/300% 100%;animation:imgph 1.4s linear infinite}
.pimg img,.post-cover img,.photo img{opacity:0;transition:opacity .35s ease}
.pimg img{aspect-ratio:3/2;height:auto}
img.is-loaded{opacity:1!important;animation:none;background:none}
@keyframes imgph{to{background-position:-300% 0}}
@media (prefers-reduced-motion:reduce){.pimg img,.post-cover img,.photo img{transition:none;animation:none}}
/* article header: justified title and summary */
.post-hero h1{max-width:none;text-align:justify;text-align-last:left;hyphens:auto;-webkit-hyphens:auto}
.post-hero .lead{text-align:justify;text-align-last:left;hyphens:auto;-webkit-hyphens:auto}

/* loading skeleton */
.skel{height:14px;margin:0 0 14px;border-radius:6px;background:linear-gradient(100deg,#eef2f9 30%,#f7f9fd 50%,#eef2f9 70%) 0 0/300% 100%;animation:imgph 1.4s linear infinite}
.skel--title{height:34px;width:70%;margin-bottom:24px}.skel--short{width:55%}

/* long text: justified, ragged last line */
.prose p,.prose li{text-align:justify;text-align-last:left;-webkit-hyphens:auto;hyphens:auto}
