/* ==========================================================================
   SuccessBeacon Overseas — inner pages (every page except the homepage)
   Page heroes, the sticky section bar with the Master's / Bachelor's switch,
   country chapters, tables, journeys, contact, legal, live classes, Bachelor's.
   Uses the tokens in style.css.
   ========================================================================== */

/* ---------- Page hero (night deck) ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--night); padding: clamp(2.2rem, 1.6rem + 2.5vw, 3.6rem) 0 clamp(3.2rem, 2.4rem + 3.5vw, 5.5rem); }
.page-hero::before { content: ""; position: absolute; z-index: -1; right: -12rem; top: -20rem; width: 58rem; height: 58rem; border-radius: 50%; background: radial-gradient(circle, rgba(69, 188, 205, .2), transparent 62%); pointer-events: none; }
.page-hero__globe { position: absolute; z-index: -1; right: max(-8rem, calc((100vw - 1320px) / 2 - 6rem)); top: -5rem; width: clamp(420px, 46vw, 680px); aspect-ratio: 1; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle, #000 56%, transparent 71%); mask-image: radial-gradient(circle, #000 56%, transparent 71%); opacity: .82; }
.page-hero__globe img { position: absolute; left: -12%; top: -12%; width: 124%; height: 124%; max-width: none; }
.page-hero__inner { position: relative; }
.page-hero__text { position: relative; z-index: 2; max-width: 44rem; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .55rem; font-size: .84rem; color: var(--n-muted); }
.crumbs li { display: inline-flex; align-items: center; gap: .55rem; }
.crumbs li + li::before { content: "›"; color: #5f7896; }
.crumbs a { color: var(--n-muted); transition: color .2s; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current="page"] { color: #fff; font-weight: 600; }
.page-hero .crumbs { margin-bottom: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); }
.page-hero h1 { font-family: var(--font-display); font-size: var(--fs-h1); font-weight: 750; letter-spacing: -.045em; line-height: .98; color: #fff; }
.page-hero h1 .accent { color: var(--gold); }
.page-hero .h1-sub { display: block; margin-top: 1rem; font-family: var(--font); font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); font-weight: 560; letter-spacing: -.005em; line-height: 1.35; color: #dbe6f2; }
.page-hero h1.h1--eyebrow { display: block; font-family: var(--font); font-size: .78rem; font-weight: 700; letter-spacing: .16em; line-height: 1.55; text-transform: uppercase; color: var(--aqua); max-width: 40rem; }
.page-hero h1.h1--eyebrow::before { content: ""; display: inline-block; vertical-align: middle; width: 22px; height: 2px; margin: -.2em .7rem 0 0; background: var(--gold); }
.page-hero h1.h1--eyebrow .h1-sub { display: inline; margin: 0; font: inherit; color: inherit; }
.hero-kicker { margin-top: 1.1rem; font-family: var(--font-display); font-size: clamp(2.5rem, 1.5rem + 4vw, 4.8rem); font-weight: 750; letter-spacing: -.045em; line-height: .98; color: #fff; text-wrap: balance; }
.hero-kicker .accent { color: var(--gold); }
.page-hero__text > p:not(.hero-kicker):not(.badge-pill):not(.hero-flag):not(.nf-code), .page-hero__inner > p:not(.hero-kicker) { margin-top: 1.25rem; max-width: 38rem; font-size: var(--fs-lede); line-height: 1.6; color: var(--n-body); }
.page-hero__text .badge-pill { margin-bottom: 1.2rem; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }
.hero-flag { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.2rem; padding: .4rem .95rem .4rem .45rem; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .17); color: #dbe6f2; font-size: .82rem; font-weight: 600; }
.hero-flag .flag { width: 24px; height: 16px; border-radius: 3px; object-fit: cover; }
.country-facts { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); max-width: 54rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .03)); border: 1px solid var(--n-line); border-radius: var(--radius-lg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.country-facts > div { padding: 1rem 1.3rem; border-left: 1px solid var(--n-line); min-width: 0; }
.country-facts > div:first-child { border-left: 0; }
.country-facts .lbl { display: block; font-size: .76rem; color: var(--n-muted); margin-bottom: .2rem; }
.country-facts .val { display: block; font-family: var(--font-display); font-size: clamp(1.15rem, .95rem + .8vw, 1.65rem); font-weight: 700; letter-spacing: -.03em; color: #fff; line-height: 1.15; }
@media (max-width: 700px) { .country-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .country-facts > div:nth-child(3) { border-left: 0; } .country-facts > div:nth-child(n+3) { border-top: 1px solid var(--n-line); } }
.page-hero__pic { position: absolute; z-index: 2; right: 0; top: 50%; width: clamp(240px, 24vw, 320px); aspect-ratio: 3 / 4; border-radius: 26px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 40px 70px -20px rgba(0, 0, 0, .8), 0 0 60px rgba(69, 188, 205, .22); transform: translateY(-50%) perspective(1100px) rotateY(-10deg) rotateX(3deg); }
.page-hero__pic img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .18) 46%, transparent 60%); }
.page-hero__pic .route-tag { position: absolute; left: 1rem; top: 1rem; z-index: 2; }
.route-tag { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: var(--radius-pill); background: var(--gold); color: var(--night); font-size: .68rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; }
.route-tag svg { width: 13px; height: 13px; }
@media (max-width: 999px) { .page-hero__pic { display: none; } .page-hero__globe { opacity: .45; right: -40vw; width: 110vw; top: 0; } }
@media (min-width: 1000px) { .page-hero--country .page-hero__text { max-width: min(44rem, calc(100% - 360px)); } .page-hero--country .country-facts { max-width: calc(100% - 360px); } }
.page-hero--plain { padding-bottom: clamp(2.4rem, 2rem + 2vw, 3.6rem); }
.page-hero--plain h1 { font-size: clamp(2.3rem, 1.6rem + 2.8vw, 3.8rem); }
.page-hero--plain .page-hero__inner > p { margin-top: .9rem; font-size: .95rem; }

/* ---------- Sticky section bar (tabs + Master's / Bachelor's switch) ---------- */
.subnav { position: sticky; top: calc(var(--nav-h) + .6rem); z-index: 40; height: 0; pointer-events: none; }
.subnav__inner { transform: translateY(-50%); }
.subnav__inner { pointer-events: auto; display: flex; align-items: center; gap: .6rem; width: max-content; max-width: calc(100% - 2rem); margin-inline: auto; padding: .35rem; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border: 1px solid var(--line); box-shadow: 0 18px 34px -18px rgba(14, 37, 71, .45); overflow-x: auto; scrollbar-width: none; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav__links { display: flex; gap: .2rem; }
.subnav a { flex-shrink: 0; padding: .55rem 1rem; border-radius: var(--radius-pill); font-size: .88rem; font-weight: 600; color: var(--body); transition: background-color .2s, color .2s; }
.subnav a:hover { color: var(--ink); background: var(--mist-2); }
.subnav a.is-active { background: #e6decf; color: var(--navy); }
.level-switch { display: inline-flex; flex-shrink: 0; padding: .22rem; border-radius: var(--radius-pill); background: var(--cloud); border: 1px solid var(--line); }
.level-switch button { padding: .48rem 1.05rem; border-radius: var(--radius-pill); font-size: .86rem; font-weight: 650; color: var(--body); transition: background-color .2s, color .2s; }
.level-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: inset 0 0 0 1.5px var(--gold); }
@media (max-width: 600px) { .subnav a { padding: .5rem .75rem; font-size: .82rem; } .subnav__inner { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); } }
/* views: without JS everything shows; with JS the chosen level shows */
.js[data-level="masters"] [data-view="bachelors"], .js[data-level="bachelors"] [data-view="masters"] { display: none !important; }

/* ---------- Country chapters (each chapter is its own deck) ---------- */
.chapter-sec { padding-block: clamp(3.5rem, 2.6rem + 4vw, 6.25rem); }
.chapter-sec + .chapter-sec:not(.section--night):not(.section--alt) { padding-top: 0; }
.chapter__head { margin-bottom: clamp(1.6rem, 1.2rem + 1.5vw, 2.6rem); max-width: 50rem; }
.chapter__no { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1rem; font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--navy); }
.chapter__no::before { content: ""; width: 22px; height: 2px; background: var(--gold); }
.section--night .chapter__no { color: var(--aqua); }
.chapter__head h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); }
.chapter__head h2 + h2 { margin-top: 1.4rem; font-family: var(--font); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.section--night .chapter__head h2 + h2 { color: var(--gold); }
.chapter--intro .chapter__body { max-width: 52rem; font-size: var(--fs-lede); }
.chapter__body { min-width: 0; }
.prose { min-width: 0; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); margin-top: 2.6rem; }
.prose h3 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.38rem); margin-top: 2rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { display: grid; gap: .6rem; }
.prose ul > li { position: relative; padding-left: 1.6rem; }
.prose ul > li::before { content: ""; position: absolute; left: .25rem; top: .62em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--aqua); }
.prose ol { counter-reset: ol; }
.prose ol > li { position: relative; padding-left: 2.2rem; counter-increment: ol; }
.prose ol > li::before { content: counter(ol); position: absolute; left: 0; top: .1rem; width: 1.55rem; height: 1.55rem; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: .74rem; font-weight: 720; }
.prose a:not(.btn) { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.section--night .prose a:not(.btn) { color: var(--aqua-soft); }
.prose a.btn { text-decoration: none; }
.prose ul.reasons { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: .9rem; }
.prose ul.reasons > li { padding: 1.3rem 1.35rem 1.35rem 3.6rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); font-size: .98rem; line-height: 1.55; transition: border-color .3s, transform .45s var(--ease), box-shadow .45s var(--ease); }
.prose ul.reasons > li:hover { border-color: #b8d5e3; transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.prose ul.reasons > li::before { left: 1.2rem; top: 1.3rem; width: 1.55rem; height: 1.55rem;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2345bccd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 62% no-repeat; }
.prose ul.reasons strong, .prose ul.reasons b { color: var(--ink); }
.prose ul.timeline { counter-reset: tl; gap: 0; }
.prose ul.timeline > li { counter-increment: tl; padding: 0 0 1.6rem 3.8rem; min-height: 2.7rem; }
.prose ul.timeline > li::before { content: counter(tl); left: 0; top: -.25rem; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-display); font-size: .92rem; font-weight: 700; border: 2px solid var(--aqua); box-shadow: 0 0 0 5px rgba(69, 188, 205, .16); }
.prose ul.timeline > li::after { content: ""; position: absolute; left: calc(1.3rem - 1px); top: 2.6rem; bottom: .15rem; border-left: 2px dashed rgba(125, 160, 200, .55); }
.prose ul.timeline > li:last-child { padding-bottom: 0; }
.prose ul.timeline > li:last-child::after { display: none; }
.prose ul.timeline strong { color: var(--ink); }
.section--night .prose ul.timeline strong, .section--night .prose strong { color: #fff; }
@media (min-width: 900px) { .prose ul.timeline { grid-template-columns: 1fr 1fr; column-gap: 3rem; grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 5), auto); } .prose ul.timeline > li:nth-child(5n)::after { display: none; } }
/* tables */
.table-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); scrollbar-width: thin; }
.table-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.table-scroll table { width: 100%; min-width: 600px; border-collapse: separate; border-spacing: 0 6px; font-size: .95rem; }
.table-scroll th, .table-scroll thead td { padding: .5rem 1.1rem; text-align: left; font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--navy); white-space: nowrap; background: none; }
.table-scroll td { padding: .95rem 1.1rem; text-align: left; vertical-align: top; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.table-scroll td:first-child { border-left: 1px solid var(--line); border-radius: 14px 0 0 14px; }
.table-scroll td:last-child { border-right: 1px solid var(--line); border-radius: 0 14px 14px 0; }
.table-scroll tbody tr:hover td { background: #f8f4ec; }
.table-scroll td:nth-child(2) { color: var(--ink); font-weight: 620; }
.table-scroll tr:last-child td { }
.section--night .table-scroll th, .section--night .table-scroll thead td { color: var(--aqua); }
.section--night .table-scroll td { background: rgba(255, 255, 255, .055); border-color: rgba(255, 255, 255, .07); color: #dbe6f2; }
.section--night .table-scroll td:first-child { color: var(--n-muted); }
.section--night .table-scroll td:nth-child(2) { color: #fff; }
.section--night .table-scroll td:last-child { color: var(--n-body); }
.section--night .table-scroll tbody tr:hover td { background: rgba(255, 255, 255, .08); }
.table-scroll tr.is-total td, .table-scroll tr.is-total td { background: rgba(226, 182, 92, .14) !important; border-color: rgba(226, 182, 92, .35) !important; color: #fff; }
.table-scroll:not(.section--night *) tr.is-total td { color: var(--ink); background: #fbf3df !important; border-color: #ecd49b; }
.table-scroll tr.is-total td:nth-child(3) { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--gold-ink); }
.section--night .table-scroll tr.is-total td:nth-child(3) { color: var(--gold); }
thead td.th-empty { background: none !important; border: 0 !important; }
.prose .table-scroll { margin-top: 1rem; }
@media (max-width: 640px) {
  .table-cards table, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; min-width: 0 !important; }
  .table-cards { overflow: visible; }
  .table-cards table { border-spacing: 0; }
  .table-cards thead, .table-cards tr.thead-row { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-cards tr { margin-bottom: .75rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
  .section--night .table-cards tr { border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); }
  .table-cards td { display: grid; grid-template-columns: minmax(6.5rem, 38%) minmax(0, 1fr); gap: .75rem; padding: .7rem 1rem; border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; background: transparent !important; }
  .section--night .table-cards td { border-bottom-color: rgba(255, 255, 255, .08) !important; }
  .table-cards td::before { content: attr(data-label); font-size: .72rem; font-weight: 650; color: var(--muted); padding-top: .12rem; }
  .section--night .table-cards td::before { color: var(--n-muted); }
  .table-cards td[data-label=""]::before, .table-cards td:not([data-label])::before { display: none; }
  .table-cards td:not([data-label]), .table-cards td[data-label=""] { grid-template-columns: minmax(0, 1fr); }
  .table-cards tr td:first-child { background: var(--navy) !important; color: #fff; }
  .table-cards tr td:first-child::before { color: var(--on-dark-3); }
  .table-cards tr td:last-child { border-bottom: 0 !important; }
}

/* ---------- Tool band on country pages ---------- */
.tools-band .tool-grid { margin-top: 0; }

/* ---------- Bachelor's view (country pages) ---------- */
.ug { position: relative; }
.ug__intro { display: grid; gap: 1.5rem 3rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .ug__intro { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); } }
.ug__lead { font-size: var(--fs-lede); line-height: 1.6; color: var(--n-body); }
.ug__facts { display: grid; grid-template-columns: 1fr 1fr; padding: .3rem; }
.ug__facts > div { padding: 1rem 1.15rem; border-left: 1px solid var(--n-line); border-top: 1px solid var(--n-line); }
.ug__facts > div:nth-child(odd) { border-left: 0; }
.ug__facts > div:nth-child(-n+2) { border-top: 0; }
.ug__facts small { display: block; font-size: .74rem; color: var(--n-muted); }
.ug__facts b { display: block; margin-top: .15rem; font-family: var(--font-display); font-size: 1.15rem; color: #fff; letter-spacing: -.02em; line-height: 1.25; }
.ug-blocks { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .ug-blocks { grid-template-columns: 1fr 1fr; } }
.ug-detail { padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.ug-block { padding: 1.5rem 1.5rem 1.6rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.ug-block h3 { display: flex; align-items: center; gap: .7rem; font-size: 1.22rem; margin-bottom: .8rem; }
.ug-block h3 span { width: 2.2rem; height: 2.2rem; flex-shrink: 0; display: grid; place-items: center; border-radius: 11px; background: var(--navy); color: var(--aqua); font-size: .82rem; font-weight: 750; }
.ug-block ul { display: grid; gap: .55rem; }
.ug-block li { position: relative; padding-left: 1.4rem; font-size: .96rem; line-height: 1.55; }
.ug-block li::before { content: ""; position: absolute; left: .2rem; top: .6em; width: .42rem; height: .42rem; border-radius: 50%; background: var(--aqua); }
.ug-block li strong { color: var(--ink); }
.ug-sources { margin-top: 1.6rem; font-size: .84rem; color: var(--muted); }
.ug-sources a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.ug-note { display: flex; gap: .8rem; align-items: flex-start; margin-top: 1.4rem; padding: 1rem 1.2rem; border-radius: var(--radius); background: #fbf3df; border: 1px solid #ecd49b; color: #5c4610; font-size: .93rem; line-height: 1.55; }

/* ---------- Journeys, splits, checklists ---------- */
.journey { position: relative; display: grid; gap: 0; }
.journey__item { position: relative; padding: 0 0 2.2rem 3.8rem; }
.journey__item::before { content: ""; position: absolute; left: .45rem; top: .25rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--cloud); border: 2px solid var(--aqua); box-shadow: 0 0 0 5px rgba(69, 188, 205, .18); }
.journey__item::after { content: ""; position: absolute; left: calc(1.2rem - 1px); top: 2.1rem; bottom: .1rem; border-left: 2px dashed rgba(125, 160, 200, .6); }
.journey__item:last-child { padding-bottom: 0; }
.journey__item:last-child::after { display: none; }
.journey__item:last-child::before { background: var(--aqua); border-color: #fff; box-shadow: 0 0 0 6px rgba(69, 188, 205, .3), 0 0 18px var(--aqua); }
.journey__item h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.55rem); margin-bottom: .45rem; }
.journey__item p { max-width: 40rem; }
.section--night .journey__item::before { background: var(--night); }
.section--night .journey__item p { color: var(--n-body); }
.journey__year { display: block; font-size: .78rem; font-weight: 750; letter-spacing: .16em; color: var(--gold-ink); margin-bottom: .3rem; }
.section--night .journey__year { color: var(--gold); }
.journey--grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.1rem; }
.journey--grid .journey__item { padding: 1.5rem 1.5rem 1.6rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); counter-increment: jg; }
.journey--grid { counter-reset: jg; }
.journey--grid .journey__item::before { position: static; display: block; width: auto; height: auto; margin-bottom: .8rem; border: 0; box-shadow: none; background: none; content: counter(jg, decimal-leading-zero); font-size: .75rem; font-weight: 750; letter-spacing: .16em; color: var(--gold-ink); }
.journey--grid .journey__item::after { display: none; }
.journey--grid .journey__item h3 { font-size: 1.2rem; }
.split { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.split--top { align-items: start; }
.split > div > * + * { margin-top: 1rem; }
.split__media { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.checklist--cards { gap: .7rem; }
.checklist--cards li { padding: 1rem 1.15rem 1rem 3.2rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.checklist--cards li::before { left: 1rem; top: 1.1rem; width: 1.4rem; height: 1.4rem; }
.section--night .checklist--cards li { background: rgba(255, 255, 255, .05); border-color: var(--n-line); }
.reason-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); }
.reason { padding: 1.4rem; min-height: 11rem; }
.reason__no { display: block; font-size: .75rem; font-weight: 750; letter-spacing: .16em; color: var(--gold); margin-bottom: .7rem; }
.reason h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.reason p { font-size: .93rem; line-height: 1.55; }
.mission-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.mission { position: relative; overflow: hidden; padding: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); border-radius: var(--radius-xl); background: linear-gradient(180deg, var(--navy), var(--night)); color: var(--n-body); box-shadow: 0 36px 60px -32px rgba(7, 21, 38, .75); }
.mission::before { content: ""; position: absolute; right: -6rem; top: -8rem; width: 22rem; height: 22rem; border-radius: 50%; background: radial-gradient(circle, rgba(69, 188, 205, .24), transparent 65%); }
.mission h3 { position: relative; font-size: 1.7rem; color: #fff; margin-bottom: .8rem; }
.mission p { position: relative; font-size: 1rem; line-height: 1.65; }
.stat-panel { position: relative; overflow: hidden; padding: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); border-radius: var(--radius-xl); background: linear-gradient(180deg, var(--navy), var(--night)); box-shadow: 0 40px 70px -34px rgba(7, 21, 38, .75); }
.stat-panel::before { content: ""; position: absolute; right: -8rem; top: -10rem; width: 26rem; height: 26rem; border-radius: 50%; background: radial-gradient(circle, rgba(69, 188, 205, .24), transparent 65%); }
.stat-panel h2 { position: relative; color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.stat-panel .stat-grid { position: relative; grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; margin-top: 2rem; }
.stat-panel .stat { padding: 0; border: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.contact-info { display: grid; gap: .8rem; }
.info-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; align-items: center; padding: 1.15rem 1.3rem; border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--navy), #0a1b33); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 26px 44px -30px rgba(7, 21, 38, .8); }
.info-row .ico { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 14px; background: var(--navy-2); color: var(--aqua); border: 1px solid rgba(69, 188, 205, .45); }
.info-row .ico svg { width: 21px; height: 21px; }
.info-row h3 { font-family: var(--font); font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--aqua); margin-bottom: .2rem; }
.info-row p { color: #fff; font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.info-row p + p { margin-top: .1rem; }
.info-row a { color: #fff; }
.info-row a:hover { color: var(--gold); }
.contact-info .btn { margin-top: .4rem; }
.map-embed { width: 100%; height: 320px; margin-top: 1rem; border: 0; border-radius: var(--radius-lg); filter: saturate(.85); }

/* ---------- Legal ---------- */
.legal { max-width: 47rem; margin-inline: auto; font-size: 1.04rem; }
.legal-card { padding: clamp(1.5rem, 1rem + 3vw, 3.25rem); border-radius: var(--radius-xl); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.legal > * + * { margin-top: 1rem; }
.legal h2 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.7rem); margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font-size: 1.15rem; margin-top: 1.75rem; }
.legal ul, .legal ol { display: grid; gap: .5rem; }
.legal ul > li { position: relative; padding-left: 1.5rem; }
.legal ul > li::before { content: ""; position: absolute; left: .2rem; top: .65em; width: .42rem; height: .42rem; border-radius: 50%; background: var(--aqua); }
.legal ol { counter-reset: lg; }
.legal ol > li { position: relative; padding-left: 2rem; counter-increment: lg; }
.legal ol > li::before { content: counter(lg) "."; position: absolute; left: 0; font-weight: 650; color: var(--navy); }
.legal hr { border: 0; border-top: 1px solid var(--line); margin-top: 2.4rem; }
.legal a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

.page-hero .tracker { position: absolute; z-index: 2; right: 0; top: 50%; transform: translateY(-50%); width: min(430px, 36vw); }
@media (max-width: 1099px) { .page-hero .tracker { position: relative; transform: none; top: 0; width: 100%; max-width: 30rem; margin-top: 2.2rem; } }
@media (min-width: 1100px) { .page-hero--tracker .page-hero__text { max-width: calc(100% - 470px); } }

/* ---------- Live classes page ---------- */
.course-group + .course-group { margin-top: clamp(2.6rem, 2rem + 2.5vw, 4rem); }
.course-group__h { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.3rem; font-family: var(--font); font-size: .8rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); }
.course-group__h::after { content: ""; flex: 1; height: 1px; background: #ddd3c1; }
.course-note { margin-top: 2rem; font-size: .88rem; color: var(--muted); }
.how-steps { display: grid; gap: 1.6rem; }
.how-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.how-step__n { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 14px; background: var(--navy); color: var(--aqua); border: 1px solid rgba(69, 188, 205, .5); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.how-step h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.how-step p { font-size: .97rem; color: var(--n-body); }
.demo-grid { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .demo-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }

/* ---------- Bachelor's abroad page ---------- */
.ug-country { display: grid; gap: 1.5rem 3rem; grid-template-columns: minmax(0, 1fr); padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); border-radius: var(--radius-xl); background: var(--white); border: 1px solid var(--line); }
.ug-country + .ug-country { margin-top: 1.1rem; }
@media (min-width: 960px) { .ug-country { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); } }
.ug-country h3 { display: flex; align-items: center; gap: .7rem; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.ug-country h3 .flag { width: 32px; height: 22px; border-radius: 4px; object-fit: cover; }
.ug-country > div:first-child p { margin-top: .7rem; font-size: .97rem; }
.ug-country > div:first-child .btn { margin-top: 1.2rem; }
.ug-country dl { display: grid; gap: .1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ug-country dl { grid-template-columns: 1fr 1fr; gap: .9rem 1.6rem; } }
.ug-country dt { font-size: .72rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-top: .8rem; }
.ug-country dd { font-size: .95rem; line-height: 1.55; }
@media (min-width: 640px) { .ug-country dt { margin-top: 0; } }
.ug-country--feature { border: 2px solid var(--gold); box-shadow: 0 30px 60px -36px rgba(185, 138, 44, .55); }
.mini-courses { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.mini-course { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.1rem .8rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); text-align: center; transition: transform .35s var(--ease), border-color .3s, box-shadow .35s var(--ease); }
.mini-course:hover { transform: translateY(-3px); border-color: #b8d5e3; box-shadow: var(--shadow-sm); }
.mini-course .course__logo { height: 34px; justify-content: center; }
.mini-course .course__logo img { height: 30px; max-width: 100%; object-position: center; }
.mini-course b { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.mini-course small { font-size: .8rem; color: var(--muted); font-weight: 600; }

/* ---------- 404 ---------- */
.nf-code { font-family: var(--font-display); font-size: clamp(5rem, 3rem + 10vw, 11rem); font-weight: 800; letter-spacing: -.06em; line-height: .85; color: transparent; -webkit-text-stroke: 1.5px rgba(69, 188, 205, .55); }

.chapter-sec .prose > ol { display: block; }
.chapter-sec .prose > ol > li { margin-bottom: .85rem; break-inside: avoid; }
@media (min-width: 900px) { .chapter-sec .prose > ol:has(> li:nth-child(6)) { columns: 2; column-gap: 3.5rem; } }

main .info-row p > a:not([class]) { color: #fff; text-decoration: none; }
main .info-row p > a:not([class]):hover { color: var(--gold); }
.page-hero--tracker .page-hero__globe { opacity: .3; }
.page-hero .tracker { background: linear-gradient(180deg, rgba(14, 37, 71, .92), rgba(7, 21, 38, .92)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.page-hero h1.h1--eyebrow .visually-hidden + .h1-sub::before { content: "·"; margin: 0 .5em 0 .1em; color: var(--gold); }

/* ---------- Round 5 ---------- */
/* contact details stay readable on the navy panel */
html body main .info-row p > a[href]:not([class]) { color: #fff; text-decoration: none; font-weight: 600; background: linear-gradient(var(--aqua), var(--aqua)) no-repeat 0 100% / 0 1.5px; transition: background-size .3s var(--ease), color .2s; }
html body main .info-row p > a[href]:not([class]):hover { color: var(--aqua); background-size: 100% 1.5px; }
.map-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

/* ---------- Blog ---------- */
.post-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.post-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: 0 26px 44px -34px rgba(14, 37, 71, .5); color: inherit; }
.post-card__img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; transition: transform .8s var(--ease); }
@media (hover: hover) { .post-card:hover .post-card__img { transform: scale(1.05); } }
.post-card__body { display: flex; flex-direction: column; gap: .55rem; padding: 1.3rem 1.4rem 1.5rem; flex: 1; }
.post-card__tag { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink, #0f6f7d); }
.post-card__h { font-family: var(--font-display); font-size: 1.22rem; line-height: 1.25; color: var(--ink); }
.post-card__p { font-size: .94rem; line-height: 1.55; color: var(--body); }
.post-card__meta { margin-top: auto; padding-top: .6rem; font-size: .82rem; font-weight: 600; color: var(--muted); }
.post-grid--index .post-card:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .post-grid--index .post-card:first-child { flex-direction: row; }
  .post-grid--index .post-card:first-child .post-card__img { width: 52%; aspect-ratio: auto; min-height: 20rem; }
  .post-grid--index .post-card:first-child .post-card__body { padding: 2rem 2.2rem; justify-content: center; }
  .post-grid--index .post-card:first-child .post-card__h { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); }
}
.post__grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .post__grid { grid-template-columns: minmax(0, 46rem) minmax(0, 18rem); justify-content: space-between; } }
.post__body { font-size: 1.06rem; line-height: 1.75; }
.post__body p, .post__body li { color: #2b3b50; }
.post__body li + li { margin-top: .45rem; }
.post__body h2 { scroll-margin-top: 7rem; }
.post-formula { padding: 1.2rem 1.4rem; border-radius: var(--radius-lg); background: var(--night); color: #fff !important; font-family: var(--font-display); font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); text-align: center; box-shadow: inset 0 0 0 1.5px rgba(226, 182, 92, .55); }
.post-steps { display: grid; gap: .7rem; }
.post-steps > div { display: grid; gap: .2rem; padding: 1rem 1.2rem; border-radius: 14px; background: var(--cloud); border: 1px solid var(--line); border-left: 3px solid var(--aqua); }
.post-steps b { font-family: var(--font-display); font-weight: 650; color: var(--ink); }
.post-steps span { font-size: .98rem; color: #2b3b50; }
.post-faq { margin-top: 2.6rem; padding-top: .5rem; }
.post-faq__item { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.post-faq__item h3 { margin-top: 0 !important; font-size: 1.08rem; }
.post-faq__item p { margin-top: .4rem; }
.post-sources { margin-top: 2.6rem; padding: 1.3rem 1.5rem; border-radius: var(--radius-lg); background: var(--cloud); border: 1px solid var(--line); font-size: .93rem; }
.post-sources h2 { margin-top: 0 !important; font-size: 1.15rem; }
.post-sources p { margin-top: .4rem; color: var(--muted) !important; }
.post-sources ul { margin-top: .7rem; }
.post__aside { display: grid; gap: 1rem; align-content: start; }
@media (min-width: 1000px) { .post__aside { position: sticky; top: calc(var(--nav-h, 4.5rem) + 2rem); } }
.post-toc { padding: 1.2rem 1.3rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.post-toc__h { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.post-toc ol { margin-top: .6rem; display: grid; gap: .1rem; counter-reset: toc; }
.post-toc a { display: block; padding: .35rem 0; font-size: .92rem; font-weight: 600; color: var(--navy); }
.post-toc a:hover { color: var(--teal-ink, #0f6f7d); }
/* guide links on the tool pages */
.guides-strip__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.2rem; margin-bottom: 1.4rem; }
.guides-strip__head h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.post-links { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.post-link { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.3rem 1.4rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); color: inherit; box-shadow: 0 20px 40px -34px rgba(14, 37, 71, .5); }
.post-link b { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.3; color: var(--ink); }
.post-link__go { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; font-weight: 650; color: var(--gold-ink); }
.page-hero { overflow: clip; }

/* contact map: a drawn map card that is always there; the live Google map fades in over it where it can load */
.map-frame { position: relative; height: 320px; margin-top: 1rem; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; background: #0a1d38; box-shadow: 0 30px 50px -34px rgba(7, 21, 38, .7); border: 1px solid rgba(69, 188, 205, .25); }
.map-frame .map-embed { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; border-radius: 0; opacity: 0; pointer-events: none; transition: opacity .8s var(--ease); }
.map-frame.is-live .map-embed { opacity: 1; pointer-events: auto; }
.map-frame.is-live .map-card { visibility: hidden; transition: visibility 0s .8s; }
.map-card { position: absolute; inset: 0; z-index: 1; display: block; }
.map-card__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-card__pin { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 52px; height: 52px; margin: -46px 0 0 -26px; color: var(--night); background: var(--gold); border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); box-shadow: 0 10px 24px rgba(0, 0, 0, .45), 0 0 0 4px rgba(226, 182, 92, .25); }
.map-card__pin .ico { transform: rotate(45deg); width: 24px; height: 24px; }
.map-card__pulse { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; animation: map-pulse 2.4s var(--ease) infinite; }
@keyframes map-pulse { 0% { opacity: .7; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.7); } }
.map-card__label { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: grid; gap: .15rem; max-width: 24rem; padding: .8rem 1rem; border-radius: 14px; background: rgba(7, 21, 38, .82); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.map-card__label b { font-family: var(--font-display); font-weight: 650; color: #fff; }
.map-card__label span { font-size: .86rem; color: #c4d3e4; }
@media (prefers-reduced-motion: reduce) { .map-card__pulse { animation: none; } }
