@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@500;600;700;800&family=DM+Sans:wght@400;500;700&display=swap");

:root {
    --ink: #102033;
    --muted: #637083;
    --paper: #fbfaf5;
    --white: #ffffff;
    --line: #dfe6ea;
    --blue: #1a56db;
    --blue-deep: #0f2e73;
    --sun: #ffbf2f;
    --green: #0e8f72;
    --coral: #f06b4f;
    --panel: #f1f5f2;
    --shadow: 0 22px 60px rgba(16, 32, 51, .14);
    --radius: 8px;
    --header-height: 88px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "DM Sans", sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.shell {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

.top-ribbon {
    background: var(--blue-deep);
    color: rgba(255, 255, 255, .9);
    font-size: 13px;
}

.top-ribbon__inner {
    min-height: 38px;
    display: flex;
    gap: 22px;
    align-items: center;
    justify-content: flex-end;
}

.top-ribbon a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 250, 245, .94);
    border-bottom: 1px solid rgba(16, 32, 51, .08);
    backdrop-filter: blur(18px);
}

.nav-shell {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 184px;
}

.brand img {
    width: 140px;
    height: auto;
    object-fit: contain;
}

.brand strong {
    display: block;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 22px;
    line-height: 1;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.site-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: var(--radius);
    color: #26394f;
    font-weight: 700;
}

.nav-item.is-active > a,
.nav-item > a:hover,
.nav-item:focus-within > a {
    background: #eaf0ff;
    color: var(--blue);
}

.sub-menu {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 230px;
    padding: 18px 8px 8px;
    margin-top: -10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: .2s ease;
}

.has-children:hover .sub-menu,
.has-children:focus-within .sub-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sub-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: #26394f;
    font-weight: 700;
}

.sub-menu a:hover {
    background: var(--panel);
}

.menu-toggle {
    display: none;
    border: 0;
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-weight: 700;
    align-items: center;
    gap: 8px;
}

.page-hero,
.home-hero {
    position: relative;
    isolation: isolate;
    min-height: min(760px, calc(100vh - 38px));
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
}

.page-hero {
    min-height: 460px;
}

.home-hero::after,
.page-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 140px;
    background: linear-gradient(180deg, rgba(251, 250, 245, 0), var(--paper));
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(7, 23, 57, .9), rgba(10, 35, 72, .64) 46%, rgba(9, 27, 48, .28)),
        linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .42));
}

.home-hero__content,
.page-hero__content {
    position: relative;
    z-index: 1;
    padding: 96px 0 140px;
    max-width: 790px;
}

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

h1,
h2,
h3,
h4 {
    font-family: "Bricolage Grotesque", sans-serif;
    line-height: .98;
    margin: 0;
}

h1 {
    font-size: clamp(54px, 8vw, 108px);
    max-width: 780px;
}

.page-hero h1 {
    font-size: clamp(42px, 6vw, 78px);
}

.hero-copy {
    max-width: 660px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--sun);
    color: #1e2d14;
    box-shadow: 0 16px 34px rgba(255, 191, 47, .26);
}

.btn-dark {
    background: var(--ink);
    color: var(--white);
}

.btn-soft {
    background: rgba(255, 255, 255, .14);
    color: var(--white);
    border-color: rgba(255, 255, 255, .34);
}

.btn-line {
    background: transparent;
    color: var(--blue);
    border-color: rgba(26, 86, 219, .3);
}

.section {
    padding: 92px 0;
}

.section.alt {
    background: #eef3ef;
}

.section-heading {
    max-width: 730px;
    margin-bottom: 36px;
}

.section-heading h2 {
    font-size: clamp(36px, 5vw, 64px);
    color: var(--ink);
}

.section-heading p:not(.eyebrow) {
    color: var(--muted);
    margin: 16px 0 0;
    font-size: 18px;
}

.stats-strip {
    margin-top: -70px;
    position: relative;
    z-index: 4;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.stat {
    min-height: 118px;
    padding: 24px;
    background: var(--white);
}

.stat strong {
    display: block;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 34px;
    line-height: 1;
}

.stat span {
    color: var(--muted);
    font-weight: 700;
}

.pathway-grid,
.program-grid,
.course-grid,
.feature-grid,
.report-grid {
    display: grid;
    gap: 20px;
}

.pathway-grid {
    grid-template-columns: repeat(5, 1fr);
}

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

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

.pathway-card,
.program-card,
.course-card,
.feature-card,
.info-panel,
.report-card,
.form-panel {
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 14px 40px rgba(16, 32, 51, .08);
}

.pathway-card {
    min-height: 176px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pathway-card i {
    color: var(--blue);
    font-size: 24px;
}

.pathway-card h3 {
    font-size: 22px;
    margin-top: 16px;
}

.pathway-card p {
    color: var(--muted);
    margin: 8px 0 0;
}

.program-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 42% 1fr;
}

.program-card__image {
    min-height: 260px;
    position: relative;
}

.program-card__image img,
.course-card img {
    width: 100%;
    display: block;
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-card__body {
    padding: 24px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 6px 10px;
    background: #eaf0ff;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.program-card h3,
.report-card h3,
.feature-card h3 {
    margin-top: 14px;
    font-size: 28px;
    line-height: 1.05;
}

.program-card p,
.report-card p,
.feature-card p,
.info-panel p {
    color: var(--muted);
}

.clean-list {
    padding: 0;
    margin: 18px 0;
    list-style: none;
}

.clean-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 9px 0;
    color: #314156;
    font-weight: 700;
}

.clean-list i {
    color: var(--green);
    margin-top: 4px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
    gap: 42px;
    align-items: center;
}

.media-frame {
    min-height: 460px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature-card {
    padding: 28px;
}

.feature-number {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 800;
}

.news-band {
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(15, 46, 115, .96), rgba(14, 143, 114, .86)),
        url("../img/bg/others_bg2.jpg") center / cover;
}

.news-band .section-heading h2,
.news-band .section-heading p:not(.eyebrow) {
    color: var(--white);
}

.news-band .clean-list li {
    color: rgba(255, 255, 255, .9);
}

.video-embed,
.map-embed {
    border: 0;
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #d7dde1;
}

.video-embed {
    aspect-ratio: 16 / 9;
}

.map-embed {
    height: 430px;
}

.course-card {
    overflow: hidden;
}

.course-card figure {
    margin: 0;
}

.course-card__body {
    padding: 20px;
}

.course-card h3 {
    font-size: 24px;
}

.form-layout {
    display: grid;
    grid-template-columns: .72fr 1fr;
    gap: 26px;
    align-items: start;
}

.info-panel,
.form-panel,
.report-card {
    padding: 28px;
}

.contact-line {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.contact-line:last-child {
    border-bottom: 0;
}

.contact-line i {
    display: grid;
    place-items: center;
    height: 42px;
    background: var(--panel);
    color: var(--blue);
    border-radius: var(--radius);
}

.contact-line strong {
    display: block;
}

.contact-line span {
    color: var(--muted);
}

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

.field-grid .full {
    grid-column: 1 / -1;
}

label {
    display: block;
    font-weight: 800;
    color: #24364b;
    margin-bottom: 6px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cfd8df;
    background: #fbfcfc;
    border-radius: var(--radius);
    padding: 13px 14px;
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

textarea {
    min-height: 148px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(26, 86, 219, .12);
    background: var(--white);
}

.notice {
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    font-weight: 800;
}

.notice.success {
    background: #e8f7f2;
    color: #11624f;
}

.program-detail {
    display: grid;
    grid-template-columns: 1fr .76fr;
    gap: 28px;
    align-items: start;
}

.detail-gallery {
    display: grid;
    gap: 14px;
}

.detail-gallery img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.detail-panel {
    position: sticky;
    top: 140px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 40px rgba(16, 32, 51, .08);
}

.report-card .video-embed {
    margin-top: 18px;
}

.thank-you {
    min-height: calc(100vh - 260px);
    display: grid;
    place-items: center;
    padding: 90px 0;
}

.thank-you-box {
    max-width: 720px;
    text-align: center;
}

.thank-you-box i {
    display: inline-grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    color: var(--green);
    background: #e8f7f2;
    font-size: 34px;
    margin-bottom: 20px;
}

.thank-you-box h1 {
    color: var(--ink);
}

.site-footer {
    color: rgba(255, 255, 255, .88);
    background: #0e1b2b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, 1fr);
    gap: 34px;
    padding: 62px 0;
}

.footer-brand img {
    width: 180px;
    height: auto;
    margin-bottom: 18px;
}

.site-footer h2 {
    font-size: 20px;
    margin-bottom: 18px;
    color: var(--white);
}

.site-footer a,
.site-footer p {
    display: block;
    margin: 8px 0;
    color: rgba(255, 255, 255, .74);
}

.site-footer i {
    width: 22px;
    color: var(--sun);
}

.footer-social {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin-top: 14px !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 18px 0;
    color: rgba(255, 255, 255, .58);
    font-size: 14px;
}

[data-reveal],
.js-reveal {
    opacity: 0;
    transform: translateY(28px);
}

.char {
    display: inline-block;
}

.word {
    display: inline-block;
    white-space: nowrap;
}

@media (max-width: 1020px) {
    .pathway-grid,
    .course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .program-card,
    .split,
    .form-layout,
    .program-detail {
        grid-template-columns: 1fr;
    }

    .detail-panel {
        position: static;
    }

    .footer-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    :root {
        --header-height: 74px;
    }

    .top-ribbon {
        display: none;
    }

    .nav-shell {
        width: min(100% - 28px, 1160px);
    }

    .menu-toggle {
        display: inline-flex;
    }

    .site-menu {
        position: fixed;
        inset: var(--header-height) 14px auto;
        display: grid;
        gap: 8px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--white);
        box-shadow: var(--shadow);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: .2s ease;
    }

    body.menu-open .site-menu {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-item > a {
        width: 100%;
        justify-content: space-between;
    }

    .sub-menu {
        position: static;
        display: none;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
        margin: 2px 0 8px;
    }

    .has-children:hover .sub-menu,
    .has-children:focus-within .sub-menu {
        display: block;
    }

    .home-hero,
    .page-hero {
        min-height: 620px;
    }

    .home-hero__content,
    .page-hero__content {
        padding: 78px 0 116px;
    }
}

@media (max-width: 640px) {
    .shell {
        width: min(100% - 28px, 1160px);
    }

    h1 {
        font-size: 48px;
    }

    .section {
        padding: 64px 0;
    }

    .stats-grid,
    .pathway-grid,
    .program-grid,
    .course-grid,
    .feature-grid,
    .report-grid,
    .field-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .program-card {
        display: block;
    }

    .program-card__image {
        min-height: 220px;
    }

    .hero-actions,
    .action-row {
        display: grid;
    }

    .btn {
        width: 100%;
    }

    .map-embed {
        height: 320px;
    }
}

/* ── Hero video background ── */
.home-hero-video {
    position: relative;
    overflow: hidden;
}
.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
}

/* ── Page loader ── */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: var(--paper);
    transition: opacity .5s ease, visibility .5s ease;
}
#page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
#page-loader img {
    width: 180px;
    animation: loader-pulse 1.2s ease-in-out infinite;
}
@keyframes loader-pulse {
    0%, 100% { transform: scale(1); opacity: .7; }
    50% { transform: scale(1.08); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }

    [data-reveal],
    .js-reveal {
        opacity: 1;
        transform: none;
    }
}
