/* ===== CONVERA CX - Arabic / RTL overrides (loaded only by /ar/) ===== */

/* Arabic font + joined letters (letter-spacing breaks Arabic script) */
html[lang="ar"] *{font-family:"Cairo","Inter",system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif!important;letter-spacing:0!important}
html[lang="ar"] .hero-title,
html[lang="ar"] h1,html[lang="ar"] h2{line-height:1.3}
html[lang="ar"] h3,html[lang="ar"] p{line-height:1.7}

/* Brand name, e-mail and phone numbers stay left-to-right */
[dir="rtl"] .logo b,[dir="rtl"] .loader-logo b,[dir="rtl"] .footer-mail,
[dir="rtl"] .footer-grid a[href^="mailto"],[dir="rtl"] .footer-grid a[href^="https://wa.me"]{direction:ltr;unicode-bidi:isolate;display:inline-block}

/* Hero */
[dir="rtl"] .image-frame{border-radius:7% 45% 45% 7%;transform:rotate(-1deg)}
[dir="rtl"] .ring-a{left:-90px;right:auto}
[dir="rtl"] .ring-b{left:-125px;right:auto}
[dir="rtl"] .floating-note{left:-25px;right:auto}
[dir="rtl"] .text-link span{margin-left:0;margin-right:8px}
[dir="rtl"] .brand-photo{border-radius:12px 50% 50% 12px}

/* About: benefit grid borders */
[dir="rtl"] .benefit{border-left:0;border-right:1px solid var(--line)}
[dir="rtl"] .benefit:nth-child(2n){border-left:1px solid var(--line);border-right:1px solid var(--line)}

/* Why: card dividers + number */
[dir="rtl"] .why-card{border-right:0;border-left:1px solid #ffffff18}
[dir="rtl"] .why-card:last-child{border-left:0}
[dir="rtl"] .why-no{left:18px;right:auto}

/* Services */
[dir="rtl"] .services-grid{border-left:0;border-right:1px solid var(--line)}
[dir="rtl"] .service-card{border-right:0;border-left:1px solid var(--line)}
[dir="rtl"] .service-card:before{left:-50px;right:auto}
[dir="rtl"] .service-no{left:24px;right:auto}

/* Insights banner decoration */
[dir="rtl"] .insight-banner:after{left:-180px;right:auto}

/* Language box */
[dir="rtl"] .language-box{border-left:0;border-right:1px solid #ffffff1a;padding-left:0;padding-right:30px}

@media(max-width:1000px){
  [dir="rtl"] .language-box{border-right:0;padding-right:0}
}
@media(max-width:720px){
  [dir="rtl"] .why-card{border-left:0}
  [dir="rtl"] .benefit{border-left:1px solid var(--line)!important;border-right:1px solid var(--line)!important}
  [dir="rtl"] .floating-note{left:5px;right:auto}
}

/* Language switcher keeps the same visual order on every page */
[dir="rtl"] .lang-switch{direction:ltr}
