

/*=========================================
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,
.navbar-nav > li > .aoc-dropdown-toggle {
    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,
.navbar-nav li:focus-within > .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,
    .navbar-nav li:focus-within>.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 */
.th-header .menu-item-has-children > .aoc-dropdown-toggle::after{
    content:"";
    display:block;
    width:8px;
    height:8px;
    flex:0 0 8px;
    border-right:2px solid currentColor;
    border-bottom:2px solid currentColor;
    margin-left:10px;
    margin-top:-4px;
    transform:rotate(45deg);
    transition:transform .2s ease;
}

/* Rotate on hover */
.th-header .menu-item-has-children:hover > .aoc-dropdown-toggle::after,
.th-header .menu-item-has-children:focus-within > .aoc-dropdown-toggle::after{
    transform:translateY(4px) rotate(225deg);
}


.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;
}

.th-header .aoc-dropdown-toggle { border:0; background:transparent; font-family:inherit; line-height:inherit; cursor:pointer; text-align:left; }
.th-header .aoc-dropdown-toggle:hover { color:var(--primary); }
.th-header .aoc-dropdown-toggle:focus-visible { outline:2px solid var(--primary); outline-offset:4px; }
.th-header .menu-item-has-children.is-open > .sub-menu { opacity:1; visibility:visible; transform:none; }
.th-header .browse-more { border-top:1px solid var(--border); margin-top:6px; font-weight:600; }
@media (min-width:992px) {
.th-header .navbar-nav { gap:18px; }
.th-header .navbar-brand img { width:220px; }
.th-header .th-search { margin-left:18px; }
}
@media (max-width:991.98px) {
.th-header .navbar-nav > li > .aoc-dropdown-toggle { width:100%; justify-content:space-between; padding:14px 0; border-bottom:1px solid var(--border); }
.th-header .navbar-nav li:hover > .sub-menu, .th-header .navbar-nav li:focus-within > .sub-menu { display:none; }
.th-header .navbar-nav li.is-open > .sub-menu { display:block; }
}
/* Compact dropdown panels, with brand accents and clear keyboard states. */
.th-header .navbar-nav .sub-menu {
    min-width: 250px;
    padding: 8px;
    border: 1px solid #e5ecf3;
    border-top: 3px solid #07549b;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px -12px rgba(8, 39, 72, .24), 0 4px 12px rgba(8, 39, 72, .04);
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.th-header .navbar-nav .sub-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #33465a;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    transition: background .16s ease, color .16s ease;
}
.th-header .navbar-nav .sub-menu li:not(.browse-more) a::after {
    content: '';
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: translateX(-3px) rotate(45deg);
    opacity: 0;
    transition: opacity .16s ease, transform .16s ease;
}
.th-header .navbar-nav .sub-menu li a:hover,
.th-header .navbar-nav .sub-menu li a:focus-visible {
    background: #edf5ff;
    color: #064d8e;
    outline: none;
}
.th-header .navbar-nav .sub-menu li a:focus-visible { box-shadow: inset 0 0 0 2px #8eb9e3; }
.th-header .navbar-nav .sub-menu li a:hover::after,
.th-header .navbar-nav .sub-menu li a:focus-visible::after {
    opacity: 1;
    transform: translateX(0) rotate(45deg);
}
.th-header .navbar-nav .browse-more {
    border-top: 1px solid #e5ecf3;
    margin-top: 6px;
    padding-top: 6px;
}
.th-header .navbar-nav .browse-more a { color: #07549b; background: #f2f7fc; font-weight: 600; }
.th-header .navbar-nav .browse-more a span { font-size: 18px; line-height: 1; }
.th-header .menu-item-has-children > .aoc-dropdown-toggle::after {
    width: 6px;
    height: 6px;
    flex-basis: 6px;
    border-width: 1.5px;
    margin-left: 8px;
}
.th-header .menu-item-has-children.is-open > .aoc-dropdown-toggle { color: #07549b; }
.th-header .menu-item-has-children.is-open > .aoc-dropdown-toggle::after {
    transform: translateY(4px) rotate(225deg);
}
@media (min-width: 992px) {
    .th-header .navbar-nav .sub-menu { top: calc(100% - 6px); }
    .th-header .navbar-nav li:hover > .sub-menu,
    .th-header .navbar-nav li:focus-within > .sub-menu,
    .th-header .navbar-nav li.is-open > .sub-menu { transform: translateY(0); }
}
@media (max-width: 991.98px) {
    .th-header .navbar-collapse { max-height: calc(100dvh - 110px); overflow-y: auto; }
    .th-header .navbar-nav .sub-menu {
        min-width: 0;
        margin: 6px 0 10px;
        padding: 6px;
        border: 1px solid #e5ecf3;
        border-radius: 10px;
        background: #f8fafc;
        box-shadow: none;
        transform: none;
    }
    .th-header .navbar-nav .sub-menu li a { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .th-header .navbar-nav .sub-menu,
    .th-header .navbar-nav .sub-menu li a,
    .th-header .navbar-nav .sub-menu li a::after { transition: none; }
}
/* Keep dropdown links free of decorative arrows. */
.th-header .navbar-nav .sub-menu li a::after { display: none; }
.th-header .navbar-nav .browse-more a span { display: none; }
