:root {
    --head-padding-top-bottom: 20px;
    --head-logo-height: 87px;
    --header-height: calc(var(--head-padding-top-bottom)*2 + var(--head-logo-height));
    --backup-family: 'Helvetica Neue', Arial, sans-serif;
}
#header{
    font-family: Montserrat, var(--backup-family);
    position: sticky;
    top: 0;
    z-index: 999;
}
#header .head-placeholder{
    height: var(--header-height);
}
#header .head-container{
    /*
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
     */
    background-color: #f2f7f8;
    padding: var(--head-padding-top-bottom) 0;
}
#header .head-container .header-main{
    display: grid;
    grid-template-columns: 1fr 4fr 2fr 1fr;
    align-items: center;
}
#header .head-container .nav-menu{
    /*width: 100%;*/
}
#header .head-container #logo {
    text-align: center;
    margin: 0 20px;
    width: 87px;
    height: var(--head-logo-height);
}
#header .head-container #logo img {
    width: 100%;
    height: 100%;
}
#header .head-container #nav {
    display: flex;
    justify-content: left;
    position: relative;
}
#header .head-container #nav > div {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: 15px;
    /*width: 100%;*/
}
#header .head-container #nav > div:hover > a{
    color: #ffffff;
    background-color: rgb(0 0 0 / 20%);
}
#header .head-container #nav > div.navlist > div{
    position: relative;
    display: flex;
}
#header .head-container #nav a {
    display: flex;
    color: #141414;
    text-decoration: none;
    position: relative;
    padding: 13px 20px;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: color 0.3s ease;
    font-weight: 600;
}
#header .head-container #nav a:hover{
    color: #f6985b;
}
#header .head-container #nav a > svg,
.menu-list .menu-list-items svg{
    width: 11px;
    height: 13px;
    fill: currentColor;
    margin: 5px;
}
#header .head-container #nav .navlist>div a span{
    /*padding: 0 15px;*/
    /*border-right: 1px solid #ececec;*/
    font-size: 1rem;
    white-space: nowrap;
}
/*
#header #nav .navlist>div:last-child span{
    border-right:unset;
}
#header #nav .navlist>div a:hover span{
    border-right:unset;
}
 */
#header .head-container #nav .drop-list{
    display: none;
    position: absolute;
    background-color: #fff;
    color: #000;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10;
    top: 100%;
    left: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    font-size:14px;
    /*width: 100%;*/
    justify-content: center;
    /*padding: 10px;*/
    border: 1px solid black;
    white-space: nowrap;
}
#header .head-container #nav .drop-list>li{
    position: relative;
    width: 100%;
    /*margin: 5px;*/
}
#header .head-container #nav .drop-list h4{
    /*padding: 25px;*/
    font-weight: 500;
}
#header .head-container #nav .drop-list h4:hover{
    /*filter: brightness(0.9);*/
}
#header .head-container #nav .drop-list h4.green{
    background-color: #00ceaf;
}
#header .head-container #nav .drop-list h4.yellow{
    background-color: #febc00;
}
#header .head-container #nav .drop-list h4.blue{
    background-color: #46c5e7;
}
#header .head-container #nav .drop-list h4.red{
    background-color: #ee6100;
}
#header .head-container #nav .drop-list h4.purple{
    background-color: #a2a2fd;
}
#header .head-container #nav .drop-list h4.black{
    background-color: #4a4a4a;
}
#header .head-container #nav .drop-list h4 a{
    color: #000000;
    position: relative;
}
#header .head-container #nav .drop-list h4 a:hover,
#header .head-container #nav .drop-list ul.second-cats a:hover{
    background-color: #f6985b;
    color: #ffffff;
}
#header .head-container #nav .drop-list h4 a:hover i::before{
    border-left: 5px solid #ffffff;
}
#header .head-container #nav .drop-list h4 a i::before{
    content: "";
    display: flex;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid #333;
    margin-left: 5px;
}
#header .head-container #nav .drop-list a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    justify-content: left;
}
#header .head-container #nav .drop-list li>ul.second-cats{
    position: absolute;
    display: none;
    top: 0;
    left: 100%;
    background: #fff;
    border: 1px solid black;
    flex-direction: column;
    white-space: nowrap;
}
#header .head-container #nav .drop-list>li:hover ul.second-cats{
    display: flex;
}
#header .head-container #nav > div.navlist>div:hover .drop-list,
#header .head-container #nav > div.navlist>div:focus-within .drop-list{
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-evenly;
}
#header .head-container #search-bar {
    display: flex;
    justify-content: center;
    position: relative;
    margin-right: 15px;
    width: 100%;
}
#header .head-container #search-bar form {
    width: 100%;
    /*max-width: 500px;*/
    display: flex;
    align-items: center;
    position: relative;
}
#header .head-container #search-bar input[type="text"] {
    width: 100%;
    padding: 12px;
    border: none;
    outline: none;
    background-color: #f9f9f9;
    color: #3f444b;
    border-radius: 10px;
}
#header .head-container #search-bar button {
    position: absolute;
    right: 0;
    background: none;
    border: none;
    color: #6a11cb;
    font-size: 1.2em;
    cursor: pointer;
    width: 36px;
    height: 36px;
}
#header .head-container #search-bar button>i{
    display: inline-block;
    background-image: url("/wp-content/uploads/assets/icons/search-btn2.svg");
    background-repeat: no-repeat;
    background-position: 50%;
    transition: all .2s ease-in-out;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
#header .head-container .menu{
    display: none;
}
#header .head-container .menu i{
    display: flex;
    align-items: center;
    margin: 0 10px;
    cursor: pointer;
}
#header .head-container .menu i svg{
    display: none;
    fill: #3a4048;
    width: 36px;
    height: 38px;
}
#header .head-container .menu i svg.active{
    display: unset;
}
#header .head-container .menu i svg.close-svg{
    fill: #f6985b;
}
.menu-list{
    width: 100%;
    max-height: 0;
    display: flex;
    overflow-y: auto;
    position: fixed;
    top: var(--header-height);
    left: 0;
    z-index: 99;
    background: #fff;
    transition: max-height .35s ease;
}
.menu-list.active {
    max-height: 100vh;
}

.menu-list .menu-list-items{
    /*display: none;*/
    flex-direction: column;
    width: 100%;
}
.menu-list .menu-list-items>li{
    cursor: pointer;
    border-bottom: 1px solid #ececec;
}
.menu-list .menu-list-items>li:last-child{
    border-bottom: none;
}
.menu-list .menu-list-items>li a{
    display: flex;
    align-items: center;
    padding: 10px 20px;
    font-weight: 600;
}
.menu-list .menu-list-items>li a.active{
    background-color: #f6985b;
    color: #ffffff;
}
.menu-list .menu-list-items .sub-items{
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.menu-list .menu-list-items .sub-items.active,
.menu-list .menu-list-items .sub-items .second-cats.active{
    max-height: 1000px;
    border: 1px solid #7e7e7e;
}
.menu-list .menu-list-items .sub-items a{
    padding: 10px 30px;
}
.menu-list .menu-list-items .sub-items .second-cats{
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}
.menu-list .menu-list-items .sub-items .second-cats a{
    padding: 10px 40px;
}
.menu-list .menu-list-items>li>p{
    border-bottom: 1px solid #e2e2e2;
    padding: 10px;
    color: #333;
}
.menu-list .menu-list-items>li>p:last-child{
    border-bottom: none;
}
.menu-list .menu-list-items .menu-list-sublist{
    display: none;
    flex-direction: column;
    background: #f2f2f2;
    color: #333;
}
.menu-list .menu-list-items .menu-list-sublist>li{
    padding: 5px 20px;
}
/*
@media (min-width: 700px) {
    body{
        overflow: visible;
    }
    #header .head-container #search-bar {
        margin-bottom: 0;
    }
    #header .head-container .drop-list {
        flex-direction: row;
    }
    #header .head-container .menu{
        display: none;
    }
    .menu-list{
        display: none;
    }
}
 */

@media (max-width: 1024px) {
    #header .head-container #logo{
        display: flex;
        align-items: center;
        justify-content: start;
        width: 100%;
        margin-left: 50px;
        flex: 1;
    }
    #header .head-container #logo a{
        display: flex;
        width: 87px;
    }
    #header .head-container .header-main{
        /*grid-template-columns: 1fr 0fr 2fr 1fr;*/
        display: flex;
    }
    #header .head-container .menu{
        display: block;
        /*margin-bottom: 10px;*/
    }
    #header .head-container #nav{
        display: none;
    }
    #header .head-container #search-bar{
        justify-content: start;
        flex: 2;
    }
    #header .head-container #search-bar form{
        width: 80%;
    }
    .menu-list .menu-list-items{
        display: flex;
    }
    .menu-list .menu-list-items .menu-list-sublist{
        display: flex;
    }
}
@media (max-width: 800px) {
    #header .head-container #logo{
        height: unset;
    }
    #header .head-container #logo a{
        width: 50px;
    }
    .menu-list{
        top: unset;
    }
}
@media (max-width: 500px) {
    #header .head-container{
        padding: 10px 0;
    }
    #header .head-container #logo{
        margin-left: unset;
        margin-right: unset;
    }
    #header .head-container #search-bar{
        margin-right: unset;
    }
}
@media (min-width: 1025px){
    .menu-list{
        display: none !important;
    }
}