/* =============================================
   Egytel — RTL (Arabic) Overrides
   ============================================= */

/* Base RTL adjustments */
html[dir="rtl"] body {
  font-family: 'Noto Sans Arabic', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-align: right;
}

/* Navbar */
html[dir="rtl"] .navbar-brand { margin-right: 0; margin-left: auto; }
html[dir="rtl"] .navbar-collapse { text-align: right; }
html[dir="rtl"] .navbar-nav { flex-direction: row-reverse; }

/* Flip margin/padding utilities that use left/right */
html[dir="rtl"] .ml-auto { margin-left: unset !important; margin-right: auto !important; }
html[dir="rtl"] .mr-auto { margin-right: unset !important; margin-left: auto !important; }
html[dir="rtl"] .ml-lg-2 { margin-left: unset !important; }
html[dir="rtl"] .mr-lg-2 { margin-right: unset !important; }
@media (min-width: 992px) {
  html[dir="rtl"] .ml-lg-2 { margin-left: unset !important; margin-right: .5rem !important; }
  html[dir="rtl"] .mr-lg-2 { margin-right: unset !important; margin-left: .5rem !important; }
}

/* Text alignment */
html[dir="rtl"] .text-left { text-align: right !important; }
html[dir="rtl"] .text-right { text-align: left !important; }

/* Flip floats */
html[dir="rtl"] .float-left { float: right !important; }
html[dir="rtl"] .float-right { float: left !important; }

/* Flex direction hints (cards etc.) */
html[dir="rtl"] .flex-row { flex-direction: row-reverse !important; }

/* Lists */
html[dir="rtl"] ul, html[dir="rtl"] ol {
  padding-right: 2rem;
  padding-left: 0;
}

/* Scroll-to-top button */
html[dir="rtl"] .scroll-top {
  right: auto;
  left: 18px;
}

/* Mobile nav */
@media (max-width: 991px) {
  html[dir="rtl"] .navbar-nav {
    flex-direction: column;
    text-align: right;
  }
}
