/* RTL-specific styles for Arabic layout */

/* General text alignment */
html[dir="rtl"] body {
  text-align: right;
}

/* Flip icons and arrows in RTL mode */
html[dir="rtl"] .icon-flip-rtl {
  transform: scaleX(-1);
}

/* Adjust padding and margins for RTL layout */
html[dir="rtl"] .me-3 {
  margin-left: 0.75rem !important;
  margin-right: 0 !important;
}

html[dir="rtl"] .ms-3 {
  margin-right: 0.75rem !important;
  margin-left: 0 !important;
}

html[dir="rtl"] .pe-3 {
  padding-left: 0.75rem !important;
  padding-right: 0 !important;
}

html[dir="rtl"] .ps-3 {
  padding-right: 0.75rem !important;
  padding-left: 0 !important;
}

/* Adjust flex direction for RTL */
html[dir="rtl"] .flex-row {
  flex-direction: row-reverse;
}

html[dir="rtl"] .rtl-flex {
  flex-direction: row-reverse;
}

/* Adjust text alignment for RTL */
html[dir="rtl"] .text-left {
  text-align: right;
}

html[dir="rtl"] .text-right {
  text-align: left;
}

/* Fix dropdown menu positioning for RTL */
html[dir="rtl"] .dropdown-menu {
  left: auto;
  right: 0;
}

/* Fix border radius for RTL */
html[dir="rtl"] .rounded-l {
  border-radius: 0;
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

html[dir="rtl"] .rounded-r {
  border-radius: 0;
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}

/* Fix mobile menu for RTL */
html[dir="rtl"] #mobile-menu {
  right: 0;
  left: auto;
  transform: translateX(100%);
}

html[dir="rtl"] #mobile-menu:not(.translate-x-full) {
  transform: translateX(0);
}

/* Fix testimonial card layout for RTL */
html[dir="rtl"] .testimonial-author-img {
  margin-right: 0;
  margin-left: 1rem;
}

/* Fix footer layout for RTL */
html[dir="rtl"] .footer-links li::before {
  margin-right: 0;
  margin-left: 0.5rem;
}
