/* Safe header transparent/sticky background transition via pure CSS */

/* --- A. GENERAL CLINIC HOME PAGE ONLY (TRANSPARENT HEADER EFFECT) --- */
body.home header.elementor-location-header #fullwrap {
    background-color: transparent !important;
    transition: background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
body.home header.elementor-location-header #fullwrap.elementor-sticky--active,
body.home header.elementor-location-header #fullwrap.elementor-sticky--effects {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
}
body.home header.elementor-location-header:not(.elementor-sticky--effects):not(.elementor-sticky--active) .elementor-widget-theme-site-logo img,
body.home header.elementor-location-header:not(.elementor-sticky--effects):not(.elementor-sticky--active) .elementor-widget-image img,
body.home header.elementor-location-header:not(.elementor-sticky--effects):not(.elementor-sticky--active) .elementor-image img {
    filter: brightness(0) invert(1) !important;
    transition: filter 0.4s ease !important;
}
body.home header.elementor-location-header #fullwrap.elementor-sticky-active img,
body.home header.elementor-location-header #fullwrap.elementor-sticky-effects img,
body.home header.elementor-location-header #fullwrap.elementor-sticky--active img,
body.home header.elementor-location-header #fullwrap.elementor-sticky--effects img {
    filter: none !important;
}
body.home header.elementor-location-header:not(.elementor-sticky--effects):not(.elementor-sticky--active) #fullwrap .elementor-item,
body.home header.elementor-location-header:not(.elementor-sticky--effects):not(.elementor-sticky--active) #fullwrap .elementor-sub-item,
body.home header.elementor-location-header:not(.elementor-sticky--effects):not(.elementor-sticky--active) #fullwrap .elementor-button-text,
body.home header.elementor-location-header:not(.elementor-sticky--effects):not(.elementor-sticky--active) #fullwrap .trp-ls-language-name {
    color: #FFFFFF !important;
    transition: color 0.4s ease !important;
}
body.home header.elementor-location-header #fullwrap.elementor-sticky--effects .elementor-item,
body.home header.elementor-location-header #fullwrap.elementor-sticky--effects .elementor-sub-item,
body.home header.elementor-location-header #fullwrap.elementor-sticky--effects .elementor-button-text,
body.home header.elementor-location-header #fullwrap.elementor-sticky--effects .trp-ls-language-name,
body.home header.elementor-location-header #fullwrap.elementor-sticky--active .elementor-item,
body.home header.elementor-location-header #fullwrap.elementor-sticky--active .elementor-sub-item,
body.home header.elementor-location-header #fullwrap.elementor-sticky--active .elementor-button-text,
body.home header.elementor-location-header #fullwrap.elementor-sticky--active .trp-ls-language-name {
    color: #54474B !important;
    transition: color 0.4s ease !important;
}
body.home header.elementor-location-header:not(.elementor-sticky--effects):not(.elementor-sticky--active) #fullwrap #hamburgerBtn {
    color: #FFFFFF !important;
}
body.home header.elementor-location-header.elementor-sticky--effects #fullwrap #hamburgerBtn,
body.home header.elementor-location-header.elementor-sticky--active #fullwrap #hamburgerBtn {
    color: #B57E78B8 !important;
}


/* --- B. FOR ALL SUBPAGES (SOLID WHITE HEADER BY DEFAULT AS PER ORIGINAL) --- */
body:not(.home) #fullwrap,
body:not(.home) header.elementor-location-header #fullwrap,
body:not(.home) .elementor-element-51bce2d3 {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
}
body:not(.home) header.elementor-location-header #fullwrap .elementor-item,
body:not(.home) header.elementor-location-header #fullwrap .elementor-sub-item,
body:not(.home) header.elementor-location-header #fullwrap .elementor-button-text,
body:not(.home) header.elementor-location-header #fullwrap .trp-ls-language-name {
    color: #54474B !important;
}
body:not(.home) header.elementor-location-header #fullwrap #hamburgerBtn {
    color: #B57E78B8 !important;
}
body:not(.home) {
    padding-top: 80px !important;
}


/* --- C. GLOBAL OVERRIDES (DUP TRP SWITCHER HIDE & QUICK FORM BORDER REMOVAL) --- */

/* Hide duplicate language dropdown switcher menu wrapper */
.elementor-element-22150b63,
[data-id="22150b63"],
.trp-language-switcher-container,
.trp-menu-ls-item,
[class*="glt-"],
[id*="gtranslate"],
.glt-menu-item,
.glt-translate-trigger,
#gtranslate_wrapper,
.menu-item-language,
.menu-item-language-glt {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* BOTTOM QUICK APPOINTMENT BAR ALIGNMENT & BORDER WIPE */
.mb-application-form30 {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10px 15px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 1240px !important;
    margin: 25px auto !important;
    clear: both !important;
}

/* Strip all borders and backgrounds from Elementor Tabs, MangBoard Widgets & Wrappers to eliminate black lines */
[class*="mb-widget"],
[class*="mb-write"],
[class*="mboard"],
.elementor-element:has(.mb-application-form30),
.e-con:has(.mb-application-form30),
.e-con-inner:has(.mb-application-form30),
.elementor-widget-container:has(.mb-application-form30),
.elementor-widget-tabs:has(.mb-application-form30),
.elementor-tabs,
.elementor-tabs-wrapper,
.elementor-tab-title,
.elementor-tab-content,
.elementor-tabs-content-wrapper,
.mb-widget-write-box,
.mb-input-box,
.mb-form-box {
    border: none !important;
    border-width: 0 !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
    background: none !important;
    background-color: transparent !important;
}

/* 4. HIDE FLOATING LANGUAGE SWITCHER AT BOTTOM RIGHT */
.trp-floater-ls-wrapper,
#trp-floater-ls {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
