nav#header .navbar-nav ul.dropdown-menu.show {
    display: none
}
nav#header {
    z-index: 1000;
}
#menu-hover-overlay {
    transition: all 0.3s ease-in-out;
}
#menu-hover-overlay:after {
    display: none;
    content: ''; /* needed for pseudo-elements, not for separate divs */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* dim the content, adjust alpha as needed */
    z-index: 999; /* ensure this is below the header */
    transition: all 0.5s ease-in-out;
}
body.menu-active #menu-hover-overlay:after {
    display: block;
}

.menu-parts-left {
    display: flex;
    width: 100%;
}
.menu-parts-right {
    visibility: hidden; /* Hide the element */
    opacity: 0; /* Set the opacity to 0 */
    position: fixed;
    left: 0;
    width: 100%;
    transition: visibility 0s 0.3s, opacity 0.3s ease-in-out; /* Add transition for visibility and opacity */
    z-index: -1;
    display: none;
}
@media screen and (min-width: 1191px) {
    .menu-parts-right{
        border-top: 4px solid #f5f5f5;
        height: 382px;
        overflow: hidden;
    }
}

.menu-parts-right.active {
    visibility: visible; /* Make the element visible */
    opacity: 1; /* Set the opacity to 1 */
    transition: visibility 0s, opacity 0.3s ease-in-out; /* Modify the transition for visibility and opacity */
    z-index: 100;
    display: block;
}

@media screen and (min-width: 1191px){
    .menu-parts-right{
        top: 77px;
    }
    body.admin-bar .menu-parts-right {
        top: 109px;
    }
}

.mega-menu-item {
    width: 100%;
    height: 382px;
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;

}

.mega-left {
    width: 46%;
    background-color: #fff;
    display: flex;
    align-items: start;
    padding-top: 33px;
    padding-right: 50px;
    justify-content: start;
    flex-direction: row;
    padding-left: calc((100vw - 1310px)/2 + 190px);
}
.menus-holder {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.mega-menu-holder {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.mega-menu-holder:first-child {
    min-width: 200px;
}
.mega-menu-holder a,
.mega-menu-holder span {
    color: var(--shark-1-a-1-b-20, #1A1B20);
    font-family: Poppins, Sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 170%;
    text-decoration: none;
}
.mega-menu-holder li:hover a{
    color:#755be2;
    text-shadow: 0 0 1px #755BE2;
    /*    font-weight: 500; */
}


.mega-menu-holder ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 0px;
}

.mega-menu-holder ul li {
    margin: 0;
    padding: 0;
}

.mega-right {
    width: 54%;
    background: var(--light-purple-fbfaff, #FBFAFF);
    display: inline-flex;
    flex-direction: column;
    justify-content: start;
    padding-top: 30px;
    padding-left: 50px;
    flex-shrink: 0;
    align-items: start;
    gap: 34px;
}

.mega-right-title {
    color: var(--shark-1-a-1-b-20, #1A1B20);
    font-family: Playfair Display;
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: 170%;
}

.mega-boxes-holder {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 683px;
}

.mega-box {
    display: flex;
    flex-direction: column;
    gap: 11px;
    width: 200px;
}

.mega-box-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mega-box-content h3{
    color: var(--medium-purple-755-be-2, #755BE2);
    font-family: Poppins;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    line-height: 115%; /* 11.5px */
}

.mega-box-content p {
    color: var(--shark-1-a-1-b-20, #1A1B20);
    font-family: Poppins;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 18px */
}

.mega-box a {
    text-decoration: none;
}
@media screen and (min-width: 991px){
    nav#header .menu-parts-left > .navbar-nav li:hover > ul.dropdown-menu {
        display: none;
    }
    nav#header .book-btn-small.mobile-only {display: none}
    .menu-parts-left > ul.navbar-nav {
        align-items: center;
    }
}

@media screen and (max-width: 990px){
    .menu-parts-right {
        visibility: visible;
        opacity: 1;
        transition: visibility 0s, opacity 0.3s ease-in-out; 
        z-index: 100;
    }

    nav#header {
        display: block;
        margin-bottom: 32px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000000;
        bottom: auto;       /* makes sure it sticks to the bottom */
        overflow-y: auto; /* adds vertical scrolling if the content overflows */
        -webkit-overflow-scrolling: touch; /* for smooth scrolling on iOS */
    }
    body.menu-active nav#header {
        bottom: 0;
    }
    nav#header .book-btn-small{display: none}
    nav#header .book-btn-small.mobile-only {display: block}
    nav#header .navbar-nav ul.dropdown-menu {
        max-height: 0;
        transition: all 0.5s ease-in-out;
        overflow: hidden;
        display: block;
    }
    nav#header .navbar-nav ul.dropdown-menu.show{
        max-height: 500px;
        display: block;
    }
    .menu-parts-left {
        width: 45%;
        display: flex;
        flex-direction: column;
    }

    .menu-parts-right {
        display: none;
        width: 100vw;
        position: relative;
        top: 0;
    }
    .menu-parts-right.active {
        display: block;
    }
    .mega-box a {
        max-width: 200px;
    }
    #navbarSupportedContent > ul {
        width: 100%;
    }
    #navbarSupportedContent .header-mega-menu {
        width: 100%;
    }
    .menus-holder {
        display: none;
    }
    .mega-right {
        width: 100%;
        padding: 40px 60px 24px 60px;
        gap: 22px;
    }
    .mega-boxes-holder {
        width: 100%;
        flex-direction: column;

    }
    .mega-menu-item {
        height: auto;
    }
    .mega-left {
        width: 100%;
        padding-top: 0;
    }

    .mega-box {
        flex-direction: row;
        width: 100%;
        gap: 22px;
    }
    /*
    nav#header .container {

        max-width: 100%;
        margin: 0;
        padding: 0;
    }

     */
    .mega-right-title {
        font-size: 18px;
    }

    .mega-boxes-holder {
        gap: 36px;
    }

}

@media screen and (min-width: 750px) and (max-width: 990px){
    #navbarSupportedContent.show {
        display: flex;
        align-items: start;
    }

    #navbarSupportedContent .mega-right {
        opacity: 0;
        transition: all 0.4s ease-in-out;
    }
    #navbarSupportedContent.show .mega-right {
        opacity: 1;
    }
    .mega-right {
        max-width: 55%;
    }
    .mega-box a.mega-box-image {
        width: 130px;
    }
    .mega-box-content {
        width: 137px;
    }
    .menu-parts-right,
    .header-mega-menu,
    .mega-menu-item,
    .mega-right{
        height: 100%;
    }
    body.admin-bar .menu-parts-right {
        top: 108px;
        max-height: calc(100% - 140px); /* 140px is the 108 top margin + 32 bottom margin */
    }
    .menu-parts-right {
        position: fixed;
        left: 46%;
        top: 76px;
        right: 0;
        height: 100%;
        max-height: calc(100% - 108px); /* 140px is the 108 top margin + 32 bottom margin */
    }
}
@media screen and (max-width: 749px){


    .menu-parts-right.active {
        width: 100vw;
        left: calc(((100vw - 540px)/-2) - 24px);
        position: relative;
    }
    .mega-right {
        padding-top: 24px;
        padding-bottom: 24px;
        padding-left: calc(((100vw - 540px)/2) + 24px);
        padding-right: calc(((100vw - 540px)/2) + 24px);
    }

    /*
    .mega-right {
        padding: 24px 60px;
    }

     */

    .menu-parts-right,
    .menu-parts-left,
    .mega-right {
        width: 100%
    }

    .mega-box-image {
        width: 106px;
    }
    .mega-box-content {
        width: 196px;
    }

    @media (max-width: 750px) {
        #header .book-btn.hide,
        #header .book-btn.mobile-only.hide {
            display: none;
        }
    }

}

@media screen and (max-width: 575px){
    .menu-parts-right.active {
        left: calc(((100vw - 375px)/-2) - 24px);
    }

    .mega-right {
        padding-top: 24px;
        padding-bottom: 24px;
        padding-left: calc(((100vw - 375px)/2) + 24px);
        padding-right: calc(((100vw - 375px)/2) + 24px);
    }

}

@media screen and (max-width: 375px){

}