/**
 * RTL (Right-to-Left) Overrides
 *
 * يُحمّل فقط لو اللغة عربي.
 * يعالج المشاكل الخاصة بالاتجاه.
 *
 * @package NileDevelopments
 * @version 1.0.0
 */

body.rtl {
  direction: rtl;
  text-align: right;
}

/* Header */
body.rtl .header-actions { direction: ltr; }

/* Cards */
body.rtl .card-num { right: auto; left: 20px; }
body.rtl .card-tag { right: auto; left: 20px; }
body.rtl .project-card:nth-child(even) { direction: ltr; }
body.rtl .project-card:nth-child(even) .card-body { direction: rtl; text-align: right; }

/* Footer */
body.rtl .footer-links li a::before { margin-left: 0; }

/* Toast - RTL side */
body.rtl #toast { left: auto; right: 16px; border-right: none; border-left: 3px solid var(--whatsapp-color); }

/* Floating WhatsApp */
body.rtl .float-wa { left: auto; right: 24px; }

/* Phone input always LTR */
body.rtl input[type="tel"],
body.rtl input[dir="ltr"] { text-align: left; direction: ltr; }

/* Popup benefits */
body.rtl .popup-benefits { text-align: right; }

/* Scroll progress RTL */
body.rtl #scroll-progress-bar { left: auto; right: 0; }

/* Feature card top line origin */
body.rtl .feat-card::before { transform-origin: left; }

/* Loc CTA arrow */
body.rtl .loc-cta svg { transform: none; }
