#cssmenu>ul>li {
    margin-right: 0px !important;
}

#cssmenu>ul>li:last-child {
    margin-right: 0;
}

.svg-shape {
    text-align: center;
}

.svg-shape img {
    width: 100%;
}

a.underline:hover {
    color: #90181b !important;
}

.navbar3 {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navitem-div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav {
    position: relative;
    width: unset;
    margin: 0 auto;
}

#cssmenu,
#cssmenu ul,
#cssmenu ul li,
#cssmenu ul li a,
#cssmenu #head-mobile {
    border: 0;
    list-style: none;
    line-height: 1;
    display: block;
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#cssmenu:after,
#cssmenu>ul:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

#cssmenu #head-mobile {
    display: none;
}

#cssmenu>ul>li {
    float: left;
}

#cssmenu>ul>li>a {
    padding: 15px 15px;
    font-size: 13px;
    letter-spacing: 1px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    text-transform: uppercase;
}

#cssmenu>ul>li.has-sub>a {
    padding-right: 28px;
}

#cssmenu>ul>li.has-sub>a::after {
    content: "\f0d7";
    position: absolute;
    top: 13px;
    right: 13px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    color: #ffffff;
}

#cssmenu > ul > li.has-sub > a::after {
    transition: transform 0.3s ease;
}

#cssmenu > ul > li.has-sub:hover > a::after {
    transform: rotate(180deg);
}

/* Submenu base */
#cssmenu ul ul {
    position: absolute;
    left: -9999px;
    border: 1px solid rgba(128, 128, 128, 0.548);
    background: #ffffff;
    z-index: 99999;

    /* Transition added */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show submenu on hover */
#cssmenu li:hover>ul {
    left: 0px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0px);
}

#cssmenu ul ul li {
    height: auto;
    transition: all 0.25s ease;
}

#cssmenu ul ul ul {
    margin-left: 100%;
    top: 0;
}

#cssmenu ul ul li a {
    border-bottom: 1px solid rgba(150, 150, 150, 0.15);
    padding: 9px 15px;
    width: 300px;
    font-size: 14px;
    text-decoration: none;
    color: black;
    font-weight: 400;
    line-height: 20px;
}

#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: #fff;
    background-color: #365b97;
}

#cssmenu ul ul li.has-sub>a:after {
    position: absolute;
    top: 16px;
    right: 11px;
    width: 8px;
    height: 2px;
    background: #000;
    content: '';
}

#cssmenu ul ul li.has-sub>a:before {
    position: absolute;
    top: 13px;
    right: 14px;
    width: 2px;
    height: 8px;
    background: #000;
    content: '';
    transition: all 0.25s ease;
}

#cssmenu ul ul>li.has-sub:hover>a:before {
    top: 17px;
    height: 0;
}

#cssmenu ul ul li.has-sub:hover,
#cssmenu ul li.has-sub ul li.has-sub ul li:hover {
    background: #90181b;
}

#cssmenu ul ul ul li.active a {
    border-left: 1px solid #333;
}

#cssmenu>ul>li.has-sub>ul>li.active>a,
#cssmenu>ul ul>li.has-sub>ul>li.active>a {
    border-top: 1px solid #333;
}

/* ===== RESPONSIVE MENU ===== */
@media screen and (max-width:1100px) {


    .logo2 {
        display: none;
    }

    nav,
    #cssmenu,
    #cssmenu ul {
        width: 100%;
    }

    #cssmenu ul {
        display: none;
    }

#cssmenu ul li {
    width: 100%;
    border-top: 1px solid #ffffff1c;
}

#cssmenu ul li:hover {
    background: #335893;
}

    #cssmenu ul li a,
    #cssmenu ul ul li a {
        width: 100%;
        border-bottom: 0;
        color: #ddd;
        background: none;
    }

    #cssmenu>ul>li {
        float: none;
    }

    #cssmenu ul ul li {
        background: #333 !important;
    }

    #cssmenu ul ul li:hover {
        background: #363636 !important;
    }

    #cssmenu ul ul ul li a {
        padding-left: 35px;
    }

    #cssmenu ul ul li a {
        padding-left: 25px;
    }

    #cssmenu ul ul,
    #cssmenu ul ul ul {
        position: relative;
        left: 0;
        width: 100%;
        margin: 0;
        text-align: left;

        /* Mobile animation */
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    #cssmenu>ul>li.has-sub>a:after,
    #cssmenu>ul>li.has-sub>a:before,
    #cssmenu ul ul>li.has-sub>a:after,
    #cssmenu ul ul>li.has-sub>a:before {
        display: none;
    }

#cssmenu #head-mobile {
    display: block;
    padding: 23px;
    color: #ddd;
    font-size: 12px;
    font-weight: 700;
    background: #365b97;
}

.button {
    width: 45px;
    height: 46px;
    position: absolute;
    left: 0;
    top: 0;
    cursor: pointer;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    flex-direction: column;
    gap: 6px;
}

    .button span {
        display: block;
        height: 3px;
        width: 100%;
        background: #ddd;
    }

    #cssmenu .submenu-button {
        position: absolute;
        z-index: 99;
        right: 0;
        top: 0;
        display: block;
        border-left: 1px solid #444;
        height: 46px;
        width: 46px;
        cursor: pointer;
    }

#cssmenu .submenu-button:after {
    position: absolute;
    top: 22px;
    right: 19px;
    width: 8px;
    height: 2px;
    background: #ffffff;
    content: '';
}

#cssmenu>ul>li>a {
    padding: 9px 6px;
   
}
#cssmenu .submenu-button {
  
    height: 30px;
   
}

#cssmenu .submenu-button:before {
    position: absolute;
    top: 19px;
    right: 22px;
    width: 2px;
    height: 8px;
    background: #ffffff;
    content: '';
}
#cssmenu>ul>li>a {
    padding: 9px 6px!important;
   
}
    #cssmenu .submenu-button.submenu-opened:before {
        display: none;
    }
#cssmenu .submenu-button:before {
    top: 9px;
}


#cssmenu .submenu-button:after {
    top: 12px;
    right: 19px;
    
}
    #cssmenu ul ul ul li.active a {
        border-left: none;
    }

    #cssmenu>ul>li.has-sub>ul>li.active>a,
    #cssmenu>ul ul>li.has-sub>ul>li.active>a {
        border-top: none;
    }
}

/* UNDERLINE HOVER FOR DESKTOP */
@media (min-width: 992px) {
    #cssmenu>ul>li>a>.underline {
        position: relative;
        display: inline-block;
        z-index: 1;
    }

#cssmenu>ul>li>a>.underline::after {
    content: "";
    position: absolute;
    top: 26px;
    left: 0;
    width: 0%;
    height: 3px;
    border-radius: 10px;
    background-color: transparent;
    transition: width 0.3s ease;
    z-index: 0;
}
    #cssmenu ul li.current-menu-item>a>.underline {
        color: #e7b90f;
    }

    #cssmenu ul li.current-menu-item>a>.underline::after,
    #cssmenu ul li.current_page_item>a>.underline::after,
    #cssmenu ul li.current-menu-ancestor>a>.underline::after {
        width: 100%;
    }


    /* Underline */
    #cssmenu ul li.current-menu-item a.underline::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0px;
        width: 0;
        height: 3px;
        border-radius: 10px;
        background-color: #e7b90f;
        transition: width 0.3s ease;
    }

    #cssmenu>ul>li:hover>a>.underline::after,
    #cssmenu>ul>li.active>a>.underline::after {
        width: 100%;
        color: white;
    }
}

@media (min-width: 1100px) {

    #cssmenu {
        display: flex !important;
        justify-content: center;
    }
}