/* HP2 header — layout, services mega menu, language switcher */

/*
 * Oxygen Pro Menu inline JS appends empty .oxy-pro-menu-dropdown-icon-click-area
 * divs to every .menu-item:not(.menu-item-has-children) > a — including submenu
 * links. Those placeholders render as white hollow circles between the label
 * and our ↗ arrow. Kill them early with ID-level selectors (EN + AR).
 */
#menu-item-1252 > .sub-menu,
#menu-item-1869 > .sub-menu,
#menu-item-1252 > .sub-menu > .menu-item,
#menu-item-1869 > .sub-menu > .menu-item {
  list-style: none !important;
  list-style-type: none !important;
  padding-inline-start: 0 !important;
  margin-inline-start: 0 !important;
}

#menu-item-1252 > .sub-menu > .menu-item::marker,
#menu-item-1869 > .sub-menu > .menu-item::marker {
  content: none !important;
  display: none !important;
  font-size: 0 !important;
}

#menu-item-1252 > .sub-menu .menu-item > a > .oxy-pro-menu-dropdown-icon-click-area,
#menu-item-1252 > .sub-menu .menu-item > a > .oxy-pro-menu-dropdown-icon,
#menu-item-1252 > .sub-menu .menu-item > a > svg.oxy-pro-menu-dropdown-icon,
#menu-item-1869 > .sub-menu .menu-item > a > .oxy-pro-menu-dropdown-icon-click-area,
#menu-item-1869 > .sub-menu .menu-item > a > .oxy-pro-menu-dropdown-icon,
#menu-item-1869 > .sub-menu .menu-item > a > svg.oxy-pro-menu-dropdown-icon {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

@media (min-width: 993px) {
  /* Keep Oxygen inline scripts out of the header grid flow */
  .hp2-header .ct-section-inner-wrap > script {
    display: none !important;
  }

  .hp2-header {
    height: 88px !important;
    max-height: 88px !important;
    overflow: visible !important;
  }

  .hp2-header.is-scrolled {
    height: 72px !important;
    max-height: 72px !important;
  }

  .hp2-header .ct-section-inner-wrap {
    grid-template-columns: 1fr auto 1fr !important;
    grid-template-rows: 88px !important;
    align-items: center !important;
    height: 88px !important;
    min-height: 88px !important;
    max-height: 88px !important;
    overflow: hidden !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: clamp(22px, 4vw, 68px) !important;
    padding-right: clamp(22px, 4vw, 68px) !important;
  }

  .hp2-header.is-scrolled .ct-section-inner-wrap {
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    grid-template-rows: 72px !important;
  }

  .hp2-header .ct-section-inner-wrap > * {
    min-height: 0 !important;
  }

  .hp2-header .hp2-logo {
    grid-column: 1;
    justify-self: start;
    align-self: center !important;
  }

  .hp2-header .oxy-pro-menu {
    grid-column: 2;
    justify-self: center;
    min-width: 0;
    align-self: center !important;
    overflow: visible !important;
    height: auto !important;
    max-height: 100% !important;
  }

  .hp2-header.is-scrolled .oxy-pro-menu {
    height: auto !important;
    max-height: 100% !important;
  }

  .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    max-height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .hp2-header .oxy-pro-menu-list {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: clamp(8px, 1.2vw, 20px) !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .hp2-header .oxy-pro-menu-list > .menu-item {
    display: flex !important;
    align-items: center !important;
    align-self: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .hp2-header .oxy-pro-menu-list > .menu-item > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    position: relative !important;
    box-sizing: border-box !important;
    min-height: 44px !important;
    height: auto !important;
    padding-inline: clamp(8px, 1vw, 14px) !important;
    padding-block: 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .hp2-header .oxy-pro-menu-list > .menu-item > a::after {
    top: auto !important;
    bottom: 10px !important;
  }

  .hp2-header .hp2-header-actions,
  .hp2-header .ct-div-block:last-child {
    grid-column: 3;
    justify-self: end;
    align-self: center !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: clamp(12px, 1.4vw, 20px);
    flex-wrap: nowrap;
    min-width: 0;
    height: auto !important;
    max-height: none !important;
  }

  html[lang="ar"] .hp2-header .hp2-header-actions {
    flex-direction: row-reverse;
  }

  .hp2-header .hp2-header-actions .hp2-lang-menu--desktop,
  .hp2-header .ct-div-block .hp2-lang-menu--desktop {
    flex-shrink: 0;
  }

  .hp2-header .hp2-header-actions .ct-link-text,
  .hp2-header .hp2-header-actions .oxy-pws-button-animations,
  .hp2-header .ct-div-block .oxy-pws-button-animations {
    flex-shrink: 0;
    white-space: nowrap;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
  }

  /* Mobile-only controls live inside header-actions — hide on desktop */
  .hp2-header .hp2-header-actions [id*="fancy_icon-"],
  .hp2-header .hp2-header-actions .oxy-pws-off-canvas,
  .hp2-header .pws-oc-close-btn,
  .hp2-header .oxy-pro-menu-mobile-open-icon,
  .hp2-header .oxy-pro-menu-mobile-close-icon {
    display: none !important;
  }

  /* ── Services mega menu ── */
  .hp2-header .oxy-pro-menu-list > #menu-item-1252,
  .hp2-header .oxy-pro-menu-list > #menu-item-1869 {
    position: relative !important;
  }

  .hp2-header .oxy-pro-menu-list > .menu-item-has-children > a .oxy-pro-menu-dropdown-icon-click-area,
  .hp2-header .oxy-pro-menu-list > #menu-item-1252 > a .oxy-pro-menu-dropdown-icon-click-area,
  .hp2-header .oxy-pro-menu-list > #menu-item-1869 > a .oxy-pro-menu-dropdown-icon-click-area {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .hp2-header .oxy-pro-menu-list > .menu-item-has-children > a .oxy-pro-menu-dropdown-icon-click-area svg,
  .hp2-header .oxy-pro-menu-list > .menu-item-has-children > a .oxy-pro-menu-dropdown-icon,
  .hp2-header .oxy-pro-menu-list > #menu-item-1252 > a .oxy-pro-menu-dropdown-icon-click-area svg,
  .hp2-header .oxy-pro-menu-list > #menu-item-1869 > a .oxy-pro-menu-dropdown-icon-click-area svg,
  .hp2-header .oxy-pro-menu-list > #menu-item-1252 > a .oxy-pro-menu-dropdown-icon,
  .hp2-header .oxy-pro-menu-list > #menu-item-1869 > a .oxy-pro-menu-dropdown-icon {
    width: 12px !important;
    height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
  }

  .hp2-header .hp2-header-actions .oxy-pws-button-animations {
    flex-shrink: 0;
  }

  /* Header CTA flip — button-animations.css is not always enqueued on HP2 pages */
  .hp2-header .hp2-header-actions .pws-oxy-ba-effect-flip {
    overflow: visible !important;
    perspective: 900px !important;
    color: var(--pws-ba-front-color, #fff);
    background: var(--pws-ba-front-bg, transparent);
    transition: color var(--pws-ba-flip-duration, 0.5s) var(--pws-ba-easing, ease),
      background-color var(--pws-ba-flip-duration, 0.5s) var(--pws-ba-easing, ease);
  }

  .hp2-header .hp2-header-actions .pws-oxy-ba-stage.pws-oxy-ba-effect-flip {
    display: inline-flex !important;
    position: relative !important;
    width: auto !important;
    min-width: max-content !important;
    overflow: visible !important;
  }

  .hp2-header .hp2-header-actions .pws-oxy-ba-flipper {
    display: grid !important;
    width: 100% !important;
    transform-style: preserve-3d !important;
    transition: transform var(--pws-ba-flip-duration, 0.5s) var(--pws-ba-easing, ease);
  }

  .hp2-header .hp2-header-actions .pws-oxy-ba-face {
    grid-area: 1 / 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    white-space: nowrap !important;
  }

  .hp2-header .hp2-header-actions .pws-oxy-ba-front {
    color: var(--pws-ba-front-color, #fff);
  }

  /* Sticky (scrolled) header: dark CTA text (default + hover) to match main menu — EN + AR */
  .hp2-header.is-scrolled .hp2-header-actions .oxy-pws-button-animations,
  .hp2-header.is-scrolled .ct-div-block .oxy-pws-button-animations,
  .hp2-header.is-scrolled .hp2-header-actions .pws-oxy-ba-effect-flip,
  .hp2-header.is-scrolled .hp2-header-actions .pws-oxy-ba-front,
  .hp2-header.is-scrolled .hp2-header-cta {
    --pws-ba-front-color: #04202c;
    --pws-ba-back-color: #04202c;
    --pws-ba-hover-text: #04202c;
    color: #04202c !important;
  }

  .hp2-header.is-scrolled .hp2-header-actions .pws-oxy-ba-back,
  .hp2-header.is-scrolled .hp2-header-actions .pws-oxy-button-animation:hover .pws-oxy-ba-effect-flip,
  .hp2-header.is-scrolled .hp2-header-actions .pws-oxy-button-animation:focus-visible .pws-oxy-ba-effect-flip,
  .hp2-header.is-scrolled .hp2-header-actions .pws-oxy-button-animation:hover .pws-oxy-ba-back,
  .hp2-header.is-scrolled .hp2-header-actions .pws-oxy-button-animation:focus-visible .pws-oxy-ba-back,
  .hp2-header.is-scrolled .hp2-header-cta:hover {
    --pws-ba-back-color: #04202c;
    --pws-ba-hover-text: #04202c;
    color: #04202c !important;
  }

  .hp2-header .hp2-header-actions .pws-oxy-ba-back {
    color: var(--pws-ba-back-color, #fff);
  }

  .hp2-header .hp2-header-actions .pws-oxy-button-animation:hover .pws-oxy-ba-effect-flip,
  .hp2-header .hp2-header-actions .pws-oxy-button-animation:focus-visible .pws-oxy-ba-effect-flip {
    color: var(--pws-ba-back-color, #fff);
    background: transparent !important;
    background-color: transparent !important;
  }

  .hp2-header .hp2-header-actions .oxy-pws-button-animations,
  .hp2-header .hp2-header-actions .oxy-pws-button-animations:hover,
  .hp2-header .hp2-header-actions .oxy-pws-button-animations:focus-visible,
  .hp2-header .hp2-header-actions .pws-oxy-ba-stage,
  .hp2-header .hp2-header-actions .oxy-pws-button-animations:hover .pws-oxy-ba-stage,
  .hp2-header .hp2-header-actions .oxy-pws-button-animations:focus-visible .pws-oxy-ba-stage {
    --pws-ba-back-bg: transparent !important;
    --pws-ba-hover-bg: transparent !important;
    background: transparent !important;
    background-color: transparent !important;
  }

  .hp2-header .hp2-header-actions .pws-oxy-ba-flip-up .pws-oxy-ba-back {
    transform: rotateX(-180deg);
  }

  .hp2-header .hp2-header-actions .pws-oxy-ba-flip-down .pws-oxy-ba-back {
    transform: rotateX(180deg);
  }

  .hp2-header .hp2-header-actions .pws-oxy-ba-flip-left .pws-oxy-ba-back {
    transform: rotateY(180deg);
  }

  .hp2-header .hp2-header-actions .pws-oxy-ba-flip-right .pws-oxy-ba-back {
    transform: rotateY(-180deg);
  }

  .hp2-header .hp2-header-actions .pws-oxy-button-animation:hover .pws-oxy-ba-flip-up .pws-oxy-ba-flipper,
  .hp2-header .hp2-header-actions .pws-oxy-button-animation:focus-visible .pws-oxy-ba-flip-up .pws-oxy-ba-flipper {
    transform: rotateX(180deg);
  }

  .hp2-header .hp2-header-actions .pws-oxy-button-animation:hover .pws-oxy-ba-flip-down .pws-oxy-ba-flipper,
  .hp2-header .hp2-header-actions .pws-oxy-button-animation:focus-visible .pws-oxy-ba-flip-down .pws-oxy-ba-flipper {
    transform: rotateX(-180deg);
  }

  .hp2-header .hp2-header-actions .pws-oxy-button-animation:hover .pws-oxy-ba-flip-left .pws-oxy-ba-flipper,
  .hp2-header .hp2-header-actions .pws-oxy-button-animation:focus-visible .pws-oxy-ba-flip-left .pws-oxy-ba-flipper {
    transform: rotateY(-180deg);
  }

  .hp2-header .hp2-header-actions .pws-oxy-button-animation:hover .pws-oxy-ba-flip-right .pws-oxy-ba-flipper,
  .hp2-header .hp2-header-actions .pws-oxy-button-animation:focus-visible .pws-oxy-ba-flip-right .pws-oxy-ba-flipper {
    transform: rotateY(180deg);
  }

  .hp2-header .hp2-header-actions .pws-oxy-ba-content {
    white-space: nowrap !important;
  }

  .hp2-header .hp2-header-actions .oxy-pws-button-animations svg {
    width: 1em !important;
    height: 1em !important;
    max-width: 20px !important;
    max-height: 20px !important;
  }

  .hp2-header .hp2-services-mega.sub-menu,
  .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1252 > .sub-menu,
  .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1869 > .sub-menu,
  #-pro-menu-5-2481 #menu-item-1252 > .sub-menu,
  html[lang="ar"] #-pro-menu-5-2457 #menu-item-1869 > .sub-menu {
    position: absolute !important;
    top: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-auto-rows: 1fr !important;
    align-items: stretch !important;
    width: min(820px, calc(100vw - 48px)) !important;
    max-width: calc(100vw - 48px) !important;
    gap: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 120 !important;
    white-space: normal;
    padding: 0 !important;
    margin-top: 8px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: linear-gradient(165deg, #0089af 0%, #006e8f 100%) !important;
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.1),
      0 22px 50px rgba(0, 19, 29, 0.28) !important;
    border: 0 !important;
    animation: hp2-mega-in 0.28s ease;
    list-style: none !important;
    list-style-type: none !important;
  }

  @keyframes hp2-mega-in {
    from {
      opacity: 0;
      transform: translateX(-50%) translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
  }

  .hp2-header .hp2-services-mega .menu-item,
  .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1252 > .sub-menu > .menu-item,
  .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1869 > .sub-menu > .menu-item,
  #-pro-menu-5-2481 #menu-item-1252 > .sub-menu > .menu-item,
  html[lang="ar"] #-pro-menu-5-2457 #menu-item-1869 > .sub-menu > .menu-item {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    list-style: none !important;
    list-style-type: none !important;
    display: block !important;
  }

  .hp2-header .hp2-services-mega .menu-item::marker,
  .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1252 > .sub-menu > .menu-item::marker,
  .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1869 > .sub-menu > .menu-item::marker,
  #-pro-menu-5-2481 #menu-item-1252 > .sub-menu > .menu-item::marker,
  html[lang="ar"] #-pro-menu-5-2457 #menu-item-1869 > .sub-menu > .menu-item::marker {
    content: none !important;
    display: none !important;
  }

  .hp2-header .hp2-services-mega .menu-item:nth-last-child(-n+2),
  .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1252 > .sub-menu > .menu-item:nth-last-child(-n+2),
  .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1869 > .sub-menu > .menu-item:nth-last-child(-n+2),
  #-pro-menu-5-2481 #menu-item-1252 > .sub-menu > .menu-item:nth-last-child(-n+2),
  html[lang="ar"] #-pro-menu-5-2457 #menu-item-1869 > .sub-menu > .menu-item:nth-last-child(-n+2) {
    border-bottom: 0 !important;
  }

  .hp2-header .hp2-services-mega .menu-item:nth-child(odd),
  .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1252 > .sub-menu > .menu-item:nth-child(odd),
  .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1869 > .sub-menu > .menu-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  html[lang="ar"] .hp2-header .hp2-services-mega .menu-item:nth-child(odd),
  html[lang="ar"] .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1869 > .sub-menu > .menu-item:nth-child(odd),
  html[lang="ar"] #-pro-menu-5-2457 #menu-item-1869 > .sub-menu > .menu-item:nth-child(odd) {
    border-right: 0 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .hp2-header .hp2-services-mega .menu-item > a,
  .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1252 > .sub-menu .menu-item > a,
  .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1869 > .sub-menu .menu-item > a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100% !important;
    height: 100% !important;
    min-height: 48px !important;
    box-sizing: border-box;
    padding: 14px 18px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    color: #fff !important;
    text-decoration: none !important;
    background: transparent !important;
    transition: background 0.22s ease, padding-inline-start 0.22s ease;
  }

  html[lang="ar"] .hp2-header .hp2-services-mega .menu-item > a,
  html[lang="ar"] .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1869 > .sub-menu .menu-item > a {
    direction: rtl;
    text-align: right;
    flex-direction: row;
  }

  .hp2-header .hp2-services-mega .menu-item > a::after,
  .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1252 > .sub-menu .menu-item > a::after {
    content: "↗";
    flex-shrink: 0;
    font-size: 12px;
    line-height: 1;
    opacity: 0.72;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  html[lang="ar"] .hp2-header .hp2-services-mega .menu-item > a::after,
  html[lang="ar"] .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1869 > .sub-menu .menu-item > a::after {
    content: "↖";
  }

  .hp2-header .hp2-services-mega .menu-item > a:hover,
  .hp2-header .hp2-services-mega .menu-item > a:focus-visible,
  .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1252 > .sub-menu .menu-item > a:hover,
  .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1252 > .sub-menu .menu-item > a:focus-visible,
  .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1869 > .sub-menu .menu-item > a:hover,
  .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1869 > .sub-menu .menu-item > a:focus-visible {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
  }

  .hp2-header .hp2-services-mega .menu-item > a:hover::after,
  .hp2-header .hp2-services-mega .menu-item > a:focus-visible::after,
  .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1252 > .sub-menu .menu-item > a:hover::after,
  .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1252 > .sub-menu .menu-item > a:focus-visible::after,
  .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1869 > .sub-menu .menu-item > a:hover::after,
  .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1869 > .sub-menu .menu-item > a:focus-visible::after {
    opacity: 1;
    transform: translate(2px, -2px);
  }

  html[lang="ar"] .hp2-header .hp2-services-mega .menu-item > a:hover::after,
  html[lang="ar"] .hp2-header .hp2-services-mega .menu-item > a:focus-visible::after,
  html[lang="ar"] .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1869 > .sub-menu .menu-item > a:hover::after,
  html[lang="ar"] .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1869 > .sub-menu .menu-item > a:focus-visible::after {
    transform: translate(-2px, -2px);
  }

  .hp2-header .hp2-services-mega .menu-item > a .oxy-pro-menu-dropdown-icon-click-area,
  .hp2-header .hp2-services-mega .menu-item > a .oxy-pro-menu-dropdown-icon,
  .hp2-header .hp2-services-mega .menu-item > a svg.oxy-pro-menu-dropdown-icon,
  .hp2-header .sub-menu .menu-item > a .oxy-pro-menu-dropdown-icon-click-area,
  .hp2-header .sub-menu .menu-item > a .oxy-pro-menu-dropdown-icon,
  .hp2-header .sub-menu .menu-item > a svg.oxy-pro-menu-dropdown-icon,
  .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1252 > .sub-menu .menu-item > a .oxy-pro-menu-dropdown-icon-click-area,
  .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1869 > .sub-menu .menu-item > a .oxy-pro-menu-dropdown-icon-click-area,
  .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1252 > .sub-menu .menu-item > a .oxy-pro-menu-dropdown-icon,
  .hp2-header .oxy-pro-menu-container:not(.oxy-pro-menu-off-canvas-container):not(.oxy-pro-menu-open-container) #menu-item-1869 > .sub-menu .menu-item > a .oxy-pro-menu-dropdown-icon,
  #-pro-menu-5-2481 #menu-item-1252 > .sub-menu .menu-item > a .oxy-pro-menu-dropdown-icon-click-area,
  #-pro-menu-5-2481 #menu-item-1252 > .sub-menu .menu-item > a .oxy-pro-menu-dropdown-icon,
  html[lang="ar"] #-pro-menu-5-2457 #menu-item-1869 > .sub-menu .menu-item > a .oxy-pro-menu-dropdown-icon-click-area,
  html[lang="ar"] #-pro-menu-5-2457 #menu-item-1869 > .sub-menu .menu-item > a .oxy-pro-menu-dropdown-icon {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Language menu */
.hp2-header .hp2-header-actions .hp2-lang-menu--desktop,
.hp2-header .ct-section-inner-wrap > .hp2-lang-menu--desktop,
.hp2-header .ct-div-block .hp2-lang-menu--desktop {
  display: flex;
  align-items: center;
}

.hp2-lang-menu {
  flex-shrink: 0;
}

.hp2-lang-menu > ul,
.hp2-lang-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hp2-lang-menu > ul .menu-item,
.hp2-lang-list .menu-item {
  margin: 0;
  padding: 0;
}

.hp2-lang-menu > ul a,
.hp2-lang-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  color: inherit;
  opacity: 0.88;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.hp2-lang-list a img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 1px;
  display: inline-block;
  vertical-align: middle;
}

.hp2-lang-list a img.pws-language-custom-flag {
  width: 18px;
  height: 13px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.hp2-lang-list a .pws-language-emoji-flag {
  width: 18px;
  height: 13px;
  font-size: 18px;
}

.hp2-lang-list a .pws-language-emoji-flag img.wp-smiley {
  width: 18px !important;
  height: 13px !important;
}

/* English — normal casing, body/nav font */
html:not([lang="ar"]) .hp2-lang-menu > ul a,
html:not([lang="ar"]) .hp2-lang-list a {
  text-transform: none;
  letter-spacing: normal;
  font-family: 'DM Sans', system-ui, sans-serif;
}

/* Arabic — match homepage headings */
html[lang="ar"] .hp2-lang-menu > ul a,
html[lang="ar"] .hp2-lang-list a,
html[lang="ar"] .hp2-lang-menu .hp2-lang-label {
  font-family: 'Alexandria', sans-serif;
  text-transform: none;
  letter-spacing: normal;
}

.hp2-lang-menu > ul a:hover,
.hp2-lang-list a:hover,
.hp2-lang-list .current-menu-item > a,
.hp2-lang-list .current-lang > a,
.hp2-lang-menu .lang-item-current a {
  opacity: 1;
}

/* Arabic header language-switcher icon should point/flow left. */
html[lang="ar"] .hp2-lang-menu > ul a i,
html[lang="ar"] .hp2-lang-list a i,
html[lang="ar"] .hp2-lang-menu > ul a svg,
html[lang="ar"] .hp2-lang-list a svg,
html[lang="ar"] .hp2-lang-menu > ul a .material-icons,
html[lang="ar"] .hp2-lang-list a .material-icons {
  order: -1;
  transform: scaleX(-1);
}

.hp2-header.is-scrolled .hp2-lang-menu > ul a,
.hp2-header.is-scrolled .hp2-lang-list a {
  color: #04202c;
}

@media (max-width: 992px) {
  .hp2-lang-menu--desktop {
    display: none !important;
  }
}

@media (min-width: 993px) {
  .hp2-lang-menu--mobile {
    display: none !important;
  }

  html[lang="ar"] .hp2-header .hp2-header-actions .oxy-pws-button-animations {
    font-family: 'Alexandria', sans-serif;
  }

  /* Arabic CTA arrow mirrors EN up-right → up-left */
  html[lang="ar"] .hp2-header .hp2-header-actions .oxy-pws-button-animations .pws-oxy-ba-icon {
    transform: scaleX(-1);
  }
}
