body.no-scroll {
    overflow: hidden;
    height: 100vh;
}


/* For accessibility */
.menu-item a:focus,
.menu-item span:focus {
    outline: 2px dashed #fff;
    outline-offset: 4px;
}

.custom-menu-overlay.slideIn .menu-level.active.visible .menu-item a:focus,
.custom-menu-overlay.slideIn .menu-level.active.visible .menu-item span:focus{
    outline: 2px dashed #004289;
    outline-offset: 4px;
}


/* General styling */

.custom-navigation-wrapper {
    position: relative;
    z-index: 999;
    font-family: "Ubuntu", Sans-serif;
}

.hamburger img {
    width: 32px;
    cursor: pointer;
}

.custom-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #004289;
    color: #fff;
    z-index: 1000;
    display: none;
    padding: 20px;
    overflow: hidden;
    transition: transform 1s ease, opacity 0.3s ease;
    transform: translateX(100%);
}

.menu-inner-wrapper {
    max-width: 1260px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}


.custom-menu-overlay.active {
    display: flex;
    animation: slideIn 0.4s ease forwards;
}

@media (min-width: 1024px) {
    .custom-menu-overlay.active {
        flex-direction: column;
    }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.close-btn {
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 10px;
    color: white;
}

.close-btn i {
    font-size: 24px;
}

.menu-panel {
    position: relative;
    flex: 1;
    /*overflow: hidden;*/
}

.back-button {
    display: none;
    /*margin-bottom: 10px;
    background: none;
    border: 1px solid #fff;
    color: #fff;
    padding: 8px 16px;
    cursor: pointer;*/
    border: none;
    color: #fff;
    padding: 8px 16px 8px 35px;
    cursor: pointer;
    position: relative;
    top: -38px;
    z-index: 10;
    font-size: 13px;
}

.menu-panel .fa-arrow-left{
    display: none;
}


/* Shared submenu styles */
.menu-level {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateX(100%);
    display: none;
}

/* This class is toggled in both mobile JS and desktop hover */
.menu-level.active.visible {
    left: 0;
    transform: translateX(0%);
    opacity: 1;
    pointer-events: auto;
    display: block;
    z-index: 10;
}

.menu-item {
    padding: 12px;
    cursor: pointer;
    position: relative;
    font-size: 18px;
}

.menu-item a,
.menu-item span {
    color: #fff;
    text-decoration: none;
    display: block;
    font-size: 30px;
    font-family: "Ubuntu", Sans-serif;
    font-weight: bold;
}

.menu-item.has-children .menu-item a{
    font-size: 31px;
    font-weight: 300;
}

.menu-item.has-children > span::after {
    content: "›";
    float: right;
    font-weight: bold;
    margin-left: 25px;
}

/* Desktop hover support */
@media (min-width: 1024px) {

    .custom-menu-overlay {
        flex-direction: row; /* Allows side-by-side stacking */
        padding: 100px;
        overflow-x: auto;

        background-image: url(/wp-content/uploads/2025/04/floating-b-blue.svg);
        background-size: 50%;
        background-repeat: no-repeat;
        background-position: right;
    }

    .menu-root {
        width: 500px;
        position: relative;
        flex-shrink: 0;
    }

    .menu-level {
        /*position: absolute;*/
        position: absolute;
        left: 100%;
        top: 0;
        width: 500px;
        display: none;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .menu-item {
        display: block !important;
        opacity: 1 !important;
    }

    .menu-item.has-children.hover-active > ul.menu-level {
        display: block !important;
        opacity: 1 !important;
        pointer-events: auto;
        position: absolute;
        left: 0%;
        top: 0;
        z-index: 10;
        padding-left: 10px;
        width: 100% !important;
        max-width: 650px;
    }

    .menu-item.has-children.hover-active > ul.menu-level .menu-item{
        width: max-content;
    }

    .menu-item.has-children > span::after {
        content: "›";
        float: right;
        font-weight: bold;
    }

    .back-button {
        display: none !important;
    }
}



/* Mobile styles */
@media (max-width: 1023px) {

    .custom-menu-overlay.slideIn .menu-inner-wrapper {
        position: relative;
        height: calc(100% + 75px) !important;
    }

    .custom-menu-overlay.slideIn .menu-inner-wrapper:before{
        content: '';
        position: absolute;
        width: calc(100% + 10px) !important;
        height: calc(100% + 85px) !important;
        top: -80px;
        left: 0;
        background: #fff;

        background-image: url(/wp-content/uploads/2025/04/floating-grey-opacity-02.svg);
        background-size: 160%;
        background-repeat: no-repeat;
        background-position: 0px -70px;
    }

    .menu-level {
        left: 0;
        transform: translateX(100%);
        height: 100%;
        top: 55px;
        opacity: 1;
    }

    .menu-level.menu-level.active.visible {
        left: 0;
        transform: translateX(0%);
    }

    .menu-item.has-children.parent-item span{
        display: none;
    }

    .menu-item.has-children > span {
        display: block;
    }

    .back-button {
        display: none;
    }

    .menu-level.current.active {
        display: block;
        opacity: 1;
    }

    .custom-menu-overlay{
        padding: 10vh 10px 10vh 10px;

        background-image: url(/wp-content/uploads/2025/04/floating-b-blue.svg);
        background-size: 150%;
        background-repeat: no-repeat;
        background-position: 40px -20px;
    }

    .custom-menu-overlay.slideIn{
        padding: 10vh 10px 10vh 30px;
    }

    .menu-item a, .menu-item span {
        font-size: 18px;
        font-family: "Ubuntu", Sans-serif;
        font-weight: normal;
    }

    .menu-item.has-children .menu-item a{
        font-size: 18px;
        font-weight: 400;
    }

    .custom-menu-overlay.slideIn .menu-level.active.visible .menu-item{
        padding-left: 25px;
    }

    .custom-menu-overlay.slideIn .menu-level.active.visible .menu-item a,
	.custom-menu-overlay.slideIn .menu-level.active.visible .menu-item a:hover,
	.custom-menu-overlay.slideIn .menu-level.active.visible .menu-item a:focus,
	.custom-menu-overlay.slideIn .menu-level.active.visible .menu-item a:active,
	.custom-menu-overlay.slideIn .menu-level.active.visible .menu-item a:visited,
    .custom-menu-overlay.slideIn .close-btn,
    .custom-menu-overlay.slideIn .menu-panel .fa-arrow-left,
    .custom-menu-overlay.slideIn .menu-item.has-children > span,
    .custom-menu-overlay.slideIn .back-button
    {
        color: #004289 !important;
    }

    .custom-menu-overlay.slideIn .policy-links{
        display: none;
    }

    .policy-links a {
        font-size: 18px !important;
        font-family: "Ubuntu", Sans-serif;
        margin: 0 !important;
    }

    .policy-links {
        position: absolute;
        bottom: 20px;
        left: 20px;
    }

    .close-btn {
        font-size: 16px;
        position: relative;
    }

    .menu-panel .fa-arrow-left {
        position: relative;
        top: -36px;
        font-size: 16px;
        left: 25px;
        display: none;
    }
}

.policy-links {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
}

.policy-links a {
    color: #fff;
    margin-bottom: 10px;
    font-size: 30px;
    line-height: 40px;
    font-weight: bold;
}


/* Optional: animate submenus */
.menu-level {
    transition: transform 0.4s ease;
}

.menu-item {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-item.visible-item {
    display: block;
    opacity: 1;
}


.custom-navigation-wrapper a:hover{
    color: #fff !important;
}