/* Global Immigrate 環傲移民 — site styles */
:root {
  --ink: #1E2226;
  --brand: #01334A;      /* Global Immigrate logo blue — change here to update the whole site */
  --brand-dark: #00233A;
  --text: #4C5259;
  --muted: #60666E;
  --line: #DCDFE3;
  --line-soft: #ECEEF0;
  --soft: #F4F5F6;
  --dark: #3A3F45;
  --white: #FFFFFF;
  --serif: 'Noto Serif TC', 'Songti TC', serif;
  --sans: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 120px);
  --section: clamp(72px, 9vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--muted); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: var(--section); }
.h2 { font-family: var(--serif); font-size: clamp(28px, 3vw, 36px); font-weight: 600; line-height: 1.35; }
.lead { font-size: 16px; line-height: 1.95; color: var(--text); }
.muted { color: var(--muted); }
.text-link { display: inline-block; font-size: 15px; font-weight: 500; color: var(--brand); border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.text-link:hover { color: var(--brand-dark); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 30px; font-size: 15px; font-weight: 500; background: var(--brand); color: var(--white); border: 1px solid var(--brand); cursor: pointer; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light:hover { background: var(--soft); color: var(--ink); }
.btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: #E8EEF1; color: var(--brand-dark); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }

/* Image slots: set --img on the element; data-label shows until a real photo is added */
.media { position: relative; background-color: var(--line); background-image: var(--img, none); background-position: center; background-size: cover; background-repeat: no-repeat; }
.media[data-label]::after { content: attr(data-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; font-size: 12px; color: #6B7178; }
.media--dark { background-color: var(--dark); }
.media--dark[data-label]::after { color: #A3A8AE; align-items: flex-start; justify-content: flex-end; padding: 20px 24px; }

/* ---------- Header ---------- */
.topbar { border-bottom: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.topbar .wrap { height: 40px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar nav { display: flex; align-items: center; }
.topbar nav > * { padding: 0 14px; line-height: 1; font-size: 13px; }
.topbar nav > * + * { border-left: 1px solid var(--line); }
.topbar nav > :last-child { padding-right: 0; }
.topbar .linklike { font-size: 13px; line-height: 1; }
.topbar__lang b { font-weight: 500; color: var(--ink); }
.topbar a { color: var(--muted); }
.topbar a:hover { color: var(--ink); }

.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line-soft); }
.header > .wrap { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; line-height: 1.2; color: var(--brand); }
.logo img { width: 56px; height: auto; }
.logo__text { display: flex; flex-direction: column; gap: 4px; }
.logo__en { font-family: 'Cormorant Garamond', var(--serif); font-size: 16px; font-weight: 600; letter-spacing: 3px; }
.logo__zh { font-size: 17px; font-weight: 500; letter-spacing: 5px; }
.logo:hover { color: var(--brand); }

.nav { display: flex; gap: 36px; height: 100%; }
.nav__item { position: static; display: flex; }
.nav__trigger { display: flex; align-items: center; gap: 6px; height: 88px; padding: 0; background: none; border: 0; border-bottom: 2px solid transparent; font-size: 15px; font-weight: 500; color: var(--text); cursor: pointer; }
.nav__trigger svg { transition: transform .2s; }
.nav__link:hover { color: var(--ink); border-bottom-color: var(--brand); }
.drawer__link { display: block; padding: 18px 0; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line-soft); }
.nav__trigger[aria-expanded="true"], .nav__trigger.is-current { color: var(--ink); border-bottom-color: var(--brand); }
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; }
.header__cta { min-height: 46px; padding: 0 22px; }
.menu-toggle { display: none; }

/* Mega panel & dropdowns */
.panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--line-soft); box-shadow: 0 20px 40px rgba(30, 34, 38, .16); }
.panel[hidden] { display: none; }
.mega { display: flex; gap: 56px; padding-top: 44px; padding-bottom: 52px; }
.mega__tabs { width: 200px; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; }
.mega__label { font-size: 13px; color: var(--muted); padding: 0 0 12px 20px; }
.mega__tab { text-align: left; padding: 14px 18px; background: none; border: 0; border-left: 2px solid transparent; font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; }
.mega__tab[aria-selected="true"] { background: #E8EEF1; color: var(--brand); border-left-color: var(--brand); }
.mega__all { margin: 16px 0 0 20px; font-size: 14px; font-weight: 500; text-decoration: underline; }
.mega__body { flex: 1; min-width: 0; }
.mega__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.mega__cols[hidden] { display: none; }
.mega__col h3 { font-size: 13px; font-weight: 500; color: var(--muted); padding-bottom: 10px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.mega__col ul { list-style: none; margin: 0 -12px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mega__col a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; }
.mega__col a:hover { background: var(--soft); color: var(--ink); }
.mega__col a:hover b { color: var(--brand); text-decoration: underline; }
.mega__col a b { font-size: 15px; font-weight: 500; }
.mega__col a small { font-size: 13px; color: var(--muted); }
.mega__aside { width: 280px; flex-shrink: 0; background: var(--soft); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.mega__aside strong { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.mega__aside p { font-size: 14px; line-height: 1.8; color: var(--text); }
.dropdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 36px; padding-bottom: 40px; }
.dropdown a { display: flex; flex-direction: column; gap: 4px; padding: 12px; margin: -12px; }
.dropdown a:hover { background: var(--soft); color: var(--ink); }
.dropdown a b { font-size: 15px; font-weight: 500; }
.dropdown a small { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 60; background: var(--white); overflow-y: auto; padding: 0 20px 120px; }
.drawer[hidden] { display: none; }
.drawer__head { height: 64px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); margin-bottom: 8px; }
.drawer details { border-bottom: 1px solid var(--line-soft); }
.drawer summary { list-style: none; padding: 18px 0; font-size: 17px; font-weight: 500; display: flex; justify-content: space-between; cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: '+'; color: var(--muted); }
.drawer details[open] summary::after { content: '−'; }
.drawer h4 { margin: 8px 0 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.drawer ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.drawer .btn { width: 100%; margin-top: 24px; }

/* ---------- Home ---------- */
.hero { color: var(--white); min-height: 640px; display: flex; align-items: center; }
.hero .wrap { width: 100%; display: flex; flex-direction: column; gap: 22px; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-family: var(--serif); font-size: clamp(36px, 4.6vw, 56px); font-weight: 600; line-height: 1.3; max-width: 780px; }
.hero p { font-size: clamp(17px, 1.6vw, 20px); color: #E4E6E9; }
.hero .btn { align-self: flex-start; margin-top: 12px; }

.split { display: flex; gap: clamp(40px, 7vw, 96px); align-items: center; }
.split > .media { width: 560px; max-width: 46%; aspect-ratio: 560 / 460; flex-shrink: 0; }
.split__text { flex: 1; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

.awards { display: flex; gap: clamp(40px, 7vw, 96px); align-items: flex-start; }
.awards__intro { width: 560px; max-width: 46%; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; }
.awards__intro .media { aspect-ratio: 560 / 300; }
.awards__list { flex: 1; list-style: none; margin: 76px 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.awards__list li { border-top: 1px solid var(--line); padding: 22px 0; display: flex; justify-content: space-between; gap: 24px; }
.awards__list b { font-size: 17px; font-weight: 500; }
.awards__list span { font-size: 14px; color: var(--muted); text-align: right; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 64px; margin: 0; }
.stats div { padding: 32px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stats dt { order: 2; font-size: 14px; color: var(--muted); }
.stats dd { order: 1; margin: 0; font-family: var(--serif); font-size: clamp(34px, 3.4vw, 44px); font-weight: 600; line-height: 1.2; }

.programs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 56px; }
.program { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.program__type { font-size: 13px; color: var(--muted); }
.program h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.4; }
.program p { font-size: 15px; line-height: 1.85; color: var(--text); flex: 1; }
.program > a:last-child { font-size: 14px; font-weight: 500; color: var(--brand); }

.table-scroll { overflow-x: auto; }
.compare { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 15px; }
.compare th { text-align: left; font-size: 13px; font-weight: 700; color: var(--muted); padding: 0 16px 14px 0; }
.compare td { padding: 18px 16px 18px 0; border-top: 1px solid var(--line-soft); }
.compare tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.compare td:first-child { font-weight: 500; }
.compare td:nth-child(2), .compare td:last-child { color: var(--text); }
.note { font-size: 13px; color: var(--muted); }

.group { background: var(--soft); margin-top: var(--section); padding: clamp(72px, 8vw, 112px) 0; }
.group__head { display: flex; gap: clamp(40px, 7vw, 96px); align-items: flex-end; margin-bottom: 56px; }
.group__head > div { width: 560px; max-width: 46%; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.group__kicker { font-size: 13px; color: var(--brand); letter-spacing: 1px; }
.group__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px; }
.group__grid article { border-top: 1px solid #C8CCD1; padding-top: 24px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.group__grid h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.group__grid p { font-size: 15px; line-height: 1.85; color: var(--text); flex: 1; }

.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px; margin-top: 44px; }
.quotes figure { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.quotes blockquote { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.9; }
.quotes figcaption { font-size: 14px; color: var(--muted); }

.faq-plain { border-bottom: 1px solid var(--line); }
.faq-plain > div { border-top: 1px solid var(--line); padding: 26px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; }
.faq-plain h3 { font-size: 18px; font-weight: 500; line-height: 1.6; }
.faq-plain p { font-size: 15px; line-height: 1.9; color: var(--text); }

.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; }
.news a { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.news time, .news small { font-size: 13px; color: var(--muted); }
.news b { font-size: 19px; font-weight: 500; line-height: 1.6; }
.news span { font-size: 14px; color: var(--brand); }

.cta { margin-top: var(--section); background: var(--soft); display: flex; align-items: stretch; }
.cta__text { flex: 1; padding: clamp(64px, 7vw, 100px) var(--gutter); display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.cta__actions a:not(.btn) { font-size: 15px; font-weight: 500; }
.cta > .media { width: 42%; min-height: 480px; }

.directory { padding-top: 96px; padding-bottom: 64px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px; border-bottom: 1px solid var(--line); }
.directory h3 { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.directory ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text); }
.offices { padding-top: 48px; padding-bottom: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; border-bottom: 1px solid var(--line); }
.offices address { font-style: normal; font-size: 13px; line-height: 1.7; color: var(--text); }
.offices b { display: block; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.footer { padding-top: 32px; padding-bottom: 48px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer p { max-width: 640px; line-height: 1.7; }

/* Floating contact */
.float-contact { position: fixed; right: 24px; bottom: 24px; z-index: 30; display: flex; gap: 8px; }
.float-contact a { min-height: 46px; padding: 0 18px; display: inline-flex; align-items: center; background: var(--white); border: 1px solid #C8CCD1; font-size: 14px; font-weight: 500; box-shadow: 0 8px 24px rgba(30, 34, 38, .12); }
.float-contact a.is-primary { background: var(--brand); border-color: var(--brand); color: var(--white); }

/* ---------- Programme page ---------- */
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; height: 48px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.crumbs li + li::before { content: '/'; margin-right: 10px; }
.crumbs a { color: var(--muted); }
.prog-hero { min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; padding: 56px 0; color: var(--white); }
.prog-hero > .wrap { position: relative; z-index: 1; width: 100%; }
.prog-hero__text { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.prog-hero .kicker { font-size: 14px; color: #C8CCD1; }
.prog-hero h1 { font-family: var(--serif); font-size: clamp(36px, 4.6vw, 56px); font-weight: 600; line-height: 1.2; }
.prog-hero p { font-size: 19px; line-height: 1.7; color: #E4E6E9; }
.tabs { border-bottom: 1px solid var(--line-soft); display: flex; gap: 40px; overflow-x: auto; }
.tabs a { height: 64px; display: flex; align-items: center; white-space: nowrap; font-size: 15px; font-weight: 500; color: var(--text); border-bottom: 2px solid transparent; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }

.overview { display: flex; gap: 80px; }
.overview__text { flex: 1; display: flex; flex-direction: column; gap: 22px; }
.overview__actions { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 8px; }
.tiles { width: 560px; flex-shrink: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tiles div { border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.tiles b { font-size: 16px; }
.tiles span { font-size: 14px; line-height: 1.7; color: var(--text); }

.summary { border: 1px solid var(--line); border-top: 3px solid var(--brand); padding: 36px 40px; display: flex; flex-direction: column; gap: 16px; }
.summary h2 { font-size: 14px; font-weight: 700; color: var(--brand); }
.summary p { font-size: 17px; line-height: 1.9; }
.summary footer { display: flex; flex-wrap: wrap; gap: 24px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.summary footer a { text-decoration: underline; }

.band { background: var(--soft); padding: 88px 0; margin-top: var(--section); }
.rowsec { display: flex; gap: 80px; }
.rowsec > h2 { width: 360px; flex-shrink: 0; }
.rowsec > div { flex: 1; min-width: 0; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 48px; font-size: 16px; line-height: 1.7; }
.ticks li { display: flex; gap: 12px; }
.ticks svg { flex-shrink: 0; margin-top: 4px; }
.bullets { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; font-size: 16px; line-height: 1.8; color: var(--text); }
.bullets li { padding-left: 20px; position: relative; }
.bullets li::before { content: ''; position: absolute; left: 0; top: .8em; width: 6px; height: 6px; background: var(--ink); }

.brochure { border: 1px solid var(--line); padding: 40px; display: flex; gap: 40px; }
.brochure__cover { width: 170px; flex-shrink: 0; background: var(--brand); color: var(--white); padding: 22px 18px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 8px 8px 0 var(--line); min-height: 230px; }
.brochure__cover small { font-size: 10px; color: #C8CCD1; letter-spacing: 1px; }
.brochure__cover strong { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.3; }
.brochure__body { flex: 1; display: flex; flex-direction: column; gap: 18px; }
.brochure__body h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.brochure__done { background: var(--soft); padding: 22px 24px; display: flex; gap: 14px; }
.brochure__done[hidden] { display: none; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 500; }
.field input, .field select { height: 48px; border: 1px solid #C8CCD1; background: var(--white); padding: 0 12px; font-size: 15px; font-family: inherit; color: var(--ink); border-radius: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.span-2 { grid-column: span 2; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.7; color: var(--text); }
.consent input { width: 18px; height: 18px; margin: 3px 0 0; flex-shrink: 0; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }

.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { border-top: 2px solid var(--brand); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--brand); }
.steps b { font-size: 18px; }
.steps span { font-size: 14px; line-height: 1.8; color: var(--text); }

.review { background: var(--ink); color: var(--white); margin-top: var(--section); padding: 88px 0; }
.review__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #454A50; align-self: flex-start; }
.review__grid p { background: var(--ink); padding: 28px; font-size: 16px; }
.review .intro { width: 440px; flex: none; display: flex; flex-direction: column; gap: 18px; }
.review .intro p { color: #C8CCD1; font-size: 15px; line-height: 1.9; }

.faq { border-top: 1px solid #C8CCD1; }
.faq details { border-bottom: 1px solid #C8CCD1; }
.faq summary { list-style: none; padding: 24px 0; display: flex; justify-content: space-between; gap: 24px; font-size: 17px; font-weight: 500; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 48px 26px 0; font-size: 15px; line-height: 1.9; color: var(--text); }
.sources { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.sources a { text-decoration: underline; }
.group-note { background: var(--soft); padding: 48px 56px; display: flex; gap: 64px; align-items: center; }
.group-note > div { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.group-note strong { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.group-note p { font-size: 15px; line-height: 1.85; color: var(--text); }
.contact { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 96px 0; margin-top: var(--section); }
.contact .wrap { display: flex; gap: 80px; }
.contact__intro { width: 480px; flex-shrink: 0; display: flex; flex-direction: column; gap: 22px; }
.contact__intro .media { aspect-ratio: 480 / 320; }
.contact form { flex: 1; align-content: start; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav, .header__cta, .topbar__group { display: none; }
  .menu-toggle { display: inline-flex; }
  .header > .wrap { height: 64px; }
  .logo img { width: 44px; }
  .logo__en { font-size: 13px; letter-spacing: 2px; }
  .logo__zh { font-size: 15px; letter-spacing: 4px; }
  .mega__cols, .dropdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { width: 440px; }
}
@media (max-width: 900px) {
  .split, .awards, .group__head, .overview, .rowsec, .contact .wrap, .review .rowsec { flex-direction: column; align-items: stretch; gap: 32px; }
  .split--reverse { flex-direction: column-reverse; }
  .split > .media, .awards__intro, .group__head > div, .tiles, .rowsec > h2, .review .intro, .contact__intro { width: 100%; max-width: none; }
  .awards__list { margin-top: 0; }
  .stats, .programs, .quotes, .news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .offices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { flex-direction: column; }
  .cta > .media { width: 100%; min-height: 280px; }
  .faq-plain > div { grid-template-columns: 1fr; gap: 12px; }
  .prog-hero { padding: 40px 0; min-height: 420px; }
  .brochure { flex-direction: column; }
  .group-note { flex-direction: column; align-items: flex-start; padding: 36px 28px; gap: 24px; }
}
@media (max-width: 600px) {
  .topbar { display: none; }
  .stats, .programs, .quotes, .news, .group__grid, .ticks, .steps, .grid-3, .grid-2, .tiles, .review__grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offices { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .awards__list li { flex-direction: column; gap: 4px; }
  .awards__list span { text-align: left; }
  .brochure { padding: 28px 20px; }
  .float-contact { left: 0; right: 0; bottom: 0; padding: 10px 16px 18px; background: var(--white); border-top: 1px solid var(--line); gap: 8px; }
  .float-contact a { flex: 1; justify-content: center; box-shadow: none; padding: 0 8px; }
  body { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Hero photo darkening (keeps white text readable on any photo) */
.hero, .prog-hero { position: relative; isolation: isolate; }
.hero::before, .prog-hero::before { content: ''; position: absolute; inset: 0; background: rgba(30, 34, 38, .45); z-index: 0; }
.hero[data-label]::after, .prog-hero[data-label]::after { z-index: 0; }
.cta form { margin-top: 8px; }
.cta__text > .brochure__done { max-width: 640px; }


/* Buttons that look like links (top bar) */
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.linklike:hover { color: var(--ink); }
.float-contact button { min-height: 46px; padding: 0 18px; display: inline-flex; align-items: center; border: 1px solid var(--brand); background: var(--brand); color: var(--white); font-size: 14px; font-weight: 500; box-shadow: 0 8px 24px rgba(30, 34, 38, .12); cursor: pointer; }
@media (max-width: 600px) { .float-contact button { flex: 1; justify-content: center; box-shadow: none; padding: 0 8px; } }

/* Pop-up forms */
.modal { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; border: 0; padding: 36px 40px 40px; background: var(--white); color: var(--ink); box-shadow: 0 30px 80px rgba(30, 34, 38, .28); }
.modal::backdrop { background: rgba(30, 34, 38, .5); }
.modal[open] { display: flex; flex-direction: column; gap: 18px; }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.modal__head h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.modal__head .icon-btn { margin-right: -10px; }
@media (max-width: 600px) { .modal { padding: 24px 20px 28px; } }

/* Separate pages */
.page-head { padding-top: 48px; display: flex; flex-direction: column; gap: 18px; }
.page-head > * { max-width: 860px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); font-weight: 600; line-height: 1.25; }
.contact-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 80px; align-items: start; }
.contact-page .h2 { margin-bottom: 28px; }
.channels { margin: 0; border-bottom: 1px solid var(--line); }
.channels div { border-top: 1px solid var(--line); padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; }
.channels dt { font-size: 14px; color: var(--muted); }
.channels dd { margin: 0; font-size: 16px; font-weight: 500; text-align: right; }
.channels a { color: var(--brand); }
.office-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.office-card { display: flex; flex-direction: column; gap: 18px; }
.office-card .media { aspect-ratio: 4 / 3; }
.office-card h3 { font-size: 18px; margin-bottom: 6px; }
.office-card address { font-style: normal; font-size: 15px; line-height: 1.8; color: var(--text); }
@media (max-width: 900px) { .contact-page, .office-grid { grid-template-columns: 1fr; gap: 40px; } }

/* EB-5 page additions */
.field textarea { border: 1px solid #C8CCD1; padding: 12px; font-size: 15px; font-family: inherit; color: var(--ink); border-radius: 0; resize: vertical; }
.trust { font-size: 13px; color: var(--muted); }
.rows { margin: 0; border-bottom: 1px solid var(--line); }
.rows > div { border-top: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; }
.rows dt { font-size: 16px; font-weight: 700; }
.rows dd { margin: 0; font-size: 15px; line-height: 1.85; color: var(--text); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.two-col > div { border-top: 2px solid var(--brand); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.two-col h3 { font-size: 18px; }
.two-col p { font-size: 15px; line-height: 1.85; color: var(--text); }
.steps__time { font-size: 13px; color: var(--brand); font-weight: 500; }
.ages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.ages > div { background: var(--white); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.ages b { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--brand); }
.ages span { font-size: 14px; line-height: 1.75; color: var(--text); }
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.case { border-top: 2px solid var(--ink); padding-top: 22px; display: flex; flex-direction: column; gap: 18px; }
.case__meta { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.case__meta dt { font-size: 12px; color: var(--muted); }
.case__meta dd { margin: 0; font-size: 14px; font-weight: 500; }
.case blockquote { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.85; }
.case__outcome { font-size: 14px; line-height: 1.75; color: var(--text); background: var(--soft); padding: 14px 16px; }
.case__who { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .rows > div { grid-template-columns: 1fr; gap: 6px; }
  .two-col, .cases { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .ages { grid-template-columns: 1fr; } }
.overview__actions { align-items: center; }

/* Programme pages: status notice, benefits image, gallery */
.notice { margin-top: 32px; padding: 18px 22px; border-left: 3px solid var(--brand); background: #E8EEF1; font-size: 15px; line-height: 1.8; }
.band .split > .media { aspect-ratio: 560 / 420; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery__item { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery__item .media { aspect-ratio: 4 / 3; }
.gallery__item figcaption { font-size: 14px; color: var(--muted); }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }
.btn--line { background: var(--white); color: var(--ink); border-color: #C8CCD1; gap: 8px; }
.btn--line:hover { background: var(--soft); border-color: #C8CCD1; color: var(--ink); }

/* WeChat */
.modal--small { width: min(440px, calc(100vw - 32px)); }
.wechat-qr { width: 220px; height: 220px; align-self: center; background-color: var(--soft); }
.wechat-id { display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; }
.wechat-id span { font-size: 13px; color: var(--muted); }
.wechat-id b { font-size: 17px; }
.wechat-id .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.float-contact button.float-wechat { background: var(--white); color: var(--ink); border-color: #C8CCD1; }
.cta-link { font-size: 15px; font-weight: 500; color: var(--ink); }
.channel-btn { font-size: 16px; font-weight: 500; color: var(--brand); text-align: right; }
@media (max-width: 600px) { .float-contact a, .float-contact button { font-size: 13px; } }
.case { position: relative; }
.case__tag { align-self: flex-start; font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 2px 8px; }
.facts th { width: 38%; font-size: 14px; font-weight: 500; color: var(--muted); text-align: left; padding: 16px 16px 16px 0; border-top: 1px solid var(--line-soft); vertical-align: top; }
.facts td { font-weight: 500; }
.guarantees h3 { color: var(--brand); }
.guarantees { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .guarantees { grid-template-columns: 1fr; } }

/* Forms */
.form-error { color: #A12C2C; font-size: 14px; margin: 4px 0 0; }
.form-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* News index */
.tabs a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.news__summary { font-size: 14px; line-height: 1.8; color: var(--text); }

/* Article pages */
.article { max-width: calc(820px + var(--gutter) * 2); }
.article__head { padding-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.article__head h1 { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 42px); font-weight: 600; line-height: 1.35; }
.article__meta { font-size: 14px; color: var(--muted); }
.article .summary { margin-top: 36px; }
.article__cover { margin: 36px 0 0; }
.article__cover img { width: 100%; height: auto; }
.article__toc { margin-top: 36px; padding: 22px 26px; background: var(--soft); font-size: 15px; }
.article__toc ol { margin: 10px 0 0; padding-left: 22px; line-height: 2; }
.article__toc a { color: var(--brand); }
.article__body { margin-top: 40px; font-size: 17px; line-height: 2; }
.article__body h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.4; margin: 48px 0 16px; scroll-margin-top: 110px; }
.article__body h3 { font-size: 20px; margin: 32px 0 12px; }
.article__body p, .article__body ul, .article__body ol { margin: 0 0 20px; }
.article__body ul, .article__body ol { padding-left: 24px; }
.article__body a { color: var(--brand); text-decoration: underline; }
.article__body blockquote { margin: 24px 0; padding: 8px 0 8px 22px; border-left: 3px solid var(--brand); color: var(--text); }
.article__body img { margin: 24px 0; }
.article__faq, .article__sources { margin-top: 56px; }
.article__faq .h2 { margin-bottom: 20px; }

/* Media coverage */
.media-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.media-strip a { background: var(--white); min-height: 96px; padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.media-strip b { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.media-strip img { max-height: 40px; max-width: 130px; object-fit: contain; filter: grayscale(1); opacity: .85; }
.media-strip a:hover img { filter: none; opacity: 1; }
.media-strip span { font-size: 12px; color: var(--muted); }
.press-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.press { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.press__logo { max-width: 140px; max-height: 48px; object-fit: contain; }
.press__outlet { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.press small { font-size: 13px; color: var(--muted); }
.press h3 { font-size: 19px; line-height: 1.6; margin: 8px 0; }
.press h3 a:hover { color: var(--brand); text-decoration: underline; }
.press p { font-size: 15px; line-height: 1.85; color: var(--text); }
.press blockquote { margin: 12px 0 0; padding-left: 16px; border-left: 3px solid var(--brand); font-family: var(--serif); }
@media (max-width: 600px) { .press { grid-template-columns: 1fr; gap: 12px; } }

/* 獎項及媒體報道 timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 24px; flex: 1; border-left: 2px solid var(--line); }
.tl__item { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 18px 0; }
.tl__item::before { content: ''; position: absolute; left: -31px; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--brand); }
.tl__item--award::before { background: var(--brand); }
.tl__year { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--brand); line-height: 1.4; }
.tl__item small { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.tl__item--award small { color: var(--brand); font-weight: 500; }
.tl__item b { font-size: 16px; font-weight: 500; line-height: 1.6; }
.tl__item a:hover { color: var(--brand); text-decoration: underline; }
.awards__intro .lead { margin-top: -8px; }
.awards__intro .text-link { align-self: flex-start; }
.stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.media--loaded { background-color: transparent; }

/* Floating contact with app icons */
.float-contact { align-items: center; }
.float-contact .fc { width: 52px; height: 52px; min-height: 0; padding: 0; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 8px 22px rgba(30, 34, 38, .18); cursor: pointer; transition: transform .15s; }
.float-contact .fc:hover { transform: translateY(-2px); color: #fff; }
.float-contact .fc svg { width: 28px; height: 28px; }
.float-contact .fc span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fc--wa { background: #25D366 !important; }
.fc--line { background: #06C755 !important; }
.fc--wechat { background: #07C160 !important; }
.float-contact button.is-primary { height: 52px; min-height: 52px; border-radius: 26px; padding: 0 22px; }
@media (max-width: 600px) {
  .float-contact { align-items: stretch; }
  .float-contact .fc { width: auto; height: auto; min-height: 56px; border-radius: 8px; flex: 1; flex-direction: column; gap: 3px; box-shadow: none; }
  .float-contact .fc svg { width: 22px; height: 22px; }
  .float-contact .fc span { position: static; width: auto; height: auto; clip: auto; font-size: 11px; }
  .float-contact button.is-primary { flex: 1.4; height: auto; min-height: 56px; border-radius: 8px; }
}
.float-contact .fc--wechat { color: #fff !important; border: 0 !important; }

/* WeChat QR page */
.wechat-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 20px; background: var(--soft); }
.wechat-card { background: var(--white); max-width: 440px; width: 100%; padding: 40px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; border: 1px solid var(--line); }
.wechat-card h1 { font-family: var(--serif); font-size: 26px; }
.wechat-card p { font-size: 15px; color: var(--text); line-height: 1.8; }
.wechat-card__qr { width: 100%; max-width: 340px; height: auto; }
.wechat-card__tip { font-size: 13px !important; color: var(--muted) !important; }
a.linklike { text-decoration: none; }
