/* RTL overrides — loaded only when <html dir="rtl"> (ar, ur, he). */
html[lang^="hi"] body{font-family:var(--font-deva),var(--font-sora),system-ui,sans-serif}
html[lang^="ar"] body{font-family:var(--font-arab),var(--font-sora),system-ui,sans-serif}
html[lang^="ur"] body{font-family:var(--font-urdu),system-ui,serif;line-height:1.9}
html[lang^="hi"] h1,html[lang^="hi"] h2,html[lang^="hi"] h3,html[lang^="hi"] h4{line-height:1.35}
[dir="rtl"] body{direction:rtl;text-align:right}
[dir="rtl"] .text-md-end{text-align:left}
[dir="rtl"] .text-md-start,[dir="rtl"] .d-md-start{text-align:right}
[dir="rtl"] .text-end{text-align:left}
[dir="rtl"] .text-start{text-align:right}
[dir="rtl"] .justify-content-end{justify-content:flex-start}
[dir="rtl"] .d-md-end{justify-content:flex-start}
[dir="rtl"] .me-3{margin-right:0;margin-left:1rem}
[dir="rtl"] .ms-2{margin-left:0;margin-right:.5rem}
[dir="rtl"] .list-unstyled,[dir="rtl"] .list-inline{padding-right:0}
[dir="rtl"] .row{margin-right:calc(-.5*var(--bs-gutter-x));margin-left:calc(-.5*var(--bs-gutter-x))}
/* Dropdowns / mega menus / language selector open from the opposite edge */
[dir="rtl"] .dropdown-menu,[dir="rtl"] [class*="dropdown"],[dir="rtl"] [class*="mega"],[dir="rtl"] [class*="lang"] [role="listbox"],[dir="rtl"] [class*="language"] ul{text-align:right}
[dir="rtl"] .dropdown-menu-end,[dir="rtl"] [class*="dropdown"][style*="right: 0"]{right:auto;left:0}
/* Directional glyph icons (arrows/chevrons in svg/i) mirror */
[dir="rtl"] .fa-arrow-right,[dir="rtl"] .fa-chevron-right,[dir="rtl"] .fa-angle-right,[dir="rtl"] .fa-long-arrow-right,
[dir="rtl"] [class*="arrow-right"],[dir="rtl"] [class*="chevron-right"],[dir="rtl"] [class*="breadcrumb"] svg,[dir="rtl"] .at-btn3 svg,[dir="rtl"] [class*="btn"] svg[class*="arrow"]{transform:scaleX(-1)}
/* Breadcrumb separators */
[dir="rtl"] [class*="breadcrumb"]{direction:rtl}
/* Forms */
[dir="rtl"] input,[dir="rtl"] textarea,[dir="rtl"] select{text-align:right}
[dir="rtl"] input[type="email"],[dir="rtl"] input[type="url"],[dir="rtl"] input[type="tel"],[dir="rtl"] input[type="password"]{direction:ltr;text-align:right}
[dir="rtl"] select{background-position:left .75rem center;padding-left:2rem;padding-right:.75rem}
/* Sliders: embla/marquee tracks keep LTR geometry (transform math is LTR), content inside is RTL */
[dir="rtl"] [class*="embla"],[dir="rtl"] [class*="carousel"],[dir="rtl"] [class*="slider"],[dir="rtl"] .marquee,[dir="rtl"] [class*="marquee"]{direction:ltr}
[dir="rtl"] [class*="embla"] > *> *,[dir="rtl"] [class*="carousel"] [class*="slide"],[dir="rtl"] [class*="marquee"] > *{direction:rtl;text-align:right}
/* Sticky CTA / dock pinned to the right edge move to the left (and vice-versa) */
[dir="rtl"] [class*="dock"],[dir="rtl"] [class*="sticky-cta"],[dir="rtl"] [class*="float"]{direction:rtl}
[dir="rtl"] [class*="back-to-top"],[dir="rtl"] [class*="scroll-top"]{right:auto;left:20px}
/* Footer + lists with bullets */
[dir="rtl"] footer ul,[dir="rtl"] footer ol{padding-right:0}
[dir="rtl"] ul:not([class]),[dir="rtl"] ol:not([class]){padding-right:1.25rem;padding-left:0}
/* Numbers/URLs/brand names stay LTR inside RTL runs */
[dir="rtl"] code,[dir="rtl"] pre,[dir="rtl"] .ltr{direction:ltr;unicode-bidi:isolate}

/* clip stray horizontal overflow (marquee/ticker spans) so RTL pages do not scroll sideways */
html[dir="rtl"],html[dir="rtl"] body{overflow-x:clip}
/* header CTA (.at-btn3): the white icon square and hover texts are positioned with physical left/right */
html[dir="rtl"] .at-btn3 a{padding-right:0;padding-left:18px}
html[dir="rtl"] .at-btn3 a:before{left:auto;right:0}
html[dir="rtl"] .at-btn3 a .icon-wrap i:last-child{left:auto;right:-50%;transform:translateY(-50%) translateX(50%)}
html[dir="rtl"] .at-btn3 a .text-wrap b:last-child{left:auto;right:0}
html[dir="rtl"] .at-btn3 a:hover .icon-wrap i:first-child{transform:translateX(-100px)}
html[dir="rtl"] .at-btn3 a:hover .icon-wrap i:last-child{left:auto;right:60%}
