/* =أنماط RTL للغة العربية
-------------------------------------------------------------- */

[dir="rtl"] {
    /* النصوص */
    text-align: right;
    direction: rtl;
    
    /* الحقول والنماذج */
    input,
    textarea,
    select {
        text-align: right;
    }
    
    /* القوائم */
    .nav-menu {
        margin-right: 0;
        margin-left: auto;
    }
    
    .nav-menu a::after {
        left: auto;
        right: 0;
    }
    
    /* خدمة الميزات */
    .service-features {
        text-align: left;
    }
    
    .service-features li {
        padding-right: 0;
        padding-left: 20px;
    }
    
    .service-features li::before {
        right: auto;
        left: 0;
    }
    
    /* التذييل */
    .footer-menu a:hover,
    .mobile-nav-menu a:hover {
        padding-right: 0;
        padding-left: 10px;
    }
    
    /* الإحصائيات */
    .hero-stats {
        text-align: center;
    }
    
    /* التعليقات */
    .comment-body {
        margin-right: 0;
        margin-left: 70px;
    }
    
    .comment-avatar {
        right: -70px;
        left: auto;
    }
    
    /* الوسوم */
    .tags-links a {
        margin: 0 0 5px 5px;
    }
    
    /* التنقل */
    .post-navigation .nav-previous {
        text-align: left;
    }
    
    .post-navigation .nav-next {
        text-align: right;
    }
    
    /* البحث */
    .search-form button {
        right: auto;
        left: 0;
        border-radius: 5px 0 0 5px;
    }
    
    .search-form input {
        padding-right: 15px;
        padding-left: 50px;
    }
    
    /* التصفيف */
    .float-left {
        float: right !important;
    }
    
    .float-right {
        float: left !important;
    }
    
    .text-left {
        text-align: right !important;
    }
    
    .text-right {
        text-align: left !important;
    }
    
    /* الهوامش والحشوات */
    .mr-2 {
        margin-right: 0 !important;
        margin-left: 0.5rem !important;
    }
    
    .ml-2 {
        margin-left: 0 !important;
        margin-right: 0.5rem !important;
    }
    
    .pr-3 {
        padding-right: 0 !important;
        padding-left: 1rem !important;
    }
    
    .pl-3 {
        padding-left: 0 !important;
        padding-right: 1rem !important;
    }
    
    /* الشريط الجانبي */
    .widget-area {
        float: right;
        margin-right: 0;
        margin-left: 4%;
    }
    
    /* الوسائط المتعددة */
    .wp-caption {
        text-align: center;
    }
    
    .gallery {
        margin-right: 0;
        margin-left: -1%;
    }
    
    /* النماذج */
    .contact-form label {
        text-align: right;
    }
    
    /* الأزرار */
    .cta-button {
        text-align: center;
    }
    
    /* محول اللغات */
    .language-switcher {
        direction: ltr;
    }
    
    .lang-option {
        direction: ltr;
    }
    
    /* تحسينات للخط العربي */
    body {
        font-family: 'Tajawal', 'Cairo', 'Arial', sans-serif;
    }
    
    h1, h2, h3, h4, h5, h6 {
        font-family: 'Cairo', 'Tajawal', 'Arial', sans-serif;
    }
    
    /* تحسين المسافات للخط العربي */
    .hero-description,
    .service-description,
    .feature-description {
        line-height: 1.8;
    }
    
    /* تحسينات للعناوين */
    .section-title {
        letter-spacing: 0;
    }
}

/* تحسينات إضافية للعربية */
[lang="ar"] {
    /* تحسين القراءة */
    line-height: 1.7;
    
    /* تحسين المسافات */
    .entry-content p {
        margin-bottom: 1.2em;
    }
    
    /* تحسين العناوين */
    h1, h2, h3 {
        font-weight: 700;
        line-height: 1.3;
    }
    
    /* تحسين القوائم */
    ul, ol {
        padding-right: 1.5em;
        padding-left: 0;
    }
    
    /* تحسين الجداول */
    table {
        text-align: right;
    }
    
    th, td {
        text-align: right;
    }
}

/* دعم الخطوط العربية */
@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/tajawal-light.woff2') format('woff2');
}

@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/tajawal-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/tajawal-bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/cairo-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/cairo-bold.woff2') format('woff2');
}