/*
Theme Name: Thuythu Child
Description: This is a child theme for Thuythu Theme
Author: Jack Lam
Template: thuythu
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

.header,.header-wrapper {
    background-position: 50% 0;
    background-size: cover;
    position: relative;
    transition: background-color .3s,opacity .3s;
    width: 100%;
    z-index: 1001
}

.header-bg-color {
    background-color: hsla(0,0%,100%,.9)
}

.header-bottom,.header-top {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
}
.header.has-transparent,.header.show-on-scroll,.header.transparent {
    position: absolute
}

.header.show-on-scroll:not(.stuck),.header.transparent:not(.stuck) {
    left: auto;
    right: auto
}

.header.show-on-scroll .header-wrapper {
    opacity: 0;
    transition: opacity .3s;
    visibility: hidden
}

.header.show-on-scroll .header-wrapper.stuck {
    opacity: 1;
    visibility: visible
}

.header.transparent .header-bg-color,.header.transparent .header-bg-image,.header.transparent .header-bottom,.header.transparent .header-wrapper {
    background-color: transparent;
    background-image: none!important;
    box-shadow: none
}

.header-bg-color,.header-bg-image {
    background-position: 50% 0;
    transition: background .4s
}

.header-top {
    background-color: var(--fs-color-primary);
    min-height: 20px;
    position: relative;
    z-index: 11
}

.header-main {
    position: relative;
    z-index: 10
}

.header-bottom {
    min-height: 35px;
    position: relative;
    z-index: 9
}

.stuck {
    left: 0;
    margin: 0 auto;
    position: fixed;
    right: 0;
    top: 0
}



.sticky-jump .stuck:not(.ux-no-animation) {
    animation: stuckMoveDown .6s
}

.sticky-fade .stuck:not(.ux-no-animation) {
    animation: stuckFadeIn .6s
}

.sticky-shrink .stuck .header-main {
    transition: height .8s
}

.stuck .header-inner,.stuck .logo,.stuck .logo img {
    margin-top: 0;
    padding-top: 0
}
 #masthead .header-nav > li > a:before{
    background-color: #FFF !important;
}
#masthead .header-nav > li > a{
    color: #FFF !important;
}
#logo > a{
    display: flex;
    width: 110px;
}
#logo img,
.stuck #logo img{
    filter: brightness(0) invert(1);
}
.stuck #logo img{
    width: 70px;
}

.header-wrapper:not(.stuck) .logo img {
    transition: max-height .5s
}

.header.show-on-scroll .hide-for-sticky,.stuck .hide-for-sticky {
    display: none
}

.header-shadow .header-wrapper,.header-wrapper.stuck,.layout-shadow #wrapper {
    box-shadow: 1px 1px 10px rgba(0,0,0,.15)
}

.header-block {
    min-height: 15px;
    width: 100%
}

.header-full-width .container {
    max-width: 100%!important
}

@media(max-width: 849px) {
    .header-main li.html.custom {
        display:none
    }
}

@media(prefers-reduced-motion) {
    .sticky-jump .stuck {
        animation-name: stuckFadeIn
    }
}

@media(max-width: 549px) {
    .nav-mobile>li>a:not(.button) {
        line-height:5em
    }
}


.header-logo-dark,.header-logo-sticky,.nav-dark .header-logo,.sticky .dark .header-logo-dark,.sticky .has-sticky-logo .header-logo {
    display: none!important
}

.nav-dark .header-logo-dark,.stuck .header-logo-sticky {
    display: block!important
}

.stuck .header-logo-sticky+img,.stuck .header-logo-sticky+img+img {
    display: none!important
}

#masthead .header-inner{
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    padding-left: 50px;
    padding-right: 50px;
    margin-left: auto;
    margin-right: auto;

}

.flex-col {
    max-height: 100%;
}

#logo{
    width: auto !important;
}

.logo {
    line-height: 1;
    margin: 0;
}

.logo-left .logo {
    margin-left: 0;
    margin-right: 30px;
}

.logo a {
    color: var(--fs-color-primary);
    display: block;
    font-size: 32px;
    font-weight: bolder;
    margin: 0;
    text-decoration: none;
    text-transform: uppercase;
}
#logo img{
    object-fit: contain;
    width: auto;
}
.show-for-medium{
    display: none;
}
#masthead .header-nav{
    margin: 0 !important;
    padding: 0;
    list-style: none;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
}
#masthead .header-nav > li{
    position: relative;
    margin: 0;
    padding: 0;
    height: 100%;
    margin: 0 25px;
}
#masthead .header-nav > li > a{
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 17px;
    font-weight: 500;
    line-height: 20px;
    /*color: #333333 !important*/
}
#masthead .header-nav li > a:before{
    bottom: 20px;
    left: 0;
    width: 0;
    position: absolute;
    content: '';
    height: 2px;
    background-color: #333333;
    -webkit-transition: all 0.4s ease-in-out;
    -moz-transition: all 0.4s ease-in-out;
    -ms-transition: all 0.4s ease-in-out;
    -o-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
}
#masthead .header-nav li.current-menu-item > a:before,
#masthead .header-nav li > a:hover:before{
    width: 100%;
}
.stuck #masthead .header-nav > li > a:before{
    background-color: #FFF;
}
#masthead .header-nav > li.menu-item-has-children > ul.sub-menu{
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #121212;
    border: 1px solid #474646;
    margin: 0;
    width: 276px;
    padding: 32px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}
#masthead .header-nav > li.menu-item-has-children:hover > ul.sub-menu{
    opacity: 1;
    visibility: unset;
    pointer-events: unset;
}
#masthead .header-nav ul.sub-menu > li:last-of-type{
    margin-bottom: 0 !important;
}
#masthead .header-nav ul.sub-menu > li > a{
    position: relative;
}
#masthead .header-nav ul.sub-menu > li > a:before{
    bottom: 0 !important;
    background-color: #FFF !important;
}
#masthead .header-nav ul.sub-menu > li{
    margin: 0 0 14px;
    padding: 0 38px;
}
.header-wrapper,
.header-wrapper.stuck{
    background-color: #000;
}
.menu-footer-menu-container > ul > li > a:after,
.menu-footer-menu-container > ul > li > a:before{
    display: none !important;
}
.menu-footer-menu-container > ul > li{
    padding: 0 !important;
    border: none !important;
}
.menu-footer-menu-container > ul > li > a{
    padding: 0 !important;
}