/*Menu*/
.nav-bg {
    background: #2E3192;
}

.mobile-top-content,
.hamburger-btn {
    display: none;
}

ul.mobile-menu {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    list-style: none;
    line-height: 57px;
    padding: 0;
}

#sub-menu.ul,
#sub-menu.ul li,
#sub-menu.ul li a,
#cssmenu #menu-button {
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
    line-height: 1;
    display: block;
    position: relative;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#cssmenu:after,
#cssmenu>ul:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

#cssmenu #menu-button {
    display: none;
}

#cssmenu {
    z-index: 1000;
}

#cssmenu>ul>li {
    float: left;
}

#cssmenu.align-center>ul {
    font-size: 0;
    text-align: center;
}

#cssmenu.align-center>ul>li {
    display: inline-block;
    float: none;
}

#cssmenu.align-center ul ul {
    text-align: left;
}

#cssmenu.align-right>ul>li {
    float: right;
}

#cssmenu>ul>li>a {
    color: #FFF;
    text-align: center;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 30px;
    text-decoration: none;
    padding: 20px 15px !important;
    text-transform: uppercase;
}

#cssmenu>ul>li:hover>a {
    background: #1C1E4D;
}

#cssmenu>ul>li.has-sub>a {
    padding-right: 30px;
}

#cssmenu>ul>li.has-sub>a:after {
    display: none;
}

#cssmenu>ul>li.has-sub>a:before {
    display: none;
}

#cssmenu>ul>li.has-sub:hover>a:before {
    top: 23px;
    height: 0;
}

#cssmenu ul ul {
    position: absolute;
    left: -9999px;
    z-index: 1000;
    padding: 0;
    list-style: none;
    margin-top: 0;
    min-width: 300px;
}

#cssmenu.align-right ul ul {
    text-align: right;
}

#cssmenu ul ul li {
    height: 0;
    -webkit-transition: all .25s ease;
    -moz-transition: all .25s ease;
    -ms-transition: all .25s ease;
    -o-transition: all .25s ease;
    transition: all .25s ease;
}

#cssmenu li:hover>ul {
    left: auto;
}

#cssmenu.align-right li:hover>ul {
    left: auto;
    right: 0;
}

#cssmenu li:hover>ul>li {
    position: relative;
    width: 100%;
    height: auto;
}

#cssmenu ul ul ul {
    margin-left: 100%;
    top: 0;
}

#cssmenu.align-right ul ul ul {
    margin-left: 0;
    margin-right: 100%;
}

#cssmenu ul ul li a {
    padding: 21px 15px;
    width: 170px;
    font-size: 13px;
    text-decoration: none;
    color: #fff;
    font-weight: 400;
    background: #1C1E4D;
    width: 100% !important;
    display: block;
    text-transform: uppercase;
}

#cssmenu>ul>li.has-sub:last-of-type:hover>ul {
    left: auto;
    right: 37px;
}

#cssmenu>ul>li.has-sub:last-of-type:hover ul li:hover ul {
    left: auto;
    right: 300px;
}

#cssmenu ul ul li:last-child>a,
#cssmenu ul ul li.last-item>a {
    border-bottom: 0;
}

#cssmenu ul ul li:hover>a,
#cssmenu ul ul li a:hover {
    color: #1C1E4D;
    background: #F5F5F5;
}

nav.main-nav.footer-first ul {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

nav.main-nav.footer-first ul li a {
    color: #FFF;
    padding: 10px;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
    text-decoration: none;
}

nav.main-nav.footer ul {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

nav.main-nav.footer ul li {
    border-right: 1px solid #fff;
    padding: 0 5px;
}

nav.main-nav.footer ul li:last-child {
    border-right: 1px solid transparent;
}

nav.main-nav.footer ul li a {
    color: #FFF;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
}

/* #cssmenu ul ul li.has-sub>a:after {
    position: absolute;
    top: 16px;
    right: 11px;
    width: 8px;
    height: 2px;
    display: block;
    background: #dddddd;
    content: '';
}

#cssmenu.align-right ul ul li.has-sub>a:after {
    right: auto;
    left: 11px;
} */

/* #cssmenu ul ul li.has-sub>a:before {
    position: absolute;
    top: 13px;
    right: 14px;
    display: block;
    width: 2px;
    height: 8px;
    background: #dddddd;
    content: '';
    -webkit-transition: all .25s ease;
    -moz-transition: all .25s ease;
    -ms-transition: all .25s ease;
    -o-transition: all .25s ease;
    transition: all .25s ease;
}

#cssmenu.align-right ul ul li.has-sub>a:before {
    right: auto;
    left: 14px;
} */
footer.page-footer ul {
    list-style: none;
}

#cssmenu ul ul>li.has-sub:hover>a:before {
    top: 17px;
    height: 0;
}

form.custom-search-form-mobile {
    display: none;
}

@media screen and (max-width: 1295px) {
    #cssmenu>ul>li>a {
        padding: 20px 5px !important;
    }

    #cssmenu ul ul {
        min-width: 200px;
    }

    #cssmenu>ul>li.has-sub:last-of-type:hover>ul {
        left: auto;
        right: 31px;
    }
}

@media screen and (max-width: 1168px) {
    button.hamburger-btn {
        float: right;
        padding: 3px 10px;
        font-size: 24px;
        color: #fff;
        border: none;
        margin: 10px 0;
        background: #1C1E4D;
    }

    form.custom-search-form-mobile {
        display: flex;
        padding: 20px;
        position: relative;
        margin-top: 10px;
    }

    form.custom-search-form-mobile button {
        position: absolute;
        top: 22px;
        background: none;
        right: 21px;
        padding: 0;
        font-size: 20px;
        padding: 7px;
        border: none;
    }

    form.custom-search-form-mobile input.search-field {
        padding: 10px;
        border-radius: 15px;
    }

    button.hamburger-btn.open {
        margin-right: 323px;
    }

    .lang-switch a {
        color: #fff;
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: normal;
        text-decoration: none;
        border-right: 1px solid #D9D9D9;
        padding: 5px;
        margin-bottom: 15px;
        text-align: center;
        width: 100%;
    }

    .lang-switch {
        display: flex;
        justify-content: space-around;
        align-content: center;
    }

    .header-last-content {
        display: none;
    }

    #cssmenu ul ul {
        position: relative;
    }

    .mobile-top-content,
    .hamburger-btn {
        display: block;
    }

    #cssmenu>ul>li:hover>a {
        background: #1C1E4D;
    }

    /* ========= PANEL ========= */
    .container-navigation-mobile {
        position: fixed;
        top: 0;
        right: -320px;
        width: 320px;
        height: 100vh;
        background: #2E3192;
        z-index: 99999;
        overflow-y: auto;
        transition: right 0.35s ease;
        padding: 0;
    }

    .container-navigation-mobile.open {
        right: 0;
    }

    /* ========= OVERLAY ========= */
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.55);
        z-index: 99990;
        display: none;
    }

    .mobile-nav-overlay.active {
        display: block;
    }

    /* ========= MAIN UL ========= */
    #cssmenu,
    #cssmenu ul {
        width: 100%;
        position: relative;
    }

    #cssmenu ul.mobile-menu {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        background: #2E3192;
    }

    #cssmenu ul li {
        position: relative;
        width: 100%;
    }

    #cssmenu ul .sub-menu li {
        padding: 0;
    }

    #cssmenu ul li a {
        display: block;
        padding: 14px 20px !important;
        color: #fff;
        text-decoration: none;
        background: none;
        font-size: 16px;
        text-align: left;
    }

    #cssmenu ul ul {
        min-width: 50px;
        width: calc(100% - 20px);
    }

    /* ========= ARROW BUTTONS ========= */
    #cssmenu .submenu-button {
        position: absolute;
        top: 0;
        right: 0;
        width: 46px;
        height: 59px;
        cursor: pointer;
        background: #2E3192;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #cssmenu .submenu-button:after {
        content: "▸";
        font-size: 20px;
        color: #fff;
        transition: transform 0.25s ease;
        transform: rotate(-90deg);
    }

    #cssmenu .submenu-button.submenu-opened:after {
        transform: rotate(90deg);
        /* open arrow */
    }


    /* ========= SUB-MENUS (3 LEVELS) ========= */

    #cssmenu ul ul {
        display: none;
        background: #2E3192;
        width: 100%;
    }

    #cssmenu ul ul ul {
        margin-left: 0;
    }

    /* open state activated by JS toggling class */
    #cssmenu ul li.submenu-open>ul {
        display: block;
    }

    /* LEVEL 2 */
    #cssmenu ul ul li a {
        padding-left: 5px;
        background: #F5F5F5;
        color: #2E3192;
        max-width: 100%;
        margin: 0 !important;
    }

    /* LEVEL 3 */
    #cssmenu ul ul ul li a {
        padding-left: 45px;
        background: #2E3192;
        color: #fff;
    }

    /* ensure arrow only appears on items with children */
    #cssmenu li.has-sub>.submenu-button {
        display: flex;
    }

    #cssmenu li:not(.has-sub)>.submenu-button {
        display: none;
    }

    #cssmenu ul ul ul {
        margin-left: 0;
    }

    /* ========= SCROLL FIX ========= */
    .container-navigation-mobile {
        -webkit-overflow-scrolling: touch;
    }

    #cssmenu>ul>li.has-sub:last-of-type:hover>ul {
        left: 0;
        right: 0;
    }

    #cssmenu>ul>li.has-sub:last-of-type:hover ul li:hover ul {
        left: auto;
        right: 0;
    }
}

@media (max-width: 991px) {

    nav.main-nav.footer-first,
    nav.main-nav.footer {
        display: flex;
        position: relative;
        right: 0;
        width: 100% !important;
        max-width: 100%;
        justify-content: space-evenly;
        padding: 0;
    }

    ul#menu-footer-bottom a {
        padding: 0 10px;
    }
}

@media (max-width: 776px) {
    nav.main-nav.footer-first {
        display: flex;
        position: relative;
        right: 0;
        width: 100% !important;
        max-width: 100%;
        justify-content: space-evenly;
        padding: 0;
        flex-direction: column;
        align-items: center;
    }

    ul#menu-footer-meni {
        display: flex;
        justify-content: space-around;
        margin: 30px 0;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 400px) {
    .header-logo {
        max-height: 73px;
        width: auto;
        padding: 10px;
    }
}