/* The Arabic header, right to left (10 Nov 2026; scripts/content-patches/47-ar-header-parity.json). The
   Arabic header has the English mega menus since then; their sheets (findcv-mega-menu-css.css,
   site-header-funnel.css) are mostly written with logical properties, which follow the direction by
   themselves. The few physical ones are mirrored here. Linked from the Arabic header only, after
   site-ar.css (which already sets the Arabic font and removes letter spacing and capitals), so the
   English header never uses it. */

/* The caret beside a menu label: its larger padding goes on the far side of the label (left in Arabic). */
html[dir="rtl"] #masthead .fcvmm-has-mega > .fcvmm-caret {
  padding: 6px 4px 6px 12px;
}

/* The Arabic text arrows are already "←": the plugin sheet's mirror ([dir="rtl"] .fcvmm-arrow, for
   "→") would turn them back to the right. */
html[dir="rtl"] #masthead .fcvmm-arrow {
  transform: none;
}

/* Kufi has taller letters than Quicksand: the two-line items keep their lines apart. Not more than
   this: at 1.5/1.6 the employer menu was about 120px taller than the English one, and its last row
   fell below the fold on laptop screens about 800px high. */
html[dir="rtl"] #masthead .fcvmm-title {
  line-height: 1.4;
}
html[dir="rtl"] #masthead .fcvmm-desc {
  line-height: 1.45;
}

/* The market list opens from the globe into the page: in Arabic the globe sits on the left of the
   header, so the list starts at its left edge (site-header-funnel.css anchors it on the right). */
html[dir="rtl"] #masthead .country-dropdown .dropdown-content {
  left: 0;
  right: auto;
}

/* Small laptops (1025-1100px): the Arabic labels are wider than the English ones, and the menu ran
   30px into «تصفّح الوظائف» at 1025px. Smaller carets and gaps keep the menu inside its box. */
@media (min-width: 1025px) and (max-width: 1100px) {
  /* Same selector as site-ar.css section 5, which sets the gap. */
  html[lang="ar"][dir="rtl"] body #masthead .elementor-4327 .elementor-element-42914b6 .hfe-nav-menu__layout-horizontal > ul.hfe-nav-menu {
    column-gap: 4px;
  }
  html[dir="rtl"] #masthead .fcvmm-has-mega > .fcvmm-caret {
    padding: 6px 1px 6px 6px;
  }
}

/* The footer's four column titles («لأصحاب العمل», «للباحثين عن عمل», «الموارد», «الشركة»). The Arabic
   footer has them as <h2> (the English one as <h4>), and only the first had its own size: the other three
   took the theme's h2 size (18px, weight 500), and on phones (max-width 600px) the theme's
   "h2 {font-size: 24px !important}" made all four 24px. Same size and weight as the English titles. */
html[dir="rtl"] #colophon .elementor-4576 h2.elementor-heading-title {
  font-size: 14px !important;
  font-weight: 700;
}
