/* RTL Styles for Arabic Language with Professional Typography */

/* Import Professional Arabic Fonts */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&family=Cairo:wght@300;400;600;700;900&display=swap');

/* ============================================
   BASE RTL SETUP
   ============================================ */
body {
    direction: rtl !important;
    text-align: right !important;
}

/* ============================================
   PROFESSIONAL ARABIC FONTS
   ============================================ */
* {
    font-family: 'Tajawal', 'Cairo', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
}

p, span, div, li, a {
    font-family: 'Tajawal', 'Cairo', Arial, sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.8 !important;
}

body, p {
    line-height: 2 !important;
    letter-spacing: 0 !important;
}

.btn, button {
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}

input, textarea, select {
    font-family: 'Tajawal', Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: 15px !important;
}

.nav-link, .navbar-nav a {
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
}

.dropdown-item {
    font-family: 'Tajawal', Arial, sans-serif !important;
    font-weight: 500 !important;
}

/* ============================================
   CAROUSEL/SLIDER EXCEPTIONS
   ============================================ */
.carousel, .slider, .swiper, .owl-carousel, .hero-section, .banner,
[class*="carousel"], [class*="slider"], [class*="swiper"] {
    direction: ltr !important;
}

.carousel .carousel-caption, .carousel-caption h1, .carousel-caption h2, .carousel-caption p,
.slider .slide-content, .hero-section .content, .banner .content,
.banner h1, .banner h2, .banner p, .item h1, .item h2, .item p {
    direction: rtl !important;
    text-align: right !important;
}

/* ============================================
   TEXT ALIGNMENT
   ============================================ */
.float-left { float: right !important; }
.float-right { float: left !important; }
.text-left { text-align: right !important; }
.text-right { text-align: left !important; }
.text-center { text-align: center !important; }

/* ============================================
   MARGINS & PADDING
   ============================================ */
.ml-1 { margin-right: 0.25rem !important; margin-left: 0 !important; }
.ml-2 { margin-right: 0.5rem !important; margin-left: 0 !important; }
.ml-3 { margin-right: 1rem !important; margin-left: 0 !important; }
.ml-4 { margin-right: 1.5rem !important; margin-left: 0 !important; }
.ml-5 { margin-right: 3rem !important; margin-left: 0 !important; }

.mr-1 { margin-left: 0.25rem !important; margin-right: 0 !important; }
.mr-2 { margin-left: 0.5rem !important; margin-right: 0 !important; }
.mr-3 { margin-left: 1rem !important; margin-right: 0 !important; }
.mr-4 { margin-left: 1.5rem !important; margin-right: 0 !important; }
.mr-5 { margin-left: 3rem !important; margin-right: 0 !important; }

.ml-auto { margin-right: auto !important; margin-left: 0 !important; }
.mr-auto { margin-left: auto !important; margin-right: 0 !important; }

.pl-1 { padding-right: 0.25rem !important; padding-left: 0 !important; }
.pl-2 { padding-right: 0.5rem !important; padding-left: 0 !important; }
.pl-3 { padding-right: 1rem !important; padding-left: 0 !important; }
.pl-4 { padding-right: 1.5rem !important; padding-left: 0 !important; }
.pl-5 { padding-right: 3rem !important; padding-left: 0 !important; }

.pr-1 { padding-left: 0.25rem !important; padding-right: 0 !important; }
.pr-2 { padding-left: 0.5rem !important; padding-right: 0 !important; }
.pr-3 { padding-left: 1rem !important; padding-right: 0 !important; }
.pr-4 { padding-left: 1.5rem !important; padding-right: 0 !important; }
.pr-5 { padding-left: 3rem !important; padding-right: 0 !important; }

/* ============================================
   HEADER STYLES
   ============================================ */
[dir="rtl"] .header-middle .topbar-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .header-middle .topbar-link > div {
    margin-right: 0 !important;
    margin-left: 2rem !important;
}

[dir="rtl"] .header-middle .topbar-link > div:first-child {
    margin-left: 0 !important;
}

[dir="rtl"] .topbar-link i {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .topbar-link h6,
[dir="rtl"] .topbar-link a,
[dir="rtl"] .topbar-link p {
    text-align: right !important;
}

[dir="rtl"] .header-middle h6 {
    font-size: 14px !important;
    margin-bottom: 5px !important;
}

/* ============================================
   NAVBAR STYLES
   ============================================ */
nav ul {
    padding-left: 0 !important;
    padding-right: 20px !important;
}

nav ul li {
    float: right !important;
}

.navbar-nav {
    padding-right: 0 !important;
}

.navbar-toggler {
    margin-left: 0 !important;
    margin-right: auto !important;
}

[dir="rtl"] .navbar-nav {
    margin-right: 0 !important;
    margin-left: auto !important;
    flex-direction: row-reverse !important;
}

[dir="rtl"] .navbar-nav .nav-item {
    float: right !important;
    text-align: right !important;
}

[dir="rtl"] .navbar-nav .nav-link {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
    text-align: right !important;
}

[dir="rtl"] .navbar-collapse {
    flex-direction: row-reverse !important;
    justify-content: flex-end !important;
}

[dir="rtl"] .navbar-nav.ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

[dir="rtl"] .right-nav {
    margin-right: auto !important;
    margin-left: 0 !important;
}

[dir="rtl"] .right-nav.me-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

[dir="rtl"] .navbar .right-nav {
    order: -1 !important;
}

[dir="rtl"] #header-wrap .navbar {
    flex-direction: row-reverse !important;
}

[dir="rtl"] .navbar-toggler {
    margin-right: auto !important;
    margin-left: 0 !important;
}

/* ============================================
   DROPDOWN MENUS
   ============================================ */
.dropdown-menu {
    right: 0 !important;
    left: auto !important;
    text-align: right !important;
}

.dropdown-toggle::after {
    margin-right: 0.255em !important;
    margin-left: 0 !important;
}

[dir="rtl"] .dropdown-toggle::after {
    margin-right: 0.5em !important;
    margin-left: 0 !important;
}

[dir="rtl"] .dropdown-item {
    text-align: right !important;
    padding-right: 1.5rem !important;
    padding-left: 1rem !important;
}

/* ============================================
   FORMS
   ============================================ */
input, textarea, select {
    text-align: right !important;
    direction: rtl !important;
}

input[type="checkbox"], input[type="radio"] {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

.form-check {
    padding-right: 1.25rem !important;
    padding-left: 0 !important;
}

.form-check-input {
    float: right !important;
    margin-right: -1.25rem !important;
    margin-left: 0 !important;
}

/* ============================================
   BUTTONS & ICONS
   ============================================ */
.btn {
    text-align: center !important;
}

i, .icon {
    margin-left: 8px !important;
    margin-right: 0 !important;
}

[dir="rtl"] i:first-child {
    margin-right: 8px !important;
    margin-left: 0 !important;
}

/* ============================================
   LISTS & NAVIGATION ELEMENTS
   ============================================ */
ul, ol {
    padding-right: 20px !important;
    padding-left: 0 !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    padding-left: 0.5rem !important;
    padding-right: 0 !important;
    content: "/" !important;
}

/* ============================================
   CARDS & SECTIONS
   ============================================ */
.card {
    text-align: right !important;
}

.featured-item h5, .featured-item p {
    text-align: right !important;
}

.section-title h6, .section-title h2, .section-title p {
    text-align: right !important;
}

.service-card, .feature-box {
    text-align: right !important;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
footer {
    text-align: right !important;
}

footer p, footer li, footer a {
    font-size: 15px !important;
}

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

[dir="rtl"] .footer h4, [dir="rtl"] .footer p, [dir="rtl"] .footer li {
    text-align: right !important;
}

[dir="rtl"] .footer-list ul {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

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

/* Footer Contact Icons - Icon on RIGHT, Text on LEFT */
[dir="rtl"] .footer-cntct ul li {
    text-align: right !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

[dir="rtl"] .footer-cntct ul li i {
    margin-left: 0 !important;
    margin-right: 0 !important;
    order: 2 !important;
}

[dir="rtl"] .footer-cntct ul li p,
[dir="rtl"] .footer-cntct ul li a {
    order: 1 !important;
    margin-right: 10px !important;
}

/* Email and phone stay LTR */
[dir="rtl"] .footer-cntct a[href^="mailto:"],
[dir="rtl"] .footer-cntct a[href^="tel:"] {
    direction: ltr !important;
    unicode-bidi: plaintext !important;
}

/* Social icons keep LTR */
[dir="rtl"] .social-icons {
    direction: ltr !important;
}

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

/* Copyright section - RIGHT for Arabic, LEFT for English */
[dir="rtl"] .copyright .row > div:first-child {
    text-align: left !important;
}

[dir="rtl"] .copyright .row > div:last-child {
    text-align: right !important;
}

[dir="rtl"] .footer-list.md-mt-2 ul {
    padding-right: 0 !important;
}

[dir="rtl"] .footer-list .list-inline-item {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .footer-list .list-inline-item:last-child {
    margin-left: 0 !important;
}

/* Back to top button */
[dir="rtl"] .scroll-top {
    left: 20px !important;
    right: auto !important;
}

/* ============================================
   MISC ELEMENTS
   ============================================ */
.modals .modal-header .close {
    margin: -1rem auto -1rem -1rem !important;
}

table {
    direction: rtl !important;
}

th, td {
    text-align: right !important;
}

.alert-dismissible .close {
    left: 0 !important;
    right: auto !important;
}

.tooltip, .popover {
    text-align: right !important;
}

.badge {
    margin-right: 0 !important;
    margin-left: 0.25rem !important;
}

.progress-bar {
    right: 0 !important;
}

.page-link {
    margin-left: -1px !important;
    margin-right: 0 !important;
}

.page-item:first-child .page-link {
    border-top-right-radius: 0.25rem !important;
    border-bottom-right-radius: 0.25rem !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.page-item:last-child .page-link {
    border-top-left-radius: 0.25rem !important;
    border-bottom-left-radius: 0.25rem !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.language-switcher {
    display: flex;
    gap: 10px;
    direction: ltr !important;
}

.language-switcher a, .language-switcher button, .language-selection button {
    padding: 5px 15px !important;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
    font-family: 'Cairo', Arial, sans-serif !important;
    font-weight: 600 !important;
}

.language-switcher a:hover, .language-switcher button:hover {
    background-color: #f0f0f0;
}

.language-switcher a.active, .language-switcher button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* ============================================
   SPECIAL ELEMENTS
   ============================================ */
.container, .container-fluid {
    direction: rtl !important;
}

.logo, .brand, .navbar-brand {
    direction: ltr !important;
}

a[href^="mailto:"], a[href^="tel:"] {
    direction: ltr !important;
}

.social-links, .social-icons {
    direction: ltr !important;
}

.d-flex, .flex-row {
    flex-direction: row-reverse !important;
}

.row {
    direction: rtl !important;
}

.counter h6 {
    font-size: 14px !important;
    margin-top: 10px !important;
}

.lead {
    font-size: 18px !important;
    line-height: 1.9 !important;
}

.theme-bg p, .theme-bg h1, .theme-bg h2, .theme-bg h5 {
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

[dir="rtl"] .nav-link.active::before,
[dir="rtl"] .nav-link.active::after {
    right: auto !important;
    left: 0 !important;
}

[dir="rtl"] .navbar > .container,
[dir="rtl"] .navbar > .container-fluid {
    flex-direction: row-reverse !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991px) {
    [dir="rtl"] .navbar-collapse {
        text-align: right !important;
    }
    
    [dir="rtl"] .navbar-nav {
        align-items: flex-end !important;
    }
    
    [dir="rtl"] .navbar-nav .nav-item {
        text-align: right !important;
        width: 100%;
    }
    
    [dir="rtl"] .right-nav {
        justify-content: flex-end !important;
        margin-top: 1rem;
    }
    
    [dir="rtl"] .text-lg-end {
        text-align: right !important;
    }
    
    [dir="rtl"] .copyright .row > div {
        text-align: right !important;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu {
        text-align: right !important;
    }
    
    .navbar-collapse {
        text-align: right !important;
    }
    
    body {
        font-size: 15px !important;
    }
    
    h1 {
        font-size: 28px !important;
    }
    
    h2 {
        font-size: 24px !important;
    }
    
    h5 {
        font-size: 18px !important;
    }
    
    [dir="rtl"] .header-middle .topbar-link > div {
        margin-left: 1rem !important;
    }
}

/* ============================================
   FONT RENDERING
   ============================================ */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
/* Additional RTL Alignment Fixes - Add to rtl.css */

/* ============================================
   COUNTER SECTION ALIGNMENT
   ============================================ */
[dir="rtl"] .counter {
    text-align: center !important;
}

[dir="rtl"] .counter span,
[dir="rtl"] .counter h6 {
    text-align: center !important;
}

/* ============================================
   FEATURED ITEMS & CARDS
   ============================================ */
[dir="rtl"] .featured-item {
    text-align: right !important;
}

[dir="rtl"] .featured-item .featured-icon {
    float: right !important;
    margin-left: 20px !important;
    margin-right: 0 !important;
}

[dir="rtl"] .featured-item .featured-title,
[dir="rtl"] .featured-item .featured-desc {
    text-align: right !important;
}

/* Style 4 featured items */
[dir="rtl"] .featured-item.style-4 {
    text-align: center !important;
}

[dir="rtl"] .featured-item.style-4 .featured-icon,
[dir="rtl"] .featured-item.style-4 .featured-title,
[dir="rtl"] .featured-item.style-4 .featured-desc {
    text-align: center !important;
}

/* ============================================
   WHO WE SERVE SECTION
   ============================================ */
[dir="rtl"] .theme-bg .featured-item {
    text-align: center !important;
}

[dir="rtl"] .theme-bg .featured-item h5,
[dir="rtl"] .theme-bg .featured-item p {
    text-align: center !important;
}

/* ============================================
   MISSION/VISION/VALUE BOXES
   ============================================ */
[dir="rtl"] .theme-bg-2,
[dir="rtl"] .dark-bg {
    text-align: right !important;
}

[dir="rtl"] .theme-bg-2 h5,
[dir="rtl"] .theme-bg-2 p,
[dir="rtl"] .dark-bg h5,
[dir="rtl"] .dark-bg p {
    text-align: right !important;
}

[dir="rtl"] .theme-bg-2 i,
[dir="rtl"] .dark-bg i {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ============================================
   ABOUT SECTION TEXT BOX
   ============================================ */
[dir="rtl"] .theme-bg.rounded {
    text-align: center !important;
}

[dir="rtl"] .theme-bg.rounded .title {
    text-align: center !important;
}

/* ============================================
   SERVICE TABS
   ============================================ */
[dir="rtl"] .tab .nav-tabs {
    text-align: right !important;
}

[dir="rtl"] .tab .nav-tabs .nav-link {
    text-align: right !important;
}

[dir="rtl"] .tab .nav-tabs .nav-link i {
    margin-left: 10px !important;
    margin-right: 0 !important;
    float: right !important;
}

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

[dir="rtl"] .tab-content h4,
[dir="rtl"] .tab-content p {
    text-align: right !important;
}

/* ============================================
   CTA SECTIONS
   ============================================ */
[dir="rtl"] .theme-bg .title {
    text-align: right !important;
}

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

[dir="rtl"] .theme-bg.text-center .title,
[dir="rtl"] .theme-bg.text-center p {
    text-align: center !important;
}

/* ============================================
   FORMS IN DARK SECTIONS
   ============================================ */
[dir="rtl"] .theme-bg form,
[dir="rtl"] .dark-bg form {
    text-align: right !important;
}

[dir="rtl"] .theme-bg .section-title,
[dir="rtl"] .dark-bg .section-title {
    text-align: right !important;
}

/* ============================================
   PROGRESS BARS
   ============================================ */
[dir="rtl"] .ht-progress-bar {
    text-align: right !important;
}

[dir="rtl"] .ht-progress-bar h4 {
    text-align: right !important;
}

[dir="rtl"] .progress {
    direction: ltr !important;
}

[dir="rtl"] .progress-bar {
    direction: ltr !important;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
[dir="rtl"] .breadcrumb {
    justify-content: flex-end !important;
    flex-direction: row-reverse !important;
}

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

[dir="rtl"] .breadcrumb-item + .breadcrumb-item {
    padding-right: 0.5rem !important;
    padding-left: 0 !important;
}

[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
    padding-right: 0.5rem !important;
    padding-left: 0 !important;
    float: right !important;
}

/* ============================================
   PAGE TITLE SECTION
   ============================================ */
[dir="rtl"] .page-title {
    text-align: right !important;
}

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

/* ============================================
   TESTIMONIALS
   ============================================ */
[dir="rtl"] .testimonial {
    text-align: right !important;
}

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

[dir="rtl"] .testimonial-quote {
    float: right !important;
    margin-left: 20px !important;
    margin-right: 0 !important;
}

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

/* ============================================
   BLOG POSTS
   ============================================ */
[dir="rtl"] .post {
    text-align: right !important;
}

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

[dir="rtl"] .post-meta ul {
    justify-content: flex-end !important;
    flex-direction: row-reverse !important;
}

[dir="rtl"] .post-author {
    text-align: right !important;
    flex-direction: row-reverse !important;
}

[dir="rtl"] .post-author-img {
    margin-left: 10px !important;
    margin-right: 0 !important;
}

/* ============================================
   BUTTONS WITH ICONS
   ============================================ */
[dir="rtl"] .btn i {
    margin-left: 8px !important;
    margin-right: 0 !important;
}

[dir="rtl"] .btn i.fa-long-arrow-alt-right {
    transform: rotate(180deg);
}

[dir="rtl"] .btn-simple i {
    margin-left: 8px !important;
    margin-right: 0 !important;
    transform: rotate(180deg);
}

/* ============================================
   SPECIFIC SECTION FIXES
   ============================================ */

/* About section numbered items */
[dir="rtl"] .text-theme.font-w-7 {
    margin-left: 10px !important;
    margin-right: 0 !important;
}

/* Video button positioning */
[dir="rtl"] .video-btn-pos {
    right: auto !important;
    left: 50px !important;
}

/* Image overlays */
[dir="rtl"] .position-relative .video-btn {
    text-align: center !important;
}

/* Section title alignment in center sections */
[dir="rtl"] .text-center .section-title h2,
[dir="rtl"] .text-center .section-title h6,
[dir="rtl"] .text-center .section-title p {
    text-align: center !important;
}

/* Justify content between */
[dir="rtl"] .justify-content-between {
    flex-direction: row-reverse !important;
}

/* Align items center */
[dir="rtl"] .align-items-center.row {
    direction: rtl !important;
}

/* ============================================
   ROW COLUMN ORDER
   ============================================ */
[dir="rtl"] .order-lg-1 {
    order: 1 !important;
}

[dir="rtl"] .order-lg-2 {
    order: 2 !important;
}

/* ============================================
   MARGIN AND SPACING ADJUSTMENTS
   ============================================ */
[dir="rtl"] .ms-n1 {
    margin-right: -0.25rem !important;
    margin-left: 0 !important;
}

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

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

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

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

/* ============================================
   TEXT ALIGNMENT UTILITIES
   ============================================ */
[dir="rtl"] .text-lg-end {
    text-align: right !important;
}

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

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

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    [dir="rtl"] .featured-item {
        text-align: center !important;
    }
    
    [dir="rtl"] .featured-item .featured-icon {
        float: none !important;
        margin: 0 auto 15px !important;
        display: block !important;
    }
    
    [dir="rtl"] .theme-bg .title,
    [dir="rtl"] .dark-bg .title {
        text-align: center !important;
    }
}

@media (max-width: 768px) {
    [dir="rtl"] .counter {
        margin-bottom: 2rem;
    }
    
    [dir="rtl"] .tab .nav-tabs .nav-link {
        text-align: center !important;
    }
    
    [dir="rtl"] .tab .nav-tabs .nav-link i {
        float: none !important;
        margin: 0 auto 5px !important;
        display: block !important;
    }
}
/* Complete Page Alignment Fixes for Arabic - Add to rtl.css */

/* ============================================
   PAGE TITLE SECTION (من نحن)
   ============================================ */

/* Page title background section */
[dir="rtl"] .page-title {
    text-align: center !important;
}

/* Main heading */
[dir="rtl"] .page-title h1 {
    text-align: center !important;
}

/* Breadcrumb navigation */
[dir="rtl"] .page-breadcrumb {
    text-align: center !important;
}

[dir="rtl"] .page-breadcrumb .breadcrumb {
    justify-content: center !important;
    display: flex !important;
    flex-direction: row-reverse !important;
}

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

[dir="rtl"] .breadcrumb-item {
    text-align: center !important;
}

/* Breadcrumb separator */
[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    content: "/" !important;
    float: none !important;
}

[dir="rtl"] .breadcrumb-item.active {
    text-align: center !important;
}

/* ============================================
   WHO WE SERVE SECTION (من نخدم)
   ============================================ */

/* Main section */
[dir="rtl"] section.theme-bg {
    text-align: center !important;
}

/* Container */
[dir="rtl"] .theme-bg .container {
    text-align: center !important;
}

/* Row */
[dir="rtl"] .theme-bg .row {
    text-align: center !important;
    justify-content: center !important;
}

/* Section title */
[dir="rtl"] .theme-bg .section-title {
    text-align: center !important;
}

[dir="rtl"] .theme-bg .section-title h6 {
    text-align: center !important;
}

[dir="rtl"] .theme-bg .section-title h2,
[dir="rtl"] .theme-bg .section-title .title {
    text-align: center !important;
}

[dir="rtl"] .theme-bg .section-title p {
    text-align: center !important;
}

/* Subtitle with rgba text */
[dir="rtl"] .theme-bg .text-rgba {
    text-align: center !important;
}

/* Columns */
[dir="rtl"] .theme-bg .col-lg-4,
[dir="rtl"] .theme-bg .col-sm-6,
[dir="rtl"] .theme-bg .col-md-6 {
    text-align: center !important;
}

/* Featured items */
[dir="rtl"] .theme-bg .featured-item {
    text-align: center !important;
}

/* Icons */
[dir="rtl"] .theme-bg .featured-item .featured-icon {
    float: none !important;
    margin: 0 auto 20px !important;
    display: block !important;
    text-align: center !important;
}

[dir="rtl"] .theme-bg .featured-item .featured-icon i {
    text-align: center !important;
}

/* Titles */
[dir="rtl"] .theme-bg .featured-item .featured-title {
    text-align: center !important;
}

[dir="rtl"] .theme-bg .featured-item .featured-title h5 {
    text-align: center !important;
}

/* Descriptions */
[dir="rtl"] .theme-bg .featured-item .featured-desc {
    text-align: center !important;
}

[dir="rtl"] .theme-bg .featured-item .featured-desc p {
    text-align: center !important;
}

/* Style 4 featured items */
[dir="rtl"] .featured-item.style-4 {
    text-align: center !important;
}

[dir="rtl"] .featured-item.style-4 .featured-icon {
    float: none !important;
    margin: 0 auto 20px !important;
}

[dir="rtl"] .featured-item.style-4 .featured-title,
[dir="rtl"] .featured-item.style-4 .featured-desc {
    text-align: center !important;
}

/* ============================================
   JUSTIFY CONTENT CENTER
   ============================================ */
[dir="rtl"] .justify-content-center {
    justify-content: center !important;
}

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

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    [dir="rtl"] .theme-bg .featured-item {
        margin-bottom: 30px;
        text-align: center !important;
    }
    
    [dir="rtl"] .theme-bg .featured-item .featured-icon {
        margin: 0 auto 15px !important;
    }
}

@media (max-width: 768px) {
    [dir="rtl"] .page-title h1 {
        font-size: 28px !important;
        text-align: center !important;
    }
    
    [dir="rtl"] .breadcrumb {
        font-size: 14px !important;
        justify-content: center !important;
    }
}
/* STRONG List Icons RTL Fix - Add to rtl.css */

/* ============================================
   LIST ICONS POSITIONING - ARABIC (RTL)
   ============================================ */

/* Force icons to RIGHT side for Arabic */
[dir="rtl"] .list-icon li {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: flex-start !important;
    text-align: right !important;
}

[dir="rtl"] .list-icon li i {
    margin-left: 15px !important;
    margin-right: 0 !important;
    float: none !important;
}

[dir="rtl"] .list-icon li .flaticon-tick {
    margin-left: 15px !important;
    margin-right: 0 !important;
    order: 2 !important;
}

[dir="rtl"] .list-icon li span,
[dir="rtl"] .list-icon li b,
[dir="rtl"] .list-icon li .text-theme {
    order: 1 !important;
    text-align: right !important;
    flex: 1 !important;
}

/* Remove any default list styling */
[dir="rtl"] .list-unstyled.list-icon {
    padding-right: 0 !important;
    padding-left: 0 !important;
    list-style: none !important;
}

[dir="rtl"] .list-icon > li {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

/* ============================================
   LIST ICONS POSITIONING - ENGLISH (LTR)
   ============================================ */

/* Keep icons on LEFT side for English */
[dir="ltr"] .list-icon li {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    text-align: left !important;
}

[dir="ltr"] .list-icon li i {
    margin-right: 15px !important;
    margin-left: 0 !important;
    float: none !important;
}

[dir="ltr"] .list-icon li .flaticon-tick {
    margin-right: 15px !important;
    margin-left: 0 !important;
    order: 1 !important;
}

[dir="ltr"] .list-icon li span,
[dir="ltr"] .list-icon li b,
[dir="ltr"] .list-icon li .text-theme {
    order: 2 !important;
    text-align: left !important;
    flex: 1 !important;
}
/* Privacy Policy List Icons Fix - Add this to your rtl.css or create a new CSS file */

/* ============================================
   PRIVACY POLICY LIST ICONS - HIGHEST PRIORITY
   ============================================ */

/* Force RTL icon positioning for Arabic */
html[dir="rtl"] .list-icon li,
body[dir="rtl"] .list-icon li,
[dir="rtl"] .list-icon li {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: flex-start !important;
    text-align: right !important;
    padding: 0 !important;
    margin-bottom: 1rem !important;
}

/* Icon positioning for RTL */
html[dir="rtl"] .list-icon li i,
body[dir="rtl"] .list-icon li i,
[dir="rtl"] .list-icon li i,
html[dir="rtl"] .list-icon li .flaticon-tick,
body[dir="rtl"] .list-icon li .flaticon-tick,
[dir="rtl"] .list-icon li .flaticon-tick {
    margin-left: 15px !important;
    margin-right: 0 !important;
    order: 2 !important;
    flex-shrink: 0 !important;
    float: none !important;
}

/* Text content for RTL */
html[dir="rtl"] .list-icon li span,
body[dir="rtl"] .list-icon li span,
[dir="rtl"] .list-icon li span {
    order: 1 !important;
    text-align: right !important;
    flex: 1 !important;
    display: block !important;
}

/* Keep LTR for English */
html[dir="ltr"] .list-icon li,
body[dir="ltr"] .list-icon li,
[dir="ltr"] .list-icon li {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    text-align: left !important;
}

html[dir="ltr"] .list-icon li i,
body[dir="ltr"] .list-icon li i,
[dir="ltr"] .list-icon li i,
html[dir="ltr"] .list-icon li .flaticon-tick,
body[dir="ltr"] .list-icon li .flaticon-tick,
[dir="ltr"] .list-icon li .flaticon-tick {
    margin-right: 15px !important;
    margin-left: 0 !important;
    order: 1 !important;
    flex-shrink: 0 !important;
}

html[dir="ltr"] .list-icon li span,
body[dir="ltr"] .list-icon li span,
[dir="ltr"] .list-icon li span {
    order: 2 !important;
    text-align: left !important;
    flex: 1 !important;
}

/* Remove any conflicting styles */
[dir="rtl"] .list-unstyled.list-icon,
[dir="ltr"] .list-unstyled.list-icon {
    padding: 0 !important;
    list-style: none !important;
}

/* Bold text within spans */
[dir="rtl"] .list-icon li span b,
[dir="rtl"] .list-icon li span .text-theme {
    text-align: right !important;
}

[dir="ltr"] .list-icon li span b,
[dir="ltr"] .list-icon li span .text-theme {
    text-align: left !important;
}