/* Top Header styling */
.top-header {
    height: 48px;
    background-color: var(--top-header-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-header-desktop .social-icons {
    display: flex;
    gap: 8px;
}

.top-header-desktop .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 14px;
    transition: all 0.3s ease;
}

.top-header-desktop .social-icons a:hover {
    background-color: var(--orange);
    color: var(--white);
    transform: translateY(-2px);
}

.top-header .header-box {
    height: 48px;
}

.header-box .single-detail a {
    color: var(--white);
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-box .single-detail a:hover {
    color: var(--orange);
}

.header-box .single-detail .icon-box {
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.header-box .single-detail .icon-box img {
    width: 12px;
    height: auto;
}

.division-line {
    width: 1px;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 15px;
}

/* Sticky Header styling */
.header-fix {
    background-color: var(--white);
    transition: all 0.3s ease-in-out;
    width: 100%;
    border-bottom: 1px solid var(--gray-bg);
}

.header-fix.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    animation: slideDown 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Main Menu Navigation */
.menu-section {
    position: relative;
    width: 100%;
    z-index: 999;
}

.menu-section .main-menu {
    background-color: var(--white);
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.menu-section .main-menu .logo-box img {
    height: 60px;
    width: auto;
    transition: height 0.3s ease;
}

.header-fix.scrolled .main-menu {
    height: 75px;
}

.header-fix.scrolled .main-menu .logo-box img {
    height: 50px;
}

/* Navigation Buttons */
.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-blue);
    border-radius: 30px;
    padding: 12px 24px;
    color: var(--white) !important;
    border: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(15, 62, 43, 0.2);
    cursor: pointer;
}

.contact-btn:hover {
    background-color: var(--orange);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(217, 159, 42, 0.25);
}

.menu-toggler {
    display: none;
    background-color: var(--light-gray);
    height: 46px;
    width: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggler:hover {
    background-color: var(--gray-bg);
}

.menu-toggler span {
    font-size: 20px;
    color: var(--top-header-bg);
}

/* Desktop Navigation List */
@media (min-width: 992px) {
    .first-list {
        display: flex;
        gap: 25px;
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    .first-li {
        padding: 32px 0;
        position: relative;
    }
    
    .header-fix.scrolled .first-li {
        padding: 25px 0;
    }

    .first-li > a, .first-li .menu-list_item {
        font-size: 15px;
        font-weight: 600;
        color: var(--heading-color);
        text-decoration: none;
        transition: color 0.3s ease;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .first-li.current > a, .first-li.current > .menu-list_item {
        color: var(--primary-blue);
    }

    .first-li:hover > a, .first-li:hover > .menu-list_item {
        color: var(--orange);
    }

    .first-drp-icon {
        width: 14px;
        height: 14px;
        transition: transform 0.3s ease;
    }

    .first-li:hover .first-drp-icon {
        transform: rotate(-180deg);
    }

    /* Mega Menu Dropdown Container */
    .sub-menu-container {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        padding-top: 10px;
        visibility: hidden;
        opacity: 0;
        height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        z-index: 9999;
    }

    .first-li:hover .sub-menu-container {
        visibility: visible;
        opacity: 1;
        height: auto;
        overflow: visible;
    }

    .mega-menu-new {
        background-color: var(--white);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mega-menu-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        padding: 30px 40px;
        min-width: 960px;
    }

    .mega-menu-grid.three-cols {
        grid-template-columns: repeat(3, 1fr);
        min-width: 800px;
    }

    .mega-menu-column {
        display: flex;
        flex-direction: column;
    }

    .group-title.colored {
        color: var(--primary-blue);
        font-weight: 700;
        font-size: 15px;
        display: inline-block;
        padding-bottom: 8px;
        border-bottom: 2px solid var(--first-light-blue);
        margin-bottom: 12px;
        transition: all 0.3s ease;
    }

    .group-title.colored:hover {
        color: var(--orange);
        border-bottom-color: var(--orange);
    }

    .group-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .group-links a {
        font-size: 14px;
        font-weight: 500;
        color: var(--light-text);
        transition: all 0.3s ease;
        padding: 2px 0;
    }

    .group-links a:hover {
        color: var(--orange);
        padding-left: 5px;
    }
}

/* Mobile Quick Action Sticky Bar */
.top-header-mobile {
    display: none;
    background-color: var(--top-header-mobile);
    z-index: 1001;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
    height: 60px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.top-header-mobile .mobile-menu-icons {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.top-header-mobile .mobile-menu-icons:hover {
    background-color: var(--orange);
}

.top-header-mobile .mobile-menu-icons.whatsapp {
    background-color: var(--whatsapp);
}

.top-header-mobile .mobile-menu-icons.whatsapp:hover {
    background-color: #026b2b;
}

/* Mobile Drawer Overlay */
.mobile-nav__wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
}

.mobile-nav__wrapper.expanded {
    opacity: 1;
    visibility: visible;
}

.mobile-nav__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.mobile-nav__content {
    position: absolute;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background-color: var(--primary-dark-blue);
    padding: 30px;
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: left 0.4s ease-in-out;
}

.mobile-nav__wrapper.expanded .mobile-nav__content {
    left: 0;
}

.mobile-nav__close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    color: var(--white);
}

.mobile-nav__close svg {
    width: 24px;
    height: 24px;
}

.mobile-nav__content .logo-box {
    margin-bottom: 10px;
}

.mobile-nav__content .logo-box img {
    height: 48px;
    width: auto;
    background-color: var(--white);
    padding: 8px;
    border-radius: 8px;
}

/* Mobile Menu Navigation Tree */
.mobile-nav__container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav__container li {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.mobile-nav__container li a, .mobile-nav__container li .menu-item-toggle {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav__container li a:hover, .mobile-nav__container li .menu-item-toggle:hover {
    color: var(--orange);
}

.mobile-nav__container .sub-menu {
    display: none;
    padding-left: 15px;
    margin-top: 10px;
    border-left: 2px solid var(--orange);
    gap: 10px;
}

.mobile-nav__container .sub-menu li {
    border-bottom: none;
    padding-bottom: 0;
}

.mobile-nav__container .sub-menu li a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.mobile-nav__contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav__contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 14px;
}

.mobile-nav__contact li i {
    color: var(--orange);
}

.mobile-nav__contact li a {
    color: var(--white);
}

.mobile-nav__content .social-icons {
    display: flex;
    gap: 10px;
}

.mobile-nav__content .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
}

.mobile-nav__content .social-icons a:hover {
    background-color: var(--orange);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .top-header-desktop {
        display: none;
    }
    
    .top-header-mobile {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .menu-toggler {
        display: flex;
    }
    
    .menu-list {
        display: none;
    }
    
    .contact-btn.d-none {
        display: none !important;
    }
    
    body {
        padding-bottom: 60px; /* offset for mobile sticky footer bar */
    }
    
    .menu-section .main-menu {
        height: 70px;
    }
    
    .menu-section .main-menu .logo-box img {
        height: 48px;
    }
}
