/* ===================================
   FRAPPE OVERRIDES
   =================================== */

/* Global Logo Hover Animation */
@keyframes logo-bounce {
    0% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.15) rotate(-3deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    75% {
        transform: scale(1.12) rotate(2deg);
    }
    100% {
        transform: scale(1.1) rotate(5deg);
    }
}

.nav-logo,
.navbar-home img,
.navbar-brand img,
.navbar-logo img {
    transition: filter 0.3s ease;
}

.nav-logo:hover,
.navbar-home img:hover,
.navbar-brand img:hover,
.navbar-logo img:hover {
    animation: logo-bounce 0.5s ease-out forwards;
    filter: brightness(1.1);
}

/* Override .navbar-home img with specificity (0,1,1) */
.navbar-home img {
    max-height: 38px !important;
    width: auto !important;
}

.bit-managed-staff-workspace-transition {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    z-index: 2147483647;
    background: #fff5eb;
    transition: none;
}

body.bit-managed-staff-workspace-transitioning .bit-managed-staff-workspace-transition {
    opacity: 1;
    visibility: visible;
}

.bit-managed-staff-workspace-transition__content {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

.bit-managed-staff-workspace-transition__mark {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(234, 122, 52, 0.24);
    box-shadow: 0 12px 28px rgba(154, 74, 31, 0.12);
}

.bit-managed-staff-workspace-transition__mark::after {
    content: "";
    position: absolute;
    inset: -7px;
    border: 2px solid rgba(234, 122, 52, 0.16);
    border-top-color: rgba(234, 122, 52, 0.68);
    border-radius: 999px;
    animation: bit-managed-staff-workspace-transition-spin 0.85s linear infinite;
}

.bit-managed-staff-workspace-transition__logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    animation: bit-managed-staff-workspace-transition-pulse 0.85s ease-in-out infinite alternate;
}

.bit-managed-staff-workspace-transition p {
    margin: 0;
    color: #b95522;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

@keyframes bit-managed-staff-workspace-transition-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes bit-managed-staff-workspace-transition-pulse {
    from {
        transform: scale(0.96);
        opacity: 0.84;
    }
    to {
        transform: scale(1.04);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bit-managed-staff-workspace-transition,
    .bit-managed-staff-workspace-transition__mark::after,
    .bit-managed-staff-workspace-transition__logo {
        animation: none !important;
        transition: none !important;
    }
}

/* Override Frappe .navbar-brand img from website.bundle.css */
.navbar-brand img {
    display: block !important;
    max-width: 150px !important;
    max-height: 38px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}
/* ===================================
   LOGIN PAGE NAVBAR - LANDING PAGE STYLE
   =================================== */

body.for-login .navbar,
body.for-signup .navbar,
body.for-forgot .navbar,
body[data-path="login"] .navbar,
body[data-path="signup"] .navbar 

/* Login navbar outer container */
body.for-login .navbar,
body.for-signup .navbar,
body.for-forgot .navbar,
body[data-path="login"] .navbar,
body[data-path="signup"] .navbar {
    width: auto !important;
    max-width: 100% !important;
    margin: 50px auto -26px auto !important;
    background: #ffffff00 !important;
    border-bottom: 1px solid #e2e2e200 !important;
    display: flex !important;
    justify-content: center !important;
}

/* Login navbar inner container with neumorphic style */
body.for-login .navbar .container,
body.for-signup .navbar .container,
body.for-forgot .navbar .container,
body[data-path="login"] .navbar .container,
body[data-path="signup"] .navbar .container,
body.for-login .navbar > div,
body.for-signup .navbar > div,
body.for-forgot .navbar > div {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    background: var(--bit-public-card-bg) !important;
    padding: 10px 24px !important;
    border-radius: 60px !important;
    width: fit-content !important;
    max-width: calc(100vw - 48px) !important;
    min-width: 0 !important;
    margin: 1px auto -26px auto !important;
    box-shadow: 
        10px 10px 20px rgba(148, 163, 184, 0.3),
        -10px -10px 20px rgba(255, 255, 255, 0.9),
        0 4px 20px rgba(30, 58, 138, 0.1) !important;

}

/* Login navbar brand section */
body.for-login .navbar .navbar-brand,
body.for-signup .navbar .navbar-brand,
body.for-forgot .navbar .navbar-brand,
body[data-path="login"] .navbar .navbar-brand,
body[data-path="signup"] .navbar .navbar-brand,
body.for-login .navbar .navbar-home,
body.for-signup .navbar .navbar-home,
body.for-forgot .navbar .navbar-home {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--bit-public-dark-text) !important;
    margin: 0 auto !important;
    text-decoration: none !important;
    text-align: center !important;
}

/* Login navbar logo styling */
body.for-login .navbar img,
body.for-signup .navbar img,
body.for-forgot .navbar img,
body[data-path="login"] .navbar img,
body[data-path="signup"] .navbar img,
body.for-login .navbar .navbar-brand img,
body.for-signup .navbar .navbar-brand img,
body.for-forgot .navbar .navbar-brand img,
body.for-login .navbar .navbar-home img,
body.for-signup .navbar .navbar-home img,
body.for-forgot .navbar .navbar-home img {
    height: 40px !important;
    width: auto !important;
    max-height: 40px !important;
    object-fit: contain !important;
    margin: 0 !important;
    display: block !important;
}

/* Add brand text next to logo */
body.for-login .navbar .navbar-brand::after,
body.for-signup .navbar .navbar-brand::after,
body.for-forgot .navbar .navbar-brand::after,
body[data-path="login"] .navbar .navbar-brand::after,
body[data-path="signup"] .navbar .navbar-brand::after,
body.for-login .navbar .navbar-home::after,
body.for-signup .navbar .navbar-home::after,
body.for-forgot .navbar .navbar-home::after {
    content: "Board of Industrial Training";
    font-size: 15px;
    font-weight: 700;
    color: var(--bit-public-dark-text) !important;
    line-height: 1.1;
}

/* Keep the compact login navbar adjustments valid and isolated for smaller screens. */
@media (max-width: 768px) {
    body.for-login .navbar,
    body.for-signup .navbar,
    body.for-forgot .navbar,
    body[data-path="login"] .navbar,
    body[data-path="signup"] .navbar {
        width: 100% !important;
        margin: 16px auto -12px auto !important;
    }

    body.for-login .navbar .container,
    body.for-signup .navbar .container,
    body.for-forgot .navbar .container,
    body[data-path="login"] .navbar .container,
    body[data-path="signup"] .navbar .container,
    body.for-login .navbar > div,
    body.for-signup .navbar > div,
    body.for-forgot .navbar > div {
        width: fit-content !important;
        max-width: calc(100% - 32px) !important;
        padding: 14px 16px !important;
        border-radius: 8px !important;
    }

    body.for-login .navbar .navbar-brand::after,
    body.for-signup .navbar .navbar-brand::after,
    body.for-forgot .navbar .navbar-brand::after,
    body[data-path="login"] .navbar .navbar-brand::after,
    body[data-path="signup"] .navbar .navbar-brand::after,
    body.for-login .navbar .navbar-home::after,
    body.for-signup .navbar .navbar-home::after,
    body.for-forgot .navbar .navbar-home::after {
        display: none;
    }
}
/* Hide insert buttons (Above, Below, etc.) in child table grid view */
.grid-row-open .btn-open-row,
.grid-row-open .grid-insert-row-below,
.grid-row-open .grid-insert-row,
.grid-row-open .grid-duplicate-row,
.grid-row-open .grid-move-row {
    display: none !important;
}

/* Hide the insert buttons container if it becomes empty */
.grid-row-open .row-actions {
    display: none !important;
}

.grid-row-open .grid-footer-toolbar {
    display: none !important;
}

.grid-row .row-index .grid-row-check {
    display: none !important;
}

/* Previous prompt: keep shared Desk/list/form surfaces theme-aware for dark mode. */
@media (min-width: 576px) {
    body {
        background-color: var(--bg-color) !important;
    }
}
.for-login .page-card, .for-forgot .page-card,
.for-login-with-email-link .page-card,
.for-signup .page-card, .for-email-login .page-card {
    position: relative !important;
    overflow: hidden !important;
    padding: 34px 60px !important;
    background-color: #ffffff !important;
    max-width: 464px !important;
    margin: 80px auto 30px auto !important;
    border-radius: 8px !important;
    border: 1px solid rgba(234, 122, 52, 0.18) !important;
    box-shadow: 0 16px 34px rgba(154, 74, 31, 0.08) !important;
}

.for-login .page-card::before,
.for-forgot .page-card::before,
.for-login-with-email-link .page-card::before,
.for-signup .page-card::before,
.for-email-login .page-card::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #ea7a34, #f0a36e) !important;
}

/*
 * Keep auth-page entry cues subtle: same BIT logo handoff, but smaller and
 * shorter-lived so login/signup still feel calm and professional.
 */
.bit-auth-launch-screen {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    pointer-events: none;
    z-index: 60;
    background: rgba(255, 245, 235, 0.76);
    animation: bit-auth-launch-fade 0.58s ease forwards;
}

.bit-auth-launch-screen__content {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

.bit-auth-launch-screen__mark {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(234, 122, 52, 0.24);
    box-shadow: 0 12px 28px rgba(154, 74, 31, 0.12);
}

.bit-auth-launch-screen__mark::after {
    content: "";
    position: absolute;
    inset: -7px;
    border: 2px solid rgba(234, 122, 52, 0.16);
    border-top-color: rgba(234, 122, 52, 0.68);
    border-radius: 999px;
    animation: bit-auth-launch-spin 0.85s linear infinite;
}

.bit-auth-launch-screen__logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    animation: bit-auth-launch-pulse 0.85s ease-in-out infinite alternate;
}

.bit-auth-launch-screen p {
    margin: 0;
    color: #b95522;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

@keyframes bit-auth-launch-fade {
    0%,
    52% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes bit-auth-launch-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes bit-auth-launch-pulse {
    from {
        transform: scale(0.97);
        opacity: 0.9;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bit-auth-launch-screen,
    .bit-auth-launch-screen__mark::after,
    .bit-auth-launch-screen__logo,
    .landing-page .auth-launch-indicator__mark::after,
    .landing-page .auth-launch-indicator__logo {
        animation: none;
    }

    .bit-auth-launch-screen {
        opacity: 0;
        visibility: hidden;
    }
}

/*
 * Replace the broken default auth footer image with the correct partner mark
 * and let it sit naturally on the page without a card or pill treatment.
 */
body.for-login .web-footer,
body.for-signup .web-footer,
body.for-forgot .web-footer,
body[data-path="login"] .web-footer,
body[data-path="signup"] .web-footer {
    display: none !important;
}

.bit-auth-footer-mark {
    display: flex;
    justify-content: center;
    margin: 26px auto 14px;
    padding: 0 16px;
}

.bit-auth-footer-mark img {
    width: min(300px, 72vw);
    height: auto;
    display: block;
}

/* Mobile responsive login/signup pages */
@media (max-width: 768px) {
    .for-login .page-card, .for-forgot .page-card, .for-login-with-email-link .page-card, .for-signup .page-card, .for-email-login .page-card {
        padding: 24px 20px !important;
        max-width: 100% !important;
        margin: 480px 16px 0 16px !important;
        border-radius: 12px !important;
    }

    .bit-auth-footer-mark {
        margin-top: 22px;
    }
    
}
/* Prompt follow-up: keep Desk page-action primary buttons on the BIT orange palette. */
.page-actions,
.standard-actions {
    --btn-primary: #EA7A34;
}

.page-actions .btn.btn-primary,
.page-actions .btn.btn-primary.primary-action,
.standard-actions .btn.btn-primary,
.standard-actions .btn.btn-primary.primary-action {
    background: #EA7A34 !important;
    background-color: #EA7A34 !important;
    border-color: #EA7A34 !important;
    color: #ffffff !important;
    white-space: nowrap;
    --icon-stroke: currentColor;
    --icon-fill-bg: currentColor;
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
}

.page-actions .btn.btn-primary:hover,
.page-actions .btn.btn-primary:focus-visible,
.page-actions .btn.btn-primary.primary-action:hover,
.page-actions .btn.btn-primary.primary-action:focus-visible,
.standard-actions .btn.btn-primary:hover,
.standard-actions .btn.btn-primary:focus-visible,
.standard-actions .btn.btn-primary.primary-action:hover,
.standard-actions .btn.btn-primary.primary-action:focus-visible {
    background: #B95522 !important;
    background-color: #B95522 !important;
    border-color: #B95522 !important;
    color: #ffffff !important;
}

/*
 * Apply the BIT orange/white palette directly on auth pages so login and
 * signup feel like part of the same public experience as the landing page.
 */
.for-login .form-control,
.for-forgot .form-control,
.for-login-with-email-link .form-control,
.for-signup .form-control,
.for-email-login .form-control {
    background: rgba(255, 240, 227, 0.42) !important;
    border: 1px solid rgba(234, 122, 52, 0.18) !important;
    color: #101827 !important;
    box-shadow: none !important;
}

.for-login .form-control:focus,
.for-forgot .form-control:focus,
.for-login-with-email-link .form-control:focus,
.for-signup .form-control:focus,
.for-email-login .form-control:focus {
    border-color: #ea7a34 !important;
    box-shadow: 0 0 0 3px rgba(234, 122, 52, 0.12) !important;
    background: #ffffff !important;
}

.for-login .form-control::placeholder,
.for-forgot .form-control::placeholder,
.for-login-with-email-link .form-control::placeholder,
.for-signup .form-control::placeholder,
.for-email-login .form-control::placeholder {
    color: #7a6f66 !important;
}

.for-login .field-icon,
.for-forgot .field-icon,
.for-login-with-email-link .field-icon,
.for-signup .field-icon,
.for-email-login .field-icon,
.for-login .toggle-password,
.for-forgot .toggle-password,
.for-login-with-email-link .toggle-password,
.for-signup .toggle-password,
.for-email-login .toggle-password {
    color: #b95522 !important;
}

.for-login .forgot-password-message a,
.for-forgot .forgot-password-message a,
.for-login-with-email-link .forgot-password-message a,
.for-signup .sign-up-message a,
.for-email-login .sign-up-message a,
.for-login .sign-up-message a,
.for-forgot .sign-up-message a,
.for-login-with-email-link .sign-up-message a {
    color: #b95522 !important;
    font-weight: 700 !important;
}

.for-login .sign-up-message,
.for-forgot .sign-up-message,
.for-login-with-email-link .sign-up-message,
.for-signup .sign-up-message,
.for-email-login .sign-up-message,
.for-login .forgot-password-message,
.for-forgot .forgot-password-message,
.for-login-with-email-link .forgot-password-message {
    color: #5f5a55 !important;
}

.for-login .btn.btn-primary,
.for-forgot .btn.btn-primary,
.for-login-with-email-link .btn.btn-primary,
.for-signup .btn.btn-primary,
.for-email-login .btn.btn-primary {
    background: #ea7a34 !important;
    border-color: #ea7a34 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(154, 74, 31, 0.16) !important;
}

.for-login .btn.btn-primary:hover,
.for-forgot .btn.btn-primary:hover,
.for-login-with-email-link .btn.btn-primary:hover,
.for-signup .btn.btn-primary:hover,
.for-email-login .btn.btn-primary:hover,
.for-login .btn.btn-primary:focus-visible,
.for-forgot .btn.btn-primary:focus-visible,
.for-login-with-email-link .btn.btn-primary:focus-visible,
.for-signup .btn.btn-primary:focus-visible,
.for-email-login .btn.btn-primary:focus-visible {
    background: #b95522 !important;
    border-color: #b95522 !important;
}

.for-login .btn.btn-default,
.for-forgot .btn.btn-default,
.for-login-with-email-link .btn.btn-default,
.for-signup .btn.btn-default,
.for-email-login .btn.btn-default {
    background: #ffffff !important;
    border: 1px solid rgba(234, 122, 52, 0.18) !important;
    color: #101827 !important;
    box-shadow: none !important;
}

.for-login .btn.btn-default:hover,
.for-forgot .btn.btn-default:hover,
.for-login-with-email-link .btn.btn-default:hover,
.for-signup .btn.btn-default:hover,
.for-email-login .btn.btn-default:hover {
    border-color: rgba(234, 122, 52, 0.32) !important;
    color: #b95522 !important;
}

.for-login .page-card-head,
.for-forgot .page-card-head,
.for-login-with-email-link .page-card-head,
.for-signup .page-card-head,
.for-email-login .page-card-head {
    margin-bottom: 10px !important;
}
.page-card-head h4 {
    margin-top: 1rem;
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.01em;
    color: #1E3A8A !important;
    display: none !important;
}

/* Hide logo above login card */
body.for-login .page-card-head img,
body.for-signup .page-card-head img,
body.for-forgot .page-card-head img,
body.for-login .page-card-head .standard-image,
body.for-signup .page-card-head .standard-image,
body.for-forgot .page-card-head .standard-image,
body.for-login .page-card .standard-image,
body.for-signup .page-card .standard-image,
body.for-forgot .page-card .standard-image,
.for-login .page-card-head img,
.for-signup .page-card-head img,
.for-forgot .page-card-head img {
    display: none !important;
}

/* Previous prompt: these shared Desk shells should inherit Frappe theme colors. */
.layout-main-section.frappe-card {
    background-color: var(--card-bg) !important;
}
.page-form {
    background-color: var(--card-bg) !important;
}

/* This prompt: in dark mode the list-view filter/action bar should sit on the page background, not a lighter card strip. */
[data-theme="dark"] .layout-main-list .page-form,
[data-theme="dark"] .layout-main-section.layout-main-list .page-form {
    background-color: var(--bg-color) !important;
}

.std-form-layout>.form-layout>.form-page {
    background-color: var(--card-bg);
}
.form-tabs-list {

    background-color: var(--card-bg);
}
/* hide sidebar label */
.desk-sidebar .standard-sidebar-label {
    display: none !important;
}
.widget {
        background-color: var(--card-bg);
}
/* ===================================
   LANDING PAGE STYLES
   =================================== */

/* Previous prompt follow-up: avoid overriding Frappe theme tokens like --card-bg in Desk. */
/* Shared color tokens used by lightweight public-page overrides above. */
:root {
    --bit-public-card-bg: #ffffff;
    --bit-public-dark-text: #101827;
    --medium-text: #5f5a55;
    --shadow-light: rgba(255, 255, 255, 0.9);
    --shadow-dark: rgba(154, 74, 31, 0.08);
}

.form-tabs-list .form-tabs .nav-item .nav-link {
    color: var(--text-light);
    padding: 10px 0;
    margin: 0 var(--margin-md);
    background-color: var(--card-bg);
    border: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-tabs .nav-link {
    color: var(--text-muted);
}

/*
 * Keep standard Frappe shells fully theme-driven in dark mode so shared app
 * branding does not leave light strips behind on list, form, or report pages.
 */
html[data-theme="dark"] .layout-main-section:has(.frappe-list),
html[data-theme="dark"] .layout-main-section:has(.std-form-layout),
html[data-theme="dark"] .layout-main-section:has(.form-tabs-list),
html[data-theme="dark"] .layout-main-section:has(.report-wrapper) {
    background: var(--bg-color) !important;
}

html[data-theme="dark"] .layout-main-section.frappe-card,
html[data-theme="dark"] .page-form,
html[data-theme="dark"] .std-form-layout > .form-layout > .form-page,
html[data-theme="dark"] .form-tabs-list,
html[data-theme="dark"] .form-tabs-list .form-tabs .nav-item .nav-link,
html[data-theme="dark"] .widget {
    background-color: var(--card-bg) !important;
}

html[data-theme="dark"] .nav-tabs .nav-link,
html[data-theme="dark"] .form-tabs-list .form-tabs .nav-item .nav-link {
    color: var(--text-muted) !important;
}

html[data-theme="dark"] .nav-tabs .nav-link.active,
html[data-theme="dark"] .nav-tabs .nav-link[aria-selected="true"],
html[data-theme="dark"] .form-tabs-list .form-tabs .nav-item .nav-link.active,
html[data-theme="dark"] .form-tabs-list .form-tabs .nav-item .nav-link[aria-selected="true"] {
    color: var(--text-color) !important;
}

html[data-theme="dark"] .list-row .level-right {
    background-color: var(--bg-color) !important;
}

html[data-theme="dark"] .list-row-head,
html[data-theme="dark"] .list-row-head .level-right {
    background-color: var(--subtle-fg) !important;
}

/*
 * Landing page rules stay scoped to `.landing-page` so login, webforms, and
 * other public routes can keep the default Frappe layout and background.
 */
html.landing-root,
body.landing-page {
    /*
     * Give the browser canvas and the landing page itself the same backdrop so
     * extra pull/overscroll does not reveal a mismatched white surface.
     */
    background-color: #fff7ef;
    overscroll-behavior-y: none;
}

.landing-page,
.landing-page * {
    box-sizing: border-box;
}

.landing-page {
    --landing-orange: #ea7a34;
    --landing-orange-dark: #b95522;
    --landing-orange-soft: #fff0e3;
    --landing-orange-line: rgba(234, 122, 52, 0.24);
    --landing-orange-border: rgba(154, 74, 31, 0.16);
    --landing-ink: #101827;
    --landing-muted: #5f5a55;
    --landing-bg: #fffaf6;
    --landing-panel: rgba(255, 244, 236, 0.9);
    --landing-card: rgba(255, 255, 255, 0.84);
    --landing-shadow: 0 18px 42px rgba(154, 74, 31, 0.08);
    --landing-green: #2f9e58;
    --landing-green-soft: #edf8f1;
    --landing-red: #d9573b;
    --landing-red-soft: #fff1ee;
    --landing-ink-soft: #f5f5f5;
    --landing-font-body: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --landing-font-display: "Sora", "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    position: relative;
    isolation: isolate;
    font-family: var(--landing-font-body);
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    background: transparent;
    color: var(--landing-ink);
    overflow-x: hidden;
    min-height: 100vh;
}

.landing-page::before,
.landing-page::after {
    content: none;
}

.landing-page .container {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 0 24px;
}

.landing-page .text-center {
    text-align: center;
}

/* Retain the existing card hook so the landing page stays easy to roll back. */
.landing-page .neuro-card {
    position: relative;
    overflow: hidden;
    background: var(--landing-card);
    border: 1px solid var(--landing-orange-border);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--landing-shadow);
}

.landing-page .neuro-card::before {
    content: none;
}

.landing-page .btn-primary,
.landing-page .btn-secondary {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 800;
    font-family: var(--landing-font-display);
    line-height: 1.1;
    text-decoration: none;
    transition:
        transform 0.16s ease,
        background-color 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease,
        box-shadow 0.16s ease;
}

.landing-page .btn-primary {
    background: var(--landing-orange);
    color: var(--landing-ink);
    box-shadow: var(--landing-shadow);
}

.landing-page .btn-primary:hover,
.landing-page .btn-primary:focus-visible {
    background: var(--landing-orange-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

.landing-page .btn-secondary {
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(15, 23, 42, 0.1);
    color: var(--landing-ink);
}

.landing-page .btn-secondary:hover,
.landing-page .btn-secondary:focus-visible {
    background: var(--landing-orange-dark);
    border-color: var(--landing-orange-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

.landing-page .btn-large {
    min-height: 48px;
    padding: 14px 20px;
}

.landing-page .navbar {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 12px 0 0;
    background: linear-gradient(180deg, rgba(255, 250, 246, 0.88) 68%, rgba(255, 250, 246, 0));
}

.landing-page .navbar.is-auto-hide-enabled {
    will-change: transform, opacity;
    transition:
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.3s ease;
}

.landing-page .navbar.is-auto-hide-enabled.is-hidden {
    transform: translateY(calc(-100% - 18px));
    opacity: 0;
    pointer-events: none;
}

.landing-page .navbar.is-auto-hide-enabled.is-revealed,
.landing-page .navbar.is-auto-hide-enabled:not(.is-hidden) {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.landing-page .navbar-reveal-zone {
    position: fixed;
    inset: 0 0 auto;
    height: var(--landing-nav-height, 76px);
    z-index: 41;
    background: transparent;
    pointer-events: none;
}

.landing-page.navbar-auto-hide-enabled.navbar-is-hidden .navbar-reveal-zone {
    pointer-events: auto;
}

.landing-page .navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 249, 244, 0.74));
    border: 1px solid var(--landing-orange-border);
    border-top: 4px solid var(--landing-orange);
    border-radius: 8px;
    padding: 14px 20px;
    box-shadow:
        0 14px 34px rgba(154, 74, 31, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.landing-page .navbar.is-scrolled .container {
    box-shadow: 0 18px 34px rgba(154, 74, 31, 0.12);
}

/*
 * Add a subtle edge wash so the header reads as a single premium control bar
 * without introducing a new palette.
 */
.landing-page .navbar .container::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(255, 240, 227, 0.18),
        transparent 14%,
        transparent 86%,
        rgba(255, 240, 227, 0.18)
    );
}

/* Keep the header balanced by treating brand, primary nav, and actions as separate zones. */
.landing-page .nav-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
}

.landing-page .nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--landing-ink);
    font-family: var(--landing-font-display);
    font-size: 0.93rem;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.landing-page .nav-brand-text {
    line-height: 1.08;
    text-decoration: none !important;
}

.landing-page .nav-brand:hover,
.landing-page .nav-brand:focus-visible {
    color: var(--landing-ink);
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

/*
 * Keep the brand anchor visually clean even if broader website link rules add
 * underlines or other decorations elsewhere in the shared stylesheet.
 */
.landing-page .nav-brand,
.landing-page .nav-brand:link,
.landing-page .nav-brand:visited,
.landing-page .nav-brand:hover,
.landing-page .nav-brand:focus-visible,
.landing-page .nav-brand *,
.landing-page .nav-brand *::before,
.landing-page .nav-brand *::after {
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.landing-page .nav-brand-mark {
    display: inline-flex;
    width: 31px;
    height: 54px;
    flex: 0 0 31px;
    align-items: center;
    justify-content: flex-end;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.landing-page .nav-logo {
    width: 52px;
    height: 52px;
    max-width: none;
    object-fit: contain;
    flex-shrink: 0;
}

.landing-page .nav-center {
    display: flex;
    justify-content: center;
    min-width: 0;
    padding: 0 10px;
}

.landing-page .nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.landing-page .nav-menu a {
    position: relative;
    color: var(--landing-muted);
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0;
    border-radius: 0;
    font-size: 0.82rem;
    font-weight: 680;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 0.16s ease,
        transform 0.16s ease;
}

.landing-page .nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 999px;
    background: rgba(234, 122, 52, 0.65);
    opacity: 0;
    transform: scaleX(0.55);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.landing-page .nav-menu a:hover {
    color: var(--landing-ink);
}

.landing-page .nav-menu a:hover::after,
.landing-page .nav-menu a:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

.landing-page .nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding-left: 14px;
    border-left: 1px solid var(--landing-orange-line);
}

.landing-page .nav-actions .btn-primary,
.landing-page .nav-actions .btn-secondary {
    position: relative;
    min-height: 34px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 0.84rem;
    font-weight: 740;
    line-height: 1;
    white-space: nowrap;
}

/*
 * Give sign up and login a subtle pill treatment so they read as auth actions
 * without overpowering the rest of the top bar.
 */
.landing-page .nav-actions a[href^="/login"] {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(234, 122, 52, 0.18);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 247, 241, 0.68));
    box-shadow: 0 8px 18px rgba(154, 74, 31, 0.06);
}

.landing-page .nav-actions a[href="/login"] {
    color: var(--landing-ink) !important;
}

.landing-page .nav-actions a[href="/login#signup"] {
    color: var(--landing-orange-dark) !important;
}

/* Keep header redirects visually integrated with the navbar instead of boxed off. */
.landing-page .nav-actions .btn-primary::after,
.landing-page .nav-actions .btn-secondary::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 999px;
    background: rgba(234, 122, 52, 0.65);
    opacity: 0;
    transform: scaleX(0.5);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

/*
 * Keep nav actions readable even though broader public-button rules exist
 * earlier in the shared stylesheet.
 */
.landing-page .nav-actions .btn-primary,
.landing-page .nav-actions .btn-primary:hover,
.landing-page .nav-actions .btn-primary:focus-visible,
.landing-page .nav-actions .btn-secondary,
.landing-page .nav-actions .btn-secondary:hover,
.landing-page .nav-actions .btn-secondary:focus-visible {
    color: var(--landing-ink) !important;
}

.landing-page .nav-actions .btn-primary {
    color: var(--landing-orange-dark) !important;
}

.landing-page .nav-actions .btn-primary:hover,
.landing-page .nav-actions .btn-primary:focus-visible,
.landing-page .nav-actions .btn-secondary:hover,
.landing-page .nav-actions .btn-secondary:focus-visible {
    background: transparent;
    box-shadow: none;
    transform: translateY(0);
}

.landing-page .nav-actions a[href^="/login"]:hover,
.landing-page .nav-actions a[href^="/login"]:focus-visible {
    background: linear-gradient(180deg, rgba(255, 248, 243, 0.98), rgba(255, 241, 232, 0.94));
    box-shadow: 0 10px 22px rgba(154, 74, 31, 0.08);
}

.landing-page .nav-actions .btn-primary:hover::after,
.landing-page .nav-actions .btn-primary:focus-visible::after,
.landing-page .nav-actions .btn-secondary:hover::after,
.landing-page .nav-actions .btn-secondary:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

.landing-page .nav-actions a[href^="/login"]::after {
    display: none;
}

/*
 * Keep the programs handoff lightweight and reversible: use the existing logo
 * and a short-lived overlay instead of a separate asset or heavy transition.
 */
.landing-page .programs-launch-indicator {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    z-index: 90;
    background: rgba(255, 250, 246, 0.72);
}

.landing-page.programs-launching .programs-launch-indicator {
    opacity: 1;
    visibility: visible;
}

.landing-page .auth-launch-indicator {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.16s ease, visibility 0.16s ease;
    z-index: 89;
    background: rgba(255, 250, 246, 0.62);
}

.landing-page.auth-launching .auth-launch-indicator {
    opacity: 1;
    visibility: visible;
}

.landing-page .auth-launch-indicator__content {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

.landing-page .auth-launch-indicator__mark {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--landing-orange-line);
    box-shadow: 0 10px 24px rgba(154, 74, 31, 0.1);
}

.landing-page .auth-launch-indicator__mark::after {
    content: "";
    position: absolute;
    inset: -7px;
    border: 2px solid rgba(234, 122, 52, 0.16);
    border-top-color: rgba(234, 122, 52, 0.68);
    border-radius: 999px;
    animation: landing-programs-spinner 0.85s linear infinite;
}

.landing-page .auth-launch-indicator__logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    animation: landing-programs-pulse 0.85s ease-in-out infinite alternate;
}

.landing-page .auth-launch-indicator p {
    margin: 0;
    color: var(--landing-ink);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.landing-page .programs-launch-indicator__content {
    display: grid;
    justify-items: center;
    gap: 12px;
    text-align: center;
}

.landing-page .programs-launch-indicator__mark {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--landing-orange-line);
    box-shadow: 0 12px 30px rgba(154, 74, 31, 0.12);
}

.landing-page .programs-launch-indicator__mark::after {
    content: "";
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(234, 122, 52, 0.18);
    border-top-color: rgba(234, 122, 52, 0.72);
    border-radius: 999px;
    animation: landing-programs-spinner 0.85s linear infinite;
}

.landing-page .programs-launch-indicator__logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    animation: landing-programs-pulse 0.85s ease-in-out infinite alternate;
}

.landing-page .programs-launch-indicator p {
    margin: 0;
    color: var(--landing-ink);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

@keyframes landing-programs-spinner {
    to {
        transform: rotate(360deg);
    }
}

@keyframes landing-programs-pulse {
    from {
        transform: scale(0.96);
        opacity: 0.88;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.landing-page .hero-section {
    padding: 18px 0 34px;
}

.landing-page .hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.82fr);
    gap: 36px;
    min-height: min(660px, calc(100svh - 152px));
    align-items: center;
    position: relative;
    z-index: 1;
}

.landing-page .hero-text {
    display: grid;
    align-content: start;
    gap: 0;
    max-width: 52rem;
    padding: 24px 26px 22px;
    border: 1px solid rgba(255, 240, 227, 0.92);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 250, 246, 0.9), rgba(255, 248, 242, 0.62));
    box-shadow: 0 18px 40px rgba(154, 74, 31, 0.08);
}

.landing-page .hero-badge,
.landing-page .section-badge,
.landing-page .hero-panel-label {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 18px;
    border: 1px solid var(--landing-orange-line);
    border-radius: 8px;
    background: var(--landing-orange-soft);
    color: var(--landing-orange-dark);
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.landing-page .hero-badge i,
.landing-page .section-badge i,
.landing-page .hero-panel-label i,
.landing-page .trust-item i,
.landing-page .hero-cta i,
.landing-page .feature-list-small i,
.landing-page .program-meta i,
.landing-page .benefit i,
.landing-page .enrollment-note i,
.landing-page .featured-badge i {
    width: 1em;
    text-align: center;
    flex-shrink: 0;
}

.landing-page .hero-title {
    margin: 12px 0 14px;
    max-width: none;
    color: var(--landing-ink);
    font-family: var(--landing-font-display);
    font-size: 3.15rem;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 0.98;
    text-wrap: balance;
}

.landing-page .highlight-text {
    color: var(--landing-orange-dark);
}

.landing-page .hero-subtitle {
    margin: 0 0 16px;
    max-width: 46ch;
    color: var(--landing-muted);
    font-size: 1.08rem;
    line-height: 1.64;
}

.landing-page .hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.landing-page .trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.landing-page .trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 13px;
    border: 1px solid var(--landing-orange-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--landing-shadow);
    color: var(--landing-ink);
    font-size: 0.91rem;
    font-weight: 700;
}

.landing-page .trust-item i {
    color: var(--landing-green);
}

/*
 * Keep the Student Access block compact by letting the copy fill the top
 * naturally and treating the two remaining stats as featured cards instead of
 * stretched placeholders.
 */
.landing-page .hero-visual {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 20px 22px 22px;
    background: linear-gradient(180deg, var(--landing-panel), rgba(255, 255, 255, 0.78) 35%);
    border: 1px solid var(--landing-orange-border);
    border-radius: 8px;
    box-shadow: var(--landing-shadow);
    overflow: hidden;
}

.landing-page .hero-panel-content {
    display: grid;
    align-content: start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    padding-right: 0;
}

.landing-page .hero-panel-copy-group {
    display: grid;
    gap: 8px;
    width: 100%;
    max-width: none;
}

.landing-page .hero-panel-title {
    margin: 0;
    max-width: none;
    color: var(--landing-ink);
    font-family: var(--landing-font-display);
    font-size: 1.72rem;
    font-weight: 820;
    letter-spacing: 0;
    line-height: 1.12;
    text-wrap: balance;
}

.landing-page .hero-panel-copy {
    margin: 0;
    color: #433d38;
    max-width: 36ch;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.66;
}

.landing-page .stats-grid-hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 14px;
    align-self: stretch;
    margin-top: 8px;
}

.landing-page .stat-bubble {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-height: 104px;
    padding: 16px 18px;
    gap: 14px;
}

.landing-page .stat-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 0;
    font-size: 1.04rem;
}

.landing-page .stat-icon.orange {
    background: var(--landing-orange-soft);
    color: var(--landing-orange-dark);
}

.landing-page .stat-icon.green {
    background: var(--landing-green-soft);
    color: var(--landing-green);
}

.landing-page .stat-icon.red {
    background: var(--landing-red-soft);
    color: var(--landing-red);
}

.landing-page .stat-icon.ink {
    background: var(--landing-ink-soft);
    color: var(--landing-ink);
}

.landing-page .stat-copy {
    display: grid;
    gap: 4px;
    min-height: 0;
    align-content: center;
}

.landing-page .stat-number {
    margin: 0;
    color: var(--landing-ink);
    font-family: var(--landing-font-display);
    font-size: 1.9rem;
    letter-spacing: 0;
    line-height: 1;
    font-weight: 850;
}

.landing-page .stat-label {
    color: #4a443f;
    font-size: 0.99rem;
    font-weight: 500;
    line-height: 1.46;
}

.landing-page .features-section,
.landing-page .programs-section,
.landing-page .testimonials-section,
.landing-page .enrollment-section {
    padding: 80px 0;
}

/*
 * The shorter "How BIT Helps" section needs a clearer visual handoff so the
 * next section does not feel like it starts inside the same block.
 */
.landing-page .features-section {
    padding-bottom: 104px;
}

.landing-page .programs-section {
    position: relative;
    padding-top: 110px;
}

.landing-page .programs-section::before {
    content: none;
}

/*
 * Give anchored sections enough breathing room under the sticky header even
 * when navigation falls back to the browser's native hash-jump behavior.
 */
.landing-page .section-header,
.landing-page .enrollment-card {
    scroll-margin-top: 136px;
}

.landing-page .section-header {
    max-width: 760px;
    margin: 0 auto 28px;
    padding: 22px 26px 24px;
    border: 1px solid rgba(255, 240, 227, 0.9);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 250, 246, 0.9), rgba(255, 248, 242, 0.64));
    box-shadow: 0 16px 36px rgba(154, 74, 31, 0.08);
    text-align: center;
}

.landing-page .section-title {
    margin: 16px 0 12px;
    color: var(--landing-ink);
    font-family: var(--landing-font-display);
    font-size: 2.7rem;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.08;
    text-wrap: balance;
}

.landing-page .section-subtitle {
    margin: 0 auto;
    max-width: 42rem;
    color: #423c37;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.68;
}

.landing-page .features-grid,
.landing-page .programs-grid,
.landing-page .training-areas-grid,
.landing-page .testimonials-grid {
    display: grid;
    gap: 20px;
}

.landing-page .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.landing-page .programs-grid,
.landing-page .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.landing-page .training-areas-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.landing-page .feature-card,
.landing-page .program-card,
.landing-page .training-area-card,
.landing-page .testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    text-align: left;
}

.landing-page .feature-card__head,
.landing-page .training-area-card__lead {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 54px;
    min-width: 0;
}

.landing-page .feature-card__head {
    margin-bottom: 18px;
}

.landing-page .feature-icon,
.landing-page .program-icon,
.landing-page .author-avatar,
.landing-page .enrollment-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.35rem;
}

.landing-page .feature-icon,
.landing-page .program-icon,
.landing-page .author-avatar {
    margin-bottom: 16px;
}

.landing-page .feature-card__head .feature-icon,
.landing-page .training-area-card__lead .program-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.landing-page .feature-icon.orange,
.landing-page .program-icon.orange,
.landing-page .author-avatar.orange {
    background: var(--landing-orange-soft);
    color: var(--landing-orange-dark);
}

.landing-page .feature-icon.green,
.landing-page .program-icon.green,
.landing-page .author-avatar.green {
    background: var(--landing-green-soft);
    color: var(--landing-green);
}

.landing-page .feature-icon.red,
.landing-page .program-icon.red,
.landing-page .author-avatar.red,
.landing-page .enrollment-icon {
    background: var(--landing-red-soft);
    color: var(--landing-red);
}

.landing-page .feature-card h3,
.landing-page .program-card h3,
.landing-page .training-area-card h3,
.landing-page .testimonial-author h4 {
    margin: 0 0 12px;
    color: var(--landing-ink);
    font-family: var(--landing-font-display);
    font-size: 1.35rem;
    font-weight: 820;
    letter-spacing: 0;
    line-height: 1.15;
}

.landing-page .feature-card__head h3,
.landing-page .training-area-card__lead h3 {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-height: 54px;
    margin: 0;
}

.landing-page .feature-card p,
.landing-page .program-card p,
.landing-page .training-area-card p,
.landing-page .testimonial-text,
.landing-page .footer-section p {
    margin: 0 0 18px;
    color: #433d38;
    font-size: 1.04rem;
    font-weight: 500;
    line-height: 1.68;
}

.landing-page .feature-list-small {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.landing-page .feature-list-small li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--landing-ink);
    font-size: 0.96rem;
    font-weight: 600;
}

.landing-page .feature-list-small i,
.landing-page .benefit i {
    color: var(--landing-green);
}

.landing-page .program-badge,
.landing-page .training-area-count,
.landing-page .featured-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 12px;
    border: 1px solid var(--landing-orange-line);
    border-radius: 8px;
    background: var(--landing-orange-soft);
    color: var(--landing-orange-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/*
 * Keep the landing grid in sync with the eight categories on the programs
 * page while making the cards compact enough for clean anchor jumps.
 */
.landing-page .training-area-card {
    display: flex;
    flex-direction: column;
    align-content: initial;
    gap: 12px;
    padding: 18px;
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease;
}

.landing-page .training-area-card:hover,
.landing-page .training-area-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(196, 125, 72, 0.18);
}

.landing-page .training-area-card:focus-visible {
    outline: 3px solid rgba(239, 124, 50, 0.22);
    outline-offset: 3px;
}

.landing-page .training-area-card__top {
    width: 100%;
    display: block;
    gap: 0;
    align-items: start;
}

.landing-page .training-area-card .program-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.landing-page .training-area-card__lead {
    min-height: 48px;
}

.landing-page .training-area-card__lead h3 {
    min-height: 48px;
}

.landing-page .training-area-count {
    margin-top: auto;
    margin-bottom: 0;
    margin-left: 0;
    align-self: center;
    min-height: 34px;
    padding: 7px 11px;
    font-size: 0.68rem;
}

.landing-page .training-area-card h3 {
    margin-bottom: 0;
    font-size: 1.18rem;
    line-height: 1.18;
}

.landing-page .training-area-card p {
    margin-bottom: 0;
    color: #4d4741;
    font-size: 1rem;
    line-height: 1.68;
}

.landing-page .program-badge.new {
    background: var(--landing-red-soft);
    border-color: rgba(217, 87, 59, 0.2);
    color: var(--landing-red);
}

.landing-page .program-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--landing-muted);
    font-size: 0.92rem;
}

.landing-page .program-meta span,
.landing-page .skill-tag,
.landing-page .benefit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--landing-orange-line);
    border-radius: 8px;
    background: #ffffff;
}

.landing-page .program-meta i {
    color: var(--landing-orange-dark);
}

.landing-page .program-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.landing-page .program-card .btn-primary {
    margin-top: auto;
}

.landing-page .skill-tag {
    color: var(--landing-ink);
    font-size: 0.88rem;
    font-weight: 700;
}

.landing-page .training-area-card .skill-tag {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.8rem;
    line-height: 1.2;
}

.landing-page .landing-section-action {
    margin-top: 28px;
}

.landing-page .testimonial-card.featured {
    border-color: rgba(234, 122, 52, 0.28);
}

.landing-page .testimonial-text {
    min-height: 96px;
    font-size: 1rem;
    line-height: 1.58;
}

.landing-page .testimonial-author {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: auto;
}

.landing-page .author-avatar {
    flex-shrink: 0;
}

.landing-page .testimonial-author h4 {
    margin: 0 0 4px;
    font-size: 1.02rem;
}

.landing-page .testimonial-author p {
    margin: 0;
    color: var(--landing-muted);
    line-height: 1.5;
}

.landing-page .enrollment-card {
    text-align: center;
}

.landing-page .enrollment-icon {
    margin: 0 auto 20px;
}

.landing-page .enrollment-card h2 {
    margin: 0 0 14px;
    color: var(--landing-ink);
    font-family: var(--landing-font-display);
    font-size: 2.6rem;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.1;
    text-wrap: balance;
}

.landing-page .enrollment-card > p {
    max-width: 740px;
    margin: 0 auto 26px;
    color: var(--landing-muted);
    line-height: 1.7;
}

.landing-page .enrollment-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.landing-page .benefit {
    justify-content: center;
    color: var(--landing-ink);
    font-weight: 700;
}

.landing-page .enrollment-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.landing-page .enrollment-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--landing-muted);
    font-size: 0.94rem;
}

.landing-page .enrollment-note i {
    color: var(--landing-red);
}

.landing-page .footer {
    margin-top: 8px;
    padding: 40px 0 22px;
    background: linear-gradient(180deg, rgba(255, 247, 241, 0.46), rgba(255, 244, 236, 0.72));
    border-top: 1px solid var(--landing-orange-line);
}

.landing-page .footer-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 260px));
    gap: 18px 72px;
    align-items: start;
    justify-content: center;
    margin-bottom: 20px;
}

.landing-page .footer-section h4 {
    margin: 0;
    color: var(--landing-ink);
    font-size: 1.02rem;
    font-weight: 820;
}

.landing-page .footer-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.landing-page .footer-section--nav {
    min-width: 0;
    width: 100%;
    padding-top: 0;
}

.landing-page .footer-section--nav h4 {
    margin-bottom: 16px;
}

.landing-page .footer-link-list {
    display: grid;
    gap: 12px;
    width: 100%;
}

.landing-page .footer-section a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    padding: 2px 0;
    color: var(--landing-muted);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
}

.landing-page .footer-section a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    flex-shrink: 0;
    background: rgba(234, 122, 52, 0.24);
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.landing-page .footer-section a:hover {
    color: var(--landing-orange-dark);
}

.landing-page .footer-section a:hover::before {
    background: rgba(234, 122, 52, 0.62);
    transform: scale(1.1);
}

.landing-page .footer-bottom {
    display: grid;
    gap: 12px;
    justify-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--landing-orange-line);
    color: var(--landing-muted);
    font-size: 0.92rem;
    text-align: center;
}

.landing-page .footer-bottom p {
    margin: 0;
}

.landing-page .footer-partner-mark {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

.landing-page .footer-partner-mark img {
    width: min(280px, 70vw);
    height: auto;
    display: block;
}

/*
 * The landing enhancements only activate when JS marks the page as ready.
 * That keeps the content readable even if JS is unavailable.
 */
.landing-page.landing-page-ready .section-header,
.landing-page.landing-page-ready .hero-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.32s ease, transform 0.32s ease;
}

.landing-page .section-header.is-visible,
.landing-page .hero-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1280px) {
    .landing-page .training-areas-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 961px) {
    .landing-page .features-section,
    .landing-page .testimonials-section {
        min-height: 100svh;
        padding: 0;
    }

    .landing-page .features-section > .container,
    .landing-page .testimonials-section > .container {
        min-height: 100svh;
        display: grid;
        align-content: start;
        padding-top: 112px;
        padding-bottom: 128px;
    }
}

@media (max-width: 960px) {
    .landing-page .navbar-reveal-zone {
        display: none;
    }

    .landing-page .hero-text {
        padding: 20px 22px;
    }

    .landing-page .section-header {
        padding: 20px 22px 22px;
    }

    .landing-page .hero-content {
        grid-template-columns: 1fr;
        min-height: auto;
        align-items: start;
    }

    .landing-page .hero-visual {
        padding: 20px;
        min-height: auto;
    }

    .landing-page .hero-panel-content,
    .landing-page .hero-panel-copy-group {
        max-width: none;
        padding-right: 0;
    }

    .landing-page .nav-shell {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "brand menu actions";
        row-gap: 14px;
    }

    .landing-page .nav-brand {
        grid-area: brand;
    }

    .landing-page .nav-center {
        grid-area: menu;
        padding: 0 8px;
    }

    .landing-page .nav-menu {
        gap: 12px;
        padding: 0;
    }

    .landing-page .nav-menu a {
        min-height: 28px;
        padding: 0;
        font-size: 0.8rem;
    }

    .landing-page .nav-actions {
        grid-area: actions;
        justify-self: end;
        padding-left: 10px;
        gap: 6px;
    }

    .landing-page .nav-actions .btn-primary,
    .landing-page .nav-actions .btn-secondary {
        min-height: 32px;
        padding: 0;
        font-size: 0.78rem;
    }

    .landing-page .nav-actions a[href^="/login"] {
        min-height: 32px;
        padding: 0 10px;
    }

    .landing-page .hero-title {
        font-size: 3rem;
        max-width: 12.8ch;
    }

    .landing-page .training-areas-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-page .training-area-card {
        padding: 16px;
    }

    .landing-page .training-area-card h3 {
        font-size: 1.1rem;
    }

    .landing-page .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 24px;
    }
}

/*
 * Keep the first landing-page viewport comfortable on common desktop heights
 * like Edge at 100% zoom without changing the mobile layout.
 */
@media (min-width: 961px) and (max-height: 1100px) {
    .landing-page .hero-section {
        padding: 14px 0 34px;
    }

    .landing-page .hero-title {
        font-size: 3.08rem;
        max-width: none;
    }

    .landing-page .hero-subtitle {
        margin-bottom: 16px;
    }

    .landing-page .hero-visual {
        padding: 16px;
    }

    .landing-page .stats-grid-hero {
        padding-top: 8px;
    }

    .landing-page .stat-bubble {
        padding: 12px;
        min-height: 92px;
    }
}

@media (max-width: 720px) {
    .landing-page .container {
        padding: 0 16px;
    }

    .landing-page .hero-text {
        padding: 18px 18px 20px;
        border-radius: 20px;
    }

    .landing-page .section-header {
        padding: 18px 18px 20px;
        border-radius: 20px;
    }

    .landing-page .navbar .container {
        padding: 12px 14px;
    }

    .landing-page .nav-shell {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "actions";
        row-gap: 10px;
    }

    .landing-page .nav-center {
        display: none;
    }

    .landing-page .nav-actions {
        justify-self: stretch;
        justify-content: stretch;
        flex-wrap: wrap;
        gap: 8px;
        padding-left: 0;
        border-left: 0;
    }

    .landing-page .nav-actions .btn-primary,
    .landing-page .nav-actions .btn-secondary {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
        min-width: 0;
    }

    .landing-page .nav-actions a[href^="/login"] {
        padding: 0 12px;
    }

    .landing-page .nav-actions a:first-child {
        flex-basis: 100%;
    }

    .landing-page .hero-title {
        font-size: 2.7rem;
        max-width: 11.8ch;
    }

    .landing-page .hero-visual {
        padding: 18px;
        min-height: auto;
    }

    .landing-page .hero-panel-title {
        font-size: 1.68rem;
    }

    .landing-page .section-title,
    .landing-page .enrollment-card h2 {
        font-size: 2rem;
    }

    .landing-page .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .landing-page .footer-section--nav {
        max-width: 22rem;
        justify-self: center;
    }
}

@media (max-width: 560px) {
    .landing-page .training-areas-grid,
    .landing-page .stats-grid-hero {
        grid-template-columns: 1fr;
    }

    .landing-page .hero-cta,
    .landing-page .enrollment-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-page .hero-cta .btn-primary,
    .landing-page .hero-cta .btn-secondary,
    .landing-page .enrollment-actions .btn-primary,
    .landing-page .enrollment-actions .btn-secondary {
        width: 100%;
    }

    .landing-page .trust-badges,
    .landing-page .enrollment-benefits {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-page .benefit,
    .landing-page .trust-item {
        width: 100%;
        justify-content: center;
    }
}

/* Minimal landing refresh: simple hero, plain background, and compact mobile nav. */
html.landing-root,
body.landing-page {
    background-color: #fffaf6;
}

.landing-page {
    --landing-nav-height: 76px;
    --landing-bg: #fffaf6;
    --landing-card: #ffffff;
    --landing-shadow: 0 16px 34px rgba(154, 74, 31, 0.08);
    background: var(--landing-bg);
}

.landing-page::before,
.landing-page::after {
    content: none;
}

.landing-page .container {
    width: min(1080px, 100%);
}

.landing-page .nav-label-short,
.landing-page .nav-brand-short {
    display: none;
}

.landing-page .navbar {
    padding: 0;
    background:
        linear-gradient(180deg, rgba(255, 247, 240, 0.78), rgba(255, 255, 255, 0.96) 42%, rgba(255, 250, 246, 0.92));
    box-shadow: 0 10px 28px rgba(154, 74, 31, 0.08);
}

.landing-page .navbar::after {
    content: "";
    position: absolute;
    left: clamp(28px, 4vw, 54px);
    right: clamp(28px, 4vw, 54px);
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(234, 122, 52, 0.32), transparent);
    pointer-events: none;
}

.landing-page .navbar .container {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: none;
    min-height: var(--landing-nav-height);
    padding: 0 clamp(28px, 4vw, 54px);
    border: 0;
    border-bottom: 1px solid rgba(154, 74, 31, 0.12);
    border-top: 0;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 247, 0.96));
    box-shadow: none;
}

.landing-page .navbar .container::before {
    content: none;
}

.landing-page .nav-shell {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
}

.landing-page .nav-brand {
    font-size: 0.96rem;
    letter-spacing: 0;
}

.landing-page .nav-brand-text {
    min-width: 0;
}

.landing-page .nav-center {
    justify-content: center;
    padding: 0;
}

.landing-page .nav-actions {
    display: flex;
    align-items: center;
    gap: 26px;
    padding-left: 0;
    border-left: 0;
}

.landing-page .nav-actions .nav-link-action {
    position: relative;
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--landing-muted) !important;
    font-family: var(--landing-font-display);
    font-size: 0.9rem;
    font-weight: 780;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.landing-page .nav-programs-menu {
    position: relative;
    min-width: 0;
}

.landing-page .nav-programs-menu > summary {
    cursor: pointer;
    list-style: none;
}

.landing-page .nav-programs-menu > summary::-webkit-details-marker {
    display: none;
}

.landing-page .nav-programs-menu > summary i {
    color: var(--landing-orange-dark);
    font-size: 0.68rem;
    transition: transform 0.16s ease;
}

.landing-page .nav-programs-menu[open] > summary i {
    transform: rotate(180deg);
}

.landing-page .nav-programs-menu__list {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    z-index: 70;
    display: grid;
    gap: 6px;
    width: min(360px, calc(100vw - 32px));
    max-height: min(70vh, 430px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid rgba(234, 122, 52, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 52px rgba(15, 23, 42, 0.14);
    transform: translateX(-50%);
}

.landing-page .nav-programs-menu__list a {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background: #ffffff;
    color: var(--landing-ink);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.landing-page .nav-programs-menu__list a:first-child {
    border-color: rgba(234, 122, 52, 0.28);
    background: var(--landing-orange-soft);
    color: var(--landing-orange-dark);
}

.landing-page .nav-programs-menu__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 2px 0;
    color: rgba(78, 72, 67, 0.78);
    font-family: var(--landing-font-display);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    cursor: default;
    user-select: none;
}

.landing-page .nav-programs-menu__heading::after {
    content: "";
    height: 1px;
    flex: 1 1 auto;
    background: rgba(154, 74, 31, 0.16);
}

.landing-page .nav-programs-menu__list a span {
    flex-shrink: 0;
    color: var(--landing-orange-dark);
    font-size: 0.72rem;
    font-weight: 800;
}

.landing-page .nav-programs-menu__list a:hover,
.landing-page .nav-programs-menu__list a:focus-visible {
    border-color: rgba(234, 122, 52, 0.34);
    background: var(--landing-orange-soft);
    color: var(--landing-orange-dark);
    outline: none;
}

.landing-page .nav-actions .nav-link-action::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    border-radius: 999px;
    background: var(--landing-orange);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.16s ease;
}

.landing-page .nav-actions .nav-link-action:hover,
.landing-page .nav-actions .nav-link-action:focus-visible {
    color: var(--landing-ink) !important;
}

.landing-page .nav-actions .nav-link-action:hover::after,
.landing-page .nav-actions .nav-link-action:focus-visible::after {
    transform: scaleX(1);
}

.landing-page .nav-action-divider {
    width: 1px;
    height: 34px;
    background: rgba(154, 74, 31, 0.16);
}

.landing-page .nav-actions .btn-primary,
.landing-page .nav-actions .btn-secondary,
.landing-page .nav-actions a[href^="/login"] {
    min-height: 34px;
    padding: 0 20px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: none;
    color: var(--landing-ink) !important;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0;
}

.landing-page .nav-actions .btn-primary {
    background: #ffffff;
    border-color: rgba(234, 122, 52, 0.34);
    color: var(--landing-ink) !important;
}

.landing-page .nav-actions .btn-primary::after,
.landing-page .nav-actions .btn-secondary::after {
    content: none;
}

.landing-page .nav-actions .btn-primary:hover,
.landing-page .nav-actions .btn-primary:focus-visible {
    background: var(--landing-orange-soft);
    border-color: rgba(234, 122, 52, 0.48);
    color: var(--landing-orange-dark) !important;
}

.landing-page .nav-actions .btn-secondary:hover,
.landing-page .nav-actions .btn-secondary:focus-visible,
.landing-page .nav-actions a[href^="/login"]:hover,
.landing-page .nav-actions a[href^="/login"]:focus-visible {
    background: var(--landing-orange-soft);
    border-color: rgba(234, 122, 52, 0.32);
    color: var(--landing-orange-dark) !important;
    box-shadow: none;
}

.landing-page .hero-section {
    padding: 0;
}

.landing-page .hero-section > .container {
    width: 100%;
    max-width: none;
    padding: 0;
}

.landing-page .hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: center;
    min-height: calc(100vh - var(--landing-nav-height));
    min-height: calc(100dvh - var(--landing-nav-height));
    padding: clamp(38px, 6vh, 58px) clamp(56px, 7vw, 112px) clamp(32px, 5vh, 48px);
    border-radius: 0;
    background: #ffffff;
}

.landing-page .hero-card::before,
.landing-page .feature-card::before {
    content: none;
}

.landing-page .hero-card__copy,
.landing-page .hero-card__finder,
.landing-page .training-area-picker {
    min-width: 0;
}

.landing-page .hero-card__copy {
    display: grid;
    align-content: center;
    gap: 20px;
    padding: 8px 0;
}

.landing-page .hero-title {
    margin: 0;
    max-width: 11.5ch;
    font-size: 3.85rem;
    line-height: 1.02;
    letter-spacing: 0;
}

.landing-page .hero-badge,
.landing-page .section-badge,
.landing-page .hero-panel-label {
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.landing-page .hero-steps {
    display: grid;
    gap: 12px;
    width: min(100%, 460px);
    max-width: 460px;
    margin: 0;
    padding: 0;
    justify-self: start;
    list-style: none;
}

.landing-page .hero-steps li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 64px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.landing-page .hero-step-number {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--landing-orange);
    color: #ffffff;
    font-family: var(--landing-font-display);
    font-weight: 850;
    line-height: 1;
}

.landing-page .hero-steps strong,
.landing-page .hero-steps div span {
    display: block;
}

.landing-page .hero-steps strong {
    color: var(--landing-ink);
    font-family: var(--landing-font-display);
    font-size: 1rem;
    line-height: 1.2;
}

.landing-page .hero-steps div span {
    margin-top: 4px;
    color: var(--landing-muted);
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.45;
}

.landing-page .hero-card__finder {
    display: grid;
    align-items: center;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.landing-page .feature-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-page .training-area-picker {
    display: grid;
    gap: 12px;
    padding: 18px;
    background: #ffffff;
}

.landing-page .training-area-picker h2 {
    margin: 0;
    color: var(--landing-ink);
    font-family: var(--landing-font-display);
    font-size: 1.48rem;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.2;
}

.landing-page .training-area-menu {
    position: relative;
}

.landing-page .training-area-menu summary {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 20px;
    border: 1px solid rgba(234, 122, 52, 0.2);
    border-radius: 8px;
    background: #fffaf6;
    color: var(--landing-ink);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
    list-style: none;
}

.landing-page .training-area-menu summary::-webkit-details-marker {
    display: none;
}

.landing-page .training-area-menu summary i {
    color: var(--landing-orange-dark);
    transition: transform 0.16s ease;
}

.landing-page .training-area-menu[open] summary i {
    transform: rotate(180deg);
}

.landing-page .training-area-menu__list {
    display: grid;
    gap: 8px;
    max-height: 286px;
    margin-top: 10px;
    overflow-y: auto;
    padding-right: 4px;
}

.landing-page .training-area-menu__list a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background: #ffffff;
    color: var(--landing-ink);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.25;
}

.landing-page .training-area-menu__list a span {
    flex-shrink: 0;
    color: var(--landing-orange-dark);
    font-size: 0.76rem;
    font-weight: 800;
}

.landing-page .training-area-menu__list a:hover,
.landing-page .training-area-menu__list a:focus-visible {
    border-color: rgba(234, 122, 52, 0.28);
    background: var(--landing-orange-soft);
    color: var(--landing-orange-dark);
}

.landing-page .features-section {
    padding: 58px 0 72px;
}

.landing-page .section-header {
    max-width: 700px;
    margin-bottom: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.landing-page .section-title {
    margin: 14px 0 10px;
    font-size: 2.35rem;
    line-height: 1.12;
    letter-spacing: 0;
}

.landing-page .section-subtitle {
    font-size: 1rem;
}

.landing-page .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.landing-page .feature-card {
    padding: 0;
    border-radius: 8px;
    background: #ffffff;
}

.landing-page .feature-card__image {
    height: 132px;
    object-position: left center;
}

.landing-page .feature-card__image--center {
    object-position: center center;
}

.landing-page .feature-card__image--right {
    object-position: right center;
}

.landing-page .feature-card__body {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.landing-page .feature-card__head {
    gap: 12px;
    min-height: 48px;
    margin-bottom: 0;
}

.landing-page .feature-icon {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
}

.landing-page .feature-card__head h3 {
    min-height: auto;
    font-size: 1.12rem;
    letter-spacing: 0;
}

.landing-page .feature-card p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
}

.landing-page .footer {
    margin-top: 0;
    padding: 28px 0 22px;
    background: #fffaf6;
}

.landing-page .footer-bottom {
    padding-top: 0;
    border-top: 0;
}

.landing-page.landing-page-ready .hero-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.32s ease, transform 0.32s ease;
}

.landing-page .hero-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 961px) {
    .landing-page .features-section {
        min-height: auto;
        padding: 58px 0 72px;
    }

    .landing-page .features-section > .container {
        display: block;
        min-height: auto;
        padding-top: 0;
        padding-bottom: 0;
    }
}

@media (max-width: 960px) {
    .landing-page .navbar .container,
    .landing-page .nav-shell {
        grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
    }

    .landing-page .nav-menu a {
        font-size: 0.78rem;
    }

    .landing-page .nav-actions {
        gap: 12px;
    }

    .landing-page .nav-actions .nav-link-action {
        font-size: 0.78rem;
    }

    .landing-page .nav-actions .btn-primary,
    .landing-page .nav-actions .btn-secondary,
    .landing-page .nav-actions a[href^="/login"] {
        min-height: 34px;
        padding: 0 10px;
        font-size: 0.76rem;
    }

    .landing-page .hero-section {
        padding: 0;
    }

    .landing-page .hero-card {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 34px 22px;
    }

    .landing-page .hero-card__copy {
        align-content: start;
    }

    .landing-page .hero-title {
        max-width: 14ch;
        font-size: 2.7rem;
    }

    .landing-page .hero-steps {
        width: 100%;
        max-width: 100%;
    }

    .landing-page .hero-card__finder {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
        grid-template-rows: auto;
    }

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

@media (max-width: 720px) {
    .landing-page .container {
        padding: 0 14px;
    }

    .landing-page .navbar {
        padding-top: 0;
    }

    .landing-page .navbar .container,
    .landing-page .nav-shell {
        grid-template-columns: 1fr;
        gap: 8px;
        min-height: auto;
        padding: 12px 14px;
    }

    .landing-page .nav-brand {
        justify-content: center;
        font-size: 0.84rem;
    }

    .landing-page .nav-center {
        display: none;
    }

    .landing-page .nav-actions {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-flow: initial;
        grid-auto-columns: initial;
        width: 100%;
        justify-self: stretch;
        justify-content: stretch;
        gap: 6px;
    }

    .landing-page .nav-actions .btn-primary,
    .landing-page .nav-actions .btn-secondary,
    .landing-page .nav-actions a[href^="/login"],
    .landing-page .nav-actions .nav-link-action {
        display: inline-flex;
        min-width: 0;
        min-height: 34px;
        justify-content: center;
        padding: 0 6px;
        font-size: 0.76rem;
        white-space: nowrap;
    }

    .landing-page .nav-programs-menu > summary {
        width: 100%;
    }

    .landing-page .nav-programs-menu__list {
        top: calc(100% + 8px);
        left: 0;
        width: min(calc(100vw - 28px), 360px);
        max-height: 58vh;
        transform: none;
    }

    .landing-page .nav-action-divider {
        display: none;
    }

    .landing-page .nav-actions a:first-child {
        flex-basis: auto;
    }

    .landing-page .nav-label-full {
        display: none;
    }

    .landing-page .nav-label-short {
        display: inline;
    }

    .landing-page .hero-section {
        padding: 0;
    }

    .landing-page .hero-card {
        gap: 20px;
        padding: 28px 18px;
        border-radius: 0;
    }

    .landing-page .hero-title {
        max-width: 13ch;
        font-size: 2.35rem;
    }

    .landing-page .hero-steps li {
        min-height: 68px;
        padding: 11px 12px;
    }

    .landing-page .hero-card__finder {
        grid-template-columns: 1fr;
    }

    .landing-page .training-area-picker {
        padding: 16px;
    }

    .landing-page .section-title {
        font-size: 2rem;
    }

    .landing-page .features-grid {
        grid-template-columns: 1fr;
    }

    .landing-page .feature-card__image {
        height: 126px;
    }
}

@media (max-width: 560px) {
    .landing-page .nav-brand-full {
        display: none;
    }

    .landing-page .nav-brand-short {
        display: inline;
    }

    .landing-page .nav-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-page .nav-programs-menu__list {
        width: calc(100vw - 28px);
    }
}

@media (max-width: 420px) {
    .landing-page .nav-actions .btn-primary,
    .landing-page .nav-actions .btn-secondary,
    .landing-page .nav-actions a[href^="/login"],
    .landing-page .nav-actions .nav-link-action {
        min-height: 32px;
        font-size: 0.72rem;
    }

    .landing-page .hero-card {
        padding: 24px 16px;
    }

    .landing-page .hero-title {
        font-size: 2rem;
    }

    .landing-page .hero-step-number {
        width: 34px;
        height: 34px;
    }

    .landing-page .hero-steps div span {
        font-size: 0.88rem;
    }
}

/* Hero image layer: keep the photo inside the card and avoid pseudo-element conflicts. */
.landing-page .hero-card.neuro-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 0;
    box-shadow: none;
    background: #24362a;
}

.landing-page .hero-card.neuro-card::before,
.landing-page .hero-card.neuro-card::after {
    content: none;
}

.landing-page .hero-card__bg,
.landing-page .hero-card__shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.landing-page .hero-card__bg {
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 56%;
    filter: saturate(1.14) contrast(1.08) brightness(0.99);
}

.landing-page .hero-card__shade {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 26%, rgba(255, 255, 255, 0.28) 48%, rgba(255, 255, 255, 0.02) 70%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 250, 246, 0.01) 48%, rgba(255, 255, 255, 0.08));
}

.landing-page .hero-card__copy,
.landing-page .hero-card__finder {
    position: relative;
    z-index: 2;
}

.landing-page .hero-card__finder {
    grid-template-rows: 1fr;
    align-items: center;
    align-content: center;
    justify-items: stretch;
    padding: 0;
    border: 0;
    background: transparent;
}

.landing-page .training-area-picker {
    align-self: center;
    width: min(100%, 500px);
    justify-self: end;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.12);
}

.landing-page .hero-steps li,
.landing-page .training-area-menu summary {
    background: rgba(255, 255, 255, 0.9);
}

.landing-page .hero-steps .hero-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.landing-page .hero-card {
    grid-template-columns: minmax(460px, min(50vw, 980px)) minmax(320px, 420px);
    gap: clamp(28px, 3.5vw, 64px);
}

.landing-page .hero-apply-card {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto auto auto;
    align-content: start;
    gap: 16px;
    align-self: center;
    justify-self: end;
    width: min(100%, 420px);
    height: clamp(420px, 44vh, 500px);
    min-height: 0;
    margin-top: 0;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.landing-page .hero-apply-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 18px;
    border: 1px solid var(--landing-orange-line);
    border-radius: 999px;
    background: var(--landing-orange-soft);
    color: var(--landing-orange-dark);
    font-family: var(--landing-font-display);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
}

.landing-page .hero-apply-badge i {
    width: 1em;
    height: 1em;
    background: transparent;
    color: inherit;
    font-size: 0.9em;
}

.landing-page .hero-apply-card h2 {
    margin: 0;
    color: var(--landing-ink);
    font-family: var(--landing-font-display);
    font-size: clamp(1.58rem, 1.95vw, 1.9rem);
    font-weight: 850;
    line-height: 1.15;
}

.landing-page .hero-apply-card ul {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.landing-page .hero-apply-card li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: var(--landing-ink);
    font-size: clamp(1rem, 1.12vw, 1.12rem);
    font-weight: 760;
    line-height: 1.32;
}

.landing-page .hero-apply-card li i {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--landing-orange-soft);
    color: var(--landing-orange-dark);
    font-size: 0.82rem;
}

@media (max-width: 960px) {
    .landing-page .hero-card__shade {
        background:
            linear-gradient(180deg, rgba(255, 250, 246, 0.58) 0%, rgba(255, 250, 246, 0.4) 48%, rgba(255, 250, 246, 0.16) 100%);
    }

    .landing-page .hero-card {
        grid-template-columns: 1fr;
    }

    .landing-page .hero-apply-card {
        justify-self: stretch;
        width: 100%;
        height: auto;
        min-height: 0;
        margin-top: 0;
    }

    .landing-page .hero-card__finder {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .landing-page .training-area-picker {
        justify-self: stretch;
        width: 100%;
        padding: 22px;
    }
}

@media (max-width: 720px) {
    .landing-page .hero-card__bg {
        object-position: 62% center;
    }

    .landing-page .training-area-picker {
        padding: 16px;
    }
}

/* ===================================
   WEBFORM CARD DESIGN
   =================================== */
/*
 * Public webforms and standard website pages intentionally fall back to the
 * default Frappe background and footer styles. This avoids repaint-heavy
 * animations, blur filters, and broad `:has()` selectors in a shared sheet.
 */

@media (min-width: 992px) {
    .d-lg-block
 {
        display: none !important;
    }
}
