

/*=========================================
HEADER
=========================================*/

.th-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 9999;
}

.th-header .container {
    max-width: var(--container);
}

.th-header .navbar {
    min-height: 90px;
    padding: 0;
}

.custom-logo {
    max-height: 65px;
    width: auto;
}

.navbar-brand {
    padding: 0;
    margin: 0;
}

.navbar-brand img {
    display: block;
    width: min(280px, 55vw);
    height: 72px;
    object-fit: contain;
}

/*=========================================
MENU
=========================================*/

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar-nav > li {
    position: relative;
}

.navbar-nav > li > a {
    display: flex;
    align-items: center;
    padding: 34px 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.navbar-nav > li > a:hover {
    color: var(--primary);
}

/*=========================================
DROPDOWN
=========================================*/

.navbar-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: var(--white);
    padding: 12px 0;
    margin: 0;
    list-style: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);

    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);

    transition: .25s ease;

    z-index: 999;
}

.navbar-nav li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar-nav .sub-menu li {
    width: 100%;
}

.navbar-nav .sub-menu li a {
    display: block;
    padding: 12px 22px;
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    transition: .25s;
}

.navbar-nav .sub-menu li a:hover {
    background: #f5f7fb;
    color: var(--primary);
}

/*=========================================
SEARCH
=========================================*/

.th-search {
    margin-left: 25px;
}

.th-search a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    font-size: 22px;
    transition: var(--transition);
}

.th-search a:hover {
    color: var(--primary);
}

/*=========================================
MOBILE TOGGLER
=========================================*/

.navbar-toggler {
    border: 0;
    box-shadow: none !important;
    padding: 0;
}

.navbar-toggler i {
    font-size: 32px;
    color: var(--text);
}

/*=========================================
TABLET
=========================================*/

@media (max-width:991.98px){

    .th-header .navbar{
        min-height:75px;
    }

    .navbar-toggler{
        margin-left:auto;
    }

    .navbar-collapse{

        background:#fff;

        margin-top:20px;

        padding:20px;

        border-radius:10px;

        box-shadow:0 10px 25px rgba(0,0,0,.08);

    }

    .navbar-nav{

        display:block;

    }

    .navbar-nav>li>a{

        padding:14px 0;

        border-bottom:1px solid var(--border);

    }

    .navbar-nav .sub-menu{

        position:static;

        opacity:1;

        visibility:visible;

        transform:none;

        display:none;

        box-shadow:none;

        padding-left:18px;

        min-width:100%;

        border-radius:0;

    }

    .navbar-nav li:hover>.sub-menu{

        display:block;

    }

    .th-search{

        margin:20px 0 0;

    }

}

/*=========================================
MOBILE
=========================================*/

@media (max-width:767.98px){

    .custom-logo{

        max-height:50px;

    }

    .navbar{

        min-height:70px;

    }

    .navbar-nav>li>a{

        font-size:15px;

    }

}

/* Hide Astra arrow */
.ast-header-navigation-arrow{
    display:none !important;
}

/* Parent menu arrow */
.menu-item-has-children > a::after{
    content:"\f282";
    font-family:"bootstrap-icons";
    font-size:12px;
    margin-left:8px;
    vertical-align:middle;
    transition:.3s;
}

/* Rotate on hover */
.menu-item-has-children:hover > a::after{
    transform:rotate(180deg);
}


.th-search-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    display:flex;
    align-items:center;
    justify-content:center;

    opacity:0;
    visibility:hidden;

    transition:.3s;
    z-index:99999;
}

.th-search-overlay.active{
    opacity:1;
    visibility:visible;
}

.th-search-box{
    width:90%;
    max-width:700px;
    background:#fff;
    padding:30px;
    border-radius:12px;
    position:relative;
}

.th-search-close{
    position:absolute;
    top:15px;
    right:15px;
    border:none;
    background:none;
    font-size:22px;
}

.th-search-box input{
    height:55px;
}
