.menu_bg {
    width: 100%;
    z-index: 1050;
}

.menu_bg,
.menu_bg ul,
.menu_bg ul li,
.menu_bg ul li a,
.menu_bg .mobile-menu {
    padding: 0;
    margin: 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;
}

.menu_bg ul.mainui {
    padding:0;
    display: flex;
    justify-content: center;
    gap:10px;
}

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

.menu_bg .mobile-menu {
    display: none;
}

.menu_bg > ul > li {
    float: left;
}

.menu_bg > ul > li > a {
    position: relative;
    display: flex;
    padding: 14px 16px;
    text-decoration: none;
    color: #fff;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    border-radius: 5px 5px 0 0;
    font-size: 14px;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-weight: 600;
    overflow: hidden;
    text-transform: uppercase;
}
.menu_bg > ul > li > a svg {
  padding-right:5px;
  margin-right:5px;
}

.menu_bg > ul > li:hover > a,
.menu_bg ul li.active a {
   background: 085253;
background: linear-gradient(176deg,rgba(0, 0, 0, 1) 0%, rgba(9, 81, 81, 1) 100%);
    transform: translateY(1px);
    box-shadow: 0 8px 25px rgba(74, 38, 6, 0.3);
}

.menu_bg > ul > li.has-sub > a {
    padding-right: 30px;
}

.menu_bg > ul > li.has-sub > a:after {
    position: absolute;
    top: 23px;
    right: 11px;
    width: 8px;
    height: 2px;
    display: block;
    background: #ddd;
    content: "";
}

.menu_bg > ul > li.has-sub > a:before {
    position: absolute;
    top: 20px;
    right: 14px;
    display: block;
    width: 2px;
    height: 8px;
    background: #ddd;
    content: "";
    -webkit-transition: all 0.25s ease;
    -ms-transition: all 0.25s ease;
    transition: all 0.25s ease;
}

.menu_bg > ul > li.has-sub:hover > a:before {
    top: 23px;
    height: 0;
}

.menu_bg ul ul {
    position: absolute;
    left: -9999px;
    top: 100%;
    margin-top: 0;
    z-index: 1060;
}

.menu_bg li:hover > ul {
    left: auto;
}

.menu_bg ul ul li {
    background: #084c4c;
    transition: all 0.25s ease;
    border-radius: 0;
}

.menu_bg ul ul li a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    text-decoration: none;
    color: #fff;
    position: relative;
    padding: 14px 25px 14px 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    line-height: 20px;
    text-transform: uppercase;
}

.menu_bg ul ul li:last-child > a {
    border-bottom: 0;
}

.menu_bg ul ul li:hover > a,
.menu_bg ul ul li a:hover {
    color: #fff;
    background-color: #051819;
}

.menu_bg ul ul li.has-sub > a:after {
    position: absolute;
    top: 23px;
    right: 11px;
    width: 8px;
    height: 2px;
    display: block;
    background: #ddd;
    content: "";
}

.menu_bg ul ul li.has-sub > a:before {
    position: absolute;
    top: 20px;
    right: 14px;
    display: block;
    width: 2px;
    height: 8px;
    background: #ddd;
    content: "";
    -webkit-transition: all 0.25s ease;
    -ms-transition: all 0.25s ease;
    transition: all 0.25s ease;
}

.menu_bg ul ul > li.has-sub:hover > a:before {
    top: 17px;
    height: 0;
}
.menu_bg ul ul ul{
margin-left: 100%;
    top: auto;
    top: 0px;
    max-height: 330px;
}

@media screen and (max-width: 1000px) {
    .menu_bg {
        width: 100%;
    }

    .menu_bg ul {
        width: 100%;
        display: none;
        max-height: 400px;
        overflow-y: auto;
        flex-direction:column;
    }

    .menu_bg ul li {
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .menu_bg ul li:hover {
        background: #4a2606;
    }

    .menu_bg ul ul li,
    .menu_bg li:hover > ul > li {
        height: auto;
    }

    .menu_bg ul li a,
    .menu_bg ul ul li a {
        width: 100%;
        border-bottom: 0;
    }

    .menu_bg > ul > li {
        float: none;
    }

    .menu_bg ul ul li a {
        padding-left: 25px;
    }

    .menu_bg ul ul li {
        background: #4a2606 !important;
    }

    .menu_bg ul ul li:hover {
        background: #4a2606 !important;
    }

    .menu_bg ul ul li a {
        color: #fff;
        background: none;
    }

    .menu_bg ul ul li:hover > a,
    .menu_bg ul ul li.active > a {
        color: #ffce9c;
    }

    .menu_bg ul ul,
    .menu_bg ul ul ul {
        position: relative;
        left: 0;
        width: 100%;
        margin: 0;
        text-align: left;
    }

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

    .menu_bg .mobile-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 50px;
        height: 46px;
        cursor: pointer;
        margin: 0;
        background: transparent;
    }

    .menu_bg .mobile-menu span {
        display: block;
        height: 2px;
        width: 24px;
        background: #fff;
        -webkit-transition: all 0.3s ease;
        -ms-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }

    .menu_bg .mobile-menu.menu-opened span:nth-child(1) {
        -webkit-transform: translateY(7px) rotate(45deg);
        transform: translateY(7px) rotate(45deg);
    }

    .menu_bg .mobile-menu.menu-opened span:nth-child(2) {
        opacity: 0;
    }

    .menu_bg .mobile-menu.menu-opened span:nth-child(3) {
        -webkit-transform: translateY(-7px) rotate(-45deg);
        transform: translateY(-7px) rotate(-45deg);
    }

    .menu_bg .submenu-button {
        position: absolute;
        z-index: 99;
        right: 0;
        top: 0;
        display: block;
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        height: 54px;
        width: 50px;
        cursor: pointer;
    }

    .menu_bg .submenu-button.submenu-opened {
        background: #BC5D17;
    }

    .menu_bg ul ul .submenu-button {
        height: 100%;
        width: 34px;
    }

    .menu_bg .submenu-button:after {
        position: absolute;
        top: 22px;
        right: 19px;
        width: 8px;
        height: 2px;
        display: block;
        background: #ddd;
        content: "";
    }

    .menu_bg ul ul .submenu-button:after {
        top: 15px;
        right: 13px;
    }

    .menu_bg .submenu-button.submenu-opened:after {
        background: #fff;
    }

    .menu_bg .submenu-button:before {
        position: absolute;
        top: 19px;
        right: 22px;
        display: block;
        width: 2px;
        height: 8px;
        background: #ddd;
        content: "";
    }

    .menu_bg ul ul .submenu-button:before {
        top: 12px;
        right: 16px;
    }

    .menu_bg .submenu-button.submenu-opened:before {
        display: none;
    }
}

