/* Arabic (right-to-left) layer. Loaded only on /ar/ pages, after site.css and v2.css. */
:root{--head:"Readex Pro","IBM Plex Sans Arabic",ui-sans-serif,system-ui,sans-serif;--body:"IBM Plex Sans Arabic","Readex Pro",ui-sans-serif,system-ui,sans-serif}
html[dir=rtl] body{font-family:var(--body);line-height:1.8}
html[dir=rtl] *{letter-spacing:0!important}          /* letter-spacing breaks Arabic letter joining */
html[dir=rtl] h1,html[dir=rtl] h2,html[dir=rtl] h3,html[dir=rtl] h4{line-height:1.4;font-weight:600}
html[dir=rtl] .label,html[dir=rtl] .tag,html[dir=rtl] .ex{text-transform:none;letter-spacing:0}
html[dir=rtl] .words .w{margin-inline-end:.18em}
html[dir=rtl] .hero h1,html[dir=rtl] .page-hero h1{line-height:1.35}
/* header */
.progress{transform-origin:100% 50%}
.bar>.lang{margin-left:0;margin-right:auto}
.bar>.lang+.btn{margin-right:0}
.bar .btn{margin-left:0}
@media (min-width:1000px){.nav{margin-left:0;margin-right:auto}.bar>.lang{margin-right:0}}
.skip{left:auto;right:-999px}.skip:focus{right:8px;left:auto}
/* arrows point the other way */
html[dir=rtl] .more svg,html[dir=rtl] .btn svg{transform:scaleX(-1)}
html[dir=rtl] a.card:hover .more svg,html[dir=rtl] .more:hover svg,html[dir=rtl] .btn:hover svg{transform:scaleX(-1) translateX(4px)}
/* hero + cards */
.reel-card.c1{left:auto;right:-14px}.reel-card.c2{right:auto;left:-10px}
.stat4+.stat4::before{left:auto;right:0}
.prog .ic.float{left:auto;right:20px}
.card.course::before,.head h2 em::after{transform-origin:100% 50%}
.tcard::before{right:auto;left:20px}
.qa div p{padding:0 0 22px 48px}
.wa{right:auto;left:16px}
dialog .x,.x{right:auto;left:14px}
.dlg h2{padding-right:0;padding-left:44px}
.topics .track{animation-name:slide-rtl}
@keyframes slide-rtl{to{transform:translateX(50%)}}
/* timeline */
.tl::before{left:auto;right:27px;transform-origin:50% 0}
.tl li{padding-left:0;padding-right:76px}
.tl .nd{left:auto;right:0}
@media (min-width:900px){.tl::before{left:8%;right:8%;transform-origin:100% 50%}.tl li{padding:76px 0 0 6px}}
/* report + credential */
.rbar span{text-align:left}
.rbar span:first-child{text-align:right!important}
.reportwrap .gaugecard{right:auto;left:-8px}
@media (max-width:640px){.reportwrap .gaugecard{left:auto}}
.credcard{transform:rotate(3deg)}
.credwrap:hover .credcard{transform:rotate(0) translateY(-6px)}
.credwrap .tag.t1{right:auto;left:0}.credwrap .tag.t2{left:auto;right:-6px}
/* numbers, emails and phones stay left-to-right inside the Arabic text */
input[type=email],input[type=tel]{direction:ltr;text-align:right}
.cc-share,[data-count]{unicode-bidi:isolate}
/* keep Latin names tidy next to Arabic */
.ibm-chip,.logos-row{direction:ltr}
.logos-row{justify-content:flex-end}
@media (max-width:560px){.bar .btn{font-size:.8rem;padding:10px 12px}}
@media (max-width:380px){.bar .btn{font-size:.74rem;padding:9px 9px}}
.site-footer .tel{text-align:right}
