/* Override problematic header styles */
body {
    padding-top: 0 !important; /* Remove the extra padding */
}

/* Header wrapper styles */
.header-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background-color: #fff !important;
    transform: translateZ(0); /* Force hardware acceleration */
    will-change: position; /* Hint to browser about upcoming changes */
}

/* Announcement bar styles */
.announcement-bar {
    position: relative !important; /* Not fixed, relative to header-wrapper */
    top: auto !important;
    background-color: #469042;
    color: white;
    width: 100%;
    z-index: 1010;
}

/* Mobile header styles - with !important flags to override any conflicting styles */
#mobile-header.header-mobile {
    position: relative !important; /* Relative to header-wrapper */
    top: auto !important;
    width: 100% !important;
    z-index: 1005 !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    background-color: #fff !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

/* Desktop header styles - with !important flags to override any conflicting styles */
#header.header {
    position: relative !important; /* Relative to header-wrapper */
    top: auto !important;
    width: 100% !important;
    z-index: 1005 !important;
    background-color: #fff !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

/* Remove any fixed positioning from header_sticky class */
.header_sticky {
    position: relative !important; /* Relative to header-wrapper */
    top: auto !important;
    left: auto !important;
    right: auto !important;
}

/* Mobile navigation styles */
.header-mobile__navigation {
    display: none !important; /* Hide by default with !important */
    z-index: 1004;
    box-shadow: 0 5px 5px rgba(0,0,0,0.1);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
}

/* Show mobile navigation when mobile-menu-opened class is added to body */
body.mobile-menu-opened .header-mobile__navigation {
    display: flex !important; /* Show with !important when menu is opened */
}

/* Mobile menu toggle button - ensure it's visible and clickable */
.mobile-nav-activator {
    cursor: pointer !important;
    z-index: 1006 !important;
    position: relative !important;
    display: block !important;
    width: 25px !important;
    height: 25px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* Style for the hamburger icon */
.mobile-nav-activator .nav-icon {
    display: block !important;
    width: 25px !important;
    height: 18px !important;
}

/* Style for the close button */
.mobile-nav-activator .btn-close-lg {
    display: none !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 25px !important;
    height: 25px !important;
    background-color: transparent !important;
    border: none !important;
    cursor: pointer !important;
    z-index: 1007 !important;
}

/* When the mobile menu is opened, show the close button and hide the nav icon */
body.mobile-menu-opened .mobile-nav-activator .btn-close-lg {
    display: block !important;
}

body.mobile-menu-opened .mobile-nav-activator .nav-icon {
    display: none !important;
}

/* Media query for desktop */
@media (min-width: 992px) {
    /* Hide mobile header on desktop */
    #mobile-header.header-mobile {
        display: none !important;
    }

    /* Add padding to body to account for fixed header on desktop */
    body {
        padding-top: 142px !important; /* Adjust based on your header height + announcement bar */
    }
}

/* Media query for mobile */
@media (max-width: 991px) {
    /* Hide desktop header on mobile */
    #header.header {
        display: none !important;
    }

    /* Add padding to body to account for fixed header on mobile */
    body {
        padding-top: 116px !important; /* Adjust based on your header height + announcement bar */
    }
}
@media (max-width: 468px) {
    body {
        padding-top: 140px !important; /* Adjust based on your header height + announcement bar */
    }
}

.d-lg-none {
    display: none !important;
}

@media (max-width: 991px) {
    .d-lg-none {
        display: block !important;
    }
}

.d-lg-block {
    display: none !important;
}

@media (min-width: 992px) {
    .d-lg-block {
        display: block !important;
    }
}
