body.pagelayout-popup,
body.pagelayout-embedded {
    background: #f6f7fb;
    color: #0f172a;
}

html, body {
    overflow-x: hidden;
}

/* Hide Boost header/nav/drawers when using popup/embedded layout. */
body.pagelayout-popup #page-header,
body.pagelayout-popup nav.navbar,
body.pagelayout-popup #page-navbar,
body.pagelayout-popup [data-region="drawer"],
body.pagelayout-embedded #page-header,
body.pagelayout-embedded nav.navbar,
body.pagelayout-embedded #page-navbar,
body.pagelayout-embedded [data-region="drawer"] {
    display: none !important;
}

body.pagelayout-popup #page,
body.pagelayout-embedded #page {
    margin: 0;
    padding: 0;
}

.landing-hero {
    position: relative;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
}

.landing-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.landing-hero__bg {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 140px;
    background: linear-gradient(180deg, #ffffff 0%, #eaf2ff 55%, #d6e7ff 100%);
    background-image: url('pix/sky-bg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    opacity: 0.75;
    z-index: 0;
}

.landing-hero__logo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 140px;
    padding: 0;
}

.landing-hero__logo img {
    width: 300px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.landing-gallery {
    padding: 0;
    max-width: 100%;
    overflow: hidden;
}

.landing-gallery__grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr) 360px;
    gap: 0;
    align-items: stretch;
    width: 100%;
    max-width: 1524px;
    margin: 0 auto;
}

.landing-gallery__panel {
    position: relative;
    overflow: hidden;
    aspect-ratio: auto;
    height: 450px;
}

.landing-gallery__panel:not(.landing-gallery__panel--video) {
    width: 360px;
    max-width: 100%;
    height: 450px;
    min-height: 0;
}

.landing-gallery__panel:nth-child(1) img,
.landing-gallery__panel:nth-child(3) img {
    transform: none;
}

.landing-gallery__panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.landing-gallery__panel--center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-gallery__panel--video {
    background: #000;
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    height: 450px;
    margin: 0 auto;
    display: block;
    justify-self: center;
}

.landing-gallery__video {
    position: relative;
    width: 100%;
    height: 100%;
}

.landing-gallery__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.landing-gallery__video lite-youtube {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    background-size: cover;
    background-position: center;
}

@media (min-width: 1025px) {
    .landing-gallery__panel {
        height: 450px;
        max-height: 450px;
        aspect-ratio: auto;
    }
    .landing-gallery__panel img {
        height: 100%;
        object-fit: cover;
    }
    .landing-gallery__panel--video {
        width: 100%;
        max-width: none;
        margin: 0 auto;
    }
    .landing-gallery__video {
        position: relative;
        width: 100%;
        height: 100%;
    }
    .landing-gallery__video iframe,
    .landing-gallery__video lite-youtube {
        width: 100% !important;
        height: 100% !important;
    }
}

.landing-gallery__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #fff;
    text-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
}

@media (max-width: 1024px) {
    .landing-gallery__grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 640px) {
    .landing-gallery__grid {
        grid-template-columns: 1fr;
    }
    .landing-gallery__panel {
        display: none;
    }
    .landing-gallery__panel--video {
        display: block;
    }
    .landing-hero__logo img {
        width: 220px;
        height: auto;
    }
    .landing-hero {
        border-bottom: 1px solid lightgray;
    }
}

.landing-gallery__play {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #c1121f;
    display: grid;
    place-items: center;
    font-size: 38px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.landing-gallery__title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.landing-metrics {
    /* Fresh cyan-to-indigo gradient for impact metrics */
    background: linear-gradient(135deg, #0e7490 0%, #2563eb 45%, #312e81 100%);
    color: #fff;
    padding: 0;
}

.landing-metrics__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    padding: 2.75rem 16px 3rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-metric {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.landing-metric__value {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: 0.01em;
}

.landing-metric__label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 768px) {
    .landing-gallery {
        grid-template-columns: 1fr;
    }

    .landing-hero__logo img {
        max-width: 320px;
    }
}

/* Degree section embedded from local_educator */
.landing-degree.degree-page-redesign {
    background: transparent;
    min-height: auto;
    padding: 0;
    padding-top: 20px;
    margin: 0;
}

.landing-degree .degree-container-main {
    padding: 2.5rem 0 3rem;
}

@media (max-width: 640px) {
    .landing-degree.degree-page-redesign {
        padding-top: 0;
    }
    .landing-degree .degree-container-main {
        padding-left: 16px;
        padding-right: 16px;
    }
    .landing-degree .degree-card {
        margin-bottom: 1.5rem;
    }
}

.landing-degree .quick-actions-section {
    margin-top: 1rem;
}

.landing-degree .info-banner {
    margin-top: 1.5rem;
}

.landing-degree .uppercase {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Prevent width overflow from educator hero defaults when embedded */
.landing-degree .degree-hero {
    width: 100%;
    margin-left: 0;
    overflow: hidden;
}

.landing-degree .degree-page-redesign {
    overflow: hidden;
}

.landing-mobile-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    display: none;
    align-items: center;
    justify-content: space-evenly;
    padding: 0 8px;
    padding-bottom: 0;
    z-index: 1000;
    backdrop-filter: blur(6px);
}

.landing-mobile-footer__link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 4px;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.landing-mobile-footer__link i {
    font-size: 1.3rem;
    color: #0e7490;
    transition: color 0.2s ease;
}

.landing-mobile-footer__link:focus-visible,
.landing-mobile-footer__link:hover {
    background: #e0f2fe;
    color: #0c4a6e;
    text-decoration: none;
}

.landing-mobile-footer__link:focus-visible i,
.landing-mobile-footer__link:hover i {
    color: #0284c7;
}

@media (max-width: 768px) {
    body[id^="page-local-landing"] #page {
        padding-bottom: 0;
    }
    .landing-mobile-footer {
        display: flex;
    }
}

/* Program page overrides (landing) - remove hover overlay/icon, keep image zoom */
.program-page-redesign .program-overlay {
    background: transparent !important;
    opacity: 0 !important;
    pointer-events: none !important;
    display: none !important;
}

.program-page-redesign .program-card:hover .program-overlay,
.program-page-redesign .program-card:focus-within .program-overlay {
    opacity: 0 !important;
    display: none !important;
}

.program-page-redesign .program-icon-large {
    display: none !important;
}
