/* ===== Arabic (right-to-left) overrides - loaded only by the *-ar.html pages ===== */
html[lang=ar]{--ar-font:Tajawal,"Segoe UI",Tahoma,"Noto Sans Arabic","Noto Naskh Arabic",Arial,sans-serif}
html[lang=ar] body,html[lang=ar] input,html[lang=ar] textarea,html[lang=ar] select,html[lang=ar] button{font-family:var(--ar-font)}
/* letter-spacing and uppercase break Arabic letter joining */
html[lang=ar] *,html[lang=ar] *:before,html[lang=ar] *:after{letter-spacing:0!important;text-transform:none!important}
html[lang=ar] body{line-height:1.9}
html[lang=ar] h1,html[lang=ar] h2,html[lang=ar] h3{line-height:1.45}

/* phone numbers, emails and codes stay left-to-right */
html[lang=ar] .topnum,html[lang=ar] #cCall,html[lang=ar] input[type=email],html[lang=ar] input[type=tel],html[lang=ar] a[href^="mailto:"],html[lang=ar] a[href^="tel:"]{direction:ltr;unicode-bidi:isolate}
html[lang=ar] a[href^="mailto:"],html[lang=ar] a[href^="tel:"]{display:inline-block}

/* top bar buttons */
html[lang=ar] .topbar .btngrp{right:auto;left:max(24px,calc((100% - 1160px)/2 + 24px))}
@media(max-width:1360px){html[lang=ar] .topbar .btngrp{left:auto;margin:4px 10px 0 0}}
html[lang=ar] .newb{margin-left:0;margin-right:5px}

/* floating buttons, cookie notice, popup close */
html[lang=ar] #fab{right:auto;left:20px;align-items:flex-start}
html[lang=ar] #cookie{left:auto;right:16px}
html[lang=ar] .x{right:auto;left:14px}
html[lang=ar] .mtop,html[lang=ar] .mbody{text-align:right}
html[lang=ar] .mapbtn{left:auto;right:12px}
@media(max-width:768px){html[lang=ar] #fab{left:14px;right:auto}}
@media(max-width:600px){html[lang=ar] #cookie{left:0;right:0}html[lang=ar] .x{left:12px}}

/* spam-trap fields: hide by clipping (an off-screen position would make an RTL page scroll sideways) */
html[lang=ar] .hp,html[lang=ar] .nl .nlh{left:auto!important;right:auto!important;width:1px!important;height:1px!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;opacity:0!important}

/* lists, steps, countdown */
html[lang=ar] .card ul li{padding:6px 28px 6px 0}
html[lang=ar] .card ul li:before{left:auto;right:0}
html[lang=ar] .step:not(:last-child):after{content:"\2190";right:auto;left:-15px}
html[lang=ar] .cd .bx{direction:rtl}

/* five-corner diagram: fixed drawing, keep it left-to-right and make the Arabic labels fit their boxes */
html[lang=ar] .diag svg{direction:ltr}
html[lang=ar] .diag svg g[font-size="15"] text{font-size:13.5px}
html[lang=ar] .diag svg g[font-size="12.5"] text{font-size:11.5px}

/* accent bars and badges */
html[lang=ar] .excl{border-left:1px solid var(--line);border-right:4px solid var(--red)}
html[lang=ar] .no1{margin-left:0;margin-right:8px}

/* contact cards: keep card RTL, only the number/email text is LTR */
html[lang=ar] a.icard{direction:rtl;unicode-bidi:normal}
html[lang=ar] a.icard p{direction:ltr;unicode-bidi:isolate;text-align:right}
html[lang=ar] a.icard{display:flex}
