/* RTL layer — loaded on top of theme.css when the page language is Arabic (is_rtl()).
   Most RTL behaviour comes from logical properties in theme.css; this file covers the rest. */

html[dir="rtl"] body.tg-body {
  direction: rtl;
  text-align: right;
  font-family: var(--tg-font-ar);
}
html[dir="rtl"] .tg-body h1,
html[dir="rtl"] .tg-body h2,
html[dir="rtl"] .tg-body h3,
html[dir="rtl"] .tg-body h4,
html[dir="rtl"] .tg-body h5,
html[dir="rtl"] .tg-body h6,
html[dir="rtl"] .tg-body .tg-display .elementor-heading-title {
  font-family: var(--tg-font-ar-head);
}
html[dir="rtl"] .tg-nav a::after {
  transform-origin: right;
}
html[dir="rtl"] .tg-logo {
  direction: ltr;
}
html[dir="rtl"] .tg-body input,
html[dir="rtl"] .tg-body textarea,
html[dir="rtl"] .tg-body select {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .tg-body input[type="email"],
html[dir="rtl"] .tg-body input[type="tel"],
html[dir="rtl"] .tg-body input[type="url"] {
  direction: ltr;
  text-align: right;
}
html[dir="rtl"] .tg-lightbox .close {
  right: auto;
  left: 22px;
}
html[dir="rtl"] .tg-lightbox .prev {
  left: auto;
  right: 22px;
  transform: translateY(-50%) scaleX(-1);
}
html[dir="rtl"] .tg-lightbox .next {
  right: auto;
  left: 22px;
  transform: translateY(-50%) scaleX(-1);
}
html[dir="rtl"] .tg-cta,
html[dir="rtl"] .e-con.tg-cta > .e-con-inner {
  text-align: center;
}
