
/* =====================================
   RTL GLOBAL
===================================== */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
    font-family: 'Tajawal', sans-serif;
}

/* =====================================
   HEADER TOP
===================================== */
[dir="rtl"] .header-top-container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
}

[dir="rtl"] .contact-info-top {
    display: flex;
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .contact-info-top a {
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
    margin-right: 0;
}

[dir="rtl"] .social-icons-top {
    display: flex;
    flex-direction: row-reverse;
}

[dir="rtl"] .social-icons-top a {
    margin-left: 10px;
    margin-right: 0;
}

/* =====================================
   HEADER MAIN
===================================== */
[dir="rtl"] .header-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}

/* Logo */
[dir="rtl"] .logo {
    margin: 0;
}

/* Navigation */
[dir="rtl"] .main-nav {
    margin-right: auto;
    margin-left: 30px;
}

[dir="rtl"] .nav-list {
    display: flex;
    flex-direction: row;
    padding: 0;
    margin: 0;
}

[dir="rtl"] .nav-item {
    margin-right: 25px;
    margin-left: 0;
    text-align: right;
}

/* Dropdown */
[dir="rtl"] .dropdown-menu {
    right: 0;
    left: auto;
    text-align: right;
    min-width: 220px;
}

[dir="rtl"] .dropdown-item {
    text-align: right;
}

[dir="rtl"] .dropdown-arrow {
    margin-right: 5px;
    margin-left: 0;
    transform: rotate(180deg);
}

/* Language button */
[dir="rtl"] .lang-btn {
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
}

[dir="rtl"] .lang-dropdown-menu {
    right: 0;
    left: auto;
    text-align: right;
}

/* Lets talk button */
[dir="rtl"] .lets-talk-btn-header {
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
}

/* Icons spacing */
[dir="rtl"] i {
    margin-left: 6px;
    margin-right: 0;
}

/* =====================================
   MOBILE MENU (RTL)
===================================== */
@media (max-width: 992px) {
    [dir="rtl"] .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: 100%;
        height: 100vh;
        background: #0d2137;
        padding: 80px 20px 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    [dir="rtl"] .main-nav.active {
        transform: translateX(0);
    }

    [dir="rtl"] .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }

    [dir="rtl"] .nav-item {
        margin: 10px 0;
        width: 100%;
    }

    [dir="rtl"] .lets-talk-btn-header {
        display: none !important;
    }
}

/* =====================================
   CAROUSEL
===================================== */
[dir="rtl"] .carousel-caption {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
}

[dir="rtl"] .carousel-content,
[dir="rtl"] .carousel-title,
[dir="rtl"] .carousel-subtitle {
    text-align: center;
}

[dir="rtl"] .word-by-word {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

[dir="rtl"] .carousel-buttons {
    justify-content: center;
}

[dir="rtl"] .carousel-control-prev {
    right: 20px;
    left: auto;
}

[dir="rtl"] .carousel-control-next {
    left: 20px;
    right: auto;
}

/* =====================================
   FORMS
===================================== */
[dir="rtl"] .form-group,
[dir="rtl"] .form-control,
[dir="rtl"] .form-select {
    text-align: right;
}

[dir="rtl"] .form-select {
    padding-right: 2.25rem;
    padding-left: .75rem;
    background-position: left .75rem center;
}

/* =====================================
   SECTIONS & CONTENT
===================================== */
[dir="rtl"] .counter {
    flex-direction: row-reverse;
}

[dir="rtl"] .key-points .point {
    justify-content: flex-start;
}

[dir="rtl"] .key-points .point i {
    margin-left: 10px;
    margin-right: 0;
}

[dir="rtl"] .testimonial-author,
[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .testimonial-author img,
[dir="rtl"] .contact-item .contact-icon {
    margin-left: 15px;
    margin-right: 0;
}

/* =====================================
   FOOTER
===================================== */
[dir="rtl"] .footer-section {
    text-align: right;
}

[dir="rtl"] .footer-links i {
    margin-left: 8px;
    margin-right: 0;
}

[dir="rtl"] .footer-contact a {
    display: flex;
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-contact i {
    margin-left: 10px;
    margin-right: 0;
}

/* =====================================
   BOOTSTRAP HELPERS FIX
===================================== */
[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

[dir="rtl"] .me-2 {
    margin-left: .5rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .text-start {
    text-align: right !important;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}
/* rtl.css - أنماط خاصة للغة العربية */

/* إعادة تعيين اتجاه أيقونات Font Awesome */
body.rtl i.fa,
body.rtl i.fas,
body.rtl i.far,
body.rtl i.fab,
body.rtl i.fa-solid,
body.rtl i.fa-regular,
body.rtl i.fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900;
    direction: ltr !important;
    unicode-bidi: embed;
    display: inline-block;
}

/* إصلاح السوشيال ميديا */
body.rtl .social-icons-top,
body.rtl .social-icons-top a {
    direction: ltr !important;
    text-align: center;
}

/* تدوير السهام في الوضع العربي */
body.rtl .fa-chevron-left,
body.rtl .fa-chevron-right,
body.rtl .fa-angle-right,
body.rtl .fa-arrow-right {
    transform: rotate(180deg);
}

/* تدوير سهم dropdown */
body.rtl .dropdown-arrow {
    transform: rotate(180deg);
}

/* تدوير أسهم الكاروسيل */
body.rtl .carousel-control-prev .fa-chevron-left,
body.rtl .carousel-control-next .fa-chevron-right {
    transform: rotate(180deg);
}

/* تدوير سهم روابط المشاريع */
body.rtl .project-link i.fa-arrow-right {
    transform: rotate(180deg) !important;
}

/* إصلاح المسافات في القوائم */
body.rtl .dropdown-item i,
body.rtl .footer-links i,
body.rtl .footer-contact i,
body.rtl .contact-item i,
body.rtl .feature-icon i,
body.rtl .social-icons-top i,
body.rtl .nav-link i {
    margin-right: 0;
    margin-left: 8px;
}

/* إعادة ترتيب الأيقونات في dropdown */
body.rtl .nav-item.dropdown .dropdown-menu .dropdown-item i {
    order: 2;
}

/* إصلاح تنسيق الهاتف في الوضع العربي */
body.rtl .contact-details a {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: plaintext !important;
}

/* إصلاح تنسيق الأرقام */
body.rtl a[href^="tel:"] {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: plaintext !important;
}

/* إصلاح الأيقونات في الفوتر */
body.rtl .footer-section .footer-links a i {
    margin-right: 0 !important;
    margin-left: 8px !important;
}

/* إصلاح تنسيق قائمة الصفحات */
body.rtl .nav-item.dropdown .dropdown-menu .dropdown-item {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

/* إصلاح تنسيق القائمة الرئيسية */
body.rtl .nav-link {
    flex-direction: row-reverse;
}

/* إصلاح تنسيق زر اللغة */
body.rtl .lang-btn {
    flex-direction: row-reverse;
}

body.rtl .lang-btn i {
    margin-left: 0;
    margin-right: 8px;
}

/* =============== إصلاح قسم الحقائق (Facts) للغة العربية =============== */

/* عكس اتجاه العناصر */
body.rtl .counter {
    flex-direction: row-reverse;
    text-align: right;
}

body.rtl .counter h1.me-3 {
    margin-right: 0 !important;
    margin-left: 1rem !important;
    order: 2; /* نقل الرقم إلى اليمين */
}

body.rtl .counter h5 {
    order: 1; /* نقل النص إلى اليسار */
    text-align: right;
}

/* محاذاة النص */
body.rtl .counter h5.text-white {
    margin-top: 0.25rem !important;
    line-height: 1.4;
}

/* =============== تحسين التنسيق على الشاشات الصغيرة =============== */
@media (max-width: 768px) {
    body.rtl .counter {
        flex-direction: column;
        align-items: flex-end !important;
        text-align: right;
    }
    
    body.rtl .counter h1.me-3 {
        margin-left: 0 !important;
        margin-bottom: 0.5rem;
        order: 1;
    }
    
    body.rtl .counter h5 {
        order: 2;
        text-align: right;
        width: 100%;
    }
}