html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
  font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

html[dir="rtl"] .nav-inner,
html[dir="rtl"] .nav-list,
html[dir="rtl"] .hero-grid,
html[dir="rtl"] .footer-grid,
html[dir="rtl"] .cta-buttons,
html[dir="rtl"] .hero-actions {
  direction: rtl;
}

html[dir="rtl"] .dropdown,
html[dir="rtl"] .mega-menu,
html[dir="rtl"] .mobile-submenu {
  right: 0;
  left: auto;
  text-align: right;
}

html[dir="rtl"] table {
  direction: rtl;
}

html[dir="rtl"] th,
html[dir="rtl"] td {
  text-align: right;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] a[href^="mailto:"],
html[dir="rtl"] a[href^="tel:"],
html[dir="rtl"] .logo-brand,
html[dir="rtl"] .logo-product,
html[dir="rtl"] .footer-brand-name,
html[dir="rtl"] .footer-brand-sub {
  direction: ltr;
  unicode-bidi: isolate;
}

.language-switcher-ar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  margin-inline-start: 10px;
  border: 1px solid rgba(15, 42, 73, 0.2);
  border-radius: 6px;
  color: #0f2a49;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  direction: ltr;
}

.language-switcher-mobile {
  display: block;
  margin: 12px 20px;
  padding: 10px 14px;
  border: 1px solid rgba(15, 42, 73, 0.18);
  border-radius: 6px;
  background: #fff;
  color: #0f2a49;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
  direction: ltr;
}

.english-only-link::after {
  content: " EN";
  display: inline-block;
  margin-inline-start: 0.35em;
  color: #7b8794;
  font-size: 0.66em;
  font-weight: 700;
  direction: ltr;
}

@media (max-width: 980px) {
  .language-switcher-ar {
    display: none;
  }
}

@media (max-width: 640px) {
  html[dir="rtl"] .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  html[dir="rtl"] table {
    min-width: 620px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
