/* Mobile Menu Styles */

.wp-block-wm-megamenu.open-fullscreen.is-opened {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999999999;
    height: 100vh;
}

.wp-block-wm-megamenu.open-fullscreen.is-opened  .wm-mm__content-wrapper {

}
.wp-block-wm-megamenu.open-fullscreen.is-opened .wm-mm__wrapper {
    height: 100vh !important;
}
.wp-block-wm-megamenu.open-fullscreen .wm-mm__content-wrapper {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: opacity 0.3s ease-in-out,
                visibility 0.3s ease-in-out,
                transform 0.3s ease-in-out;
}

.wp-block-wm-megamenu.open-fullscreen.is-opened .wm-mm__content-wrapper {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    background-color: var(--wp--preset--color--secondary);
    top: 50px !important;
}
@media only screen and (max-width: 767px) {

    .wm-page-header.wp-block-template-part {
    }
    .swt-transparent-header {
        background:none;
       background-color: #fff !important;
    }
    .wm-mm .wm-mm-item__dropdown-wrapper {
        position: relative !important;
        width: 100% !important;
        padding-left:0 !important;
        padding-right: 0 !important;
        transform: translateX(0) !important;
        top: unset !important;
        left: unset !important;
        right: unset !important;
        bottom: unset !important;
    }
    .wm-mm__toggle svg {
        display: none !important;
    }

    .wm-mm__toggle {
        position: relative;
        display: block;
        padding: 0.815em 40px;
        height: 89px;
        overflow: hidden;
        line-height: 26px;
        text-align: center;
        cursor: pointer;
        margin-bottom: 0px;
        background-color: var(--wp--preset--color--secondary) !important;
        border: none !important;
        color: #fff !important;
    }
    .wm-mm__toggle-icon-btn,
    .wm-mm__toggle-icon-btn:before,
    .wm-mm__toggle-icon-btn:after {
        position: absolute;
        top: 50%;
        left: 30px;
        height: 2px;
        width: 24px;
        -webkit-transition: all 0.25s;
        transition: all 0.25s;
        background: white !important;
    }
    .wm-mm__toggle-icon-btn:before {
        content: '';
        top: -7px;
        left: 0;
    }
    .wm-mm__toggle-icon-btn:after {
        content: '';
        top: 7px;
        left: 0;
    }
    .wm-mm__toggle.is-opened .wm-mm__toggle-icon-btn:before {
        top: 0;
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }
    .wm-mm__toggle.is-opened .wm-mm__toggle-icon-btn:after {
        top: 0;
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
    }
    .wm-mm-item__link {
        padding: 0px !important;
        justify-content: space-between !important;
    }
    .wm-mm__toggle.is-opened .wm-mm__toggle-icon-btn {
        background: transparent !important;
    }
    .wm-mm__content li {
        width: 100%;
        padding: 0;
        text-transform: uppercase;
        line-height: 23px;
        font-size: 15px;
        color: #fff !important;
        border-top: 1px solid rgba(255, 255, 255, 0.5);
    }

    .wm-mm__content>li:first-child {
        border-top: none;
    }
    .wm-mm-item__link a {
        color: #fff !important;
    }
    .wm-mm-item__dropdown-content .wp-block-post a { font-size: 15px !important; line-height: 22px !important; color: #fff !important;}
    .wm-mm-item__dropdown-content .wp-block-post h3 { margin: 0px !important; padding: 0px !important;}
    .is-opened .wm-mm__wrapper { background-color: var(--wp--preset--color--secondary) !important;}

    .wm-mm__content>li>.wm-mm-item__link a, .wm-mm__content .wp-block-wm-megamenu-item a {
        font-size: 15px !important;
        line-height: 22px !important;
        padding: 12px 0px 12px 20px !important;
    }

    .wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
        background-color: var(--wp--preset--color--primary) !important;
        color: #fff !important;
        border: none !important;
        outline: none !important;
        margin: 8px 0 !important;
        
    }
    .wm-mm__content .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
        margin: 4px 0 0 0 !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        display: none !important;
        width: 100% !important;
    }
    .wp-block-navigation .has-child .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container-active {
        display: flex !important;
    }
    .wp-block-navigation .wp-block-navigation__submenu-icon, .wm-mm-item .wm-mm-item__toggle {
        width: 48px;
        height:  100%;
        min-height: 48px;
        border-left: 1px solid rgba(255, 255, 255, 0.4) !important;
        background: rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .wm-mm-item .wm-mm-item__toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    #wpadminbar { display: none !important; }
    .wp-block-navigation .wp-block-navigation__submenu-icon svg {
        transition: all 0.3s ease;
        width: 20px;
        height: 20px;
    }
    .wp-block-navigation .wp-block-navigation-submenu__toggle-active > svg {
        transform: rotate(180deg);
    }
    .wm-mm.is-mobile .wm-mm__content-wrapper {
    transition: transform 0.3s ease;
    position: fixed;
    top: 91px;
    right: -80%;
    left:unset !important;
    width: 80vw !important;
    height: 100vh;
    background-color: var(--wp--preset--color--primary) !important;
    z-index: 99999999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
}
body {
    transition: transform 0.3s ease;
    will-change: transform;
}
body {
    transform: translateX(0);
}
body.menu-open {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
    /* Optionally dim background */
    transform: translateX(-80%);
    transition: transform 0.3s ease;
}
body.menu-open .entry-content {
    pointer-events: none; 
    filter: blur(2px) brightness(0.8);
    position: relative;
    z-index: -1;
}
.wm-mm.is-mobile.is-opened .wm-mm__content-wrapper {
        position: fixed;
        right: -80%;
        margin: 0;
        top: 0;
        bottom: 0;
        z-index: 99999999;
        width: 80%;
        max-width: 400px;
        overflow: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-flow: column;
        flex-flow: column;
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
        background-color: #106EAA;
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
        transition: transform 0.3s ease;
}

.wm-mm.is-mobile.is-opened .wm-mm__content-wrapper > .wm-mm__content .name {
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 0;
    margin-top: 30px;
}
.wm-mm.is-mobile.is-opened .wm-mm__content-wrapper > .wm-mm__content {
    overflow-y: auto;
    display: block !important;
    padding-bottom: 30px !important;
    height: 100vh;
    min-height: 100vh;
}
body.menu-open .wm-mm.is-mobile.is-opened .wm-mm__content-wrapper {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
}
    .wm-mm-item__dropdown-content h4 {
        margin: 0px !important;
        padding: 0px !important;
    }
    .wm-mm-item__dropdown-content ul {
        margin: 0 0 14px 0px !important;
        padding: 0px !important;
    }
    .wm-mm-item__dropdown-content {
        padding: 0px !important;
    }
    .wm-mm-item__dropdown-content ul.wp-block-navigation__container {
        gap: 0px !important;
        padding-left: 0px !important;
        width: 100% !important;
        margin: 0px !important;
    }
    .wm-mm-item__dropdown-content ul.wp-block-navigation__container a {
        font-size: 15px !important;
        line-height: 22px !important;
    }
    .wm-mm-item__dropdown-content ul.wp-block-navigation__container>li>a {
        padding-left: 30px !important;
    }
    .wm-mm-item__dropdown-content ul.wp-block-navigation__container>li>ul>li>a {
        padding-left: 40px !important;
    }
    .wm-mm-item__dropdown-content .wp-block-navigation .wp-block-navigation-item.has-child {
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .wm-mm-item__dropdown-content .wp-block-navigation .wp-block-navigation-item.has-child .wm-mm-item__toggle {
        
    }
    .wm-mm-item__dropdown {
        padding: 0 !important;
    }

    /* Convert wm-mm-item__toggle svg to css + sign and minus sign on toggle */
    .wm-mm-item__toggle {
        position: relative;
        z-index: 99999999;
        width: 18px;
        height: 18px;;
        display: inline-block;
    }
    .wm-mm-item__toggle svg {
        width: 30px;
        height: 30px;
        transition: all 0.3s ease;
    }
    .wp-block-wm-megamenu-item.is-opened .wm-mm-item__toggle svg {
        transform: rotate(180deg);
    }
    .wm-mm-item__toggle span.m-toggle-icon {
        display: none !important;
    }

  
    /* Convert plus sign to - when toggled */
    .is-opened > .wm-mm-item__link .wm-mm-item__toggle span.m-toggle-icon:after {
    
    }
 
    

}