:root {
    --ink: #102033;
    --muted: #536273;
    --line: #d9e1ea;
    --soft: #f5f8fb;
    --navy: #062f66;
    --red: #d60920;
    --blue-soft: #e9f1fb;
    --white: #ffffff;
    --shadow: 0 16px 45px rgba(16, 32, 51, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Noto Sans HK", "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", Arial, sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.header-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    width: 178px;
    flex: 0 0 auto;
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--navy);
    background: var(--blue-soft);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 48%, rgba(245, 248, 251, 0.64) 100%),
        url("/public/assets/images/hero-adult-learning.png") right center / auto 100% no-repeat,
        repeating-linear-gradient(135deg, rgba(6, 47, 102, 0.08) 0 1px, transparent 1px 18px);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 9px;
    background: linear-gradient(90deg, var(--navy) 0 62%, var(--red) 62% 100%);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
    gap: 56px;
    align-items: center;
    padding: 72px 0 88px;
}

.hero-copy h1,
.page-hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.1;
    letter-spacing: 0;
}

.hero-copy p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
    max-width: 680px;
    color: var(--muted);
    font-size: 19px;
}

.hero-copy {
    padding: 36px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(217, 225, 234, 0.78);
    border-radius: 8px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-actions,
.callout {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font: inherit;
}

.button.primary {
    color: var(--white);
    background: var(--navy);
}

.button.primary:hover {
    background: #0a3d82;
}

.button.secondary {
    color: var(--navy);
    background: var(--white);
    border-color: var(--line);
}

.hero-panel {
    display: grid;
    gap: 14px;
}

.metric {
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.metric span {
    display: block;
    color: var(--navy);
    font-size: 34px;
    font-weight: 900;
    line-height: 1.1;
}

.metric strong {
    display: block;
    margin-top: 8px;
}

.section {
    padding: 78px 0;
}

.section.alt,
.page-hero {
    background: var(--soft);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 78px 0 64px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(100deg, rgba(245, 248, 251, 0.98) 0%, rgba(245, 248, 251, 0.9) 58%, rgba(245, 248, 251, 0.54) 100%),
        url("/public/assets/images/global-pathways-adults.png") right center / auto 100% no-repeat;
}

.split {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
    gap: 56px;
    align-items: start;
}

.visual-split {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
    gap: 44px;
    align-items: center;
}

.framed-photo {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow);
}

.framed-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
}

.hero-photo img {
    aspect-ratio: 4 / 5;
}

.framed-photo figcaption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 10px 12px;
    color: var(--white);
    background: rgba(6, 47, 102, 0.82);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
}

.image-strip {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 20px;
    margin-top: 30px;
}

.image-strip img,
.inline-photo {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.form-aside .inline-photo,
.contact-panel .inline-photo {
    margin-bottom: 22px;
}

.bordered {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--line);
}

h2 {
    margin: 0 0 18px;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.2;
    letter-spacing: 0;
}

h3 {
    margin: 0 0 10px;
    font-size: 19px;
}

p {
    margin: 0 0 16px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 32px;
}

.feature-grid,
.course-grid,
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-grid.compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.feature-grid article,
.course-card,
.info-grid article,
.contact-panel,
.form-aside,
.lead-form {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 10px 28px rgba(16, 32, 51, 0.06);
}

.feature-grid article {
    min-height: 170px;
}

.course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.visual-split .course-grid {
    grid-template-columns: 1fr;
}

.course-grid-photo {
    min-height: 100%;
}

.course-grid-photo img {
    height: 100%;
    aspect-ratio: auto;
}

.course-card h2 {
    font-size: 25px;
}

.course-card ul,
.check-list {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.course-card li,
.check-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
}

.course-card li::before,
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
}

.course-card {
    position: relative;
    border-color: rgba(6, 47, 102, 0.16);
    background: linear-gradient(145deg, rgba(233, 241, 251, 0.72) 0, var(--white) 42%);
    box-shadow: 0 14px 34px rgba(6, 47, 102, 0.08);
}

.course-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: linear-gradient(90deg, var(--navy) 0 76%, var(--red) 76% 100%);
}

.course-card .eyebrow {
    color: var(--red);
}

.course-card h2 {
    color: var(--navy);
}

.course-card li::before {
    background: var(--navy);
    box-shadow: 0 0 0 3px var(--blue-soft);
}

.info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.callout {
    justify-content: space-between;
    padding: 32px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.text-link {
    color: var(--navy);
    font-weight: 800;
}

.form-layout {
    display: grid;
    grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
    gap: 28px;
    align-items: start;
}

.application-fee-note {
    margin-bottom: 24px;
    padding: 24px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-left: 5px solid var(--red);
    border-radius: 8px;
}

.application-fee-note h2 {
    margin-bottom: 14px;
}

.fee-summary {
    display: grid;
    gap: 0;
    margin: 20px 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.fee-summary div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px 16px;
}

.fee-summary div + div {
    border-top: 1px solid var(--line);
}

.fee-summary dd {
    color: var(--red);
    font-size: 20px;
    font-weight: 800;
}

.fee-disclaimer {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}

.lead-form {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-row {
    display: grid;
    gap: 8px;
}

label {
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #b8c4d1;
    border-radius: 6px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}

textarea {
    resize: vertical;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-weight: 700;
}

.check-row input {
    width: 18px;
    min-height: 18px;
    margin-top: 5px;
    flex: 0 0 auto;
}

.hidden-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.notice {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 8px;
    border: 1px solid;
}

.notice.success {
    color: #145032;
    background: #eaf7ef;
    border-color: #bfe4cc;
}

.notice.error {
    color: #76212b;
    background: #fff0f2;
    border-color: #f3bbc2;
}

.notice ul {
    margin: 8px 0 0;
}

.contact-panel dl {
    margin: 0;
    display: grid;
    gap: 16px;
}

.contact-panel div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.contact-panel div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

dt {
    color: var(--muted);
    font-weight: 800;
}

dd {
    margin: 0;
}

.site-footer {
    padding: 34px 0;
    color: #d7e1ee;
    background: var(--navy);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 24px;
}

.site-footer p {
    margin: 6px 0 0;
}

.site-footer span {
    color: #9eb6d4;
    font-weight: 800;
}

@media (max-width: 880px) {
    .header-inner,
    .hero-grid,
    .split,
    .visual-split,
    .form-layout,
    .footer-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .header-inner {
        justify-items: start;
        padding: 14px 0;
    }

    .nav {
        justify-content: flex-start;
    }

    .hero {
        min-height: auto;
    }

    .feature-grid,
    .feature-grid.compact,
    .course-grid,
    .info-grid,
    .form-grid,
    .image-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .brand {
        width: 158px;
    }

    .nav a {
        padding: 7px 9px;
        font-size: 14px;
    }

    .section,
    .page-hero {
        padding: 54px 0;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 38px;
    }

    .callout {
        align-items: flex-start;
    }

    .fee-summary div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
