/*
 * Right-to-left fixes for Arabic pages, loaded after the mirrored stylesheets in rtl/.
 * Only rules the automatic mirroring cannot get right belong here.
 */
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@300..900&display=swap");

:root {
  --font-montserrat: 'Cairo', 'Montserrat', sans-serif;
  --font-poppins: 'Cairo', 'Poppins', sans-serif;
}

/* Arabic letters must stay joined: no letter spacing. */
[dir="rtl"] body,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6,
[dir="rtl"] p, [dir="rtl"] a, [dir="rtl"] span, [dir="rtl"] li, [dir="rtl"] button, [dir="rtl"] label {
  letter-spacing: 0 !important;
}

/* Phone numbers, emails and URLs read left to right. */
[dir="rtl"] a[href^="tel:"],
[dir="rtl"] a[href^="mailto:"],
[dir="rtl"] input[type="tel"],
[dir="rtl"] input[type="email"] {
  direction: ltr;
  unicode-bidi: embed;
}

[dir="rtl"] input[type="tel"],
[dir="rtl"] input[type="email"] {
  text-align: right;
}

/* Circular texts are drawn as SVG on RTL pages (custom.js); keep the ring geometry unmirrored. */
[dir="rtl"] .circular-text .text svg,
[dir="rtl"] .circular-text2 .text svg {
  display: block;
  overflow: visible;
}

/*
 * Direction arrows (buttons, "read more" links, slider and previous/next controls) point the other way.
 * The individual `scale` property mirrors the icon without replacing the template's own transforms
 * (hover rotations stay, mirrored too).
 */
[dir="rtl"] svg[viewBox="0 0 12 12"],
[dir="rtl"] svg[viewBox="0 0 14 12"],
[dir="rtl"] svg[viewBox="0 0 13 20"],
[dir="rtl"] svg[viewBox="0 0 17 9"],
[dir="rtl"] svg[viewBox="0 0 20 14"],
[dir="rtl"] svg[viewBox="0 0 21 12"],
[dir="rtl"] svg[viewBox="0 0 22 18"],
[dir="rtl"] svg[viewBox="0 0 9 9"],
[dir="rtl"] .bi-arrow-right,
[dir="rtl"] .bi-arrow-left,
[dir="rtl"] .bi-chevron-right,
[dir="rtl"] .bi-chevron-left,
[dir="rtl"] .bi-arrow-up-right {
  scale: -1 1;
}

/* Arrow glyphs drawn with bootstrap-icons in pseudo elements (↘ becomes ↙). */
[dir="rtl"] .primary-btn1 span::after,
[dir="rtl"] .details-button::after {
  scale: -1 1;
}
