/* ============================================================
   AELAANY — RTL (Arabic) OVERRIDES
   Loaded only when lang-ar body class is present
   ============================================================ */

/* ── Direction & Alignment ───────────────────────────────── */
body.lang-ar {
  direction: rtl;
  text-align: right;
  font-family: var(--font-ar-body);
}

body.lang-ar h1,
body.lang-ar h2,
body.lang-ar h3,
body.lang-ar h4,
body.lang-ar h5,
body.lang-ar h6 {
  font-family: var(--font-ar-heading);
  font-weight: 800;
  letter-spacing: 0;
}

/* ── Flip Flex Layouts ───────────────────────────────────── */
body.lang-ar .elementor-column-wrap,
body.lang-ar .elementor-row {
  direction: rtl;
}

/* Two-column sections: flip text left / image right */
body.lang-ar .split-text-right {
  order: 1;
}
body.lang-ar .split-image-left {
  order: -1;
}

/* ── Section Labels & Dividers ───────────────────────────── */
body.lang-ar .section-label {
  letter-spacing: 0;
}

body.lang-ar .divider-blue {
  margin-left: auto;
  margin-right: 0;
}

body.lang-ar .section-header .divider-blue {
  margin: 16px auto 0;
}

/* ── Cards ───────────────────────────────────────────────── */
body.lang-ar .aelaany-card__icon {
  margin-left: auto;
  margin-right: 0;
}

/* ── Process Steps ───────────────────────────────────────── */
body.lang-ar .process-steps {
  direction: rtl;
}

body.lang-ar .process-step__number {
  margin-left: 0;
  margin-right: auto;
}

/* ── Elementor Text Widgets ──────────────────────────────── */
body.lang-ar .elementor-widget-text-editor,
body.lang-ar .elementor-widget-heading {
  text-align: right;
}

/* ── Nav Arrows / Bullets ─────────────────────────────────── */
body.lang-ar .footer-links li a::before {
  content: '‹';
}

body.lang-ar .footer-links li a:hover {
  padding-right: 4px;
}

/* ── Breadcrumbs ─────────────────────────────────────────── */
body.lang-ar .aelaany-breadcrumb {
  direction: rtl;
  text-align: right;
}

/* ── Blog Post ───────────────────────────────────────────── */
body.lang-ar .blog-post-content {
  text-align: right;
}

body.lang-ar blockquote {
  border-left: none;
  border-right: 4px solid var(--clr-primary);
  padding-left: 0;
  padding-right: 20px;
}

/* ── Form Fields ─────────────────────────────────────────── */
body.lang-ar input,
body.lang-ar textarea,
body.lang-ar select {
  text-align: right;
  direction: rtl;
}

/* ── Icon Positions ──────────────────────────────────────── */
body.lang-ar .btn svg:first-child,
body.lang-ar .btn i:first-child {
  order: 1;
  margin-left: 8px;
  margin-right: 0;
}

/* ── Counter Numbers (always LTR) ────────────────────────── */
body.lang-ar .counter-number {
  direction: ltr;
  display: inline-block;
}

/* ── Social Icons (stay in same order) ──────────────────── */
body.lang-ar .aelaany-social {
  flex-direction: row;
  justify-content: flex-end;
}

/* ── Mobile Menu ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  body.lang-ar .aelaany-mobile-menu {
    transform: translateX(100%);
  }
  body.lang-ar .aelaany-mobile-menu.open {
    transform: translateX(0);
  }
}

/* ── Elementor Icon List ─────────────────────────────────── */
body.lang-ar .elementor-icon-list-item {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

/* ── Testimonials ────────────────────────────────────────── */
body.lang-ar .testimonial-quote {
  text-align: right;
}

/* ── Google Map (stays LTR) ──────────────────────────────── */
body.lang-ar .map-embed {
  direction: ltr;
}
