/*
 * APACO theme. Hand-written, no build step: values come from the .design mock-ups
 * (Be Vietnam Pro, navy #1A3A8F, 1280px container, pill buttons, 14–18px radii).
 * Breakpoints follow the design's own: 420 / 560 / 640 / 720 / 900 / 1024 / 1100 / 1180.
 */

:root {
    --navy: #1A3A8F;
    --navy-deep: #0F2A6B;
    --blue: #3B82F6;
    --ink: #142147;
    --body: #2B3A5C;
    --muted: #5B6B86;
    --soft: #8090AA;
    --line: #E3E9F2;
    --line-soft: #EEF2F8;
    --line-input: #D5DEEC;
    --line-chip: #C9D6EE;
    --tint: #F4F7FC;
    --ice: #EEF3FC;
    --sky: #DCE8F7;
    --red: #D62839;
    --ok: #1E9E61;
    --ok-bg: #E6F6EE;
    --focus: #E3EBFA;
    --pad-x: clamp(16px, 4vw, 40px);
    --shadow-card: 0 8px 30px -18px rgba(20, 33, 71, .25);
    --shadow-hover: 0 16px 32px -16px rgba(20, 33, 71, .35);
    --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

/* Fixed-ratio media boxes: clip, so a tall image cannot stretch the box past its ratio. */
.school-card__media, .post-card__media, .featured__media, .post-row__thumb, .event-main__media,
.scholarship__media, .story__media, .video-card__media, .sidebar__photo, .about-band__media,
.site-footer__photo, .article__hero { overflow: hidden; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-deep); }
h1, h2, h3, h4, p, blockquote, figure { margin: 0; }
button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.site-main { flex: 1; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
}

/* ------------------------------------------------------------------ Buttons & small parts */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: 600 14px/1 var(--font);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-deep); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--line-chip); }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--ice); color: var(--navy); }
.btn--white-bg { background: #fff; }
.btn--lg { height: 52px; padding: 0 28px; font-size: 15px; }
.btn--sm { height: 44px; padding: 0 22px; }
.btn--xs { height: 40px; padding: 0 16px; font-size: 13px; }
.btn--square { border-radius: 10px; }
.btn--block { width: 100%; }
.btn--shadow { box-shadow: 0 10px 24px -10px rgba(26, 58, 143, .6); }

.icon-btn {
    width: 44px;
    height: 44px;
    flex: none;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--ice); }

.round-btn {
    width: 44px;
    height: 44px;
    flex: none;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-input);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}
.round-btn:hover { border-color: var(--navy); }

.link-more { font-size: 13px; font-weight: 600; white-space: nowrap; }
.link-more, .crumbs a, a.kicker, .footer-col--contact a { display: inline-flex; align-items: center; }
.link-more--sm { font-size: 14px; font-weight: 500; }

.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .06em; color: var(--navy); text-transform: uppercase; }
.kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

.flag {
    flex: none;
    display: inline-block;
    border-radius: 999px;
    background: center / cover no-repeat;
    box-shadow: 0 0 0 1px var(--line);
}
.flag--xs { width: 24px; height: 24px; }
img.flag--xs { width: 16px; height: 16px; object-fit: cover; box-shadow: none; }
.flag--sm { width: 32px; height: 32px; }
.flag--md { width: 36px; height: 36px; }
.flag--lg { width: 44px; height: 44px; }

.meta-line { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }

.badge { flex: none; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.badge--ok { color: var(--ok); background: var(--ok-bg); }

.pill {
    align-self: flex-start;
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--ice);
    color: var(--navy);
}
.pill--solid { font-size: 11px; font-weight: 600; padding: 4px 10px; background: var(--navy); color: #fff; }

.chip {
    height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font: 400 14px var(--font);
    cursor: pointer;
}
.chip:hover { border-color: var(--soft); color: var(--ink); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

.panel {
    background: #fff;
    border-radius: 18px;
    padding: clamp(20px, 3vw, 32px);
    box-shadow: var(--shadow-card);
}
.panel--flush { padding: 0; overflow: hidden; }

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

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field__error { font-size: 12px; color: var(--red); }
.field__error:empty { display: none; }

.input, .select {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line-input);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: 400 16px var(--font);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus { border-color: var(--navy); box-shadow: 0 0 0 4px var(--focus); }
.input--pill { border-radius: 999px; padding: 0 18px; }
.input--sm { height: 44px; }
.input--plain, .select--plain { border: 0; height: 50px; }
.input.is-invalid, .select.is-invalid { border-color: var(--red); }
.textarea { height: auto; padding: 12px 14px; line-height: 1.6; resize: vertical; border-radius: 10px; }
/* Own arrow, so Safari doesn't draw its grey gradient and native triangle. */
.select {
    padding: 0 36px 0 12px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475467' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
}

.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.form-message { font-size: 14px; color: var(--red); }

.captcha { display: flex; flex-direction: column; gap: 6px; }
.captcha__label { font-size: 14px; font-weight: 500; }
.captcha__row { display: flex; gap: 8px; align-items: center; }
.captcha__code {
    flex: none;
    height: 44px;
    min-width: 110px;
    padding: 0 14px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--tint);
    border: 1px solid var(--line);
    font: 500 17px/1 "Courier New", monospace;
    letter-spacing: .12em;
    color: var(--navy);
    user-select: none;
}
.captcha .input { height: 44px; }
.captcha--compact .captcha__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.captcha--compact .captcha__code { height: 50px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .14); color: #fff; min-width: 96px; }
.captcha--compact .input { height: 50px; border: 0; }
.captcha--compact .field__error { color: #FFD3D8; }

.form-success { padding: 24px; border-radius: 14px; background: var(--ok-bg); display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.6; color: var(--body); }
.form-success__title { font-size: 17px; font-weight: 500; color: var(--ok); }

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 12px rgba(20, 33, 71, .04);
}
.site-header__bar { height: clamp(64px, 7vw, 80px); display: flex; align-items: center; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; flex: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand__img { max-height: 48px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 24px; font-weight: 700; letter-spacing: .02em; }
.brand__tagline { font-size: 8.5px; font-weight: 600; letter-spacing: .12em; color: var(--muted); margin-top: 4px; }
.brand--light { color: #fff; }
.brand--light:hover { color: #fff; }
.brand--light .brand__name { font-size: 22px; }
.brand--light .brand__tagline { color: #9FB2DB; font-size: 8px; }

.main-nav { flex: 1; align-self: stretch; display: flex; justify-content: center; }
.main-nav__list { display: flex; align-items: stretch; gap: 0; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.main-nav__item { position: relative; display: flex; }
.main-nav__link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 7px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 2px solid transparent;
}
.main-nav__link svg { opacity: .6; }
.main-nav__link:hover { color: var(--navy); }
.main-nav__link.is-active { color: var(--navy); font-weight: 600; border-bottom-color: var(--navy); }
.main-nav__sub {
    position: absolute;
    top: calc(100% - 8px);
    left: 0;
    min-width: 240px;
    padding: 8px;
    display: none;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 16px 40px -12px rgba(20, 33, 71, .22);
}
.main-nav__item:hover .main-nav__sub,
.main-nav__item:focus-within .main-nav__sub { display: flex; }
.main-nav__sub a { padding: 10px 14px; font-size: 14px; color: var(--ink); border-radius: 8px; white-space: normal; }
.main-nav__sub a:hover { background: var(--ice); color: var(--navy); }

.site-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-header__cta { padding: 0 18px; }

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex: none;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

.site-search { border-top: 1px solid var(--line); background: #fff; }
.site-search__form { display: flex; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.site-search__form .btn { height: 48px; }
.site-search__form--hero { padding: 0; max-width: 640px; }

.site-drawer { border-top: 1px solid var(--line); background: #fff; max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; }
.site-drawer__inner { padding-top: 12px; padding-bottom: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 8px 32px; }
.drawer-nav { display: contents; }
.drawer-nav__group { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.drawer-nav__title { font-size: 16px; font-weight: 600; color: var(--ink); padding: 10px 0; }
.drawer-nav__title.is-active { color: var(--navy); }
.drawer-nav__link { font-size: 14px; color: var(--muted); padding: 9px 0; }
.drawer-nav__link:hover { color: var(--navy); }
.site-drawer .btn { margin-top: 4px; }

/* The menu labels need ~1170px with the logo and buttons even at these tighter spacings, and
   the container is capped at 1280 (1200 inside), so the drawer takes over below 1280. The
   mock-up's 1180 assumed shorter labels. */
@media (max-width: 1279px) {
    .main-nav { display: none; }
    .menu-toggle { display: grid; }
}
@media (max-width: 639px) {
    .site-header__bar { gap: 12px; }
    .site-header__cta { display: none; }
    .site-header__actions { gap: 4px; }
}
/* Smallest phones (320–379): logo, search and menu must share ~288px. */
@media (max-width: 379px) {
    .brand { gap: 8px; }
    .brand__mark { width: 32px; height: 29px; }
    .brand__name { font-size: 20px; }
    .brand__tagline { font-size: 7.5px; letter-spacing: .1em; }
    .brand__img { max-height: 40px; }
}

/* ------------------------------------------------------------------ Sections */

.section { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); display: flex; flex-direction: column; gap: 20px; }
.section--tight { padding-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(32px, 4vw, 48px); }
.section--flush-top { padding-top: 0; }
.section-band--tint { background: var(--tint); }
.section-band + .section-band--tint .section--flush-top { padding-top: 0; }

.section-title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; line-height: 1.3; color: var(--navy); }
.section-title--ink { color: var(--ink); }
.section-title--sm { font-size: clamp(20px, 2.2vw, 24px); color: var(--ink); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.section-head--tight { gap: 12px; }
.section-head__tools { display: flex; align-items: center; gap: 8px; }
.section-head__tools .link-more { margin-left: 8px; }

.split { flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 24px; }
.split > * { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split--finder > :first-child { flex: 3 1 520px; }
.split--finder > :last-child { flex: 2 1 340px; }
.split--schools > .split__main { flex: 999 1 820px; }
.split--schools > .scholarship { flex: 1 1 300px; }
.split--stories, .split--guides { gap: 24px 40px; }
.split__wide { flex: 3 1 480px; }
.split__narrow { flex: 2 1 340px; }
.split--guides > .split__main { flex: 999 1 560px; }
.split__side { flex: 1 1 320px; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 719px) { .card-grid { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ Home: hero */

.hero { position: relative; min-height: clamp(480px, 42vw, 600px); display: flex; align-items: center; background: var(--sky); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .9) max(34%, 500px), rgba(255, 255, 255, 0) max(64%, 760px)); }
.hero__inner { position: relative; padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px); display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.hero__copy { max-width: 560px; display: flex; flex-direction: column; gap: 20px; }
.hero__title { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.18; font-weight: 700; color: var(--navy); letter-spacing: -.01em; text-wrap: balance; }
.hero__text { font-size: clamp(15px, 1.6vw, 17px); line-height: 1.6; color: var(--body); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 479px) {
    .hero__actions .btn { flex: 1 1 100%; }
}
.hero__points { display: none; flex-wrap: wrap; gap: 8px 20px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--body); }
.hero__points li { display: flex; align-items: center; gap: 8px; }
.hero__points li::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--navy); }
.hero__card { min-width: 220px; margin: 0; padding: 20px 24px; list-style: none; display: flex; flex-direction: column; gap: 16px; background: rgba(255, 255, 255, .96); border-radius: 16px; box-shadow: 0 20px 40px -16px rgba(20, 33, 71, .3); }
.hero__card li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink); }
.hero__card svg { color: var(--navy); flex: none; }
@media (max-width: 1023px) {
    .hero__card { display: none; }
    .hero__points { display: flex; }
}
/* Below 1024px the white veil would cover the whole photo, so the photo opens the page as a
   full-width window, cropped towards the bridge and opera house, and the copy sits on a white
   sheet that overlaps its bottom edge. */
@media (max-width: 1023px) {
    .hero { display: block; min-height: 0; background: #fff; }
    .hero__veil { display: none; }
    .hero__bg { position: static; display: block; height: clamp(220px, 62vw, 440px); height: min(clamp(220px, 62vw, 440px), max(180px, 55svh)); object-position: 62% 60%; }
    .hero__inner { margin-top: -24px; padding-top: clamp(28px, 6vw, 44px); padding-bottom: clamp(36px, 7vw, 56px); background: #fff; border-radius: 24px 24px 0 0; }
    .hero__copy { max-width: 640px; }
}

/* ------------------------------------------------------------------ Home: countries, finder, promo */

.country-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1099px) { .country-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 639px) { .country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.country-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 18px 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s, color .2s;
}
.country-card:hover { border-color: var(--navy); box-shadow: 0 10px 24px -14px rgba(26, 58, 143, .45); color: var(--navy); }
.country-card__name { font-size: 14px; font-weight: 600; margin-bottom: -8px; }
.country-card__en { font-size: 12px; color: var(--soft); }
.country-card--all { justify-content: center; gap: 6px; border-style: dashed; border-color: var(--line-chip); background: var(--tint); color: var(--muted); font-size: 13px; }

/* Columns follow the panel's own width (it shares a row with the promo on wide screens):
   1 on phones, 2, then all 4 selects in one row — never 3 + 1. Four need ~180px each, or the
   placeholders ("Tất cả quốc gia") are cut off: the home panel (~710px at 1366) stays at 2. */
.finder { container-type: inline-size; }
.finder__fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@container (min-width: 420px) { .finder__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 800px) { .finder__fields { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.finder .field { font-size: 13px; color: var(--body); }
.finder .field__label { font-size: 13px; font-weight: 400; color: var(--body); }
.finder .select { height: 46px; border-radius: 10px; }
.finder__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.finder__result { font-size: 14px; color: var(--body); }
.finder__result a { font-weight: 600; }
.finder { display: flex; flex-direction: column; gap: 20px; }

.promo { position: relative; min-height: 240px; border-radius: 18px; overflow: hidden; background: var(--navy); justify-content: center; }
.promo__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 42, 107, .95) 0%, rgba(26, 58, 143, .86) max(50%, 400px), rgba(26, 58, 143, .25) max(100%, 560px)); }
.promo__body { position: relative; padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 20px; max-width: 380px; }
.promo__text { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.5; font-weight: 600; color: #fff; }
.promo .btn { align-self: flex-start; height: 44px; padding: 0 22px; }

/* ------------------------------------------------------------------ Home: schools & scholarship */

.school-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.school-track > :nth-child(n + 5) { display: none; }
@media (max-width: 899px) { .school-track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .school-track { grid-template-columns: minmax(0, 1fr); } }
.school-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.school-card:hover { box-shadow: 0 16px 32px -18px rgba(20, 33, 71, .35); }
.school-card__media { aspect-ratio: 16 / 10; background: var(--line-soft); }
.school-card__media img { width: 100%; height: 100%; object-fit: cover; }
.school-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.school-card__name { font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.35; }
.school-card .meta-line { gap: 6px; color: var(--soft); }
.school-card__rank { font-size: 13px; color: var(--muted); margin-top: 4px; }
.school-card__rank strong { font-size: 17px; font-weight: 700; color: var(--navy); }
.school-card .btn { margin-top: auto; align-self: flex-start; border-color: var(--navy); }
.school-card .btn:hover { background: var(--navy); color: #fff; }

.scholarship { background: #FFF4F4; border: 1px solid #F7D9DC; border-radius: 18px; padding: 24px; gap: 18px; }
.scholarship .section-head { flex-wrap: nowrap; gap: 12px; }
.scholarship__title { font-size: 20px; font-weight: 600; color: var(--red); }
.scholarship__card { flex: 1; background: #fff; border-radius: 14px; padding: 16px; display: flex; flex-wrap: wrap; gap: 16px; }
.scholarship__media { flex: 1 1 110px; max-width: 220px; min-height: 160px; border-radius: 10px; overflow: hidden; background: var(--line-soft); }
.scholarship__media img { width: 100%; height: 100%; object-fit: cover; }
.scholarship__body { flex: 2 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.scholarship__school { font-size: 15px; font-weight: 600; color: var(--ink); }
.scholarship__value { font-size: 17px; font-weight: 700; color: var(--red); }
.scholarship .btn { margin-top: auto; align-self: flex-start; padding: 0 24px; }
@media (max-width: 559px) {
    .scholarship__media { flex-basis: 100%; max-width: none; min-height: 0; aspect-ratio: 16 / 9; }
}

/* ------------------------------------------------------------------ Home: stories & visas */

.story { position: relative; }
.story__slide { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.story__slide--text { grid-template-columns: minmax(0, 1fr); }
.story__media { min-height: 240px; background: var(--sky); }
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story__body { padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px) 88px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.story__quote { font-size: 15px; line-height: 1.7; color: var(--body); text-wrap: pretty; }
.story__who { display: flex; flex-direction: column; gap: 2px; }
.story__name { font-size: 15px; font-weight: 600; color: var(--navy); }
.story__role { font-size: 13px; color: var(--soft); }
.story__controls { position: absolute; right: clamp(20px, 3vw, 32px); bottom: clamp(16px, 2vw, 24px); display: flex; align-items: center; justify-content: flex-end; gap: 8px; container-type: inline-size; }
.story__controls .dots { margin-right: auto; }
/* The dots (8 with their tap padding: 206px) and both arrows need 310px; on narrower rows (phones,
   the half-width text column on tablets) the arrows stay and the dots go, or "Sau" is clipped. */
@container (max-width: 309px) { .story__controls .dots { display: none; } }
@media (min-width: 560px) {
    .story--photos .story__controls { left: max(50%, 252px); }
}
.story:not(.story--photos) .story__controls { left: clamp(20px, 3vw, 32px); }
@media (max-width: 559px) {
    .story__controls { left: clamp(20px, 3vw, 32px); }
}

.dots { display: flex; }
.dots__dot {
    width: 8px;
    height: 8px;
    box-sizing: content-box;
    padding: 18px 8px;
    background-clip: content-box;
    background-color: var(--line-chip);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: width .2s;
}
.dots__dot.is-active { width: 22px; background-color: var(--navy); }

/* Story transitions (app.js adds .is-animated): every slide sits in the same grid cell, so the panel
   keeps the tallest story's height and doesn't jump; the active one fades in, its photo settles from
   a slight zoom and the text slides in from the side the visitor moved towards (--story-dir). */
.story.is-animated { display: grid; }
.story.is-animated .story__slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease, visibility 0s linear .5s;
}
.story.is-animated .story__slide.is-active { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.story.is-animated .story__media { overflow: hidden; }
.story.is-animated .story__media img { transform: scale(1.06); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.story.is-animated .story__slide.is-active .story__media img { transform: none; }
.story.is-animated .story__body > * {
    opacity: 0;
    transform: translateX(calc(var(--story-dir, 1) * 24px));
    transition: opacity .45s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.story.is-animated .story__slide.is-active .story__body > * { opacity: 1; transform: none; }
.story.is-animated .story__slide.is-active .story__body > :nth-child(2) { transition-delay: .06s; }
.story.is-animated .story__slide.is-active .story__body > :nth-child(3) { transition-delay: .12s; }
.dots__dot { transition: width .3s ease, background-color .3s ease; }

.visa-list { padding: 8px 20px; }
/* Side by side, the story panel and the visa list fill their column, so both end on one line;
   the visa rows share the extra height. */
.split--stories .panel { flex: 1 0 auto; }
.split--stories .visa-list { display: flex; flex-direction: column; }
.split--stories .visa-row { flex: 1 0 auto; }
.visa-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; color: var(--ink); }
.visa-row + .visa-row { border-top: 1px solid var(--line-soft); }
.visa-row:hover { color: var(--navy); }
.flag--none { display: grid; place-items: center; background: var(--ice); color: var(--navy); }
.visa-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.visa-row__title { font-size: 14px; font-weight: 600; }
.visa-row__date { font-size: 12px; color: var(--soft); }

/* ------------------------------------------------------------------ Home: services */

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 719px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 419px) { .service-grid { grid-template-columns: minmax(0, 1fr); } }
.service { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; color: var(--ink); }
.service:hover { background: var(--tint); color: var(--ink); }
.service__icon { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--ice); color: var(--navy); }
.service__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.service__title { font-size: 15px; font-weight: 600; }
.service__sub { font-size: 13px; color: var(--soft); }

/* ------------------------------------------------------------------ Cards: posts & videos */

.post-card { background: #fff; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); box-shadow: 0 8px 30px -20px rgba(20, 33, 71, .3); transition: box-shadow .2s; }
.post-card:hover { color: var(--navy); box-shadow: var(--shadow-hover); }
.post-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--line-soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__tag { position: absolute; left: 12px; bottom: 12px; font-size: 11px; font-weight: 600; color: #fff; background: var(--navy); padding: 4px 10px; border-radius: 999px; }
.post-card__body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card__title { font-size: 15px; font-weight: 600; line-height: 1.45; }
.post-card__meta { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--soft); white-space: nowrap; }

.video-card { display: flex; flex-direction: column; padding: 0; border: 0; text-align: left; cursor: pointer; color: var(--ink); background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 30px -20px rgba(20, 33, 71, .3); transition: box-shadow .2s; }
.video-card:hover { color: var(--navy); box-shadow: var(--shadow-hover); }
.video-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--line); display: block; }
.video-card__media img { width: 100%; height: 100%; object-fit: cover; }
.video-card__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 999px; background: rgba(255, 255, 255, .95); display: grid; place-items: center; color: var(--navy); box-shadow: 0 8px 20px -8px rgba(20, 33, 71, .5); }
.video-card__title { padding: 14px 16px; font-size: 14px; font-weight: 600; line-height: 1.45; }

.video-card--row { flex-direction: row; align-items: center; gap: 14px; background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.video-card--row:hover { box-shadow: none; }
.video-card--row .video-card__media { flex: none; width: clamp(100px, 30vw, 120px); border-radius: 10px; overflow: hidden; }
.video-card--row .video-card__media img { filter: saturate(.75); }
.video-card--row .video-card__play { left: 8px; top: auto; bottom: 8px; transform: none; width: 26px; height: 26px; }
.video-card--row .video-card__play svg { width: 10px; height: 10px; }
.video-card--row .video-card__title { padding: 0; font-weight: 400; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 28px 20px; }
.video-grid .video-card { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; gap: 12px; }
.video-grid .video-card__media { border-radius: 14px; overflow: hidden; background: var(--line-soft); }
.video-grid .video-card__media img { filter: saturate(.8); }
.video-grid .video-card__play { left: 12px; top: auto; bottom: 12px; transform: none; width: 38px; height: 38px; }
.video-grid .video-card__play svg { width: 13px; height: 13px; }
.video-grid .video-card__title { padding: 0; font-size: 15px; font-weight: 400; line-height: 1.5; }

/* ------------------------------------------------------------------ Home: events */

.events { padding: 16px; }
.event-main { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.event-main__media { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--line-soft); }
.event-main__media img { width: 100%; height: 100%; object-fit: cover; }
.event-main__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.event-main__title { font-size: 15px; font-weight: 600; color: var(--ink); }
.event-main .meta-line, .event-row .meta-line { color: var(--soft); }
.event-main .btn { margin-top: 4px; align-self: flex-start; padding: 0 14px; font-size: 12px; }
.event-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; color: var(--ink); }
.event-row + .event-row { border-top: 1px solid var(--line-soft); }
.event-row:hover { color: var(--navy); }
.event-row__text { display: flex; flex-direction: column; gap: 3px; }
.event-row__title { font-size: 14px; font-weight: 600; }

/* ------------------------------------------------------------------ Home: sign-up & partners */

.signup { background: var(--navy); border-radius: 22px; padding: clamp(24px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; color: #fff; }
.signup__copy { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; }
.signup__title { font-size: clamp(24px, 2.8vw, 32px); font-weight: 700; color: #fff; line-height: 1.25; }
.signup__text { font-size: 15px; line-height: 1.65; color: #D6E0F5; }
.signup__form { flex: 2 1 420px; min-width: 0; }
.signup__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; align-items: start; }
.signup__fields .captcha { grid-column: span 2; }
@media (max-width: 559px) { .signup__fields .captcha { grid-column: auto; } }
.signup__fields .field__error { color: #FFD3D8; }
.signup__fields .form-message { grid-column: 1 / -1; color: #FFD3D8; }
.signup__submit { height: 50px; font-weight: 700; font-size: 15px; }
.signup__done { padding: 20px 24px; border-radius: 14px; background: rgba(255, 255, 255, .12); font-size: 15px; line-height: 1.6; }

.partners { border-top: 1px solid var(--line); }
.partners__inner { padding-top: clamp(28px, 3vw, 40px); padding-bottom: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.partners__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.partners__head .section-title { color: var(--navy); font-size: clamp(18px, 2vw, 22px); }
.partners__note { font-size: 13px; color: var(--soft); }
.partner-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1099px) { .partner-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 639px) { .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.partner { height: 68px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; text-align: center; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .01em; line-height: 1.25; }
a.partner:hover { border-color: var(--navy); color: var(--navy); }
.partner img { max-height: 44px; width: auto; object-fit: contain; }

/* ------------------------------------------------------------------ Page hero, tabs, breadcrumbs */

.page-hero { position: relative; background: var(--sky); color: var(--ink); overflow: hidden; }
.page-hero--plain { background: var(--tint); border-bottom: 1px solid var(--line); }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .9) max(38%, 500px), rgba(255, 255, 255, .15) max(75%, 760px)); }
.page-hero__inner { position: relative; padding-top: clamp(34px, 5.6vw, 56px); padding-bottom: clamp(38px, 6.4vw, 64px); display: flex; flex-direction: column; gap: 18px; }
.page-hero--plain .page-hero__inner { padding-bottom: clamp(34px, 5.6vw, 56px); gap: 16px; }
.page-hero__title { color: var(--navy); font-size: clamp(32px, 4.2vw, 48px); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.page-hero__intro { font-size: 16px; line-height: 1.65; color: var(--body); max-width: 560px; text-wrap: pretty; }
.page-hero--plain .page-hero__intro { font-size: 17px; color: var(--muted); max-width: 620px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--soft); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--navy); }
.crumbs__current { color: var(--navy); font-weight: 600; }
.article .crumbs__current { color: var(--soft); font-weight: 400; }

.tabs { border-bottom: 1px solid var(--line); background: #fff; }
.tabs__inner { position: relative; display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs__inner::-webkit-scrollbar { display: none; }
.tabs__tab { padding: 16px 14px; margin-bottom: -1px; font-size: 14px; white-space: nowrap; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs__tab:hover { color: var(--ink); }
.tabs__tab.is-active { color: var(--ink); font-weight: 500; border-bottom-color: var(--navy); }

/* ------------------------------------------------------------------ Two-column layout & sidebar */

.layout-aside { padding-top: clamp(34px, 5.6vw, 56px); padding-bottom: clamp(58px, 9.6vw, 96px); display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 56px); align-items: flex-start; }
.layout-aside--article { padding-top: clamp(29px, 4.8vw, 48px); gap: clamp(32px, 6vw, 64px); }
.layout-aside__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }

.sidebar { flex: 1 1 300px; max-width: 100%; display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 1024px) {
    .sidebar { position: sticky; top: 104px; }
}
.sidebar__block { display: flex; flex-direction: column; gap: 10px; }
.sidebar__block--gap { gap: 16px; }
.sidebar__photo { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--line-soft); }
.sidebar__photo img { width: 100%; height: 100%; object-fit: cover; }

.country-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.country-list__item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; font-size: 14px; color: var(--ink); background: #fff; }
.country-list__item + .country-list__item { border-top: 1px solid var(--line-soft); }
.country-list__item:hover { background: var(--tint); color: var(--ink); }
.country-list__item.is-active { background: var(--ice); color: var(--navy); font-weight: 500; }
.country-list__name { flex: 1; }
.country-list__arrow { color: var(--soft); }

.cta-box { background: var(--navy); border-radius: 18px; padding: clamp(20px, 5vw, 28px); display: flex; flex-direction: column; gap: 14px; color: #fff; }
.cta-box__title { font-size: 20px; font-weight: 600; line-height: 1.35; }
.cta-box__text { font-size: 14px; line-height: 1.6; color: #D6E0F5; }
.cta-box .btn { align-self: flex-start; gap: 8px; }
.cta-box__hotline { font-size: 13px; color: #D6E0F5; }
.cta-box__hotline a { font-weight: 600; color: #fff; }

.related { display: flex; flex-direction: column; }
.related__item { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.related__item:hover { color: var(--navy); }
.related__tag { font-size: 12px; color: var(--navy); font-weight: 500; }
.related__title { font-size: 15px; line-height: 1.5; }

/* ------------------------------------------------------------------ Category listing */

.list-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.list-toolbar__count { font-size: 14px; color: var(--muted); }
.list-toolbar__search { width: min(100%, 320px); }

.featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; padding: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 30px -18px rgba(20, 33, 71, .3); transition: box-shadow .2s; }
.featured:hover { color: var(--navy); box-shadow: 0 16px 36px -18px rgba(20, 33, 71, .4); }
.featured__media { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--line-soft); }
.featured__media img { width: 100%; height: 100%; object-fit: cover; }
.featured__body { display: flex; flex-direction: column; gap: 14px; justify-content: center; padding: 8px; }
.featured__title { font-size: clamp(22px, 3vw, 26px); font-weight: 600; line-height: 1.3; text-wrap: balance; }
.featured__excerpt { font-size: 15px; line-height: 1.65; color: var(--muted); }
.featured__meta { font-size: 13px; color: var(--soft); font-variant-numeric: tabular-nums; }

.post-rows { display: flex; flex-direction: column; }
.post-row { display: grid; grid-template-columns: clamp(52px, 12vw, 96px) minmax(0, 1fr) 140px; gap: clamp(14px, 3vw, 24px); padding: 22px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); align-items: start; }
.post-row:not(:has(.post-row__thumb)) { grid-template-columns: clamp(52px, 12vw, 96px) minmax(0, 1fr); }
.post-row:hover { color: var(--navy); }
.post-row__date { display: flex; flex-direction: column; gap: 2px; font-variant-numeric: tabular-nums; }
.post-row__day { font-size: 22px; font-weight: 600; color: var(--ink); }
.post-row__month { font-size: 12px; color: var(--soft); }
.post-row__text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.post-row__title { font-size: 17px; line-height: 1.45; }
.post-row__excerpt { font-size: 14px; line-height: 1.6; color: var(--muted); }
.post-row__views { font-size: 12px; color: var(--soft); }
.post-row__thumb { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--line-soft); }
.post-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
/* Phones (below 560px): a row with a photo becomes a card, photo full width (16:9) on top, then
   one line with the date and views, the title and a two-line excerpt. Wider, the photo stays
   right. The text span is display: contents so its children take part in the row's grid.
   Rows without a photo keep the date column. */
@media (max-width: 559px) {
    .post-row:has(.post-row__thumb) {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: "thumb thumb" "date views" "title title" "excerpt excerpt";
        gap: 0 8px;
        padding: 20px 0 22px;
        align-items: baseline;
    }
    .post-row:has(.post-row__thumb) .post-row__thumb { grid-area: thumb; aspect-ratio: 16 / 9; margin-bottom: 12px; }
    .post-row:has(.post-row__thumb) .post-row__text { display: contents; }
    .post-row:has(.post-row__thumb) .post-row__date { grid-area: date; flex-direction: row; gap: 4px; }
    .post-row:has(.post-row__thumb) .post-row__day,
    .post-row:has(.post-row__thumb) .post-row__month { font-size: 12px; font-weight: 400; color: var(--soft); }
    .post-row:has(.post-row__thumb) .post-row__day::after { content: "/"; margin-left: 4px; }
    .post-row:has(.post-row__thumb) .post-row__views { grid-area: views; }
    .post-row:has(.post-row__thumb) .post-row__views::before { content: "· "; }
    .post-row:has(.post-row__thumb) .post-row__title { grid-area: title; margin-top: 6px; font-size: 17px; }
    .post-row:has(.post-row__thumb) .post-row__excerpt {
        grid-area: excerpt; margin-top: 6px;
        display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    }
}

.empty { padding: 40px; border: 1px dashed var(--line-input); border-radius: 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.empty__title { font-size: 18px; font-weight: 600; }
.empty__text { font-size: 14px; color: var(--muted); line-height: 1.6; }

.pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pager__page { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.pager__page:hover { border-color: var(--navy); color: var(--navy); }
.pager__page.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager__gap { color: var(--soft); }

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

.article { flex: 999 1 560px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 28px; }
.article__head { display: flex; flex-direction: column; gap: 16px; }
.article__title { color: var(--navy); font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; line-height: 1.15; letter-spacing: .01em; text-wrap: balance; }
.article__meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--soft); font-variant-numeric: tabular-nums; }
.article__hero { border-radius: 14px; overflow: hidden; background: var(--line-soft); }
/* Contain, not cover: a tall cover (infographic, poster) is letterboxed instead of losing its top and
   bottom text; wide photos stay under 520px high and fill the width as before. */
.article__hero img { width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.article__hero--small { background: none; border-radius: 0; }
.article__hero--small img { width: auto; max-width: 100%; margin-inline: auto; border-radius: 14px; }
.article__video { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.article__video iframe { width: 100%; height: 100%; border: 0; display: block; }

.prose { display: flex; flex-direction: column; gap: 22px; font-size: 17px; line-height: 1.75; color: var(--body); overflow-wrap: break-word; }
.prose > * { margin: 0; }
.prose h2 { margin-top: 16px; font-size: clamp(20px, 2.6vw, 24px); font-weight: 600; line-height: 1.3; color: var(--navy); }
.prose h3 { margin-top: 8px; font-size: 19px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.prose .lead, .prose > p:first-child strong:only-child { font-size: 21px; line-height: 1.6; font-weight: 600; color: var(--ink); }
.prose blockquote { padding: 4px 0 4px 24px; border-left: 2px solid var(--navy); font-size: 19px; font-weight: 600; color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose img { height: auto; border-radius: 14px; }
.prose figure { display: flex; flex-direction: column; gap: 10px; }
.prose figcaption { font-size: 13px; color: var(--soft); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; min-width: 7em; }
.prose iframe { max-width: 100%; border: 0; border-radius: 14px; }
.prose img, .prose video, .prose embed, .prose object, .prose table { max-width: 100%; }
/* The editor's "Insert media" saves Bootstrap 4 embed markup (div.embed-responsive > iframe
   420x315) and Bootstrap is not loaded, so the ratio box is defined here (see CHANGELOG
   2026-10-23). Bare YouTube/Vimeo iframes pasted as HTML get the same 16:9. */
.prose .embed-responsive { position: relative; width: 100%; overflow: hidden; border-radius: 14px; }
.prose .embed-responsive::before { content: ""; display: block; padding-top: 56.25%; }
.prose .embed-responsive-21by9::before { padding-top: 42.857%; }
.prose .embed-responsive-4by3::before { padding-top: 75%; }
.prose .embed-responsive-1by1::before { padding-top: 100%; }
.prose .embed-responsive > iframe, .prose .embed-responsive > embed, .prose .embed-responsive > object, .prose .embed-responsive > video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose iframe[src*="youtube.com"], .prose iframe[src*="youtu.be"], .prose iframe[src*="vimeo.com"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.prose .embed-responsive > iframe[src] { aspect-ratio: auto; height: 100%; }
.prose figure.table { display: block; overflow-x: auto; }
/* Wide tables scroll inside their box: a soft shadow shows on the side with more columns
   (the white covers move with the content, the shadows stay with the box). */
.prose figure.table {
    background:
        linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) 0 0 / 40px 100% no-repeat local,
        linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) 100% 0 / 40px 100% no-repeat local,
        radial-gradient(farthest-side at 0 50%, rgba(16, 24, 40, .16), transparent) 0 0 / 14px 100% no-repeat scroll,
        radial-gradient(farthest-side at 100% 50%, rgba(16, 24, 40, .16), transparent) 100% 0 / 14px 100% no-repeat scroll;
}
.prose .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.prose .stat { padding: 20px; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 6px; }
.prose .stat strong { font-size: 28px; font-weight: 600; color: var(--navy); line-height: 1.2; }
.prose .stat span { font-size: 14px; line-height: 1.5; color: var(--muted); }

.article-cta { padding: clamp(20px, 5vw, 28px); border-radius: 18px; background: var(--navy); color: #fff; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.article-cta__text { flex: 1 1 320px; font-size: 18px; font-weight: 600; line-height: 1.55; }
.article-cta .btn { align-self: flex-start; gap: 8px; }

.share { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.share__label { color: var(--muted); }

.page-body { padding-top: clamp(38px, 6.4vw, 64px); padding-bottom: clamp(58px, 9.6vw, 96px); }
.page-body .prose { max-width: 760px; }

/* ------------------------------------------------------------------ Contact */

.contact-layout { padding-top: clamp(38px, 6.4vw, 64px); padding-bottom: clamp(58px, 9.6vw, 96px); display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 56px); align-items: flex-start; }
.contact-layout__info { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.contact-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
/* Four cards: 1, 2 or 4 per row, never 3 + 1. */
@media (min-width: 560px) { .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-card { padding: 24px; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.contact-card:hover { border-color: var(--soft); color: var(--ink); }
.contact-card__label { font-size: 13px; color: var(--muted); }
.contact-card__value { font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.contact-card__value--big { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.contact-card__note { font-size: 13px; color: var(--soft); }
.contact-card__link { font-size: 13px; color: var(--navy); font-weight: 500; }
.contact-map { aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line-soft); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.6); }
.form-card { flex: 1 1 420px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 5vw, 36px); display: flex; flex-direction: column; gap: 22px; }
.form-card__head { display: flex; flex-direction: column; gap: 6px; }
.form-card__title { font-size: clamp(22px, 3vw, 26px); font-weight: 600; }
.form-card__note { font-size: 14px; color: var(--muted); line-height: 1.6; }

.status-page { padding-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(64px, 10vw, 120px); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

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

.about-band { background: var(--tint); border-top: 1px solid var(--line); }
.about-band__inner { padding-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(32px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.about-band__media { flex: 1 1 220px; max-width: 300px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--line-soft); }
.about-band__media img { width: 100%; height: 100%; object-fit: cover; }
.about-band__text { flex: 3 1 420px; font-size: 15px; line-height: 1.75; color: var(--body); text-wrap: pretty; }
.about-band__text strong { color: var(--navy); font-weight: 600; }

.site-footer { background: var(--navy-deep); color: #C3D0EA; font-size: 13px; line-height: 1.7; }
.site-footer a { color: #C3D0EA; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { padding-top: clamp(40px, 5vw, 56px); padding-bottom: 28px; display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.site-footer__photo { aspect-ratio: 16 / 10; width: 100%; max-width: 240px; border-radius: 10px; overflow: hidden; }
.site-footer__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1099px) {
    .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .site-footer__brand, .footer-col--contact { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.footer-col { display: flex; flex-direction: column; min-width: 0; }
.footer-col a { padding: 6px 0; }
.footer-col__title { color: #fff; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.footer-col--contact { gap: 8px; }
.footer-col--contact .footer-col__title { margin-bottom: 4px; }
.footer-col--contact a { padding: 0; overflow-wrap: anywhere; }
.site-footer a.is-strong, .site-footer .is-strong { color: #fff; }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.site-footer__social a { height: 34px; padding: 0 12px; border: 1px solid #2E4A8F; border-radius: 999px; color: #fff; font-size: 12px; display: flex; align-items: center; }
.site-footer__social a:hover { border-color: #fff; }
.site-footer__bottom { padding-top: 18px; padding-bottom: 84px; border-top: 1px solid #23407F; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; color: #9FB2DB; }

/* ------------------------------------------------------------------ Floating chat & video player */

.chat-fab { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.chat-fab__menu { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px -12px rgba(20, 33, 71, .25); padding: 8px; display: flex; flex-direction: column; min-width: 200px; }
.chat-fab__menu a { padding: 10px 14px; font-size: 14px; color: var(--ink); border-radius: 8px; }
.chat-fab__menu a:hover { background: var(--ice); color: var(--ink); }
.chat-fab__button { height: 52px; min-width: 52px; padding: 0 20px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: 600 14px var(--font); cursor: pointer; box-shadow: 0 14px 30px -10px rgba(15, 42, 107, .6); }
.chat-fab__button:hover { background: var(--navy-deep); }
@media (max-width: 639px) {
    .chat-fab__button[aria-expanded="false"] { padding: 0; }
    .chat-fab__button[aria-expanded="false"] .chat-fab__label { display: none; }
}

.video-modal { position: fixed; inset: 0; z-index: 60; background: rgba(15, 42, 107, .85); display: grid; place-items: center; padding: 24px; }
.video-modal__dialog { width: min(100%, 1040px); display: flex; flex-direction: column; gap: 14px; }
.video-modal__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #fff; }
.video-modal__title { font-size: 16px; font-weight: 600; line-height: 1.4; }
.video-modal__close { flex: none; width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: #fff; font-size: 20px; cursor: pointer; }
.video-modal__frame { aspect-ratio: 16 / 9; width: 100%; background: #000; border-radius: 14px; overflow: hidden; }
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
body.is-locked { overflow: hidden; }

/* ------------------------------------------------------------------ Phones: swipe rows
   Below 720px the school cards, study guides and home videos scroll sideways in one row
   (snap per card) instead of stacking into a very long column. The schools' prev/next
   buttons are desktop-only; on phones every school is in the row. */
@media (max-width: 719px) {
    .school-track, .card-grid--swipe {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        margin: 0 calc(-1 * var(--pad-x));
        padding: 4px var(--pad-x) 16px;
        scroll-padding: 0 var(--pad-x);
    }
    .school-track::-webkit-scrollbar, .card-grid--swipe::-webkit-scrollbar { display: none; }
    .school-track > *, .card-grid--swipe > * { flex: 0 0 min(80%, 300px); scroll-snap-align: start; }
    .school-track > :nth-child(n + 5) { display: flex; }
    [data-carousel] .round-btn { display: none; }
    .section-head__tools .link-more { margin-left: 0; }
}

/* Post pages on phones/tablets: related posts first, the country list after them. */
@media (max-width: 1023px) {
    .sidebar__block--related { order: -1; }
}

/* ------------------------------------------------------------------ Programme finder results */
.finder-page { gap: 28px; }
.finder-results { display: flex; flex-direction: column; gap: 20px; }
.finder-results__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.finder-results__count { font-size: clamp(20px, 2.2vw, 24px); font-weight: 600; color: var(--ink); }
.chip--sm { height: 36px; padding: 0 14px; font-size: 13px; gap: 6px; }
a.chip:hover { border-color: var(--navy); color: var(--navy); }

.school-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .school-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .school-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.school-card { background: #fff; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); box-shadow: 0 8px 30px -20px rgba(20, 33, 71, .3); transition: box-shadow .2s; }
.school-card:hover { color: var(--navy); box-shadow: var(--shadow-hover); }
.school-card__media { aspect-ratio: 16 / 9; background: var(--line-soft); }
.school-card__media img { width: 100%; height: 100%; object-fit: cover; }
.school-card__body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.school-card__place { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.school-card__name { font-size: 16px; font-weight: 600; line-height: 1.4; }
.school-card__levels { display: flex; flex-wrap: wrap; gap: 6px; }
.school-card__fee { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.school-card__fee strong { color: var(--navy); font-weight: 600; }

.finder-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: clamp(20px, 3vw, 28px); border-radius: 18px; background: var(--navy); color: #fff; }
.finder-cta__text { display: flex; flex-direction: column; gap: 6px; max-width: 620px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .85); }
.finder-cta__title { font-size: 20px; font-weight: 600; color: #fff; }
.finder-page__content { max-width: 760px; }

/* School profile posts: facts above the body. */
.school-facts { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--tint); display: flex; flex-direction: column; gap: 14px; }
.school-facts__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; }
@media (min-width: 640px) { .school-facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.school-facts__list div { display: flex; flex-direction: column; gap: 2px; }
.school-facts__list dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.school-facts__list dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.school-facts__list strong { color: var(--navy); }

.finder-wrap { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 96px; }
.finder-wrap__toggle { display: none; }
@media (max-width: 719px) {
    .finder-wrap__toggle { display: inline-flex; }
    .finder-wrap.is-collapsed .finder { display: none; }
}

/* Partner logos: the old site lists 50+, so below 1100px they scroll sideways in two rows
   instead of stacking 13–26 rows deep. */
@media (max-width: 1099px) {
    .partner-grid {
        grid-template-columns: none;
        grid-template-rows: repeat(2, 68px);
        grid-auto-flow: column;
        grid-auto-columns: min(22%, 180px);
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        margin: 0 calc(-1 * var(--pad-x));
        padding: 0 var(--pad-x) 8px;
        scroll-padding: 0 var(--pad-x);
    }
    .partner-grid::-webkit-scrollbar { display: none; }
    .partner { scroll-snap-align: start; }
}
@media (max-width: 639px) { .partner-grid { grid-auto-columns: 42%; } }
