/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/
Description: Hello Elementor Child Theme for NeuroScores
Author: NeuroScores
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* 1. DEFAULT HEADER (All Normal Pages like My Account) */
header.elementor-location-header { 
    position: sticky !important; 
    width: 100%; 
    top: 0; 
    left: 0; 
    z-index: 999; 
    background-color: #ffffff !important; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
    transition: all 0.3s ease; 
}
header.elementor-location-header .elementor-nav-menu--main a { 
    color: #111827 !important; 
}
header.elementor-location-header .elementor-widget-heading .elementor-heading-title { 
    color: #111827 !important; 
}

/* 2. TRANSPARENT HEADER (Only on pages with Dark Hero) */
body.has-transparent-header header.elementor-location-header:not(.ns-scrolled) {
    position: absolute !important;
    background-color: transparent !important;
    box-shadow: none !important;
}
body.has-transparent-header header.elementor-location-header:not(.ns-scrolled) .elementor-nav-menu--main a { 
    color: #ffffff !important; 
}
body.has-transparent-header header.elementor-location-header:not(.ns-scrolled) .elementor-widget-heading .elementor-heading-title { 
    color: #ffffff !important; 
}

/* 3. FIXED HEADER ON SCROLL (All Pages) */
header.elementor-location-header.ns-scrolled {
    position: fixed !important;
}

/* 4. Fix WP Admin Bar Overlap */
body.admin-bar header.elementor-location-header {
    top: 32px !important;
}
@media screen and (max-width: 782px) {
    body.admin-bar header.elementor-location-header {
        top: 46px !important;
    }
}