/* General header styling */
.lt-header {
    position: relative;
    z-index: 1031;
}

.lt-header .navbar {
    height: 5rem;
    width: 80%;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .lt-header .navbar {
        height: 10rem;
    }
}

.lt-header.lt-header-overlay {
    color: var(--kpl-off-white);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.lt-header-navpanel {
    background: rgba(34, 34, 34, 0);
    transition: background ease-out 400ms, top ease-out 400ms, width ease-out 400ms, opacity ease-out 400ms;
    width: 80%; /* Set initial width */
    margin: 0 auto;
    opacity: 1; /* Initially visible */
}

.lt-header-navpanel .flex-grow-1 {
    flex-basis: 0;
}

@media (min-width: 992px) {
    .lt-header-navpanel {
        border-radius: .75rem;
    }
}

.scrolled .lt-header-navpanel {
    position: fixed;
    top: 250px; /* Offset from the top of the page */
    left: 50%;
    height: 75px; /* Reduced height */
    transform: translateX(-50%);
    width: 100%; /* Match the original navbar width */
    max-width: 62%;
    margin: 0 auto; /* Center the navbar */
    padding: 0; /* Reset padding */
    padding-right: 20px;
    color: var(--kpl-body-color);
    background: rgba(34, 34, 34, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 0; /* Remove rounded edges for full width */
    box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
    display: flex; /* Use flexbox to align items */
    justify-content: space-between; /* Space out items */
    align-items: center; /* Center items vertically */
    opacity: 1; /* Fade in when scrolled */
}

.scrolled .lt-header-navpanel .lt-logo-text {
    visibility: hidden;
    opacity: 0;
}

.scrolled .lt-header-navpanel .lt-logo-mark {
    visibility: visible;
    opacity: 1;
}

/* Add padding to the link on the right */
.scrolled .lt-header-navpanel .top-right-link {
    padding-right: 20px; /* Adjust padding as needed */
}

@media (min-width: 992px) {
    .scrolled .lt-header-navpanel {
        top: 20px;
        width: 80%; /* Match original navbar width */
        transform: translateX(-50%);
        border-radius: .75rem; /* Rounded edges for larger screens */
    }

    .scrolled .lt-header-navpanel .top-right-link {
        padding-right: 10px; /* Adjust padding as needed for larger screens */
    }
}

.scroll-up .lt-header-navpanel {
    top: 20px;
    opacity: 1; /* Keep visible when scrolling up */
}

@media (min-width: 992px) {
    .scroll-up .lt-header-navpanel {
        top: 20px;
    }
}

/* Rest of your CSS remains unchanged */


.lt-header-location {
    max-width: calc(100vw - 9.75rem);
}

.lt-header-border {
    margin: -1px 0 0;
}

@media (min-width: 992px) {
    .lt-header-border {
        margin: -1px .75rem 0;
    }
}

.lt-header-logo {
    fill: currentColor;
    background-clip: content-box, padding-box;
    overflow: visible;
}

.lt-header-logo .lt-logo-text,
.lt-header-logo .lt-logo-life,
.lt-header-logo .lt-logo-time,
.lt-header-logo .lt-logo-mark {
    transition: all ease-out 800ms;
}

.lt-header-logo .lt-logo-text {
    visibility: visible;
    opacity: 1;
}

.lt-header-logo .lt-logo-life,
.lt-header-logo .lt-logo-time {
    transform: translateX(0);
}

.lt-header-logo .lt-logo-mark {
    visibility: hidden;
    opacity: 0;
}



.lt-header .offcanvas {
    width: 100%;
    top: 0;
    left: 0;
    bottom: 0;
}

@media (min-width: 576px) {
    .lt-header .offcanvas {
        width: 75vw;
    }
}

@media (min-width: 992px) {
    .lt-header .offcanvas {
        width: calc(100% - var(--kpl-offcanvas-offset) * 2);
        top: var(--kpl-offcanvas-offset);
        left: var(--kpl-offcanvas-offset);
        bottom: auto;
        border-radius: 10px;
        transform: translateY(-100%);
    }
}

.lt-header .offcanvas.showing,
.lt-header .offcanvas.show:not(.hiding) {
    transform: none;
}

.lt-header .offcanvas-child {
    overflow-y: auto;
}

@media (min-width: 992px) {
    .lt-header .offcanvas-child {
        border-radius: 12px;
    }
}

.lt-header .primary-nav-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100svh;
    width: 100%;
    background-color: var(--kpl-light);
}

@media (min-width: 992px) {
    .lt-header .primary-nav-container {
        height: auto;
        min-height: 36rem;
        width: 33.33%;
        border-right: 1px solid rgba(49, 49, 49, 0.15);
        position: static;
    }
}

.lt-header .offcanvas-header {
    margin-top: 1.25rem;
}

@media (min-width: 992px) {
    .lt-header .offcanvas-header {
        margin-top: 2rem;
    }
}

.lt-header .offcanvas-header .btn-close {
    position: relative;
    right: 0;
    z-index: 3;
}

@media (min-width: 992px) {
    .lt-header .offcanvas-header .btn-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        height: 2.625rem;
        width: 2.625rem;
    }
}

.lt-header .offcanvas-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: visible;
}

.lt-header .nav-primary-wrap {
    margin-top: 5rem;
    margin-bottom: 5rem;
}

@media (min-width: 992px) {
    .lt-header .nav-primary-wrap {
        position: relative;
        padding-bottom: 7.5rem;
    }
}

@media screen and (orientation: landscape) and (min-device-height: 280px) and (max-device-height: 576px) {
    .lt-header .nav-primary-wrap {
        margin-top: 2.5rem;
        margin-bottom: 3.5rem;
    }
}

.lt-header .nav-primary-wrap+* {
    margin-top: -2.5rem;
    position: relative;
    z-index: 2;
}

.lt-header .nav {
    --kpl-nav-link-hover-color: #313131;
}

@media (min-width: 992px) {
    .lt-header .nav-primary:hover>.nav-item>.nav-link:not(:hover) {
        opacity: .25;
    }
    .lt-header .nav-primary:hover>.nav-item>.nav-link[data-bs-toggle=collapse]:not(.collapsed) {
        opacity: 1;
    }
}

.lt-header .nav-primary .nav-link {
    width: 100%;
    font-size: 1.25rem;
    line-height: 1.5rem;
    text-align: left;
    background-repeat: no-repeat;
    background-position: right 8px;
    padding: 0 0 1rem;
}

.lt-header .nav-primary .nav-link[data-bs-toggle=collapse] {
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc2cHgnIGhlaWdodD0nOXB4JyB2aWV3Qm94PScwIDAgNiA5Jz48cG9seWdvbiBmaWxsPScjMzEzMTMxJyBwb2ludHM9JzEuNCw4LjkgMC42LDguMSA0LjMsNC41IDAuNiwwLjkgMS40LDAuMSA1LjcsNC41Jy8+PC9zdmc+);
}

@media (min-width: 768px) {
    .lt-header .nav-primary .nav-link {
        font-size: 1.375rem;
        line-height: 1.75rem;
        background-position: right 10px;
    }
}

@media (min-width: 992px) {
    .lt-header .nav-primary .nav-link {
        font-size: 1.25rem;
        padding: 0 0 .5rem;
    }
}

.lt-header .nav-primary .nav-item:last-child .nav-link {
    padding: 0;
}

.lt-header .subnav-menu-outer {
    justify-content: flex-start;
    height: 100vh;
    height: 100svh;
    width: 100%;
    visibility: hidden;
    opacity: 0;
    transform: translateX(-100%);
    transition: transform .2s, opacity .2s;
    left: 0;
    background-color: var(--kpl-light);
}

@media (min-width: 576px) {
    .lt-header .subnav-menu-outer {
        width: 75vw;
    }
}

@media (min-width: 992px) {
    .lt-header .subnav-menu-outer {
        left: calc(100% + 2.5rem);
        width: 100%;
        height: 100%;
        background-color: transparent;
        transform: translateX(-2rem);
    }
}

.lt-header .subnav-menu-outer.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

@media (min-width: 992px) {
    .lt-header .subnav-menu-outer.show {
        transform: translateX(0);
    }
}

.lt-header .subnav-menu-inner {
    overflow-y: auto;
}

@media (min-width: 992px) {
    .lt-header .subnav-menu-inner .nav-link {
        font-size: 1.0625rem;
    }
}

.lt-header .nav-image-panel {
    position: sticky;
    height: 100vh;
    height: 100svh;
    width: 100%;
    bottom: 0;
}

@media (min-width: 992px) {
    .lt-header .nav-image-panel {
        position: absolute;
        height: 100%;
        width: 34%;
        right: 0;
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
        overflow: hidden;
    }
}

.lt-header .nav-national-major {
    margin: 3.5rem 0 6.5rem;
}

.lt-header .nav-national-major .nav-link {
    font-size: 1.8125rem;
    line-height: 2rem;
    padding: 1rem 0 0;
}

@media screen and (orientation: landscape) and (min-device-height: 280px) and (max-device-height: 576px) {
    .lt-header .nav-national-major {
        margin: 2.5rem 0;
    }
}

@media (min-width: 992px) {
    .lt-header .nav-national-major .nav-link {
        font-size: 2rem;
        line-height: 2.5rem;
    }
}

.lt-header .nav-national-minor,
.lt-header .nav-national-member {
    margin-bottom: 2rem;
}

.lt-header .nav-national-minor .nav-link,
.lt-header .nav-national-member .nav-link {
    font-size: 1.25rem;
    line-height: 1.5rem;
    padding: 1rem 0 0;
}

@media (min-width: 992px) {
    .lt-header .nav-national-minor .nav-link,
    .lt-header .nav-national-member .nav-link {
        font-size: 1.0625rem;
        padding: .5rem 0 0;
    }
}

@media (min-width: 992px) {
    .lt-header .nav-member-eyebrow,
    .lt-header .nav-national-member {
        margin-bottom: 0;
        position: absolute;
        left: calc(33% + 1px + 2rem);
        width: calc(33% - 1px - 2rem);
    }
    .lt-header .nav-member-eyebrow {
        top: 2rem;
    }
    .lt-header .nav-national-member {
        bottom: 2rem;
    }
}

.lt-header .nav-cta {
    font-size: .8125rem;
    line-height: 1rem;
}

@media (min-width: 992px) {
    .lt-header .nav-cta {
        font-size: .6875rem;
        line-height: .75rem;
    }
}

@media (min-width: 992px) and (max-height: 840px) {
    .lt-header .offcanvas {
        width: 75vw;
        top: 0;
        left: 0;
        bottom: 0;
        border-radius: 0;
        transform: none;
    }
    .lt-header .offcanvas .offcanvas-child {
        overflow-y: auto;
        border-radius: 0;
    }
    .lt-header .primary-nav-container {
        display: flex;
        flex-direction: column;
        height: 100vh;
        height: 100svh;
        width: 100%;
        background-color: var(--kpl-light);
    }
    .lt-header .offcanvas-header {
        margin-top: 1.25rem;
    }
    .lt-header .offcanvas-header .btn-close {
        position: relative;
        right: 0;
        z-index: 3;
        bottom: auto;
        width: 2rem;
        height: 2rem;
    }
    .lt-header .nav-primary-wrap {
        margin-top: 5rem;
        margin-bottom: 5rem;
        position: static;
        padding-bottom: 0;
    }
    .lt-header .nav-primary .nav-link {
        width: 100%;
        font-size: 1.375rem;
        line-height: 1.75rem;
        background-position: right 10px;
        text-align: left;
        background-repeat: no-repeat;
        padding: 0 0 1rem;
    }
    .lt-header .nav-primary .nav-link[data-bs-toggle=collapse] {
        background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc2cHgnIGhlaWdodD0nOXB4JyB2aWV3Qm94PScwIDAgNiA5Jz48cG9seWdvbiBmaWxsPScjMzEzMTMxJyBwb2ludHM9JzEuNCw4LjkgMC42LDguMSA0LjMsNC41IDAuNiwwLjkgMS40LDAuMSA1LjcsNC41Jy8+PC9zdmc+);
    }
    .lt-header .nav-primary .nav-item:last-child .nav-link {
        padding: 0;
    }
    .lt-header .subnav-menu-outer {
        justify-content: flex-start;
        height: 100vh;
        height: 100svh;
        width: 75vw;
        visibility: hidden;
        opacity: 0;
        transform: translateX(-100%);
        transition: transform .2s, opacity .2s;
        left: 0;
        background-color: var(--kpl-light);
    }
    .lt-header .subnav-menu-outer.show {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
        z-index: 2;
    }
    .lt-header .subnav-menu-inner {
        overflow-y: auto;
    }
    .lt-header .nav-image-panel {
        position: sticky;
        height: 100vh;
        height: 100svh;
        width: 100%;
        bottom: 0;
        border-radius: 0;
    }
    .lt-header .nav-national-major {
        margin: 6.5rem 0;
    }
    .lt-header .nav-national-major .nav-link {
        font-size: 1.8125rem;
        line-height: 2rem;
        padding: 1rem 0 0;
    }
    .lt-header .nav-national-minor {
        margin-bottom: 5rem;
        position: static;
        bottom: auto;
        left: auto;
        width: auto;
    }
    .lt-header .nav-national-minor .nav-link {
        font-size: 1.25rem;
        line-height: 1.5rem;
        padding: 1rem 0 0;
    }
    .lt-header .nav-cta {
        font-size: .8125rem;
        line-height: 1rem;
        display: block !important;
    }
    .lt-header .pt-lg-3-if-short-vh {
        padding-top: 1.5rem !important;
    }
    .lt-header .mt-lg-2-if-short-vh {
        margin-top: 1rem !important;
    }
    .lt-header .mb-lg-3-if-short-vh {
        margin-bottom: 1.5rem !important;
    }
    .lt-header .mb-lg-4-if-short-vh {
        margin-bottom: 2rem !important;
    }
    .lt-header .d-lg-block-if-short-vh {
        display: block !important;
    }
}
