/* Base Styles & Reset */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Container */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    z-index: 1000;
    font-size: 14px;
}

.container-header {
    max-width: 1400px;
    /* Adjust as needed */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    height: 70px;
}

/* Logo */
.header-logo img {
    display: block;
    max-height: 50px;
    width: auto;
}

/* Main Navigation */
.main-nav {
    display: flex;
    gap: 2rem;
    margin-left: 40px;
}

.nav-list {
    display: flex;
    align-items: right;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #333;
    font-weight: 500;
    padding: 25px 0;
    /* Increase hit area */
    display: block;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #0056b3;
}

.arrow-down {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-top: 4px solid #666;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.nav-link:hover .arrow-down {
    border-top-color: #0056b3;
}

/* Mega Menu */
.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -500px;
    /* Adjust based on container */
    width: 100vw;
    /* Full width relative to viewport usually, but here relative to closest relative parent if not handled carefully. Let's make it fixed or absolute to body if possible, or wide enough */
    width: 1100px;
    /* Fixed width for the mega menu content */
    /* Offset to center somewhat */
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #eee;
    z-index: 100;
}

/* Specific adjustment for full-width feel if needed, but fixed width like screenshot is safer for layout */
@media (min-width: 1025px) {
    .has-dropdown:hover .mega-menu {
        display: block;
    }
}

.mega-menu-container {
    display: flex;
    min-height: 400px;
}

/* Sidebar */
.mega-sidebar {
    width: 250px;
    background-color: #f8f9fa;
    padding: 20px 0;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mega-sidebar ul li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mega-sidebar ul li {
    cursor: pointer;
}

.mega-sidebar ul li a:hover,
.mega-sidebar ul li.active a {
    background-color: #e9ecef;
    color: #0056b3;
    font-weight: 600;
}

.mega-sidebar i {
    width: 20px;
    text-align: center;
    color: #555;
}
.prod-btn-men{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
}
.prod-btn-men a button{
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid #0000ff;
    background: #1bbaed;
    color: #fff;
    font-size: medium;
}
.prod-btn-men a button:hover{
    background: #046e91;
}


/* Mega Content */
.mega-content {
    flex-grow: 1;
    /* padding: 30px; */
    background: #fff;
}
.mega-content div{
    height: 100%;
}

.mega-content-row {
    display: flex;
    /* flex-wrap: wrap; */
    padding: 30px;
    /* margin-bottom: 25px; */
}

.side-menu-bannr{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background-color: #164065;
}
.side-menu-bannr p{
    color: #ffffff;
    font-size: medium;
}

.side-menu-bannr img{
    overflow: hidden;
}
.sd-btn{
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid #1bbaed;
    background-color: #1bbaed;
    font-size:small;
    font-weight: 600;
    color: #ffffff;
}

.mega-column {
    width: 33.333%;
    padding-right: 20px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.mega-column h4 {
    margin: 0 0 5px;
    color: #000;
    font-size: 15px;
    font-weight: 700;
}

.badge-new {
    background-color: #ff4d4f;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: text-top;
}

/* Simple Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    z-index: 100;
}

@media (min-width: 1025px) {
    .has-dropdown:hover .dropdown-menu {
        display: block;
    }
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-menu li a:hover {
    background-color: #f8f9fa;
    color: #0056b3;
}

/* Mega Content Updates */
.mega-column h4 {
    margin: 0 0 10px;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 5px;
    display: inline-block;
}

.mega-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-links li {
    margin-bottom: 8px;
}

.mega-links li a {
    font-size: 15px;
    color: #333;
    font-weight: 600;
    transition: color 0.2s;
}

.mega-links li a:hover {
    color: #0056b3;
}

.menu-desc {
    font-size: 11px;
    margin: 2px 0 0 0;
    line-height: 1.4;
    font-weight: 400;
}

/* Mega Links */
.mega-tab-content {
    display: none;
    width: 100%;
    /* Ensure full width usage */
}
.mega-tab-content div{
    height: 100%;
    width: 100%;
}   

.mega-tab-content.active {
    display: block;
    display: flex;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mega-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.explore-link {
    color: #0056b3;
    font-weight: 600;
}

.view-all-btn {
    background-color: #0056b3;
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
}

.view-all-btn:hover {
    background-color: #004494;
}

/* Utility Nav */
.utility-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.utility-item {
    display: flex;
    align-items: center;
}

.offer-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #333;
}

.phone-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0056b3;
    font-weight: 600;
}

.utility-item svg {
    display: block;
}


/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
}

.mobile-toggle.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/*=================
===================
search bar css here  
===================
===================*/

.search-list {
    position: relative;
}

.searchBox {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    box-shadow: 5px 10px 18px #555555;
}

.sb-d {
    width: 70em;
    max-width: 80vw;
    /* border-radius: 5px; */
    overflow: hidden;
}

.sb-i {
    padding: 10px;
    width: 100%;
    font-size: large;
    outline: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .mobile-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        margin: 0;
        overflow: hidden    ;
    }

    .main-nav.active {
        display: block;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Mobile Mega Menu Handling - simplified stacking */
    .mega-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        display: none;
        border: none;
        left: 0;
        /* Reset left offset */
    }

    .mega-menu-container {
        flex-direction: column;
        min-height: auto;
    }

    .mega-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 0;
    }

    /* Accordion Styles */
    .mega-sidebar ul li {
        display: flex;
        /* Allow wrapping for appended content */
        flex-wrap: wrap;
        border-bottom: 1px solid #eee;
        background: #f8f9fa;
    }

    .mega-sidebar ul li>a {
        width: 100%;
        padding: 15px 20px;
        display: flex;
        align-items: center;
        /* justify-content: space-between; arrow? */
        font-weight: 600;
    }

    /* In mobile accordion, content is child of li */
    .mega-sidebar ul li .mega-tab-content {
        width: 100%;
        padding-left: 0;
        background: #fff;
    }

    .mega-sidebar ul li.active {
        background: #fff;
        /* Active header bg */
    }

    .mega-content {
        /* When empty (items moved out), ensure it doesn't take space */
        padding: 0;
        display: none;
        /* Hide original container since items move out? Or keeps it for structure? content moves out so it's empty. */
    }

    .mega-column {
        width: 100%;
        margin-bottom: 0;
    }

    /* Hide headings on mobile accordion */
    .mega-column h4 {
        display: none;
    }

    .mega-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Show dropdown on click (via .active class) for mobile */
    .nav-item.active .mega-menu,
    .nav-item.active .dropdown-menu {
        display: block;
        padding-left: 0;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        padding-left: 0;
    }

    .dropdown-menu li a {
        padding-left: 30px;
        background-color: #f9f9f9;
    }

    .utility-nav {
        display: none;
    }

    .header-logo {
        margin: 0 auto 0 0;
        /* Left align logo on mobile usually better with burger on right */
    }
    #searchToggle {
        padding: 0.5rem 1.25rem;
    }
    
    .searchBox {
        /* width: 100%; */
        position: relative;
    }
}

@media (max-width: 786px) {
    .main-nav {
        margin-left: 0;
        padding: 0;
    }

    .mega-sidebar ul li {
        background-color: #e9ecef;
    }

    .menu-desc {
        margin: 2px 0 0 1rem;
        font-size: 0.8rem;
        /* background-color: inherit; */
    }

    .mega-column {
        padding: 1rem 0;
        margin: 0;
    }

    .mega-content-row {
        margin: 0;
    }


    .searchBox {
        width: 100%;
        position: relative;
    }

    .sb-d {
        width: 100%;
        max-width: none;
    }
    .side-menu-bannr img{
        display: none;
    }
    .side-menu-bannr{
        display: none;
    }
    .mega-content-row {
        padding: 0;
    }

}