/* RTL overrides (Arabic) */
[dir="rtl"] body{font-family:"Segoe UI","Noto Naskh Arabic","Geeza Pro",Tahoma,Arial,sans-serif}
[dir="rtl"] .topbar a{margin-left:0;margin-right:16px}
[dir="rtl"] .langsel{margin-left:0;margin-right:16px}
/* RTL: the language button sits on the left of the topbar. Open the menu to
   the LEFT of the button (same row), so it lands in the empty gutter and
   never covers the header / side columns below. Raise the stacking level so
   nothing can paint over it. JS adds .flip when the left gutter is too small. */
[dir="rtl"] .topbar{z-index:120}
[dir="rtl"] .langmenu{right:100%;left:auto;top:0;margin-left:0;margin-right:16px;margin-top:0;z-index:200;transform-origin:right center}
[dir="rtl"] .langmenu.flip{right:auto;left:0;top:100%;margin-left:0;margin-right:0;margin-top:6px}
[dir="rtl"] .langmenu.open{animation:langSwingRtl .3s cubic-bezier(.22,.85,.3,1) both}
[dir="rtl"] .langmenu.flip.open{animation:none}
@keyframes langSwingRtl{
  0%{opacity:0;transform:translateX(18px) rotate(1.6deg)}
  60%{opacity:1;transform:translateX(-3px) rotate(-.4deg)}
  100%{opacity:1;transform:none}
}
[dir="rtl"] .langmenu button,[dir="rtl"] .langmenu a{text-align:right}
[dir="rtl"] .search input{border:2px solid var(--blue);border-left:none;border-radius:0 4px 4px 0}
[dir="rtl"] .search button{border-radius:4px 0 0 4px}
[dir="rtl"] .mainnav .all{border-right:none;border-left:1px solid var(--line)}
[dir="rtl"] .fstep{padding:9px 42px 9px 12px}
[dir="rtl"] .fstep .si{left:auto;right:10px}
[dir="rtl"] .tl .num{margin-left:0}
[dir="rtl"] .detail-sec h2{border-left:none;border-right:4px solid var(--blue);padding-left:0;padding-right:12px}
[dir="rtl"] .lead-box{border-left:none;border-right:4px solid var(--blue)}
[dir="rtl"] .pcard .pm,[dir="rtl"] .pcard .pt,[dir="rtl"] .step,[dir="rtl"] .tl b,[dir="rtl"] .tl span{text-align:right}
[dir="rtl"] .crumbs{direction:rtl}
[dir="rtl"] .mega a{direction:rtl}
[dir="rtl"] .catlist a,[dir="rtl"] .mega a{flex-direction:row-reverse}
[dir="rtl"] .copyr{text-align:right}
[dir="rtl"] .footercols{direction:rtl}
[dir="rtl"] .spec-rows b{width:130px}
[dir="rtl"] .step .n{margin-right:0;margin-left:6px}
[dir="rtl"] .subsec-h h2,[dir="rtl"] .subnote{border-left:none;border-right:4px solid var(--blue);padding-left:0;padding-right:10px}
[dir="rtl"] .subnote{border-right-color:var(--orange);padding-right:16px}
[dir="rtl"] .navdrop .navmenu{left:auto;right:0}
[dir="rtl"] .navmenu a{flex-direction:row-reverse}
[dir="rtl"] .founder-q{border-left:none;border-right:4px solid var(--blue)}

/* horizontal step strip */
[dir="rtl"] .fcol .fsteps .farrow::before{content:'←'}
[dir="rtl"] .fcol .fsteps .fstep .sn{left:auto;right:7px}
@media(max-width:1080px){
 [dir="rtl"] .fcol .fsteps .farrow::before{content:'↓'}
 [dir="rtl"] .fcol .fsteps .fstep{text-align:right;padding:11px 13px}
 [dir="rtl"] .fcol .fsteps .fstep .si{left:auto;right:auto;margin:0 0 0 9px}
}

/* About Us: overview cards + five standalone section pages */
[dir="rtl"] .ab-tile b,[dir="rtl"] .ab-tile .d,[dir="rtl"] .abcat-lead,
[dir="rtl"] .scen-card h3,[dir="rtl"] .scen-card p,
[dir="rtl"] .about-body p,[dir="rtl"] .about-sub p{text-align:right}
[dir="rtl"] ul.tick li{padding-left:0;padding-right:22px}
[dir="rtl"] ul.tick li:before{left:auto;right:0}
[dir="rtl"] .scen-note{border-left:none;border-right:4px solid var(--blue)}

