/* NVL homepage — page-scoped styles. Loaded only when page.is_homepage = 1. */

.nvl-homepage-body {
    --nvl-deep: #031c31;
    --nvl-navy: #082a4a;
    --nvl-gold: #f2ad21;
    --nvl-gold-dark: #9a6700;
    --nvl-cream: #f7f3e9;
    --nvl-pale-blue: #e6f0f5;
    --nvl-paper: #ffffff;
    --nvl-ink: #10283b;
    --nvl-copy: #4f6473;
    --nvl-line: #d6e0e5;
    --nvl-shadow: 0 24px 70px rgba(3, 28, 49, 0.12);
    background: var(--nvl-paper);
    color: var(--nvl-ink);
    font-family: Inter, Pyidaungsu, "Segoe UI", Tahoma, sans-serif;
    overflow-x: hidden;
    text-align: left;
}

.nvl-homepage-body h1,
.nvl-homepage-body h2,
.nvl-homepage-body h3,
.nvl-homepage-body h4 {
    color: inherit;
    font-family: Georgia, "Times New Roman", Pyidaungsu, serif;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.08;
}

.nvl-homepage-body p {
    color: var(--nvl-copy);
    font-size: 17px;
    line-height: 1.7;
}

.nvl-home-main {
    background: var(--nvl-paper);
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
}

.nvl-homepage,
.nvl-homepage * {
    box-sizing: border-box;
}

.nvl-homepage {
    background: var(--nvl-paper);
    color: var(--nvl-ink);
    margin: 0;
    max-width: none;
    padding: 0;
    text-align: left;
    width: 100%;
}

.nvl-shell {
    margin: 0 auto;
    max-width: 1180px;
    padding-left: 28px;
    padding-right: 28px;
    width: 100%;
}

.nvl-section {
    padding: 96px 0;
    position: relative;
}

.nvl-section--pale {
    background: var(--nvl-pale-blue);
}

.nvl-section--cream {
    background: var(--nvl-cream);
}

.nvl-section-heading {
    align-items: end;
    display: flex;
    gap: 48px;
    justify-content: space-between;
    margin-bottom: 48px;
}

.nvl-section-heading > div:first-child {
    max-width: 760px;
}

.nvl-section-heading h2 {
    font-size: clamp(38px, 4.2vw, 62px);
    margin: 0;
}

.nvl-section-heading p {
    margin: 16px 0 0;
    max-width: 700px;
}

.nvl-eyebrow {
    color: var(--nvl-gold-dark);
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.nvl-text-link {
    align-items: center;
    border-bottom: 2px solid var(--nvl-gold);
    color: var(--nvl-navy);
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    gap: 10px;
    padding: 5px 0;
    text-decoration: none;
    white-space: nowrap;
}

.nvl-text-link:hover,
.nvl-text-link:focus {
    color: var(--nvl-deep);
    text-decoration: none;
}

.nvl-button {
    align-items: center;
    border: 2px solid transparent;
    display: inline-flex;
    font-size: 15px;
    font-weight: 800;
    justify-content: center;
    min-height: 50px;
    padding: 13px 22px;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nvl-button:hover,
.nvl-button:focus {
    text-decoration: none;
    transform: translateY(-2px);
}

.nvl-button--gold {
    background: var(--nvl-gold);
    color: #111827;
}

.nvl-button--gold:hover,
.nvl-button--gold:focus {
    background: #ffc247;
    color: #111827;
}

.nvl-button--light {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.8);
    color: #ffffff;
}

.nvl-button--light:hover,
.nvl-button--light:focus {
    background: #ffffff;
    color: var(--nvl-deep);
}

.nvl-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

/* Hero */
.nvl-homepage-body .nvl-hero {
    background: var(--nvl-deep);
    color: #ffffff;
    height: min(78vh, 760px);
    min-height: 620px;
    overflow: hidden;
    position: relative;
}

.nvl-homepage-body .nvl-hero__carousel,
.nvl-homepage-body .nvl-hero__carousel .carousel-inner,
.nvl-homepage-body .nvl-hero__carousel .item {
    height: 100%;
    min-height: 620px;
}

.nvl-homepage-body .nvl-hero__carousel {
    background: var(--nvl-deep) !important;
    inset: 0;
    position: absolute;
}

.nvl-homepage-body .nvl-hero__carousel .item {
    background: var(--nvl-deep) !important;
}

.nvl-homepage-body .nvl-hero__carousel .item::before {
    display: none;
}

.nvl-homepage-body .nvl-hero__image,
.nvl-homepage-body #bootstrap-touch-slider.bs-slider > .carousel-inner > .item > img {
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    object-position: center;
    width: 100% !important;
}

.nvl-hero__shade {
    background:
        linear-gradient(90deg, rgba(3, 28, 49, 0.92) 0%, rgba(3, 28, 49, 0.72) 44%, rgba(3, 28, 49, 0.20) 72%, rgba(3, 28, 49, 0.05) 100%),
        linear-gradient(0deg, rgba(3, 28, 49, 0.32), transparent 48%);
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 2;
}

.nvl-hero__content {
    left: max(28px, calc((100vw - 1180px) / 2 + 28px));
    max-width: 720px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
}

.nvl-hero__content .nvl-eyebrow {
    color: var(--nvl-gold);
}

.nvl-hero__content h1 {
    color: #ffffff;
    font-size: clamp(48px, 6.2vw, 86px);
    margin: 0;
    max-width: 760px;
    text-wrap: balance;
}

.nvl-hero__content p {
    color: #d8e4eb;
    font-size: clamp(17px, 1.6vw, 21px);
    margin: 22px 0 0;
    max-width: 650px;
}

.nvl-homepage-body .nvl-hero__control {
    align-items: center;
    background: rgba(255, 255, 255, 0.94) !important;
    border-radius: 0;
    bottom: 24px;
    color: var(--nvl-navy) !important;
    display: flex;
    height: 52px;
    justify-content: center;
    opacity: 1;
    text-shadow: none;
    top: auto;
    width: 52px;
    z-index: 5;
}

.nvl-homepage-body .nvl-hero__control.left {
    left: auto;
    right: 90px;
}

.nvl-homepage-body .nvl-hero__control.right {
    right: 28px;
}

.nvl-homepage-body .nvl-hero__control:hover,
.nvl-homepage-body .nvl-hero__control:focus {
    background: var(--nvl-gold) !important;
    color: var(--nvl-deep) !important;
}

.nvl-homepage-body .nvl-hero__control .fa {
    font-size: 28px;
    position: static;
}

.nvl-hero__scroll {
    align-items: center;
    bottom: 28px;
    color: #ffffff;
    display: flex;
    font-size: 12px;
    font-weight: 800;
    gap: 12px;
    left: max(28px, calc((100vw - 1180px) / 2 + 28px));
    letter-spacing: 0.12em;
    position: absolute;
    text-transform: uppercase;
    z-index: 5;
}

.nvl-hero__scroll:hover,
.nvl-hero__scroll:focus {
    color: var(--nvl-gold);
    text-decoration: none;
}

/* Learning pathway */
.nvl-pathway-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
}

.nvl-pathway-tab {
    background: transparent;
    border: 0;
    border-top: 2px solid var(--nvl-line);
    color: var(--nvl-ink);
    cursor: pointer;
    min-height: 112px;
    padding: 22px 16px;
    text-align: left;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nvl-pathway-tab span,
.nvl-pathway-tab strong {
    display: block;
}

.nvl-pathway-tab span {
    color: var(--nvl-copy);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.nvl-pathway-tab strong {
    font-size: 16px;
    line-height: 1.35;
}

.nvl-pathway-tab[aria-pressed="true"] {
    background: var(--nvl-navy);
    border-color: var(--nvl-navy);
    color: #ffffff;
}

.nvl-pathway-tab[aria-pressed="true"] span {
    color: var(--nvl-gold);
}

.nvl-pathway-panel {
    align-items: center;
    background: var(--nvl-paper);
    box-shadow: var(--nvl-shadow);
    display: grid;
    gap: 34px;
    grid-template-columns: 0.9fr 1.4fr;
    margin-top: 30px;
    min-height: 230px;
    padding: 38px;
}

.nvl-js .nvl-pathway-panel:not(.is-active) {
    display: none;
}

.nvl-pathway-panel__year {
    border-right: 1px solid var(--nvl-line);
    color: var(--nvl-navy);
    font-family: Georgia, "Times New Roman", Pyidaungsu, serif;
    font-size: clamp(32px, 3.5vw, 54px);
    line-height: 1.05;
    padding-right: 30px;
}

.nvl-pathway-panel h3 {
    font-size: 32px;
    margin: 0 0 12px;
}

.nvl-pathway-panel p {
    margin: 0 0 16px;
}

/* Programme cards */
.nvl-programme-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nvl-programme-card {
    background: var(--nvl-cream);
    color: var(--nvl-ink);
    min-height: 520px;
    overflow: hidden;
    position: relative;
}

.nvl-programme-card__image {
    background: var(--nvl-navy);
    height: 300px;
    overflow: hidden;
    position: relative;
}

.nvl-programme-card__image::after {
    background: var(--nvl-cream);
    bottom: -36px;
    content: "";
    height: 72px;
    position: absolute;
    right: -5%;
    transform: rotate(-5deg);
    width: 74%;
}

.nvl-programme-card__image img {
    height: 100%;
    object-fit: cover;
    transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
    width: 100%;
}

.nvl-programme-card:hover .nvl-programme-card__image img {
    transform: scale(1.035);
}

.nvl-programme-card__content {
    padding: 30px 32px 34px;
}

.nvl-programme-card__content small {
    color: var(--nvl-gold-dark);
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.nvl-programme-card h3 {
    font-size: clamp(30px, 3vw, 42px);
    margin: 0 0 12px;
}

.nvl-programme-card p {
    margin-bottom: 18px;
}

/* Verified proof */
.nvl-proof {
    background: var(--nvl-navy);
    color: #ffffff;
    padding: 96px 0;
}

.nvl-proof .nvl-eyebrow {
    color: var(--nvl-gold);
}

.nvl-proof__layout {
    display: grid;
    gap: 80px;
    grid-template-columns: 0.8fr 1.4fr;
}

.nvl-proof h2 {
    color: #ffffff;
    font-size: clamp(40px, 4.8vw, 68px);
    margin: 0;
}

.nvl-proof__intro p,
.nvl-proof__item p {
    color: #d8e4eb;
}

.nvl-proof__list {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nvl-proof__item {
    border-top: 3px solid var(--nvl-gold);
    padding-top: 22px;
}

.nvl-proof__item h3 {
    color: #ffffff;
    font-family: Inter, Pyidaungsu, "Segoe UI", Tahoma, sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.35;
    margin: 0 0 12px;
}

/* News and events */
.nvl-story-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nvl-story-card {
    background: var(--nvl-paper);
    box-shadow: 0 18px 54px rgba(3, 28, 49, 0.10);
    display: flex;
    flex-direction: column;
    min-height: 430px;
}

.nvl-story-card__image {
    height: 220px;
    overflow: hidden;
}

.nvl-story-card__image img {
    height: 100%;
    object-fit: cover;
    transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
    width: 100%;
}

.nvl-story-card:hover .nvl-story-card__image img {
    transform: scale(1.04);
}

.nvl-story-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px;
}

.nvl-story-card small {
    color: var(--nvl-gold-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.nvl-story-card h3 {
    font-size: 28px;
    margin: 0 0 12px;
}

.nvl-story-card p {
    flex: 1;
    font-size: 15px;
}

/* Admissions */
.nvl-admissions {
    background: var(--nvl-gold);
    color: #111827;
    padding: 68px 0;
}

.nvl-admissions__layout {
    align-items: center;
    display: flex;
    gap: 52px;
    justify-content: space-between;
}

.nvl-admissions .nvl-eyebrow {
    color: #5a3d00;
}

.nvl-admissions h2 {
    color: #111827;
    font-size: clamp(38px, 4.5vw, 64px);
    margin: 0;
}

.nvl-admissions p {
    color: #49370e;
    margin: 14px 0 0;
    max-width: 760px;
}

.nvl-admissions .nvl-action-row {
    flex: 0 0 auto;
    margin: 0;
}

.nvl-admissions .nvl-button--gold {
    background: var(--nvl-deep);
    color: #ffffff;
}

.nvl-admissions .nvl-button--light {
    background: transparent;
    border-color: var(--nvl-deep);
    color: var(--nvl-deep);
}

.nvl-admissions .nvl-button--light:hover,
.nvl-admissions .nvl-button--light:focus {
    background: var(--nvl-deep);
    color: #ffffff;
}

/* Motion and focus */
.nvl-motion-ready .nvl-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.nvl-motion-ready .nvl-reveal.is-visible {
    opacity: 1;
    transform: none;
}

.nvl-homepage-body .nvl-button:focus-visible,
.nvl-homepage-body .nvl-text-link:focus-visible,
.nvl-homepage-body .nvl-pathway-tab:focus-visible,
.nvl-homepage-body .nvl-hero__control:focus-visible,
.nvl-homepage-body .nvl-hero__scroll:focus-visible {
    outline: 3px solid #ffd15c;
    outline-offset: 4px;
}

@media (max-width: 991px) {
    .nvl-section {
        padding: 76px 0;
    }

    .nvl-homepage-body .nvl-hero,
    .nvl-homepage-body .nvl-hero__carousel,
    .nvl-homepage-body .nvl-hero__carousel .carousel-inner,
    .nvl-homepage-body .nvl-hero__carousel .item {
        height: 680px;
        min-height: 680px;
    }

    .nvl-hero__content {
        left: 28px;
        max-width: calc(100% - 56px);
        right: 28px;
    }

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

    .nvl-programme-card {
        min-height: 500px;
    }

    .nvl-proof__layout {
        gap: 48px;
        grid-template-columns: 1fr;
    }

    .nvl-admissions__layout {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .nvl-shell {
        padding-left: 20px;
        padding-right: 20px;
    }

    .nvl-section {
        padding: 62px 0;
    }

    .nvl-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 34px;
    }

    .nvl-homepage-body .nvl-hero,
    .nvl-homepage-body .nvl-hero__carousel,
    .nvl-homepage-body .nvl-hero__carousel .carousel-inner,
    .nvl-homepage-body .nvl-hero__carousel .item {
        height: 650px;
        min-height: 650px;
    }

    .nvl-hero__shade {
        background: linear-gradient(0deg, rgba(3, 28, 49, 0.95) 0%, rgba(3, 28, 49, 0.74) 58%, rgba(3, 28, 49, 0.30) 100%);
    }

    .nvl-hero__content {
        bottom: 96px;
        left: 20px;
        max-width: none;
        right: 20px;
        top: auto;
        transform: none;
    }

    .nvl-hero__content h1 {
        font-size: clamp(42px, 13vw, 58px);
    }

    .nvl-hero__content p {
        font-size: 16px;
    }

    .nvl-action-row {
        align-items: stretch;
        flex-direction: column;
    }

    .nvl-button {
        min-height: 52px;
        width: 100%;
    }

    .nvl-hero__scroll {
        display: none;
    }

    .nvl-homepage-body .nvl-hero__control {
        bottom: 18px;
        height: 46px;
        width: 46px;
    }

    .nvl-homepage-body .nvl-hero__control.left {
        right: 72px;
    }

    .nvl-homepage-body .nvl-hero__control.right {
        right: 18px;
    }

    .nvl-pathway-tabs {
        grid-template-columns: 1fr;
    }

    .nvl-pathway-tab {
        border-left: 3px solid var(--nvl-line);
        border-top: 0;
        min-height: 82px;
    }

    .nvl-pathway-panel {
        gap: 22px;
        grid-template-columns: 1fr;
        padding: 26px;
    }

    .nvl-pathway-panel__year {
        border-bottom: 1px solid var(--nvl-line);
        border-right: 0;
        padding: 0 0 20px;
    }

    .nvl-programme-grid,
    .nvl-story-grid,
    .nvl-proof__list {
        grid-template-columns: 1fr;
    }

    .nvl-programme-card {
        min-height: 0;
    }

    .nvl-programme-card__image {
        height: 240px;
    }

    .nvl-proof {
        padding: 64px 0;
    }

    .nvl-admissions {
        padding: 58px 0;
    }

    .nvl-admissions .nvl-action-row {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .nvl-hero__content h1 {
        font-size: 39px;
    }

    .nvl-section-heading h2,
    .nvl-proof h2,
    .nvl-admissions h2 {
        font-size: 36px;
    }
}

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

    .nvl-motion-ready .nvl-reveal {
        opacity: 1;
        transform: none;
    }
}

html[data-nvl-reduce-motion="true"] .nvl-homepage-body *,
html[data-nvl-reduce-motion="true"] .nvl-homepage-body *::before,
html[data-nvl-reduce-motion="true"] .nvl-homepage-body *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
}

html[data-nvl-reduce-motion="true"] .nvl-motion-ready .nvl-reveal {
    opacity: 1;
    transform: none;
}

@media print {
    .nvl-homepage-body .nvl-hero {
        min-height: 0;
    }

    .nvl-hero__carousel,
    .nvl-hero__control,
    .nvl-hero__scroll,
    .nvl-action-row {
        display: none !important;
    }

    .nvl-hero__content {
        color: #000000;
        padding: 30px;
        position: static;
        transform: none;
    }
}
