/* ---------------------------------------------------------
   GLOBAL GLASS HEADER (Atomic Cache Bust v1)
   --------------------------------------------------------- */

/* 1. CONTAINER - FORCE VISIBILITY */
.edgtf-page-header,
header.site-header,
header#masthead,
div.edgtf-sticky-header {
    background: transparent !important;
    background-color: rgba(10, 10, 10, 0.4) !important;
    /* Semi-transparent dark base */

    /* Strong Glass Filter */
    backdrop-filter: blur(25px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(200%) !important;

    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;

    /* Allow pseudo-elements to show */
    overflow: visible !important;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

/* 2. DIAGONAL GLARE (The "Shiny" Part) - ::after */
.edgtf-page-header::after,
header.site-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;

    /* Strong Diagonal White Gradient */
    background: linear-gradient(115deg,
            transparent 30%,
            rgba(255, 255, 255, 0.4) 45%,
            /* Very bright shine */
            rgba(255, 255, 255, 0.1) 50%,
            transparent 60%) !important;

    pointer-events: none;
    z-index: -1 !important;
    /* Behind text, In front of background */
    mix-blend-mode: overlay;
    animation: none;
    /* Can animate later if desired */
}

/* 3. TOP GLOW LINE - ::before */
.edgtf-page-header::before,
header.site-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, white, transparent);
    z-index: 100 !important;
    opacity: 0.8 !important;
}

/* 4. FORCE TRANSPARENT CHILDREN */
.edgtf-page-header *,
.edgtf-sticky-holder *,
.edgtf-logo-wrapper {
    background: transparent !important;
    box-shadow: none !important;
}

/* 5. ENSURE CONTENT IS ON TOP */
.edgtf-grid,
.edgtf-vertical-menu-area,
.edgtf-menu-area,
nav,
.edgtf-logo-wrapper a {
    position: relative !important;
    z-index: 1000 !important;
    /* Above the ::after glare */
}

/* 6. TEXT COLOR FORCE */
h1,
h2,
h3,
h4,
h5,
h6,
span,
a,
li,
i {
    color: #fff !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

/* ==========================================================
   7. MOBILE HEADER - TWO ROW LAYOUT
   ========================================================== */
@media (max-width: 768px) {

    /* HEADER CONTAINER - ALLOW TWO ROWS */
    .edgtf-page-header,
    .edgtf-mobile-header,
    header.site-header,
    header#masthead {
        padding: 10px 15px !important;
        height: auto !important;
        min-height: auto !important;
    }

    /* INNER WRAPPER - FLEXBOX COLUMN FOR TWO ROWS */
    .edgtf-page-header .edgtf-grid,
    .edgtf-mobile-header .edgtf-grid,
    .edgtf-menu-area .edgtf-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        padding: 0 !important;
    }

    /* ROW 1: LOGO - LEFT ALIGNED */
    .edgtf-logo-wrapper,
    .edgtf-mobile-logo-wrapper {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        width: 100% !important;
        margin-bottom: 10px !important;
        padding-left: 0 !important;
    }

    .edgtf-logo-wrapper img,
    .edgtf-mobile-logo-wrapper img {
        max-height: 50px !important;
        width: auto !important;
    }

    /* ROW 2: MENU OPTIONS - PUSHED RIGHT */
    .edgtf-main-menu,
    .edgtf-mobile-nav,
    nav.edgtf-fullscreen-menu,
    .edgtf-menu-area nav {
        display: flex !important;
        justify-content: flex-end !important;
        width: 100% !important;
        padding-right: 0 !important;
    }

    .edgtf-main-menu>ul,
    .edgtf-mobile-nav ul {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-end !important;
        gap: 8px 15px !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .edgtf-main-menu>ul>li,
    .edgtf-mobile-nav ul li {
        margin: 0 !important;
        padding: 0 !important;
    }

    .edgtf-main-menu>ul>li>a,
    .edgtf-mobile-nav ul li a {
        font-size: 12px !important;
        padding: 5px 8px !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        white-space: nowrap !important;
    }

    /* HIDE HAMBURGER IF USING INLINE MENU */
    .edgtf-mobile-header-button,
    .edgtf-mobile-menu-opener {
        display: none !important;
    }

    /* FORCE MOBILE MENU VISIBLE (override theme hiding) */
    .edgtf-mobile-nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        height: auto !important;
        transform: none !important;
    }
}