/* ===========================================
 * OneStep Frontend · RTL minimal overrides
 * Loaded only when app locale is right-to-left (Arabic).
 * Keeps the visual identity intact while reversing
 * direction-sensitive spacing and floats.
 * =========================================== */

html[dir="rtl"] body,
html[dir="rtl"] .text-anim,
html[dir="rtl"] .section-title h2 {
    font-family: "Tajawal", "Cairo", "Segoe UI", sans-serif;
}

/* Containers natively respond to dir="rtl" — only flip
   spacing utilities that don't auto-mirror. */
html[dir="rtl"] .me-2  { margin-right: 0 !important; margin-left: .5rem !important; }
html[dir="rtl"] .ms-2  { margin-left: 0 !important; margin-right: .5rem !important; }
html[dir="rtl"] .me-3  { margin-right: 0 !important; margin-left: 1rem !important; }
html[dir="rtl"] .ms-3  { margin-left: 0 !important; margin-right: 1rem !important; }
html[dir="rtl"] .me-15 { margin-right: 0 !important; margin-left: 15px !important; }
html[dir="rtl"] .mr-15 { margin-right: 0 !important; margin-left: 15px !important; }
html[dir="rtl"] .text-start { text-align: right !important; }
html[dir="rtl"] .text-end   { text-align: left !important; }

/* Custom theme arrow flip (used in .gt-theme-btn-main) */
html[dir="rtl"] .gt-theme-btn-arrow-left i,
html[dir="rtl"] .gt-theme-btn-arrow-right i {
    transform: scaleX(-1);
}

/* Social icons row stays the same; just gap them properly */
html[dir="rtl"] .social-icon a + a { margin-left: 0; margin-right: 10px; }

/* Offcanvas slide direction (Bootstrap auto-handles, but be explicit) */
html[dir="rtl"] .offcanvas-end { left: 0; right: auto; }

/* Footer columns text alignment */
html[dir="rtl"] .footer-widget-items h3,
html[dir="rtl"] .footer-widget-items p,
html[dir="rtl"] .footer-widget-items ul { text-align: right; }
html[dir="rtl"] .footer-bottom-wrapper { direction: rtl; }

/* Form inputs */
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select { text-align: right; }
