/* SUSF — language control, preserving the site's Tajawal/purple/green identity. */
.susf-language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  border: 1px solid #d9d9e2;
  border-radius: 9px;
  background: #fff;
  color: #292261;
  font: 700 14px/1.2 'Tajawal', 'Alexandria', sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.susf-language-switch__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #efedfa;
  color: #292261;
  direction: ltr;
  font-weight: 800;
  font-size: 11px;
}
.susf-language-switch:hover { background: #f5f4fa; border-color: #292261; }
.susf-language-switch:active { background: #efedfa; }
.susf-language-switch:focus-visible { outline: 3px solid #efc420; outline-offset: 3px; }
.susf-language-switch--mobile { display: none; }
.navbar-container .main-nav .nav__actions-container { gap: 1rem; }
.susf-language-switch--menu {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  z-index: 1002;
}
html[lang='en'] .kpi-waiting-state,
html[lang='en'] .kpi-season-empty-state { direction: ltr; }
/* The existing LTR navigation rules reverse the English menu. Restore reading order. */
html[lang='en'] body .navbar-container .main-nav { flex-direction: row; }
html[lang='en'] body .navbar-container .main-nav .nav__list-container .navbar { justify-content: flex-start; }
html[lang='en'] body .navbar-container .main-nav .nav__list-container .navbar .navbar-nav { direction: ltr; flex-direction: row !important; }
html[lang='en'] body .navbar-container .sub-nav ul { direction: ltr; display: flex; flex-direction: row !important; flex-wrap: wrap !important; justify-content: center; gap: 0.5rem 1rem; }
html[lang='en'] body .navbar-container .sub-nav .subNav-item { min-width: 0; max-width: 100%; }
html[lang='en'] body .navbar-container .sub-nav li a { white-space: normal; }
html[lang='en'] .services-container .card-body p { text-wrap: pretty; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-container .main-nav .nav__actions-container { gap: 0.55rem; }
  .susf-language-switch--desktop { padding-inline: 0.55rem; }
}
@media (max-width: 991.98px) {
  .susf-language-switch--desktop { display: none; }
  .susf-language-switch--mobile { display: inline-flex; }
  .header-content .header__links { display: flex; align-items: center; justify-content: center; gap: 0.55rem; flex-wrap: wrap; }
  .susf-language-switch--mobile { min-height: 44px; padding-inline: 0.5rem; font-size: 13px; }
  .susf-language-switch--mobile .susf-language-switch__badge { width: 22px; height: 22px; }
}
@media (max-width: 480px) {
  .header-content .header__links { flex-direction: column; gap: 0.3rem; }
  .susf-language-switch--mobile { min-height: 44px; padding: 0.3rem 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .susf-language-switch { transition: none; }
}
