/* menu */
#home-nav {
  height: auto;
}

#home-nav {
    font-family: hind, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 16px;
}

#menu-main-menu .header-button {
   display: none;
}


@media (min-width: 992px) {
    #home-nav ul ul {
        padding: 15px 0;
        border-radius: 0;
    }

    #home-nav li:hover > ul {
      top: 50px;
    }

    .dropdown-item:hover, .dropdown-menu {
        background: #fff;
    }

    #menu-main-menu ul ul li a,
    #menu-main-menu ul ul li a:visited,
    #home-nav ul ul li a,
    #home-nav ul li ul a:visited {
        color: #26386c;
    }

    #menu-main-menu > li > a {
      padding-bottom: 16px;
      position: relative;
    }

    /*
    .page-id-9251 #menu-main-menu > li > a::after {
        content:"";
        background: #fff;
        height: 1px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 97%;
        bottom: 10px;
    }
    */

}

#menu-main-menu > li > a[href$="#"] {
    cursor: default;
    color: #fff!important;
}

#menu-main-menu > li > a[href$="javascript:void(0);"] {
    cursor: default;
    color: #fff !important;
}

#menu-main-menu ul ul {
   padding: 15px 0;
}

#menu-main-menu ul ul li a,
#home-nav ul ul li a {
    padding: 6px 16px;
    transition: all 0.3s ease-in-out;
}
#menu-main-menu ul ul li a:hover,
#menu-main-menu ul ul li a:active,
#menu-main-menu ul ul li a:focus,
#home-nav ul ul li a:hover,
#home-nav ul ul li a:active,
#home-nav ul ul li a:focus {
    color: #3A82E4;
    text-shadow: 0 0 1px #3A82E4;
}
#home-nav ul .nav-item > a:hover,
#home-nav ul .nav-item > a:active,
#home-nav ul .nav-item > a:focus {
    color: #ecc955;
}

#menu-main-menu ul ul li,
#home-nav ul ul li {
    padding: 0 5px;
}
.dropdown-menu li a,
.dropdown-menu li a:visited {
    font-weight: 400!important;
}

    .sub-menu-toggle.activated + .dropdown-menu {
        position: static;
        opacity: 1!important;
    }

    .hidden-menu-item {
        height: 0px;
        overflow: hidden;
        margin: 0 !important;
        opacity: 0!important;
    }


/* button */

@media screen and (max-width: 1023px) {
    #home-nav {
        display: flex;
        flex-direction: row;
        padding: 15px 0;
    }

    button.menu-toggle {
        order: 1;
        margin-right: auto;
        float: none;
        margin-left: 25px;
    }

    .sitelogo {
       order: 2;
       margin: auto
    }
    .sitelogo .navbar-brand {
        margin-right: 0;
    }

    .search-box {
        margin-right: 20px;
        order: 3;
        width: 40px;
        margin-top: 15px
    }

    .search-box .wp-block-buttons {
        display: none;
    }

    .top-nav-sr > .wp-block-group__inner-container {
        display: flex;
        margin-right: 0;
        justify-content: flex-end;
    }

    .main-nav {
        background: #24366E;
        height: 0;
        min-height: 0!important;
        top: 80px;
        right: 0;
        display: none;
        margin-top: 0;
        padding-top: 0;
        color: #000;
        max-width: 100%;
        -webkit-transition: all .5s ease;
        -o-transition: all .5s ease;
        transition: all .5s ease;
        position: absolute;
        width: 100%;
        z-index: 9999;
    }
    .side-menu-opened .main-nav {
        height: auto;
        display: block
    }

    .main-nav > .wrap {
        background: var(--dark-blue);
        width: 100%;
        max-width: 90%;
        margin: 0 auto;
        height: 100% !important;
        padding: 70px 0 50px!important;
        float: none!important;
        max-width: 90%;
    }
    ul#menu-main-menu {
        width: 100%;
        margin-right: 0;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-transition: all 0.7s ease;
        -o-transition: all 0.7s ease;
        transition: all 0.7s ease;
    }
    ul#menu-main-menu > li {
        margin-left: 0;
    }

    #menu-main-menu > .nav-item > a,
    #menu-main-menu > .nav-item > a:visited {
        display: block;
        width: 100%;
        font-size: 18px;
        outline: none;
        -webkit-transition: none;
        -o-transition: none;
        transition: none;
    }
    #menu-main-menu a span {
        display: inline-block;
        width: auto;
        position: relative;
        z-index: 1;
    }

    #menu-main-menu .nav-item {
        -webkit-transition: all 0.7s ease;
        -o-transition: all 0.7s ease;
        transition: all 0.7s ease;
        width: 100%;
    }
    #menu-main-menu ..dropdown-menu {
        background: transparent;
        margin: 0 auto;
    }

    .menu-toggle {
        overflow: visible;
        float: right;
        margin-bottom: 16px;
        margin-top: 17px;
        position: relative;
        z-index: 1000;
        margin-right: 18px;
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
        height: 20px;
        padding: 10px 12px 12px;
        width: 26px;
        -webkit-transition: all .5s ease-in-out;
        -o-transition: all .5s ease-in-out;
        transition: all .5s ease-in-out;
        display: block!important;
        visibility: visible!important;
        outline: none;
        background: transparent;
        border: 0 solid transparent;
    }

    .menu-toggle:focus,
    .menu-toggle:hover,
    .sub-menu-toggle:focus,
    .sub-menu-toggle:hover {
        background-color: transparent;
        border-width: 0;
        color: #fff;
        outline: 0 !important
    }
    .menu-toggle::before {
        content: ""!important;
        opacity: 0;
    }
    .menu-toggle::after {
        position: absolute;
        top: 50%;
        left: 50%;
        display: block;
        content: '';
        width: 60px;
        height: 60px;
        margin: -30px 0 0 -30px;
        border-radius: 50%;
        border: 0 solid transparent;
        -webkit-transition: all .75s;
        -o-transition: all .75s;
        transition: all .75s;
    }

    .menu-toggle:hover::after,
    .menu-toggle:focus::after,
    .menu-toggle.activated::after {
    }

    .menu-toggle span {
        display: block;
        height: 2.4px;
        width: 100%;
        position: absolute;
        background: #fff;
        opacity: 1;
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: all .5s ease-in-out;
        -o-transition: all .5s ease-in-out;
        transition: all .5s ease-in-out;
        left: 0;
        border-radius: 4px;
    }
    .menu-toggle span:nth-child(1) {
        top: 0;
    }
    .menu-toggle span:nth-child(2) {
        top: 9.5px;
    }
    .menu-toggle span:nth-child(3) {
        bottom: 0;
    }

    .menu-toggle.activated span:nth-child(1) {
           -webkit-transform: translateY(11px) rotate(-45deg);
               -ms-transform: translateY(11px) rotate(-45deg);
                   transform: translateY(11px) rotate(-45deg);
    }
    .menu-toggle.activated span:nth-child(2) {
        left: 60%;
        opacity: 0;
        -webkit-animation: active-menu-bar02 .8s forwards;
                animation: active-menu-bar02 .8s forwards;
    }
    .menu-toggle.activated span:nth-child(3) {
        -webkit-transform: translateY(-8px) rotate(45deg);
            -ms-transform: translateY(-8px) rotate(45deg);
                transform: translateY(-8px) rotate(45deg);
    }
    .menu-toggle.activated:hover span {
        background: #fff;
    }


    @-webkit-keyframes active-menu-bar02 {
        100% {
            height: 0;
        }
    }


    @keyframes active-menu-bar02 {
        100% {
            height: 0;
        }
    }

    .menu-toggle.activated::after {
        -webkit-animation: active-menu .4s .25s forwards;
                animation: active-menu .4s .25s forwards;
    }
    @-webkit-keyframes active-menu {
        0% {
            border-color: transparent;
            -webkit-transform: rotate(0);
                    transform: rotate(0);
        }
        25% {
            border-color: transparent #fff transparent transparent;
        }
        50% {
            border-color: transparent #fff #fff transparent;
        }
        75% {
            border-color: transparent #fff #fff #fff;
        }
        100% {
            border-color: #fff;
            -webkit-transform: rotate(-680deg);
                    transform: rotate(-680deg);
        }
    }
    @keyframes active-menu {
        0% {
            border-color: transparent;
            -webkit-transform: rotate(0);
                    transform: rotate(0);
        }
        25% {
            border-color: transparent #fff transparent transparent;
        }
        50% {
            border-color: transparent #fff #fff transparent;
        }
        75% {
            border-color: transparent #fff #fff #fff;
        }
        100% {
            border-color: #fff;
            -webkit-transform: rotate(-680deg);
                    transform: rotate(-680deg);
        }
    }



    .sub-menu-toggle {
        color: #fff;
        display: block!important;
        visibility: visible;
        position: absolute;
        right: 0;
        top: 0;
        outline: none;
        -webkit-transition: all .5s ease-in-out;
        -o-transition: all .5s ease-in-out;
        transition: all .5s ease-in-out;
        width: 33px;
        max-width: 100%;
        height: 40px;
        padding: 0;
        border: 0;
        background: transparent;
        z-index: 2;
    }
    .sub-menu-toggle:hover,
    .sub-menu-toggle:active,
    .sub-menu-toggle:focus {
        color: #fff;
    }

    .dropdown  .sub-menu-toggle::before {
        position: absolute;
        top: 0;
        right: 0;
        width: 40px;
        height: 30px;
        font-size: 30px;
         -webkit-transform: rotate(-90deg);
            -ms-transform: rotate(-90deg);
                transform: rotate(-90deg);
        -webkit-transition: all .5s ease-in-out!important;
        -o-transition: all .5s ease-in-out!important;
        transition: all .5s ease-in-out!important;
    }
    .sub-menu-toggle.selected-btn::before {
        -webkit-transform: rotate(90deg);
            -ms-transform: rotate(90deg);
                transform: rotate(90deg);
        -webkit-transition: all .5s ease-in-out;
        -o-transition: all .5s ease-in-out;
        transition: all .5s ease-in-out;
    }

    #menu-main-menu {
        text-align: left;
    }
    #menu-main-menu .dropdown-menu {
        padding: 0;
        -webkit-box-shadow: none;
        box-shadow: none;
        background: transparent;
        border: 0;
        width: 100%;
        max-width: 90%;
        margin-left: 30px;
        margin-bottom: 30px;
        border: none;
    }
    .sub-menu-toggle.activated + .dropdown-menu {
        position: static;
        opacity: 1!important;
    }
    .dropdown-item:hover, .dropdown-menu {
        background: transparent;
    }

    #menu-main-menu .dropdown-menu a,
    #menu-main-menu .dropdown-menu a:visited {
        display: block;
        width: auto;
        font-size: 18px;
        outline: none;
        margin-bottom: 0;
        position:relative;
        background: transparent;
        border: 0;
        padding: 20px 10px 5px 0!important;
        -webkit-transition: none;
        -o-transition: none;
        transition: none;
    }

    #menu-main-menu > .nav-item.menu-btn > a, #menu-main-menu > .nav-item.menu-btn > a:visited {
        text-align: center;
        margin-top: 20px;
        font-size: 24px;
    }

    .hidden-menu-item {
        height: 0px;
        overflow: hidden;
        margin: 0 !important;
        opacity: 0!important;
    }
    #menu-main-menu .dropdown-menu .nav-item:first-child a::after {
        top: 20px;
    }
    #menu-main-menu .nav-item:not(.menu-btn) a::after {
        left: 0;
    }
    #menu-main-menu .dropdown-menu .break-on-mobile a span {
        max-width: unset;
    }

    .dropdown-menu.selected-ul {
        display: block !important;
    }

    .sub-menu-toggle:focus,
    .sub-menu-toggle:active {
        border: 0 solid trnasparent !important;
        outline: 0 !important
    }

/*    #menu-main-menu .dropdown > a:hover .dropdown-menu,  */
    #menu-main-menu .dropdown:hover >ul {display: none !important;}
    #menu-main-menu .dropdown:hover >ul.dropdown-menu.selected-ul {
         display: block !important;
    }




    #menu-main-menu .nav-item {
        display: inline-block;
        float: none;
        position: relative;
        margin-bottom: 12px;
    }

    #menu-main-menu > .nav-item > a,
    #menu-main-menu > .nav-item > a:visited {
        position: relative;
    }

    #home-nav li > ul,
    #home-nav li:hover > ul {
     position: static;
    }

    #menu-main-menu .header-button {
        display: block;
        width: 100%;
        margin: 30px 0;
    }

    #menu-main-menu .header-button a,
    #menu-main-menu .header-button a:visited {
       width: 100%;
       display: block;
       margin: 0 auto;
       padding: 15px 25px 12px;
    }

}

@media only screen and (max-width: 781px) {
    .side-menu-opened .main-nav {
        height: auto;
    }
}
@media only screen and (max-width: 480px) {
    #menu-main-menu {
        margin-left: 0;
    }
    .menu-toggle {
        margin-right: 10px;
    }
    #menu-main-menu > .nav-item > a, #menu-main-menu > .nav-item > a:visited {
        font-size: 18px;
    }
    #menu-main-menu .dropdown-menu a, #menu-main-menu .dropdown-menu a:visited {
        font-size: 18px;
    }
    #menu-main-menu > .nav-item.menu-btn > a, #menu-main-menu > .nav-item.menu-btn > a:visited {
        font-size: 20px;
    }
    #menu-main-menu > .nav-item > a, #menu-main-menu > .nav-item > a:visited {
        padding: 16px 0px 30px 20px;
    }
    #menu-main-menu > .nav-item.menu-btn > a, #menu-main-menu > .nav-item.menu-btn > a:visited {
        margin-top: 12px;
    }
    #menu-main-menu .dropdown-menu .break-on-mobile a span {
        max-width: 180px;
    }

.dropdown .sub-menu-toggle::before {
    width: 30px;
    height: 30px;
    font-size: 25px;
      top: 65%;
      transform: translateY(-50%) rotate(-90deg);
}

.dropdown .sub-menu-toggle.selected-btn::before {
    transform: translateY(-50%) rotate(90deg);
}

#menu-main-menu .dropdown-menu a,
#menu-main-menu .dropdown-menu a:visited {
    font-size: 18px;
    padding: 10px 10px 10px 5px !important;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-item:hover, .dropdown-menu {
    background: transparent;
}

#menu-main-menu .dropdown-menu:hover,
#menu-main-menu .dropdown-menu a:hover,
#menu-main-menu .dropdown-menu a:focus {
   background: transparent;
}

.main-nav {
    top: 70px;
}

}

