/* --- COMPONENT: ARABIC LANGUAGE SWITCHER FONT --- */

/* 1. Load the font from Google Fonts (if not already loaded via theme) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;500;600;700&display=swap');

/* 2. Target the Arabic text span specifically */
#header-menu-1 .wpml-ls-native, 
#header-menu-1 [lang="ar"],
.wpml-ls-item-ar .ct-menu-link {
    font-family: 'Noto Kufi Arabic', sans-serif !important;
    
    /* Slight adjustment for Arabic vertical alignment & sizing */
    font-size: 0.95rem !important; 
    line-height: 1 !important;
    font-weight: 500 !important;
}

/* 3. Ensure the English "(Arabic)" text keeps the default site font */
#header-menu-1 .wpml-ls-display {
    font-family: inherit !important;
    font-size: 0.85rem !important;
    margin-left: 4px !important;
}

/* CMU-Q 2026 ARCHITECTURE: EXACT STATE-TRIGGER HEADER PROTOCOL               */



/* --- PART 1: BASE STATE (TOP OF PAGE) - PRESTIGE PAGES ONLY --- */
/* The addition of body:is(...) strictly fences the transparent look to Home & Prestige */
body:is(.home, .cmuq-header--transparent, :has(.cmuq-header--transparent)) #header [data-row][data-transparent-row="yes"] {
    background-color: rgba(0, 0, 0, 0.5) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border: none !important;
    box-shadow: none !important;
}
body:is(.home, .cmuq-header--transparent, :has(.cmuq-header--transparent)) #header [data-row="top"][data-transparent-row="yes"] {
    background-color: rgba(0, 0, 0, 0.7) !important; 
    background: rgba(0, 0, 0, 0.7) !important;
}
body:is(.home, .cmuq-header--transparent, :has(.cmuq-header--transparent)) #header [data-row][data-transparent-row="yes"] :is(.ct-menu-link, .ct-menu-link *, .wpml-ls-item *, .ct-icon, .ct-label) {
    color: #ffffff !important;
    fill: #ffffff !important;
}



/* --- PART 2: GLOBAL PROTECTIONS --- */
/* Protects Logo color and forces Font Weight 600 globally */
#header .ct-logo-container,
#header .ct-logo {
    position: relative !important;
    z-index: 999 !important;
    filter: none !important;
}
#header [data-row] :is(.ct-menu-link, .ct-menu-link *, .wpml-ls-item *, .ct-label) {
    font-weight: 600 !important;
}

#header-menu-1 #menu-item-31350 > .ct-menu-link{
  font-family: "Noto Kufi Arabic", Tahoma, Arial, sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  line-height: 1 !important;
}
