/* Header Styles - Extracted from header.blade.php */

/* Modern Submenu Styling */
.tgmenu__navbar-wrap ul li .sub-menu {
    background: #ffffff !important;
    border-top: 4px solid #00adef;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    border-radius: 0 0 4px 4px;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: block !important;
}

.tgmenu__navbar-wrap ul li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tgmenu__navbar-wrap ul li .sub-menu li {
    margin: 0;
    display: block;
}

.tgmenu__navbar-wrap ul li .sub-menu li a {
    color: #555 !important;
    padding: 10px 25px;
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
}

.tgmenu__navbar-wrap ul li .sub-menu li:last-child a {
    border-bottom: none;
}

.tgmenu__navbar-wrap ul li .sub-menu li a:hover {
    background-color: #00adef;
    color: #ffffff !important;
    padding-left: 30px;
}

.tgmenu__navbar-wrap ul li .sub-menu li a i {
    font-size: 10px;
    margin-right: 10px;
    color: #ccc;
}

/* Active Menu Item Indicator */
.tgmenu__navbar-wrap ul li {
    position: relative;
}

/* Keep text white on hover for transparent header */
.tg-header__area:not(.sticky-menu) .tgmenu__navbar-wrap .navigation>li:hover>a,
.tg-header__area:not(.sticky-menu) .tgmenu__navbar-wrap .navigation>li.active>a {
    color: #ffffff !important;
}

/* Only apply the top line to the main navigation items to avoid issues with submenus */
.tgmenu__navbar-wrap .navigation>li.active>a,
.tgmenu__navbar-wrap .navigation>li:hover>a {
    border-top: 4px solid #00adef !important;
    transition: none !important;
}

/* Sticky Header */
.tg-header__area {
    position: absolute;
    z-index: 999;
    width: 100%;
    transition: all 0.3s ease-out;
}

.tg-header__area.sticky-menu {
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    animation: sticky_header 0.5s;
}

@keyframes sticky_header {
    0% {
        top: -100px;
    }
    100% {
        top: 0;
    }
}

/* Ensure text color is dark when sticky if it was white */
.sticky-menu .tgmenu__navbar-wrap ul>li>a {
    color: #141414;
}

.sticky-menu .tgmenu__navbar-wrap ul>li>a:hover {
    color: #00adef;
}

/* Sticky Header Icons & Text Color */
.sticky-menu .header-search a,
.sticky-menu .header-search i,
.sticky-menu .mobile-nav-toggler i,
.sticky-menu .tgmenu__action ul li.header-search a,
.sticky-menu .offcanvas-toggle a {
    color: var(--tg-color-black-2) !important;
}

/* Logo Switching */
.logo-sticky {
    display: none;
}

.sticky-menu .logo-default {
    display: none;
}

.sticky-menu .logo-sticky {
    display: block;
}

/* Offcanvas Toggle Border Spacing */
.offcanvas-toggle {
    position: relative;
}

.offcanvas-toggle::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background-color: #898989;
}
