/* Fixed main header */
.kbf-sticky-header {
    position: fixed !important;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 99999 !important;
    overflow: visible !important;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

/* Keep all menu layers and submenu containers visible */
.kbf-sticky-header .elementor-widget-nav-menu,
.kbf-sticky-header .elementor-widget-container,
.kbf-sticky-header .elementor-nav-menu,
.kbf-sticky-header .elementor-nav-menu--main,
.kbf-sticky-header .elementor-nav-menu--dropdown {
    overflow: visible !important;
}

/* Ensure dropdown menus appear above all page content */
.kbf-sticky-header .elementor-nav-menu--dropdown {
    position: absolute;
    z-index: 100000 !important;
}

/* Prevent hidden dropdowns caused by header wrapper containers */
.elementor-location-header,
.elementor-location-header .elementor-element {
    overflow: visible !important;
}

/* Add top space so that page content is not hidden behind the fixed header */
body {
    padding-top: 100px;
}

/* WordPress admin bar offset */
body.admin-bar .kbf-sticky-header {
    top: var(--wp-admin--admin-bar--height, 32px);
}
@media screen and (max-width: 782px) {
    body.admin-bar .kbf-sticky-header {
        top: 46px;
    }
}
