/** header **/

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-bottom-left-radius: 24px;
    -webkit-box-shadow: 0 3px 1px rgba(227, 31, 24, 0.9);
    box-shadow: 0 3px 1px rgba(227, 31, 24, 0.9);
}

header .logo img {
    height: 3rem;
    width: auto;
}

header .header-navigation {
    margin: 0;
    list-style-type: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

header .mobile-menu-btn {
    display: none;
    visibility: hidden;
}


/******************
*
*  sub-menu (start)
*
******************/

header .header-navigation li.has-sub-menu {
    position: relative;
    padding-right: 15px;
}

header .header-navigation .has-sub-menu .sub-menu {
    position: absolute;
    width: 280px;
    -webkit-box-shadow: -4px 4px 4px rgba(227, 31, 24, 0.9);
    box-shadow: -4px 4px 4px rgba(227, 31, 24, 0.9);
    overflow: hidden;
    top: 3rem;
    border-radius: 5px;
    opacity: 0;
    transform: translateY(+2em);
    visibility: hidden;
    z-index: -1;
}

header .header-navigation .has-sub-menu .sub-menu li {
    margin-left: 0px;
    padding-left: 0px;
    padding-right: 0px;
    background: #fff;
}

header .header-navigation .has-sub-menu .sub-menu li a {
    opacity: 1;
    display: block;
    background: #fff;
    color: var(--xiketic);
    padding-left: 20px;
    height: auto;
    line-height: 36px;
    position: relative;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid var(--vermilion);
}

header .header-navigation .has-sub-menu .sub-menu li a:hover {
    background: #fff;
    color: var(--vermilion);
    padding-left: 25px;
    border-right: solid 8px var(--vermilion);
}

header .header-navigation .has-sub-menu .sub-menu li a:hover:before {
    width: 3px;
}

header .header-navigation .has-sub-menu ul.sub-menu {
    opacity: 1;
    z-index: 1;
    transform: translateY(0%);
}

header .header-navigation .has-sub-menu ul.sub-menu.dropdown {
    visibility: visible;
}

header .header-navigation .has-sub-menu .fa-chevron-down {
    display: inline-block;
    margin: auto 8px;
    cursor: pointer;
}

header .header-navigation .has-sub-menu .fa-chevron-down:hover {
    color: var(--vermilion);
}


/******************
*
*  sub-menu (end)
*
******************/

header .header-navigation li {
    padding: 0.5rem 2rem;
}

header .header-navigation li a {
    text-decoration: none;
    color: var(--space-cadet);
    font-size: 20px;
    font-weight: 600;
}

header .header-navigation li a:hover {
    color: var(--vermilion);
    padding-bottom: 25px;
    border-bottom: var(--vermilion) solid 3px;
}

header .header-navigation li .active {
    color: var(--vermilion);
    padding-bottom: 25px;
    border-bottom: var(--vermilion) solid 3px;
}


/** (end) header **/


/*******************
*
*
* Responsive CSS
*
*
********************/

@media only screen and (max-width:1200px) {
    header {
        justify-content: space-between;
        border-radius: 0;
        border-bottom-left-radius: 16px;
    }
    header .header-navigation li {
        width: 100%;
        text-align: left;
    }
    header .header-navigation li .active {
        border: none;
    }
    header .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: transparent;
        float: inline-end;
        border: none;
        margin: 0 2rem;
        visibility: visible;
    }
    header .mobile-menu-btn .toggler-icon {
        background-color: var(--black);
        width: 2rem;
        height: 0.125rem;
        display: block;
        margin: 0.4rem 0;
        border-radius: 4rem;
        position: relative;
        -webkit-transition: all 0.3s ease-out;
        transition: all 0.3s ease-out;
    }
    .mobile-menu-btn.active .toggler-icon:nth-of-type(1) {
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
        top: 0.9125rem;
    }
    .mobile-menu-btn.active .toggler-icon:nth-of-type(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active .toggler-icon:nth-of-type(3) {
        -webkit-transform: rotate(135deg);
        transform: rotate(135deg);
        top: -0.9125rem;
    }
    header .collapse {
        position: fixed;
        top: 5rem;
        left: 5%;
        width: 90%;
        height: fit-content;
        margin: 0;
        background-color: #ffffff;
        z-index: 1000;
        -webkit-box-shadow: 0 0 0.375rem rgba(227, 31, 24, 0.9);
        box-shadow: 0 0 0.375rem rgba(227, 31, 24, 0.9);
        padding: 8px;
        overflow-y: scroll;
        border-top: 1px solid #ebebeb;
        visibility: hidden;
        border-radius: 16px;
    }
    header .collapse.active {
        visibility: visible;
    }
    header ul {
        white-space: nowrap;
        display: flex;
        flex-flow: column nowrap;
        text-align: left;
        list-style: none;
        /*display: inline-block;*/
    }
    header li {
        font-size: 18px;
        display: block;
        z-index: 1000;
        position: relative;
        margin: 6px 0;
        margin-left: 16px;
    }
    header li a:hover {
        transform: translateY(0);
    }
    header .header-navigation .has-sub-menu .sub-menu {
        visibility: hidden;
        opacity: 0;
        transform: translateY(0%);
        width: 100%;
        box-shadow: none;
        top: 0;
        padding: 8px;
    }
    header .header-navigation .has-sub-menu .sub-menu li a {
        border: none;
        line-height: 1.25;
    }
    header .header-navigation .has-sub-menu ul.sub-menu.dropdown {
        visibility: inherit;
        position: relative;
        opacity: 1;
    }
}

@media only screen and (max-width:768px) {
    header {
        padding: 0.5rem 1rem;
        border-radius: 0;
        border-bottom-left-radius: 16px;
    }
    header .logo img {
        height: 2rem;
        width: auto;
    }
}