/* Shared tweaks loaded only for RTL languages (Arabic). Theme stylesheets are mirrored via their *.rtl.css builds. */

/* Bold Arabic text uses Tajawal (global/fonts/tajawal/): Cairo at font-weight 600-900 draws with Tajawal Bold/ExtraBold/Black.
   Regular Cairo (300-500) is unchanged; its own bold weights are not loaded (layouts/rtl.blade.php). */
@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 600 700;
    font-display: swap;
    src: url("../fonts/tajawal/tajawal-latin-700-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 600 700;
    font-display: swap;
    src: url("../fonts/tajawal/tajawal-arabic-700-normal.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/tajawal/tajawal-latin-800-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/tajawal/tajawal-arabic-800-normal.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/tajawal/tajawal-latin-900-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/tajawal/tajawal-arabic-900-normal.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

html[dir="rtl"] body,
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6,
html[dir="rtl"] p, html[dir="rtl"] a, html[dir="rtl"] li,
html[dir="rtl"] label, html[dir="rtl"] button, html[dir="rtl"] input,
html[dir="rtl"] select, html[dir="rtl"] textarea, html[dir="rtl"] td,
html[dir="rtl"] th, html[dir="rtl"] .btn, html[dir="rtl"] .form-control,
html[dir="rtl"] span:not([class*="fi-"]):not([class*="fa-"]):not(.fa):not(.fi) {
    font-family: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
}

/* Directional icons point the other way in RTL */
html[dir="rtl"] [class*="angle-right"], html[dir="rtl"] [class*="angle-left"],
html[dir="rtl"] [class*="arrow-right"], html[dir="rtl"] [class*="arrow-left"],
html[dir="rtl"] [class*="chevron-right"], html[dir="rtl"] [class*="chevron-left"],
html[dir="rtl"] [class*="caret-right"], html[dir="rtl"] [class*="caret-left"],
html[dir="rtl"] .fi-rr-angle-small-right, html[dir="rtl"] .fi-rr-angle-small-left {
    display: inline-block;
    transform: scaleX(-1);
}

/* Keep code, URLs, emails and numbers readable left-to-right */
html[dir="rtl"] input[type="email"], html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[type="tel"], html[dir="rtl"] code, html[dir="rtl"] pre {
    direction: ltr;
    text-align: right;
}

/* Media players and sliders run LTR internally (their JS assumes it); slide content stays RTL */
html[dir="rtl"] .plyr, html[dir="rtl"] video,
html[dir="rtl"] .owl-carousel, html[dir="rtl"] .swiper, html[dir="rtl"] .slick-slider {
    direction: ltr;
}
html[dir="rtl"] .owl-carousel .owl-item, html[dir="rtl"] .swiper-slide, html[dir="rtl"] .slick-slide {
    direction: rtl;
}
