
/* Hide TV feature completely on MuslimAncestry site */
.ufo-icon[title="TV"],
.mp-ufo-icon[data-icon="tv"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Hide theme switcher and lab toys on MuslimAncestry */
a[title="Themes"],
.fa-palette,
.app-launcher-btn,
#appLauncherBtn,
#appLauncherDraggable {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Hide obvious e-commerce / auction / sales / Gtrado items in header */
a[href*="sales.php"],
a[href*="sale-"],
a[href*="auction.php"],
a[href*="auction-"],
a[href*="cart.php"],
a[href*="checkout.php"],
a[href*="categories.php"],
a[href*="shop.php"],
a[href*="realestate.php"],
a[href*="/realestate/"],
a[href*="grocery.php"],
a[href*="/grocery/"],
a[href*="register.php?role=vendor"],
a[title*="Sell on GLRCF"],
a[title*="Sales"],
a[title*="Auction"],
a[title*="Cart"],
a[href*="giftcards.php"],
a[href*="freebies.php"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Ensure the middle panel can expand for the sub-navigation */
body.muslimancestry-site #headerMiddlePanel {
    height: auto !important;
    max-height: none !important;
    min-height: 80px !important;
    padding-bottom: 5px !important;
}

/* Ensure 7px gap below search box (Search Box in Row 1, Nav in Row 2) */
body.muslimancestry-site .header-row1 {
    margin-bottom: 0px !important;
}

/* Sub-nav: below search bar on mobile; small gap on desktop */
body.muslimancestry-site #headerMiddlePanel .header-second-row,
body.muslimancestry-site #headerMiddlePanel #headerSecondRow,
body.muslimancestry-site #headerSecondRow {
    margin-top: 3px !important;
    top: 0 !important;
    transform: none !important;
    position: relative !important;
    z-index: 10000 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    align-self: stretch !important;
    width: 100% !important;
}
@media (max-width: 980px) {
    body.muslimancestry-site #headerMiddlePanel {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
    }
    body.muslimancestry-site #headerMiddlePanel > .header-top-bar { order: 1 !important; }
    body.muslimancestry-site #headerMiddlePanel > .header-row1,
    body.muslimancestry-site #headerMiddlePanel > .mobile-header-row1 {
        order: 2 !important;
        transform: none !important;
    }
    body.muslimancestry-site #headerMiddlePanel > .logo-wrapper {
        order: 3 !important;
        display: flex !important;
        position: absolute !important;
        left: 10px !important;
        bottom: 4px !important;
        transform: none !important;
        z-index: 10001 !important;
        margin: 0 !important;
    }
    body.muslimancestry-site #headerMiddlePanel > #headerSecondRow,
    body.muslimancestry-site #headerMiddlePanel > .header-second-row {
        order: 4 !important;
        margin-top: 0 !important;
        transform: none !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }
}
body.muslimancestry-site #headerMiddlePanel .muslimancestry-nav {
    margin-top: 0 !important;
}
@media (max-width: 980px) {
    body.muslimancestry-site #headerMiddlePanel .muslimancestry-nav,
    body.muslimancestry-site #headerSecondRow .muslimancestry-nav {
        gap: 1px !important;
        row-gap: 1px !important;
        column-gap: 1px !important;
    }
}

/* MuslimAncestry navigator: smaller buttons, no text highlight/glow */
body.muslimancestry-site #headerSecondRow .nav-btn,
body.muslimancestry-site #headerSecondRow .header-center .nav-btn,
body.muslimancestry-site #headerSecondRow a.nav-btn {
    font-size: 12px !important;
    line-height: 1.1 !important;
    padding: 4px 7px !important;
    min-height: 24px !important;
    border-radius: 8px !important;
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
}

body.muslimancestry-site #headerSecondRow .nav-btn i,
body.muslimancestry-site #headerSecondRow a.nav-btn i {
    font-size: 12px !important;
    margin-right: 4px !important;
    text-shadow: none !important;
    filter: none !important;
}

body.muslimancestry-site #headerSecondRow .nav-btn:hover,
body.muslimancestry-site #headerSecondRow .nav-btn:focus,
body.muslimancestry-site #headerSecondRow .nav-btn:active,
body.muslimancestry-site #headerSecondRow .nav-btn:hover i,
body.muslimancestry-site #headerSecondRow .nav-btn:focus i,
body.muslimancestry-site #headerSecondRow .nav-btn:active i,
body.muslimancestry-site #headerSecondRow .nav-btn:hover .nav-text,
body.muslimancestry-site #headerSecondRow .nav-btn:focus .nav-text,
body.muslimancestry-site #headerSecondRow .nav-btn:active .nav-text {
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
}
