/* ============================================================
   High School Exchange Program page (high-school-exchange-program.html)
   Scoped to .hx-page so the shared header/footer stay unchanged.
   Desktop >= 1024px / Mobile <= 1023px
   ============================================================ */

:root {
    --hx-navy-900: #0E1830;
    --hx-navy-700: #1A2744;
    --hx-navy-500: #243259;
    --hx-navy-400: #33416A;
    --hx-gold: #C9962A;
    --hx-gold-light: #E8B84B;
    --hx-gold-text: #8C6A1C;
    --hx-cream: #F8F6F1;
    --hx-white: #FFFFFF;
    --hx-line: #E2DDD6;
    --hx-muted: #555570;
    --hx-on-dark: #D9DCE3;
    --hx-on-dark-muted: #B8BECC;
    --hx-input-border: #C9CCD6;
    /* A-1: same fonts as the existing pages (css/style.css --font-primary = Inter) */
    --hx-serif: var(--font-primary, 'Inter', 'Helvetica Neue', 'Manrope', -apple-system, sans-serif); /* headings */
    --hx-sans: var(--font-primary, 'Inter', 'Helvetica Neue', 'Manrope', -apple-system, sans-serif);  /* body */
    --hx-header-h: 72px;   /* existing fixed header */
    --hx-subnav-h: 56px;
}

.hx-page {
    font-family: var(--hx-sans);
    font-weight: 400;
    color: var(--hx-navy-700);
    overflow-x: clip;
}

.hx-page h1, .hx-page h2, .hx-page h3, .hx-page h4 { margin: 0; }
.hx-page p, .hx-page ul, .hx-page ol { margin: 0; }
.hx-page ul, .hx-page ol { list-style: none; padding: 0; }
.hx-page a { color: inherit; }

.hx-page [id] { scroll-margin-top: calc(var(--hx-subnav-h) + var(--hx-header-h) + 16px); }

.hx-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.hx-section { padding: 96px 0; }
.hx-bg-cream { background: var(--hx-cream); }
.hx-bg-white { background: var(--hx-white); }
.hx-bg-dark  { background: var(--hx-navy-900); }

/* Icons (Lucide) */
.hx-page svg.lucide { display: block; flex-shrink: 0; }
.hx-i-16 { width: 16px; height: 16px; }
.hx-i-18 { width: 18px; height: 18px; }
.hx-i-20 { width: 20px; height: 20px; }
.hx-i-24 { width: 24px; height: 24px; }
.hx-i-28 { width: 28px; height: 28px; }
.hx-i-32 { width: 32px; height: 32px; }
.hx-c-gold { color: var(--hx-gold); }
.hx-c-muted { color: var(--hx-muted); }
.hx-c-navy { color: var(--hx-navy-900); }
.hx-c-ondark-muted { color: var(--hx-on-dark-muted); }

/* ---------- C1 Section header ---------- */
.hx-head { margin-bottom: 48px; }
.hx-head--tight { margin-bottom: 24px; }
.hx-eyebrow {
    display: block;
    font-size: 13px; line-height: 20px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--hx-gold-text);
}
.hx-h2 {
    margin-top: 12px !important;
    font-family: var(--hx-serif);
    font-size: 40px; line-height: 48px; font-weight: 700;
    color: var(--hx-navy-900);
}
.hx-lead {
    margin-top: 16px !important;
    max-width: 720px;
    font-size: 18px; line-height: 30px; font-weight: 400;
    color: var(--hx-navy-700);
}
.hx-bg-dark .hx-eyebrow { color: var(--hx-gold); }
.hx-bg-dark .hx-h2 { color: var(--hx-white); }
.hx-bg-dark .hx-lead { color: var(--hx-on-dark); }

/* ---------- C2 Buttons ---------- */
.hx-btn {
    display: inline-flex; align-items: center; justify-content: center;
    box-sizing: border-box;
    height: 52px; padding: 0 28px;
    border-radius: 4px;
    font-family: var(--hx-sans);
    font-size: 16px; font-weight: 700; line-height: 1;
    text-decoration: none; white-space: nowrap;
    cursor: pointer;
}
.hx-btn--primary {
    background: var(--hx-gold); color: var(--hx-navy-900); border: none;
}
.hx-btn--primary:hover { background: #B5861F; }
.hx-btn--secondary {
    background: transparent; color: var(--hx-white);
    border: 1.5px solid var(--hx-white);
}
.hx-btn--secondary:hover { background: rgba(255, 255, 255, 0.08); }
.hx-page a.hx-btn--primary { color: var(--hx-navy-900); }
.hx-page a.hx-btn--secondary { color: var(--hx-white); }

/* ---------- C3 / C4 Cards ---------- */
.hx-card-light {
    background: var(--hx-white);
    border: 1px solid var(--hx-line);
    border-radius: 8px;
    padding: 32px;
    box-sizing: border-box;
}
.hx-card-dark {
    background: var(--hx-navy-700);
    border-radius: 8px;
    padding: 32px;
    box-sizing: border-box;
}

/* ---------- C5 Note box ---------- */
.hx-note-box {
    background: var(--hx-white);
    border: 1px solid var(--hx-line);
    border-left: 4px solid var(--hx-gold);
    border-radius: 4px;
    padding: 20px 24px;
    font-size: 15px; line-height: 26px; font-weight: 400;
    color: var(--hx-navy-700);
}

/* ---------- C7 Badge ---------- */
.hx-badge {
    display: inline-flex; align-items: center;
    box-sizing: border-box;
    height: 26px; padding: 0 10px;
    border-radius: 4px;
    font-size: 11px; font-weight: 700; line-height: 1;
    letter-spacing: 0.1em; text-transform: uppercase;
}
.hx-badge--solid { background: var(--hx-navy-900); color: var(--hx-white); }
.hx-badge--outline { background: transparent; border: 1px solid var(--hx-navy-900); color: var(--hx-navy-900); }

/* ---------- C8 Accordion ---------- */
.hx-accordion { border-bottom: 1px solid var(--hx-line); }
.hx-acc-item { border-top: 1px solid var(--hx-line); }
.hx-acc-trigger {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    width: 100%; min-height: 64px; box-sizing: border-box;
    padding: 18px 0;
    background: none; border: none; text-align: left; cursor: pointer;
    font-family: var(--hx-sans);
    color: var(--hx-navy-900);
}
.hx-acc-trigger .hx-acc-icon { width: 20px; height: 20px; color: var(--hx-navy-900); }
.hx-page .hx-acc-trigger svg.hx-acc-minus { display: none; }
.hx-page .hx-acc-trigger[aria-expanded="true"] svg.hx-acc-plus { display: none; }
.hx-page .hx-acc-trigger[aria-expanded="true"] svg.hx-acc-minus { display: block; }
.hx-acc-panel { padding: 0 48px 24px 0; }
.hx-acc-panel[hidden] { display: none; }

/* ---------- Photos (replace former C9 placeholders; same frame sizes) ---------- */
.hx-page img.hx-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    background: var(--hx-navy-500);
}
.hx-page img.hx-img--4x3 { aspect-ratio: 4 / 3; }
.hx-page img.hx-img--16x9 { aspect-ratio: 16 / 9; border-radius: 8px 8px 0 0; }

/* ---------- F1 Footnotes (text only) ---------- */
.hx-footnotes { display: flex; flex-direction: column; gap: 6px; }
.hx-footnotes p {
    font-size: 14px; line-height: 24px; font-weight: 400;
    color: var(--hx-muted);
}

/* Shared label/value rows (S4, S8) */
.hx-rule { height: 1px; background: var(--hx-line); margin: 20px 0; border: 0; }
.hx-facts { display: flex; flex-direction: column; gap: 16px; }
.hx-fact-label {
    display: block;
    font-size: 12px; line-height: 16px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--hx-gold-text);
}
.hx-fact-value {
    display: block; margin-top: 4px;
    font-size: 16px; line-height: 24px; font-weight: 400;
    color: var(--hx-navy-700);
}
.hx-small-note {
    font-size: 14px; line-height: 24px; font-weight: 400;
    color: var(--hx-muted);
}

/* ============================================================
   Sticky in-page nav
   ============================================================ */
.hx-subnav {
    position: sticky;
    top: var(--hx-header-h);
    z-index: 900;
    height: var(--hx-subnav-h);
    background: var(--hx-white);
    border-bottom: 1px solid var(--hx-line);
    box-sizing: border-box;
}
.hx-subnav .hx-container { height: 100%; }
.hx-subnav-list {
    display: flex; gap: 32px;
    height: 100%;
    list-style: none; margin: 0; padding: 0;
}
.hx-subnav-link {
    display: flex; align-items: center;
    height: 100%; box-sizing: border-box;
    border-bottom: 3px solid transparent;
    padding-top: 3px;
    font-size: 15px; font-weight: 600; line-height: 1;
    color: var(--hx-navy-700);
    text-decoration: none; white-space: nowrap;
}
.hx-page .hx-subnav-link { color: var(--hx-navy-700); }
.hx-page .hx-subnav-link.is-active {
    color: var(--hx-navy-900);
    border-bottom-color: var(--hx-gold);
}

/* ============================================================
   S1 Hero
   ============================================================ */
.hx-hero {
    background: var(--hx-navy-900);
    padding: 120px 0 96px;
    margin-top: var(--hx-header-h);
}
.hx-hero-grid {
    display: grid;
    grid-template-columns: 58fr 42fr;
    gap: 48px;
    align-items: center;
}
.hx-hero .hx-eyebrow { color: var(--hx-gold); }
.hx-h1 {
    margin-top: 16px !important;
    max-width: 640px;
    font-family: var(--hx-serif);
    font-size: 52px; line-height: 62px; font-weight: 700;
    color: var(--hx-white);
}
.hx-hero-lead {
    margin-top: 24px !important;
    font-size: 20px; line-height: 32px; font-weight: 400;
    color: var(--hx-on-dark);
}
.hx-hero-actions { display: flex; gap: 16px; margin-top: 36px; }


/* ============================================================
   S2 Experience the Culture Behind Japan
   ============================================================ */
.hx-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}
.hx-value-num {
    display: block;
    margin-top: 20px;
    font-size: 13px; line-height: 20px; font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--hx-gold-text);
}
.hx-value-title {
    margin-top: 6px !important;
    font-family: var(--hx-serif);
    font-size: 24px; line-height: 30px; font-weight: 700;
    color: var(--hx-navy-900);
}
.hx-value-sub {
    margin-top: 4px !important;
    font-size: 16px; line-height: 24px; font-weight: 600;
    color: var(--hx-navy-900);
}
.hx-value-text {
    margin-top: 10px !important;
    font-size: 16px; line-height: 27px; font-weight: 400;
    color: var(--hx-navy-700);
}

/* ============================================================
   S3 Why Eduvel
   ============================================================ */
.hx-why { position: relative; overflow: hidden; isolation: isolate; }
.hx-page img.hx-why-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    z-index: -2;
}
.hx-why::before {
    content: "";
    position: absolute; inset: 0;
    background: rgba(14, 24, 48, 0.82);
    z-index: -1;
}
.hx-why-inner { position: relative; }
.hx-why .hx-card-dark {
    background: rgba(26, 39, 68, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.hx-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hx-feature-title {
    margin-top: 20px !important;
    font-family: var(--hx-serif);
    font-size: 22px; line-height: 30px; font-weight: 700;
    color: var(--hx-white);
}
.hx-feature-text {
    margin-top: 12px !important;
    font-size: 16px; line-height: 27px;
    color: var(--hx-on-dark);
}

/* ============================================================
   S4 Programs
   ============================================================ */
/* 7 shared rows: name / rule / DURATION / START / VISA / SCHOOL LIFE / Fees on request */
.hx-programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 20px;
    row-gap: 0;
}
.hx-program-card {
    padding: 28px;
    display: grid;
    grid-row: span 7;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
}
.hx-program-card > * { min-width: 0; }
.hx-program-card .hx-facts { display: contents; }
.hx-program-card .hx-facts > div + div { margin-top: 16px; }
.hx-program-name {
    font-family: var(--hx-serif);
    font-size: 26px; line-height: 32px; font-weight: 700;
    color: var(--hx-navy-900);
}
.hx-program-foot {
    margin-top: 20px !important;
    padding-top: 16px;
    border-top: 1px solid var(--hx-line);
    font-size: 14px; line-height: 20px; font-weight: 600;
    color: var(--hx-muted);
}
/* JS fallback when subgrid is unsupported */
.hx-no-subgrid .hx-program-card { display: flex; flex-direction: column; }
.hx-programs-notes { margin-top: 32px; }

/* ============================================================
   S5 Calendar chart
   ============================================================ */
.hx-section--calendar { padding-top: 0; padding-bottom: 96px; }
.hx-scroll-hint { display: none; font-size: 12px; line-height: 16px; color: var(--hx-muted); margin-bottom: 8px; }
.hx-chart-frame { padding: 32px; }
/* rows: 1 next-year label / 2 months / 3 (unused) / 4 gap 8px / 5 school year /
   6 gap 24 / 7,9,11 April / 12 gap 24 / 13,15,17 September / 18 gap 24 / 19 January */
.hx-chart {
    display: grid;
    grid-template-columns: 160px repeat(32, minmax(0, 1fr));
    grid-template-rows: 14px 32px 0 8px 36px 40px 28px 10px 28px 10px 28px 24px 28px 10px 28px 10px 28px 24px 28px;
}
/* "Spring" callout under column 24 */
.hx-cal-callout {
    grid-row: 6;
    display: flex; flex-direction: column; align-items: center;
    font-size: 11px; line-height: 14px; font-weight: 600;
    color: var(--hx-muted);
    white-space: nowrap;
    overflow: visible;
}
.hx-cal-callout::before {
    content: "";
    display: block;
    width: 1px; height: 10px;
    margin-bottom: 2px;
    background: var(--hx-muted);
}
.hx-chart-next {
    grid-row: 1;
    align-self: end;
    margin-bottom: -5px; /* sits 4px above the month text */
    text-align: center;
    font-size: 10px; line-height: 12px; font-weight: 700;
    color: var(--hx-gold-text);
    white-space: nowrap;
}
.hx-chart-month {
    grid-row: 2;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; line-height: 1;
    color: var(--hx-muted);
}
.hx-chart-label {
    grid-column: 1;
    display: flex; align-items: center;
    font-size: 12px; font-weight: 700; line-height: 1;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--hx-gold-text);
    white-space: nowrap;
}
.hx-cal {
    grid-row: 5;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600; line-height: 1;
    white-space: nowrap; overflow: hidden;
}
.hx-cal--term { background: var(--hx-navy-700); color: var(--hx-white); }
.hx-cal--break { background: var(--hx-line); color: var(--hx-muted); }
.hx-bar {
    display: flex; align-items: center;
    height: 28px; box-sizing: border-box;
    padding-left: 12px;
    border-radius: 14px;
    background: var(--hx-gold);
    font-size: 12px; font-weight: 600; line-height: 1;
    color: var(--hx-navy-900);
    white-space: nowrap; overflow: hidden;
}
.hx-bar--sep { background: var(--hx-gold-light); }
.hx-bar--jan { background: #F1DDB0; border: 1px solid var(--hx-gold); }
.hx-chart-notes { margin-top: 20px; display: flex; flex-direction: column; gap: 4px; }
.hx-chart-reco {
    margin-top: 16px !important;
    font-size: 15px; line-height: 26px; font-weight: 600;
    color: var(--hx-navy-900);
}

/* ============================================================
   S6 Timeline
   ============================================================ */
.hx-day-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
.hx-day-main { min-width: 0; }
.hx-day-photos {
    position: sticky;
    top: calc(var(--hx-subnav-h) + var(--hx-header-h) + 24px);
    display: flex; flex-direction: column; gap: 16px;
}
.hx-day-photo { margin: 0; }
.hx-page .hx-day-photo img {
    display: block;
    width: 100%; height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    background: var(--hx-navy-500);
}
.hx-day-photo figcaption {
    margin-top: 8px;
    font-size: 13px; line-height: 20px; font-weight: 500;
    color: var(--hx-muted);
}
.hx-timeline { display: flex; flex-direction: column; gap: 28px; }
.hx-tl-row { display: grid; grid-template-columns: 96px 32px 1fr; }
.hx-tl-time {
    font-family: var(--hx-serif);
    font-size: 20px; line-height: 28px; font-weight: 700;
    color: var(--hx-gold-text);
    text-align: right;
}
.hx-tl-axis { position: relative; }
.hx-tl-dot {
    position: absolute; top: 8px; left: 50%;
    width: 12px; height: 12px; box-sizing: border-box;
    margin-left: -6px;
    border: 2px solid var(--hx-gold);
    border-radius: 50%;
    background: var(--hx-white);
    z-index: 1;
}
.hx-tl-axis::after {
    content: "";
    position: absolute; left: 50%; margin-left: -1px;
    top: 20px; bottom: -36px;
    width: 2px; background: var(--hx-line);
}
.hx-tl-row:last-child .hx-tl-axis::after { display: none; }
.hx-tl-title { font-size: 18px; line-height: 26px; font-weight: 700; color: var(--hx-navy-900); }
.hx-tl-text { margin-top: 4px !important; font-size: 16px; line-height: 26px; color: var(--hx-navy-700); }
.hx-timeline-note { margin-top: 24px; }

/* ============================================================
   S7 Clubs & events
   ============================================================ */
.hx-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* Carousel */
.hx-carousel { position: relative; }
.hx-page ul.hx-carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    outline: none;
}
.hx-carousel-track::-webkit-scrollbar { display: none; }
.hx-carousel-track:focus-visible { box-shadow: 0 0 0 2px var(--hx-gold); border-radius: 8px; }
.hx-slide {
    flex: 0 0 calc((100% - 48px) / 3);
    scroll-snap-align: start;
    display: flex; flex-direction: column;
    background: var(--hx-navy-700);
    border: 1px solid var(--hx-navy-400);
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
}
.hx-page .hx-slide img {
    display: block;
    width: 100%; height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--hx-navy-500);
}
.hx-slide-body { padding: 24px; flex: 1; }
.hx-slide-title {
    font-family: var(--hx-serif);
    font-size: 22px; line-height: 28px; font-weight: 700;
    color: var(--hx-white);
}
.hx-slide-text {
    margin-top: 8px !important;
    font-size: 15px; line-height: 24px; font-weight: 400;
    color: var(--hx-on-dark);
}
.hx-carousel-btn {
    position: absolute;
    top: 0; /* set by JS to the centre of the slide image */
    z-index: 2;
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px;
    padding: 0;
    border: none; border-radius: 50%;
    background: var(--hx-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    color: var(--hx-navy-900);
    cursor: pointer;
}
.hx-carousel-btn svg.lucide { width: 24px; height: 24px; color: var(--hx-navy-900); }
.hx-carousel-btn--prev { left: -24px; }
.hx-carousel-btn--next { right: -24px; }
.hx-carousel-btn:disabled { opacity: 0.35; cursor: default; }
.hx-carousel-btn:focus-visible { outline: 2px solid var(--hx-gold); outline-offset: 2px; }
.hx-carousel-status {
    margin-top: 24px !important;
    text-align: center;
    font-size: 13px; line-height: 20px; font-weight: 600;
    color: var(--hx-on-dark-muted);
}
.hx-carousel-note {
    margin-top: 24px !important;
    text-align: center;
    font-size: 14px; line-height: 24px; font-weight: 400;
    color: var(--hx-on-dark-muted);
}

/* ============================================================
   S8 Choices
   ============================================================ */
.hx-choice-blocks { display: flex; flex-direction: column; gap: 64px; }
.hx-choice-label {
    display: block;
    font-size: 12px; line-height: 16px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--hx-gold-text);
}
.hx-h3 {
    margin-top: 8px !important;
    font-family: var(--hx-serif);
    font-size: 26px; line-height: 34px; font-weight: 700;
    color: var(--hx-navy-900);
}
.hx-choice-body { margin-top: 24px; }
.hx-school-title {
    font-family: var(--hx-serif);
    font-size: 24px; line-height: 30px; font-weight: 700;
    color: var(--hx-navy-900);
}
.hx-page ul.hx-dot-list { display: flex; flex-direction: column; gap: 4px; }
.hx-dot-list li {
    position: relative;
    padding-left: 16px;
    font-size: 16px; line-height: 24px; font-weight: 400;
    color: var(--hx-navy-700);
}
.hx-dot-list li::before {
    content: "\2022";
    position: absolute; left: 2px; top: 0;
    color: var(--hx-navy-700);
}
.hx-choice-after { margin-top: 16px !important; font-size: 16px; line-height: 26px; color: var(--hx-muted); }
.hx-area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hx-area-card { padding: 0; }
.hx-area-body { padding: 24px; }
.hx-area-title {
    font-family: var(--hx-serif);
    font-size: 22px; line-height: 30px; font-weight: 700;
    color: var(--hx-navy-900);
}
.hx-area-text { margin-top: 8px !important; font-size: 16px; line-height: 26px; color: var(--hx-navy-700); }
.hx-ask-list {
    display: grid;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    column-gap: 32px; row-gap: 14px;
}
.hx-check-item { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 26px; color: var(--hx-navy-700); }
.hx-check-item svg.lucide { margin-top: 3px; }
.hx-choice-note { margin-top: 16px !important; }

/* ============================================================
   S9 Living
   ============================================================ */
.hx-living-grid { display: grid; grid-template-columns: 55fr 45fr; gap: 24px; }
.hx-living-card {
    background: var(--hx-white);
    border: 1px solid var(--hx-line);
    border-radius: 8px;
    padding: 36px;
    box-sizing: border-box;
}
.hx-living-card--std { border-top: 4px solid var(--hx-gold); }
.hx-living-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hx-living-title {
    margin-top: 16px !important;
    font-family: var(--hx-serif);
    font-size: 28px; line-height: 34px; font-weight: 700;
    color: var(--hx-navy-900);
}
.hx-living-para {
    margin-top: 16px !important;
    font-size: 16px; line-height: 27px; font-weight: 400;
    color: var(--hx-navy-700);
}
.hx-page ul.hx-living-list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.hx-living-list li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 16px; line-height: 26px; font-weight: 400;
    color: var(--hx-navy-700);
}
.hx-living-list svg.lucide { margin-top: 4px; }
.hx-living-note { margin-top: 24px !important; }

/* ============================================================
   S10 Safety
   ============================================================ */
.hx-safety-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
.hx-safety-item {
    display: grid; grid-template-columns: 40px 1fr;
    padding: 18px 0;
    font-size: 16px; line-height: 27px; color: var(--hx-white);
}
.hx-safety-item + .hx-safety-item { border-top: 1px solid var(--hx-navy-500); }
.hx-safety-item:first-child { padding-top: 0; }
.hx-safety-item svg.lucide { margin-top: 1px; }
.hx-box-label {
    display: block;
    font-size: 12px; line-height: 16px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--hx-gold);
}
.hx-esc-box { padding: 28px; }
.hx-page ol.hx-tree { margin-top: 20px; }
.hx-tree-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    column-gap: 16px;
    align-items: center;
}
.hx-tree-box {
    display: flex; align-items: center; justify-content: center;
    height: 44px; box-sizing: border-box;
    border: 1px solid var(--hx-navy-400);
    border-radius: 4px;
    font-size: 15px; font-weight: 600; line-height: 1;
    color: var(--hx-white);
    text-align: center;
}
.hx-tree-box--hub { background: var(--hx-gold); border: none; color: var(--hx-navy-900); }
.hx-tree-text { font-size: 13px; line-height: 20px; font-weight: 400; color: var(--hx-on-dark-muted); }
.hx-tree-arrow { width: 120px; display: flex; justify-content: center; padding: 6px 0; }
.hx-tree-arrow svg.lucide { width: 18px; height: 18px; color: var(--hx-on-dark-muted); }
.hx-docs-box {
    margin-top: 20px;
    border: 1.5px solid var(--hx-gold);
    border-radius: 8px;
    padding: 28px;
}
.hx-docs-text { margin-top: 10px !important; font-size: 16px; line-height: 27px; color: var(--hx-white); }
.hx-docs-sub-text { margin-top: 8px !important; font-size: 14px; line-height: 22px; font-weight: 400; color: var(--hx-on-dark-muted); }
.hx-rules-box { margin-top: 40px; padding: 28px; }
.hx-rules-text { margin-top: 10px !important; font-size: 16px; line-height: 27px; color: var(--hx-on-dark); }

/* ============================================================
   S11 Included
   ============================================================ */
.hx-incl-title {
    font-family: var(--hx-serif);
    font-size: 20px; line-height: 28px; font-weight: 700;
    color: var(--hx-navy-900);
}
.hx-incl-card .hx-rule { margin: 16px 0 20px; }
.hx-incl-list { display: flex; flex-direction: column; gap: 12px; }
.hx-incl-notes { margin-top: 24px; }
.hx-quote-band {
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    margin-top: 32px;
    background: var(--hx-navy-900);
    border-radius: 8px;
    padding: 32px 36px;
}
.hx-quote-text { font-size: 18px; line-height: 30px; color: var(--hx-white); }
.hx-quote-band .hx-btn { flex-shrink: 0; }

/* ============================================================
   S12 Eligibility & visa
   ============================================================ */
.hx-elig-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.hx-elig-card { background: var(--hx-cream); padding: 28px; }
.hx-elig-title {
    margin-top: 14px !important;
    font-family: var(--hx-serif);
    font-size: 18px; line-height: 26px; font-weight: 700;
    color: var(--hx-navy-900);
}
.hx-elig-text { margin-top: 6px !important; font-size: 16px; line-height: 26px; color: var(--hx-navy-700); }
.hx-elig-boxes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.hx-box-plain {
    background: var(--hx-white);
    border: 1px solid var(--hx-line);
    border-radius: 8px;
    padding: 24px;
    font-size: 16px; line-height: 27px; color: var(--hx-navy-700);
}
.hx-box-gold {
    background: var(--hx-white);
    border: 1.5px solid var(--hx-gold);
    border-radius: 8px;
    padding: 24px;
}
.hx-box-gold-title { font-size: 18px; line-height: 28px; font-weight: 700; color: var(--hx-navy-900); }
.hx-box-gold-text { margin-top: 6px !important; font-size: 16px; line-height: 26px; color: var(--hx-navy-700); }
.hx-elig-cta {
    margin-top: 20px !important;
    font-size: 16px; line-height: 26px; font-weight: 600;
    color: var(--hx-navy-900);
}
.hx-h3--table { margin-top: 64px !important; }
.hx-table-wrap {
    margin-top: 24px;
    border: 1px solid var(--hx-line);
    border-radius: 8px;
    overflow: hidden;
}
.hx-table { width: 100%; border-collapse: collapse; }
.hx-table th, .hx-table thead td {
    background: var(--hx-navy-700);
    padding: 14px 16px;
    font-size: 14px; font-weight: 700; line-height: 20px;
    color: var(--hx-white);
    text-align: left;
}
.hx-table td {
    background: var(--hx-white);
    padding: 16px;
    border-bottom: 1px solid var(--hx-line);
    font-size: 15px; line-height: 24px; font-weight: 400;
    color: var(--hx-navy-700);
    vertical-align: top;
}
.hx-table thead td { background: var(--hx-navy-700); padding: 14px 16px; border-bottom: none; }
.hx-table tbody tr:last-child td { border-bottom: none; }
.hx-table tbody td:first-child { font-weight: 600; color: var(--hx-navy-900); }
.hx-table tbody th {
    background: var(--hx-white);
    padding: 16px;
    border-bottom: 1px solid var(--hx-line);
    font-size: 15px; line-height: 24px; font-weight: 600;
    color: var(--hx-navy-900);
    text-align: left; vertical-align: top;
}
.hx-table tbody tr:last-child th { border-bottom: none; }
.hx-table--visa { table-layout: fixed; }
.hx-table--visa tbody td:first-of-type { font-weight: 400; color: var(--hx-navy-700); }
.hx-only-mobile { display: none; }
.hx-visa-notes { margin-top: 20px; }
.hx-credit-line { margin-top: 20px !important; font-size: 15px; line-height: 26px; color: var(--hx-muted); }

/* ============================================================
   S13 How to apply
   ============================================================ */
.hx-steps { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); }
.hx-steps::before {
    content: "";
    position: absolute; top: 21px;
    left: calc(100% / 12); right: calc(100% / 12);
    height: 2px; background: var(--hx-line);
}
.hx-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hx-step-num {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--hx-gold);
    font-size: 18px; font-weight: 700; line-height: 1;
    color: var(--hx-navy-900);
}
.hx-step-body {
    display: flex; flex-direction: column; align-items: center;
    margin-top: 14px;
}
.hx-step-text {
    max-width: 150px;
    font-size: 15px; line-height: 22px; font-weight: 600;
    color: var(--hx-navy-900);
}
.hx-step-sub {
    margin-top: 6px;
    max-width: 150px;
    font-size: 13px; line-height: 20px; font-weight: 400;
    color: var(--hx-muted);
}
.hx-apply-early { margin-top: 48px; }
.hx-apply-early-main { font-size: 16px; line-height: 26px; font-weight: 600; color: var(--hx-navy-900); }
.hx-apply-early-sub { margin-top: 6px !important; font-size: 14px; line-height: 24px; font-weight: 400; color: var(--hx-muted); }
.hx-docs-acc { margin-top: 48px; }
.hx-acc-title-lg { font-size: 18px; line-height: 26px; font-weight: 600; color: var(--hx-navy-900); }
.hx-docs-sub {
    display: block;
    margin-bottom: 8px;
    font-size: 13px; line-height: 20px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--hx-gold-text);
}
.hx-docs-sub--gap { margin-top: 20px; }
.hx-page ul.hx-bullets { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.hx-bullets li { font-size: 16px; line-height: 26px; color: var(--hx-navy-700); }
.hx-bullets .hx-tpl { color: var(--hx-muted); }
.hx-docs-note { margin-top: 8px !important; font-size: 14px; line-height: 24px; font-weight: 400; color: var(--hx-muted); }
.hx-docs-body { font-size: 16px; line-height: 26px; font-weight: 400; color: var(--hx-navy-700); }
.hx-docs-notes { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.hx-docs-notes p { font-size: 14px; line-height: 24px; font-weight: 400; color: var(--hx-muted); }
.hx-docs-last { margin-top: 20px !important; font-size: 15px; line-height: 24px; color: var(--hx-muted); }

/* ============================================================
   S14 FAQ
   ============================================================ */
.hx-faq { max-width: 880px; }
.hx-faq-q { font-size: 17px; line-height: 26px; font-weight: 600; color: var(--hx-navy-900); }
.hx-faq-a { font-size: 16px; line-height: 27px; color: var(--hx-navy-700); }

/* ============================================================
   S15 Contact
   ============================================================ */
.hx-contact-stack { display: flex; flex-direction: column; }
.hx-form-panel { background: var(--hx-white); border-radius: 8px; padding: 48px; }
.hx-form { display: flex; flex-direction: column; gap: 20px; }
.hx-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.hx-form-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hx-form-submit { display: flex; justify-content: flex-end; }
.hx-field { display: flex; flex-direction: column; min-width: 0; }
.hx-field label {
    margin-bottom: 8px;
    font-size: 14px; line-height: 20px; font-weight: 600;
    color: var(--hx-navy-900);
}
.hx-req { color: var(--hx-gold-text); }
.hx-input, .hx-select, .hx-textarea {
    width: 100%; box-sizing: border-box;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--hx-input-border);
    border-radius: 4px;
    background: var(--hx-white);
    font-family: var(--hx-sans);
    font-size: 16px; line-height: 24px;
    color: var(--hx-navy-900);
    outline: none;
    margin: 0;
}
.hx-input:focus, .hx-select:focus, .hx-textarea:focus {
    border: 2px solid var(--hx-gold);
    padding-left: 13px; padding-right: 13px;
}
.hx-select-wrap { position: relative; }
.hx-select { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer; }
.hx-select:focus { padding-right: 39px; }
.hx-select.is-empty { color: var(--hx-muted); }
.hx-select option { color: var(--hx-navy-900); }
.hx-select-wrap svg.lucide {
    position: absolute; right: 14px; top: 16px;
    width: 16px; height: 16px;
    color: var(--hx-muted);
    pointer-events: none;
}
.hx-textarea { height: 140px; padding: 12px 14px; resize: vertical; }
.hx-textarea:focus { padding: 11px 13px; }
.hx-form .hx-btn { width: 280px; margin-top: 8px; } /* 20px gap + 8px = 28px */
.hx-form .hx-btn:disabled { cursor: default; }
.hx-form-thanks { font-size: 16px; line-height: 26px; color: var(--hx-navy-900); }

.hx-agent-card {
    margin-top: 32px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 40px;
    background: var(--hx-navy-700);
    border: 1.5px solid var(--hx-gold);
    border-radius: 8px;
    padding: 32px 40px;
}
.hx-agent-copy { max-width: 720px; }
.hx-agent-card .hx-btn { flex-shrink: 0; }
.hx-agent-title {
    margin-top: 12px !important;
    font-family: var(--hx-serif);
    font-size: 24px; line-height: 32px; font-weight: 700;
    color: var(--hx-white);
}
.hx-agent-text { margin-top: 12px !important; font-size: 16px; line-height: 27px; color: var(--hx-on-dark); }
.hx-page ul.hx-contact-lines { margin-top: 24px; display: flex; flex-direction: row; flex-wrap: wrap; gap: 32px; }
.hx-contact-line { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 24px; color: var(--hx-on-dark); }
.hx-page .hx-contact-line a { color: var(--hx-on-dark); text-decoration: none; }
.hx-page .hx-contact-line a:hover { text-decoration: underline; }

/* ============================================================
   MOBILE (<= 1023px)
   ============================================================ */
@media (max-width: 1023px) {
    .hx-container { padding: 0 20px; }
    .hx-section { padding: 64px 0; }

    .hx-head { margin-bottom: 32px; }
    .hx-head--tight { margin-bottom: 24px; }
    .hx-h2 { font-size: 30px; line-height: 38px; }
    .hx-lead { font-size: 16px; line-height: 28px; }

    .hx-btn { width: 100%; }
    .hx-card-light, .hx-card-dark { padding: 24px; }

    /* sticky nav */
    .hx-subnav-list {
        gap: 24px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .hx-subnav-list::-webkit-scrollbar { display: none; }

    /* S1 */
    .hx-hero { padding: 72px 0 64px; }
    .hx-hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hx-h1 { font-size: 34px; line-height: 42px; }
    .hx-hero-lead { font-size: 17px; line-height: 28px; }
    .hx-hero-actions { flex-direction: column; gap: 12px; }

    /* S2 */
    .hx-values-grid { grid-template-columns: 1fr; gap: 40px; }

    /* S3 */
    .hx-grid-3 { grid-template-columns: 1fr; gap: 16px; }

    /* S4 */
    .hx-programs-grid { grid-template-columns: 1fr; row-gap: 16px; }
    .hx-program-card { padding: 28px; display: flex; flex-direction: column; grid-row: auto; }

    /* S5 */
    .hx-section--calendar { padding-top: 0; padding-bottom: 64px; }
    .hx-scroll-hint { display: block; }
    .hx-chart-frame { padding: 32px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .hx-chart { min-width: 960px; }

    /* S6 */
    .hx-tl-row { grid-template-columns: 64px 24px 1fr; }
    .hx-tl-time { font-size: 16px; }
    .hx-day-grid { grid-template-columns: 1fr; gap: 32px; }
    .hx-day-photos {
        position: static;
        display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
    }
    .hx-page .hx-day-photo img { aspect-ratio: 1 / 1; }
    .hx-day-photo figcaption { font-size: 12px; }

    /* S7 */
    .hx-grid-2 { grid-template-columns: 1fr; gap: 16px; }
    .hx-page ul.hx-carousel-track { gap: 16px; }
    .hx-slide { flex-basis: 85%; }
    .hx-carousel-btn { width: 40px; height: 40px; }
    .hx-carousel-btn svg.lucide { width: 20px; height: 20px; }
    .hx-carousel-btn--prev { left: 8px; }
    .hx-carousel-btn--next { right: 8px; }

    /* S8 */
    .hx-choice-blocks { gap: 48px; }
    .hx-h3 { font-size: 22px; line-height: 30px; }
    .hx-area-grid { grid-template-columns: 1fr; gap: 16px; }
    .hx-area-card { padding: 0; }
    .hx-ask-list { grid-template-rows: none; grid-auto-flow: row; grid-template-columns: 1fr; }

    /* S9 */
    .hx-living-grid { grid-template-columns: 1fr; gap: 16px; }
    .hx-living-card { padding: 24px; }

    /* S10 */
    .hx-safety-grid { grid-template-columns: 1fr; gap: 32px; }
    .hx-esc-box, .hx-rules-box { padding: 28px; }


    /* S11 */
    .hx-quote-band { flex-direction: column; align-items: stretch; gap: 20px; }

    /* S12 */
    .hx-elig-grid { grid-template-columns: 1fr; gap: 16px; }
    .hx-elig-card { padding: 28px; }
    .hx-elig-boxes { grid-template-columns: 1fr; }

    /* Visa table -> 2 cards (one per column) */
    .hx-table-wrap { border: none; border-radius: 0; overflow: visible; }
    .hx-only-desktop { display: none; }
    .hx-only-mobile { display: flex; }
    .hx-visa-cards { flex-direction: column; gap: 12px; }
    .hx-visa-card {
        background: var(--hx-white);
        border: 1px solid var(--hx-line);
        border-radius: 8px;
        padding: 20px;
    }
    .hx-visa-card-title {
        font-size: 16px; line-height: 24px; font-weight: 700;
        color: var(--hx-navy-900);
    }
    .hx-visa-card dl { margin: 12px 0 0; display: flex; flex-direction: column; gap: 12px; }
    .hx-visa-card dt {
        font-size: 12px; line-height: 16px; font-weight: 700;
        text-transform: uppercase;
        color: var(--hx-gold-text);
    }
    .hx-visa-card dd {
        margin: 0;
        font-size: 15px; line-height: 24px; font-weight: 400;
        color: var(--hx-navy-700);
    }

    /* S13 steps */
    .hx-steps { grid-template-columns: 1fr; gap: 20px; }
    .hx-steps::before { display: none; }
    .hx-step { flex-direction: row; align-items: center; gap: 16px; text-align: left; }
    .hx-step-num { width: 36px; height: 36px; font-size: 16px; flex-shrink: 0; }
    .hx-step-body { margin-top: 0; align-items: flex-start; }
    .hx-step-text { max-width: none; }
    .hx-step-sub { max-width: none; text-align: left; }
    .hx-step:not(:last-child)::after {
        content: "";
        position: absolute; left: 17px; top: 50%;
        width: 2px; height: calc(100% + 20px);
        background: var(--hx-line);
    }

    /* S15 */
    .hx-form-panel { padding: 24px; }
    .hx-form-row, .hx-form-row--3 { grid-template-columns: 1fr; gap: 20px; }
    .hx-form .hx-btn { width: 100%; }
    .hx-form-submit { display: block; }
    .hx-agent-card { flex-direction: column; align-items: stretch; gap: 20px; padding: 24px; }
    .hx-agent-card .hx-btn { width: 100%; }
    .hx-page ul.hx-contact-lines { flex-direction: column; gap: 10px; }
}

/* ============================================================
   Footer (duplicated from junior-study-tour.html, unchanged)
   ============================================================ */
footer {
    background: #001529;
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(75, 180, 230, 0.1);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    align-items: start;
    padding-bottom: 0;
    border-bottom: none;
}
.footer-brand { align-self: start; }
.footer-links { align-self: start; display: block; }
.footer-brand h3 { font-size: 24px; font-weight: 700; letter-spacing: 2px; color: #F8FAFC; margin-bottom: 1rem; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: #64748B; }
.footer-links h4 { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #F8FAFC; margin-bottom: 1rem; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links a { font-size: 14px; color: #64748B; text-decoration: none; display: block; margin-bottom: 0.5rem; transition: color 0.3s; opacity: 1; }
.footer-links a:hover { color: #4BB4E6; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(75, 180, 230, 0.1); color: #64748B; font-size: 14px; }
.footer-bottom p { color: #64748B; opacity: 1; }
@media (max-width: 968px) {
    .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}
