/* keep the whole header (menu dropdowns, search, language menu) above page content */
#header {
    z-index: 1000; /* position comes from stylesheet.css (absolute on the home page) */
}

.menuBox nav {
    width: 100%;
    min-height: 54px;
    margin: auto;
    display: flex;
}

header nav div {
    display: none;
}

.menuBox nav > ul {
    height: 100%;
    margin: auto;
}


.menuBox nav .active > a {
    color: #fff;
}

.menuBox nav .active {
    /*background-color:#E1001B;*/
    COLOR: #FFF;
    border-radius: 5px;
}

.menuBox nav {
    display: flex;
    justify-content: space-between;
    position: relative;
}

    .menuBox nav div {
        display: none;
        cursor: pointer;
    }

nav div #nav-icon1 {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    margin-top: 0px;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

    nav div #nav-icon1 span {
        display: block;
        position: absolute;
        height: 2px;
        width: 100%;
        background-color: #F8F8F8;
        opacity: 1;
        left: 0;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: all 0.25s ease-in-out;
        -moz-transition: all 0.25s ease-in-out;
        -o-transition: all 0.25s ease-in-out;
        transition: all 0.25s ease-in-out;
    }

.menuBox nav div #nav-icon1 span:nth-child(1) {
    top: 0px;
}

.menuBox nav div #nav-icon1 span:nth-child(2) {
    top: 5px;
}

.menuBox nav div #nav-icon1 span:nth-child(3) {
    top: 10px;
}

nav div #nav-icon1.open span:nth-child(1) {
    top: 5px;
    -webkit-transform: rotate(135deg);
    -moz-transform: rotate(135deg);
    -o-transform: rotate(135deg);
    transform: rotate(135deg);
}

.menuBox nav div #nav-icon1.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menuBox nav div #nav-icon1.open span:nth-child(3) {
    top: 5px;
    -webkit-transform: rotate(-135deg);
    -moz-transform: rotate(-135deg);
    -o-transform: rotate(-135deg);
    transform: rotate(-135deg);
}

.menuBox nav > ul {
    display: flex;
    justify-content: space-between;
    justify-content: space-around;
    position: relative;
    z-index: 1001; /* was 100 */
}

    .menuBox nav > ul > li {
        display: flex;
        justify-content: center;
        flex-direction: column;
        vertical-align: middle;
        padding: 10px;
        padding-top: 15PX;
        border-bottom: 2px solid transparent;
        align-items: flex-end;
        position: relative;
        padding-left: 20px;
        padding-right: 20px;
    }

        .menuBox nav > ul > li a {
            color: #fff;
            font-size: 15px;
            line-height: 17px;
            text-transform: uppercase;
            word-wrap: break-word;
            font-family: 'FiraGo';
            font-feature-settings: "case" on;
            font-weight: bold;
            vertical-align: middle;
            position: relative;
            justify-content: center;
            align-items: flex-end;
        }

        .menuBox nav > ul > li ul li a {
            border-bottom: 1px solid rgba(199, 199, 199, 0.3);
            color: #464646;
            font-family: "BPG Arial";
            font-weight: normal;
        }

            .menuBox nav > ul > li ul li a:hover {
                color: #fff;
                background-color: #E1001B;
                border-radius: 5px;
            }

        .menuBox nav > ul > li ul li:last-child a {
            border-bottom: none;
        }

        .menuBox nav > ul > li.classActive a,
        nav > ul > li a:hover {
            color: #85b640;
        }

nav > ul > li:hover {
    color: #fff;
    background-color: #E1001B;
}

    nav > ul > li:hover > a {
        color: #fff;
    }

.menuBox nav > ul > li:hover {
    border-bottom: 2px solid #85b640;
}

    .menuBox nav > ul > li:hover ul, .menuBox nav > ul > li:active ul {
        display: block;
    }

.menuBox nav > ul li:last-of-type a::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 100%;
    position: absolute;
    padding: 20px;
}

.menuBox nav > ul ul {
    display: none;
    width: 20em;
    position: absolute;
    background: rgba(255, 255, 255, 1);
    -webkit-box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 5px 5px;
    top: 100%;
    left: 0;
    z-index: 1002; /* was 1 */
}

.menuBox nav > ul li:last-of-type ul,
.menuBox nav > ul li:nth-of-type(8) ul {
    left: initial;
    right: 0;
}

.menuBox nav > ul ul li {
    display: block;
    width: 100%;
    text-align: left;
    left: 0;
    background: rgba(255, 255, 255, 1);
}

    .menuBox nav > ul ul li a {
        display: inline-block;
        width: 100%;
        padding: 14px 0.6em;
        white-space: normal;
        border-bottom: 2px solid transparent;
        /* transition: all 0.3s ease;*/
        font-size: 16px;
        line-height: 19px;
        font-size: 1rem;
        line-height: 1.1875;
    }

        .menuBox nav > ul ul li a::before {
            display: none;
        }

    .menuBox nav > ul ul li:last-of-type a::after {
        display: none;
    }

@media (max-width: 1300px) {
    /* menu  responsive*/
    .menuBox nav {
        width: 85.42%;
        height: auto;
        min-height: initial;
        position: absolute;
        /*right: 20px;*/
        right: 7.29%;
        top: 50px;
        /*height: 20px;
        width: 20px;*/
        border: 0px solid #efefef;
    }

    .menuBox .center .rightHeader {
        width: max-content;
        flex-shrink: 0;
        margin-right: 30px;
    }

    .menuBox nav div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        cursor: pointer;
        height: 20px;
        width: 20px;
        background-color: transparent;
        position: absolute;
        right: 0;
        z-index: 10;
    }

        .menuBox nav div .bars {
            height: 20px;
        }

    .menuBox nav > ul { /*m*/
        display: none;
        /*width: calc(75vw - 0px);*/
        width: 75%;
        position: absolute;
        top: 35px;
        flex-direction: column;
        background-color: #fff;
        height: max-content;
        right: 0;
        overflow: visible;
        left: unset;
        max-height: initial;
        border-radius: 5px;
        box-shadow: 0px 0px 20px #c1c3c7;
    }

    .menuBox nav .active {
        border-bottom: 0;
    }

    .menuBox nav ul ul {
        /* display:flex; */
        text-align: center;
        width: 100%;
        max-width: 100%;
        /*position: initial !important;
        z-index: 51;*/
        position: relative;
    }

    .menuBox nav > ul ul {
        display: none;
        box-shadow: inset 6px 7px 39px -23px #C1C3C7;
        background: rgba(255, 255, 255, 1);
        border-radius: 0 0 5px 5px;
        font-size: 0.93rem;
        width: 100%;
        box-shadow: none;
        border-top: 1px solid rgba(199, 199, 199, 0.3);
    }

        .menuBox nav > ul ul li a {
            margin-top: 5px;
            padding-top: 5px;
            display: block;
            text-align: right;
            border-radius: 5px;
        }

    .menuBox nav ul > li a {
        /* position: relative;*/
    }

    .menuBox nav ul li a {
        display: block;
    }

    .menuBox nav > ul > li {
        border-bottom: 0;
        padding: 0px;
    }

        .menuBox nav > ul > li > a {
            padding: 14px 1em;
            /*font-size: 16px;*/
            font-size: 1rem;
            color: #0E0E0E;
        }

    .menuBox nav > ul ul li a {
        padding: 14px 2em;
    }

    .menuBox nav > ul > li:hover {
        border-bottom: 0;
        color: #85b640 !important;
    }

    .menuBox nav > ul > li a:hover {
        color: #85b640;
    }
}

.langSearch {
    display: flex;
    align-items: center;
    position: relative;
    /*    width: 15.97%;*/
    width: 180px;
    justify-content: end;
}

.searchBox {
    display: flex;
    width: 40px;
}

.sb-search {
    position: absolute;
    right: 0;
    top: 20px;
    width: 48px;
    height: 48px;
    border-radius: 28px;
    background: #F8F8F8 url(../images/searchICO.svg) no-repeat center center;
    /*    border: 1px solid #ddd;*/
    /*    box-shadow: 0 6px 18px rgba(0,0,0,0.12);*/
    box-shadow: rgba(0, 0, 0, 0.03) 0px 6px 24px 0px, rgba(0, 0, 0, 0.04) 0px 0px 0px 1px;
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: width .3s ease;
    transform-origin: right center; /* მარცხნივ იშლება */
    z-index: 999; /* closed: below the menu dropdowns (was 9999) */
}

    /* გახსნილი */
    .sb-search.open {
        width: min(1300px, 90vw);
        border-radius: 8px;
        z-index: 9999; /* open: above everything */
    }

/* მთავარ ღილაკზე — აქ ჩააგდებ იკონს */
.sb-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    border: none;
    background: transparent;
}


    .sb-btn .sb-icon {
        width: 22px;
        height: 22px;
        display: block;
        background: #F8F8F8 url(../images/searchICO.svg) no-repeat center center;
        display: none;
    }

/* form შიგნით */
.sb-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    width: calc(100% - 48px);
}

.sb-search-input {
    width: 100%;
    border: none;
    outline: none;
    padding: 10px 8px;
    font-size: 16px;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity .2s ease, transform .2s ease;
}

.sb-search.open .sb-search-input {
    opacity: 1;
    transform: translateX(0);
}

.sb-submit {
    border: none;
    background: #F8F8F8 url(../images/searchICO.svg) no-repeat center center;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.sb-close {
    background: #eee;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

/* change language */
.languageBox {
    display: flex;
    width: 75px;
    height: 40px;
    margin-right: 20px;
}

.lang-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    display: inline-block;
}

.lang-btn {
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    background-color: #F8F8F8;
    background: #F8F8F8 url(../images/languageIcon.svg) center left 10px no-repeat, url(../images/langArrow.svg) center right 5px no-repeat;
    /*    background-size: 14px;*/
    padding-left: 30px;
    font-weight: bold;
    padding-top: 3px;
    font-family: "BPG Nino";
    color: #818181;
    height: 40px;
    background: url(../images/languageIcon.svg) left 10px center no-repeat, url(../images/langArrow.svg) right 10px center no-repeat, #F8F8F8;
    box-shadow: rgba(0, 0, 0, 0.03) 0px 6px 24px 0px, rgba(0, 0, 0, 0.04) 0px 0px 0px 1px;
}
/*.lang-btn:one{
        background: url(../images/languageIcon.svg) left 10px center no-repeat, url(../images/langArrow.svg) right 10px center no-repeat, #F8F8F8;
    }*/

.lang-menu {
    position: absolute;
    top: 28px;
    /*    right: 2;*/
    background: #F8F8F8;
    border-radius: 8px;
    width: 120px;
    overflow: hidden;
    display: none;
    z-index: 20;
    font-family: "FiraGo";
    color: #818181;
    font-size: 12px;
    font-feature-settings: "case" on;
    padding-top: 14px;
    z-index: 9999999;
}

    .lang-menu.show {
        display: block;
    }

.lang-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 15px;
}

    .lang-item:hover {
        background-color: #E1001B;
        color: #fff;
        ;
    }

/* header for inner pages  */
#header.inner {
    position: relative;
    z-index: 1000;
    margin-bottom: 50px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.05), 0px 4px 8px rgba(0, 0, 0, 0.01);
    border-bottom: 1px solid rgba(0,0,0,0.003);
}

    #header.inner .menuBox nav > ul > li a {
        COLOR: #000;
    }

    #header.inner .menuBox nav .active > a {
        color: #fff;
    }

.menuBox nav > ul > li:hover {
    border: 0;
    color: #fff;
}

    .menuBox nav > ul > li:hover > a {
        color: #fff !important;
    }

#header.inner .menuBox nav > ul > li a:hover {
    color: #fff !important;
}
