/* Arabic / right-to-left layer (loaded after the mirrored template styles) */
/* safety net: Arabic letters must never be split into separate boxes (an old cached dsn-grid.js would do that) */
html[lang="ar"] .dsn-word-wrapper .dsn-chars-wrapper { display: inline !important; transform: none !important; opacity: 1 !important; margin: 0 !important; padding: 0 !important; letter-spacing: 0 !important; }
/* the quote button stays at the bottom right in Arabic too */
html[lang="ar"] .dv-q-fab { right: 24px !important; left: auto !important; }
@media only screen and (max-width: 640px) { html[lang="ar"] .dv-q-fab { right: 14px !important; } }
html[lang="ar"] body, html[lang="ar"] input, html[lang="ar"] textarea, html[lang="ar"] button, html[lang="ar"] select,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6,
html[lang="ar"] p, html[lang="ar"] a, html[lang="ar"] span, html[lang="ar"] li {
  font-family: "Cairo", "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif !important;
}
/* Arabic letters are joined: letter-spacing and upper-casing would break the words */
html[lang="ar"] * { letter-spacing: 0 !important; text-transform: none !important; }
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4, html[lang="ar"] h5 { line-height: 1.55; }
html[lang="ar"] p { line-height: 1.95; }
html[lang="ar"] .title-cover { line-height: 1.3; }
/* phone numbers, e-mail addresses and brand names keep their own direction */
bdi, .dv-ltr { unicode-bidi: isolate; white-space: nowrap; }
input[type="email"] { direction: ltr; text-align: right; }
/* sliders (slick) keep their own left-to-right mechanics; only the text inside a slide is right-to-left */
html[dir="rtl"] .slick-slider, html[dir="rtl"] .client-curs { direction: ltr; }
html[dir="rtl"] .slick-slider .slick-slide { float: left; direction: rtl; }
[dir="rtl"] img[src*="arrow-right"] { -webkit-transform: scaleX(-1); transform: scaleX(-1); }
[dir="rtl"] .dv-more:after { content: ""; }
/* the language switch keeps its order (EN | DE | عربي) */
[dir="rtl"] .dv-lang { direction: ltr; }
/* hero titles: the outline + fill trick of the template depends on Latin glyph metrics, use the fill only */
html[lang="ar"] .slider-header.slider-header-top { display: none; }
html[lang="ar"] .slider-header.slider-header-bottom { height: auto; overflow: visible; }
html[lang="ar"] .slider-header.slider-header-bottom h1 { top: 0; white-space: normal; width: auto; -webkit-transform: none; transform: none; }
html[lang="ar"] .slider-header h1 { font-size: clamp(28px, 4.4vw, 58px); font-weight: 800; }
