/* RTL Global Overrides for Arabic */
html[lang="ar"], body.rtl {
  direction: rtl;
  text-align: right;
  font-family: 'Tajawal', 'Cairo', 'Noto Sans Arabic', sans-serif;
}

/* Header RTL */
html[lang="ar"] .header-container {
  flex-direction: row-reverse;
}
html[lang="ar"] #mobile-nav {
  flex-direction: row-reverse;
  gap: 1.5rem;
}
html[lang="ar"] .dropdown-content {
  left: auto;
  right: 0;
  text-align: right;
}
html[lang="ar"] .lang-switcher .lang-menu {
  right: 0;
  left: auto;
}

/* Footer RTL */
html[lang="ar"] .footer-container {
  direction: rtl;
}
html[lang="ar"] .floating-contact-btn {
  left: 20px;
  right: auto;
}
html[lang="ar"] .cta-label {
  right: auto;
  left: 70px;
}

/* Content RTL */
html[lang="ar"] .hero-landing {
  flex-direction: row-reverse;
}
html[lang="ar"] .content-grid {
  flex-direction: row-reverse;
}
html[lang="ar"] .about-section {
  flex-direction: row-reverse;
}
html[lang="ar"] .timeline-item::before,
html[lang="ar"] .timeline-steps .timeline-item {
  border-left: none;
  border-right: 4px solid #D4AF37;
  margin-left: 0;
  margin-right: 1rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
html[lang="ar"] .info-box {
  border-left: none;
  border-right: 4px solid #D4AF37;
}
html[lang="ar"] .coverage-item {
  flex-direction: row-reverse;
}
html[lang="ar"] .timeline-vertical {
  border-left: none;
  border-right: 2px solid #ddd;
  margin-left: 0;
  margin-right: 20px;
  padding-left: 0;
  padding-right: 30px;
}
html[lang="ar"] .timeline-event::before {
  left: auto;
  right: -39px;
}
html[lang="ar"] .journey-step {
  flex-direction: row-reverse;
}
html[lang="ar"] .timeline-connector svg {
  transform: scaleX(-1);
}
html[lang="ar"] .warning-box {
  border-left: none;
  border-right: 4px solid #e74c3c;
}
html[lang="ar"] .gold-standard-box {
  border-left: none;
  border-right: 4px solid #D4AF37;
}
html[lang="ar"] .section-title,
html[lang="ar"] .section-subtitle,
html[lang="ar"] .page-title {
  text-align: center;
}
html[lang="ar"] .contact-layout {
  flex-direction: row-reverse;
}
html[lang="ar"] .step-content {
  text-align: right;
}
html[lang="ar"] .insurance-wrapper {
  flex-direction: row-reverse;
}
html[lang="ar"] .values-grid .value-card h3,
html[lang="ar"] .feature-card h3,
html[lang="ar"] .trust-card h3 {
  text-align: right;
}

/* Arabic specific font sizes - Arabic script needs slightly larger size */
html[lang="ar"] p,
html[lang="ar"] li,
html[lang="ar"] a {
  font-size: 1.05em;
  line-height: 1.9;
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 {
  line-height: 1.6;
}

/* Form RTL */
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] select {
  direction: rtl;
  text-align: right;
}
html[lang="ar"] .iti {
  direction: rtl;
}

/* Mobile nav RTL */
@media (max-width: 992px) {
  html[lang="ar"] #mobile-nav {
    flex-direction: column;
    align-items: flex-end;
  }
  html[lang="ar"] .hero-landing {
    flex-direction: column-reverse;
  }
}
