/* Arabic (RTL) layer. Loaded only on /ar pages, after all other stylesheets. */

/* Arabic letters use Tajawal under the site font names, so existing font rules keep working. */
@font-face{font-family:"DIN2014-r";src:url("../fonts/arabic/Tajawal-Regular-arabic.woff2") format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:"DIN2014-b";src:url("../fonts/arabic/Tajawal-Bold-arabic.woff2") format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:"Arabic Fallback";src:url("../fonts/arabic/Tajawal-Regular-arabic.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Arabic Fallback";src:url("../fonts/arabic/Tajawal-Bold-arabic.woff2") format("woff2");font-weight:700;font-display:swap}

html[dir=rtl] body{direction:rtl;text-align:right}
html[dir=rtl] body,html[dir=rtl] input,html[dir=rtl] select,html[dir=rtl] textarea,html[dir=rtl] button{font-family:"DIN2014-r","Arabic Fallback",Tahoma,Arial,sans-serif}
html[dir=rtl] .fa,html[dir=rtl] .fas,html[dir=rtl] .far,html[dir=rtl] .fab{font-family:"Font Awesome 5 Free","Font Awesome 5 Brands","FontAwesome"}
html[dir=rtl] .fab{font-family:"Font Awesome 5 Brands"}
html[dir=rtl] h1,html[dir=rtl] h2,html[dir=rtl] h3,html[dir=rtl] h4,html[dir=rtl] h5,html[dir=rtl] h6{letter-spacing:0}

/* Lists and text blocks */
html[dir=rtl] ul,html[dir=rtl] ol{padding-right:2rem;padding-left:0}
html[dir=rtl] ul.list-unstyled,html[dir=rtl] ul.navbar-nav,html[dir=rtl] ul.d-flex,html[dir=rtl] .dropdown-menu{padding-right:0}
html[dir=rtl] blockquote{border-left:0;border-right:4px solid currentColor;padding-left:0;padding-right:1rem}

/* Phone numbers, emails and codes stay left-to-right inside Arabic text */
html[dir=rtl] input[type=email],html[dir=rtl] input[type=tel],html[dir=rtl] input[type=url],html[dir=rtl] a[href^="tel:"],html[dir=rtl] a[href^="mailto:"],html[dir=rtl] code{direction:ltr;unicode-bidi:embed}
html[dir=rtl] input[type=email],html[dir=rtl] input[type=tel],html[dir=rtl] input[type=url]{text-align:right}

/* Bootstrap 5 forms and dropdowns */
html[dir=rtl] .form-check{padding-left:0;padding-right:1.5em}
html[dir=rtl] .form-check .form-check-input{float:right;margin-left:0;margin-right:-1.5em}
html[dir=rtl] .form-select{background-position:left .75rem center;padding-left:2.25rem;padding-right:.75rem}
html[dir=rtl] .dropdown-menu{text-align:right}
html[dir=rtl] .dropdown-toggle::after{margin-left:0;margin-right:.255em}
html[dir=rtl] .input-group>:not(:first-child):not(.dropdown-menu){margin-left:0;margin-right:-1px}
html[dir=rtl] .modal-header .btn-close{margin:-.5rem auto -.5rem -.5rem}
html[dir=rtl] .text-start{text-align:right!important}
html[dir=rtl] .text-end{text-align:left!important}
html[dir=rtl] .float-start{float:right!important}
html[dir=rtl] .float-end{float:left!important}
html[dir=rtl] .me-auto{margin-right:0!important;margin-left:auto!important}
html[dir=rtl] .ms-auto{margin-left:0!important;margin-right:auto!important}
html[dir=rtl] .border-start{border-left:0!important;border-right:1px solid #dee2e6!important}
html[dir=rtl] .border-end{border-right:0!important;border-left:1px solid #dee2e6!important}

/* Arrows point the other way in Arabic */
html[dir=rtl] .fa-arrow-right,html[dir=rtl] .fa-arrow-left,html[dir=rtl] .fa-chevron-right,html[dir=rtl] .fa-chevron-left,html[dir=rtl] .fa-angle-right,html[dir=rtl] .fa-angle-left,html[dir=rtl] .fa-angle-double-right,html[dir=rtl] .fa-angle-double-left,html[dir=rtl] .fa-long-arrow-alt-right,html[dir=rtl] .fa-long-arrow-alt-left,html[dir=rtl] .fa-caret-right,html[dir=rtl] .fa-caret-left,html[dir=rtl] .fa-external-link,html[dir=rtl] .fa-external-link-alt{transform:scaleX(-1)}

/* Language switch */
.lang-switch-link{display:block;color:inherit;text-decoration:none}
.lang-switch-link[aria-current=true]{font-weight:700}

/* Bootstrap start/end spacing utilities, mirrored */
html[dir=rtl] .ms-0{margin-left:0!important;margin-right:0!important}
html[dir=rtl] .me-0{margin-right:0!important;margin-left:0!important}
html[dir=rtl] .ms-1{margin-left:0!important;margin-right:.25rem!important}
html[dir=rtl] .me-1{margin-right:0!important;margin-left:.25rem!important}
html[dir=rtl] .ms-2{margin-left:0!important;margin-right:.5rem!important}
html[dir=rtl] .me-2{margin-right:0!important;margin-left:.5rem!important}
html[dir=rtl] .ms-3{margin-left:0!important;margin-right:1rem!important}
html[dir=rtl] .me-3{margin-right:0!important;margin-left:1rem!important}
html[dir=rtl] .ms-4{margin-left:0!important;margin-right:1.5rem!important}
html[dir=rtl] .me-4{margin-right:0!important;margin-left:1.5rem!important}
html[dir=rtl] .ms-5{margin-left:0!important;margin-right:3rem!important}
html[dir=rtl] .me-5{margin-right:0!important;margin-left:3rem!important}
html[dir=rtl] .ps-0{padding-left:0!important;padding-right:0!important}
html[dir=rtl] .pe-0{padding-right:0!important;padding-left:0!important}
html[dir=rtl] .ps-1{padding-left:0!important;padding-right:.25rem!important}
html[dir=rtl] .pe-1{padding-right:0!important;padding-left:.25rem!important}
html[dir=rtl] .ps-2{padding-left:0!important;padding-right:.5rem!important}
html[dir=rtl] .pe-2{padding-right:0!important;padding-left:.5rem!important}
html[dir=rtl] .ps-3{padding-left:0!important;padding-right:1rem!important}
html[dir=rtl] .pe-3{padding-right:0!important;padding-left:1rem!important}
html[dir=rtl] .ps-4{padding-left:0!important;padding-right:1.5rem!important}
html[dir=rtl] .pe-4{padding-right:0!important;padding-left:1.5rem!important}
html[dir=rtl] .ps-5{padding-left:0!important;padding-right:3rem!important}
html[dir=rtl] .pe-5{padding-right:0!important;padding-left:3rem!important}

/* Slick carousels: keep the sliding track left-to-right (slick is initialised without its rtl
   option), while the text inside each slide reads right-to-left. Prevents blank/shifted slides. */
html[dir=rtl] .slick-slider,html[dir=rtl] .slick-list,html[dir=rtl] .slick-track{direction:ltr}
html[dir=rtl] .slick-slide{direction:rtl;text-align:right}
html[dir=rtl] .swiper{direction:ltr}
html[dir=rtl] .swiper-slide{direction:rtl}
