/* RTL Support Styles */

/* Modern Arabic Fonts - Apply to RTL elements but exclude icons */
html[dir="rtl"],
html[lang="ar"] {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif !important;
}

html[dir="rtl"] body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif !important;
}

/* Exclude icon elements from font-family rule */
html[dir="rtl"] i,
html[dir="rtl"] .fa,
html[dir="rtl"] .fas,
html[dir="rtl"] .far,
html[dir="rtl"] .fal,
html[dir="rtl"] .fab,
html[dir="rtl"] .icon,
html[dir="rtl"] [class*="icon"],
html[dir="rtl"] [class^="fa-"],
html[dir="rtl"] [class*=" fa-"],
html[lang="ar"] i,
html[lang="ar"] .fa,
html[lang="ar"] .fas,
html[lang="ar"] .far,
html[lang="ar"] .fal,
html[lang="ar"] .fab,
html[lang="ar"] .icon,
html[lang="ar"] [class*="icon"],
html[lang="ar"] [class^="fa-"],
html[lang="ar"] [class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
}

/* Apply Cairo font to specific text elements */
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] p,
[dir="rtl"] span:not([class*="fa"]):not([class*="icon"]),
[dir="rtl"] div:not([class*="fa"]):not([class*="icon"]),
[dir="rtl"] a:not([class*="fa"]):not([class*="icon"]),
[dir="rtl"] li:not([class*="fa"]):not([class*="icon"]),
[dir="rtl"] td:not([class*="fa"]):not([class*="icon"]),
[dir="rtl"] th:not([class*="fa"]):not([class*="icon"]),
[dir="rtl"] input:not([class*="fa"]):not([class*="icon"]),
[dir="rtl"] textarea:not([class*="fa"]):not([class*="icon"]),
[dir="rtl"] select:not([class*="fa"]):not([class*="icon"]),
[dir="rtl"] button:not([class*="fa"]):not([class*="icon"]),
[dir="rtl"] label:not([class*="fa"]):not([class*="icon"]),
[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3,
[lang="ar"] h4,
[lang="ar"] h5,
[lang="ar"] h6,
[lang="ar"] p,
[lang="ar"] span:not([class*="fa"]):not([class*="icon"]),
[lang="ar"] div:not([class*="fa"]):not([class*="icon"]),
[lang="ar"] a:not([class*="fa"]):not([class*="icon"]),
[lang="ar"] li:not([class*="fa"]):not([class*="icon"]),
[lang="ar"] td:not([class*="fa"]):not([class*="icon"]),
[lang="ar"] th:not([class*="fa"]):not([class*="icon"]),
[lang="ar"] input:not([class*="fa"]):not([class*="icon"]),
[lang="ar"] textarea:not([class*="fa"]):not([class*="icon"]),
[lang="ar"] select:not([class*="fa"]):not([class*="icon"]),
[lang="ar"] button:not([class*="fa"]):not([class*="icon"]),
[lang="ar"] label:not([class*="fa"]):not([class*="icon"]) {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif !important;
}
 

[dir="rtl"] {
    direction: rtl;
    text-align: right;
}
.cs_logo_bg_shape::before{
    right:auto;
    left: 90px;
}
.cs_logo_bg_shape svg{
    transform: rotateY(180deg);
}
.cs_nav .cs_nav_list > li.menu-item-has-children > a::after{
    margin-right: 6px;
}
[dir="rtl"] .cs_nav_list {
    direction: rtl;
}

[dir="rtl"] .cs_footer_menu {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .cs_top_header_left {
    order: 2;
}

[dir="rtl"] .cs_top_header_right {
    order: 1;
}

[dir="rtl"] .cs_main_header_left {
    order: 2;
}

[dir="rtl"] .cs_main_header_center {
    order: 1;
}

[dir="rtl"] .cs_main_header_right {
    order: 3;
}

[dir="rtl"] .cs_card_content {
    text-align: right;
}

[dir="rtl"] .cs_post_content {
    text-align: right;
}

[dir="rtl"] .text-left {
    text-align: right !important;
}

[dir="rtl"] .text-right {
    text-align: left !important;
}

[dir="rtl"] .ms-3 {
    margin-left: 0 !important;
    margin-right: 1rem !important;
}

[dir="rtl"] .me-3 {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

[dir="rtl"] .ps-3 {
    padding-left: 0 !important;
    padding-right: 1rem !important;
}

[dir="rtl"] .pe-3 {
    padding-right: 0 !important;
    padding-left: 1rem !important;
}

[dir="rtl"] .float-left {
    float: right !important;
}

[dir="rtl"] .float-right {
    float: left !important;
}

/* Locations Page RTL Support */
[dir="rtl"] .locations-filter-bar form {
    direction: rtl;
}

[dir="rtl"] .contact-info-item {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .contact-info-item i {
    order: 2;
}

[dir="rtl"] .contact-info-item a,
[dir="rtl"] .contact-info-item span {
    order: 1;
    text-align: right;
}

/* Fix Select Arrow Direction in RTL */
[dir="rtl"] .form-select {
    background-position: left 0.75rem center !important;
    padding-left: 2.5rem !important;
    padding-right: 0.75rem !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-size: 16px 12px !important;
}

/* Alternative: Use appearance none and custom arrow */
[dir="rtl"] .locations-filter-bar .form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-position: left 0.75rem center !important;
    background-repeat: no-repeat !important;
    background-size: 16px 12px !important;
    padding-left: 2.5rem !important;
    padding-right: 0.75rem !important;
}

.cs_stat_item{
    direction: ltr !important;
}
.cs_top_header_in{
    flex-direction: row-reverse;
}
.cs_site_header.cs_style_1 .cs_top_header_left{
    padding-right: 31.6% !important;
    padding-left: 0 !important;
}
.cs_site_header.cs_style_1 .cs_top_header_right{
    padding-right: 0 !important;
    padding-left: 31.6% !important;
}
.cs_site_header.cs_style_1 .cs_main_header_right{
    padding-right: 0 !important;
    padding-left: 31.6% !important;
}
.cs_site_header.cs_style_1 .cs_main_header_left{
    padding-right: 31.6% !important;
    padding-left: 0 !important;
}