/* الأنماط الأساسية وإعادة التعيير */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden; /* هذا هو التعديل الجديد لمنع السكرول الأفقي */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* الألوان الأساسية من اللوجو */
:root {
    --primary-color: #8B0000;
    --secondary-color: #333;
    --light-bg-color: #f9f9f9;
    --white-color: #ffffff;
}

/* الأزرار (Buttons) */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: #6a0000;
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.tertiary-btn {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border: 2px solid var(--secondary-color);
}

.tertiary-btn:hover {
    background-color: #555;
}

.learn-more-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 0.9em;
    padding: 8px 15px;
}

.learn-more-btn:hover {
    background-color: #6a0000;
}


/* شريط التنقل العلوي (Header) */
.main-header {
    background-color: var(--white-color);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    flex-direction: row-reverse; /* اللوجو على اليمين، القائمة على اليسار */
    justify-content: space-between;
    align-items: center;
}

/* اللوجو كعنصر رابط */
.main-header .logo {
    display: flex; /* ليحتوي على الصورة داخله بشكل صحيح */
    align-items: center;
    margin-left: 0; 
    text-decoration: none; /* إزالة خط تحت اللوجو إذا كان رابطاً */
}

.main-header .logo img {
    height: 75px; 
    margin-left: 0; 
}

.menu-toggle {
    display: none; /* مخفي افتراضياً في الديسكتوب */
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 0 10px;
}

.main-nav {
    /* للعرض العادي (desktop) */
    flex-grow: 1; /* السماح للقائمة بأخذ المساحة المتاحة */
    display: block; /* للتأكد من أنها ظاهرة */
    margin: 0 auto; /* لتوسيط القائمة في المنتصف */
}

.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: center; /* توسيط عناصر القائمة في الديسكتوب */
}

.main-nav ul li {
    position: relative;
    margin-right: 25px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

/* القائمة المنسدلة */
.main-nav .dropdown {
    display: none;
    position: absolute;
    background-color: var(--white-color);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    min-width: 180px;
    z-index: 1;
    top: 100%;
    right: 0; 
    padding: 10px 0; 
    border-radius: 5px;
}

.main-nav .dropdown li {
    margin: 0;
}

.main-nav .dropdown li a {
    padding: 0; 
    color: var(--secondary-color);
    white-space: nowrap;
}

.main-nav .dropdown li a:hover {
    background-color: var(--light-bg-color);
    color: var(--primary-color);
}

.main-nav ul li:hover > .dropdown {
    display: block;
}

/* زر "اطلب عرضًا" */
.main-header .btn.contact-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 700;
    margin-right: 0; 
    margin-left: 20px; 
    display: block; /* للتأكد من ظهوره في الديسكتوب */
}

.main-header .btn.contact-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* زر تبديل اللغة (Desktop) */
.lang-toggle-btn {
    /* الوضع الافتراضي لـ RTL */
    margin-left: 15px; /* مسافة بين زر اللغة وزر اطلب عرضاً */
    font-size: 0.9em;
    padding: 8px 18px;
    /* تأكد من أن الأنماط الأخرى مثل secondary-btn تطبق عليه */
    display: block; /* ظاهر في الديسكتوب */
}


/* قسم البطل (Hero Section) */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: var(--white-color);
    text-align: center;
    padding: 100px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns .btn {
    margin: 0 10px;
}

/* الأقسام العامة */
section {
    padding: 80px 0;
    text-align: center;
}

section h2 {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

section h2::after {
    content: '';
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* قسم من نحن في الصفحة الرئيسية */
.about-section {
    background-color: var(--white-color);
}

.about-section p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #555;
}

/* قسم خدماتنا المميزة */
.featured-services-section {
    background-color: var(--light-bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.service-item .icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white-color);
    font-size: 2.5em;
}

/* أيقونات افتراضية */
.service-item#web-development .icon::before { content: '🌐'; }
.service-item#mobile-apps .icon::before { content: '📱'; }
.service-item#crm-solutions .icon::before { content: '🤝'; }
.service-item#hr-software .icon::before { content: '👥'; }


.service-item h3 {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.service-item p {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* قسم عملاؤنا */
.customers-section {
    background-color: var(--white-color);
}

/* تعديلات لأنماط صور العملاء لتتناسب مع Slick */
.customer-logos .slick-slide {
    height: 120px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

/* الأنماط الجديدة للوغوهات العملاء */
.customer-logos img {
    max-height: 100px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%); /* جميع اللوجوهات بالأبيض والأسود افتراضياً */
    opacity: 0.7;
    transition: filter 0.5s ease, opacity 0.5s ease; 
}

/* اللوجو النشط في المنتصف (يعود للونه الأصلي) */
.customer-logos .slick-slide.slick-current.slick-center img {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
}

/* اللوجو عند التوقف بالماوس (يعود للونه الأصلي) */
.customer-logos img:hover {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
}


/* أنماط أزرار Slick (الأسهم والنقاط) لتتناسب مع التصميم */
.slick-prev:before, .slick-next:before {
    font-size: 40px;
    color: var(--primary-color);
    opacity: 0.8;
}

.slick-dots li button:before {
    font-size: 12px;
    color: var(--secondary-color);
    opacity: 0.5;
}

.slick-dots li.slick-active button:before {
    color: var(--primary-color);
    opacity: 1;
}


/* قسم اتصل بنا (CTA) */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 60px 0;
}

.cta-section h2 {
    color: var(--white-color);
    margin-bottom: 20px;
}

.cta-section h2::after {
    background-color: var(--white-color);
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


/* تذييل الصفحة (Footer) */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 40px 0;
    font-size: 0.9em;
}

.main-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

/* معلومات الفوتر واللوجو كرابط */
.main-footer .footer-info {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    text-align: center; /* توسيط اللوجو والنص تحته */
    text-decoration: none; /* إزالة خط تحت اللوجو إذا كان رابطاً */
    color: inherit; /* لضمان وراثة اللون من الأب */
}

.main-footer .footer-logo {
    height: 120px; /* تم تكبير اللوجو أكثر هنا (كان 100px) */
    margin-bottom: 15px; /* مسافة أكبر بين اللوجو والنص */
    /* تمت إزالة filter: brightness(200%); هنا */
    animation: blink 2s infinite alternate; 
}

.main-footer .footer-info p {
    font-size: 1.4em; /* تم تكبير الخط هنا (كان 1.2em) */
    color: rgba(255, 255, 255, 0.9); /* لون أفتح وأوضح */
    font-weight: 600; /* جعل الخط أثقل قليلاً */
    line-height: 1.4; /* ضبط ارتفاع السطر */
}

/* تعريف حركة الوميض (Blink Animation) */
@keyframes blink {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}


.main-footer .footer-nav,
.main-footer .contact-details {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.main-footer .footer-nav ul {
    list-style: none;
    padding: 0;
}

.main-footer .footer-nav li {
    margin-bottom: 8px;
}

.main-footer .footer-nav a,
.main-footer .contact-details a {
    color: var(--white-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-footer .footer-nav a:hover,
.main-footer .contact-details a:hover {
    color: var(--primary-color);
}

.main-footer .copyright {
    flex-basis: 100%;
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

/* أنماط صفحة "من نحن" الجديدة */
.page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)); 
    color: var(--white-color);
    padding: 100px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
}

.about-full-section {
    background-color: var(--white-color);
    padding: 80px 0;
}

/* الأنماط لـ h2 و h3 في عن صفحة من نحن */
.about-full-section h2 {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.about-full-section h2::after {
    content: '';
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.about-full-section h3 {
    text-align: center; /* عناوين الأقسام الفرعية في المنتصف */
    color: var(--secondary-color);
    margin-bottom: 30px; /* مسافة كافية بعد العنوان */
    position: relative;
    padding-bottom: 10px;
    font-size: 2em; /* حجم خط لـ h3 */
    margin-top: 50px; /* مسافة أعلى لكل h3 */
}
.about-full-section h3::after {
    content: '';
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    bottom: 0;
    width: 40px; /* خط أقصر لـ h3 */
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}


.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start; /* محاذاة العناصر للأعلى لتجنب تمددها */
    gap: 40px;
    margin-top: 40px;
}

.about-text {
    flex: 2; /* تأخذ مساحة أكبر */
    min-width: 300px;
    text-align: right; /* النص يظل محاذًا لليمين */
}

.about-image {
    flex: 1; /* تأخذ مساحة أقل */
    min-width: 250px;
    text-align: left; /* الصورة على اليسار */
    padding-right: 20px; /* مسافة بين الصورة والنص */
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.work-flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
    text-align: center; /* عناصر "طريقتنا في العمل" تظل في المنتصف */
}

.flow-item {
    background-color: var(--light-bg-color);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.flow-item:hover {
    transform: translateY(-5px);
}

.flow-item i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.flow-item h4 {
    font-size: 1.3em;
    color: var(--secondary-color);
}

.service-field-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    text-align: right;
}

.service-field-list li {
    font-size: 1.1em;
    color: #444;
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.service-field-list li i {
    color: var(--primary-color);
    margin-left: 10px;
    font-size: 1.2em;
}

/* أنماط صفحة الخدمات الجديدة */
.services-full-section {
    background-color: var(--white-color);
    padding: 80px 0;
}

.services-full-section .service-category {
    margin-bottom: 80px;
}

.services-full-section .service-category:last-child {
    margin-bottom: 0;
}

.services-full-section .service-category h2 {
    margin-bottom: 40px;
}

.services-full-section .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.services-full-section .category-item {
    background-color: var(--light-bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-full-section .category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.services-full-section .category-item i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.services-full-section .category-item h3 {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.services-full-section .category-item p {
    font-size: 0.95em;
    color: #666;
}

/* أنماط صفحة اتصل بنا الجديدة */
.contact-full-section {
    background-color: var(--white-color);
    padding: 80px 0;
    text-align: center;
}

.contact-full-section h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.contact-full-section h2::after {
    content: '';
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    text-align: right;
}

.contact-info {
    background-color: var(--light-bg-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-info .info-item i {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-left: 15px;
    min-width: 30px;
}

.contact-info .info-item p {
    font-size: 1.1em;
    color: #444;
    margin: 0;
}

.contact-info .info-item a {
    color: #444;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info .info-item a:hover {
    color: var(--primary-color);
}

/* أنماط المحتوى البديل لنموذج الاتصال */
.contact-alternative-content {
    background-color: var(--light-bg-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: right;
}

.contact-alternative-content h2 {
    text-align: center;
    margin-bottom: 20px;
}

.contact-alternative-content p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.contact-alternative-content .btn {
    margin-top: 20px;
    display: inline-block;
}


.map-container {
    margin-top: 50px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.map-container iframe {
    width: 100%;
    border: 0;
    min-height: 400px;
}


/* تصميم متجاوب (Responsive Design) */
/* نقاط التوقف (Breakpoints) */
@media (max-width: 992px) {
    .page-hero h1 {
        font-size: 3em;
    }
    .about-content {
        flex-direction: column; /* تصبح عمودية في الشاشات الأصغر */
        gap: 30px;
    }
    .about-text, .about-image {
        min-width: unset;
        width: 100%;
        text-align: right; 
        padding-right: 0; 
    }
    .about-image {
        order: -1; 
        text-align: center; 
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 10px 0; /* تقليل البادينج العلوي والسفلي للهيدر */
    }

    .main-header .container {
        flex-direction: row; /* زر القائمة على اليسار واللوجو على اليمين (في RTL) */
        justify-content: space-between;
        align-items: center;
        padding: 0 15px; /* بادينج أفقي ثابت لضمان المسافات */
        flex-wrap: nowrap; /* منع العناصر من النزول لسطر جديد */
    }

    /* يجب أن يكون اللوجو ظاهرًا دائمًا في الموبايل */
    .main-header .logo {
        margin-bottom: 0;
        flex-grow: 0;
        flex-shrink: 0;
        /* تحديد عرض أقصى لضمان عدم خروج اللوجو عن الإطار */
        max-width: 120px; /* يمكن تعديل هذه القيمة */
        order: 2; /* اللوجو في المنتصف */
    }
    
    .main-header .logo img {
        height: 55px; /* حجم اللوجو الأمثل للموبايل */
        width: auto; /* الحفاظ على نسبة الأبعاد */
    }

    .main-header .btn.contact-btn {
        display: none; /* إخفاء زر "اطلب عرضًا" في الموبايل */
    }
    
    /* إظهار زر تبديل اللغة في الموبايل وضبط مكانه */
    .lang-toggle-btn {
        display: block; /* جعله ظاهرًا */
        order: 1; /* يظهر أولاً (أقصى اليمين في RTL) */
        margin-left: auto; /* لدفعه إلى أقصى اليمين */
        margin-right: 10px; /* مسافة من الحافة */
        font-size: 0.75em; /* تصغير حجم الخط أكثر للموبايل */
        padding: 5px 10px; /* تصغير حجم الزر */
        white-space: nowrap; /* لمنع الكلمة من النزول لسطر جديد */
    }

    /* إظهار زر قائمة الهامبرغر فقط في الموبايل */
    .menu-toggle {
        display: block; 
        font-size: 2em; 
        /* في تخطيط RTL، زر الهامبرغر هو العنصر الأخير */
        order: 3; /* يظهر ثالثاً (أقصى اليسار في RTL) */
        margin-right: 0; /* إلغاء أي هامش أيمن قديم */
        margin-left: 10px; /* مسافة من الحافة */
    }

    /* إعدادات القائمة الرئيسية في وضع الموبايل */
    .main-nav {
        flex-basis: 100%; /* تأخذ 100% من العرض لأسفل الهيدر */
        display: none; /* مخفية افتراضياً */
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        max-height: 0;
        order: 4; /* تأكد أنها تظهر أسفل كل شيء في الهيدر */
        background-color: var(--white-color); /* خلفية القائمة المنسدلة */
        position: absolute; /* لجعلها تظهر فوق المحتوى عند الفتح */
        width: 100%;
        left: 0;
        top: 80px; /* أو أي ارتفاع مناسب بعد الهيدر */
        box-shadow: 0 5px 10px rgba(0,0,0,0.1); /* ظل خفيف */
    }

    .main-nav.active {
        display: block; /* إظهار القائمة عند تفعيلها بالـ JS */
        max-height: 500px; /* قيمة كافية لاستيعاب جميع عناصر القائمة */
    }

    .main-nav ul {
        flex-direction: column; /* جعل عناصر القائمة عمودية */
        align-items: flex-end; /* محاذاة عناصر القائمة لليمين (بداية القائمة في RTL) */
        margin: 0;
        width: 100%;
        padding: 20px 15px; /* بادينج داخلي للقائمة لتبدو مرتبة */
        /* لا نحتاج border-top هنا إذا كانت القائمة مستقلة بظل */
    }

    .main-nav ul li {
        margin-right: 0; 
        margin-bottom: 15px; /* مسافة بين عناصر القائمة */
        width: 100%;
        text-align: right; /* محاذاة كل عنصر رابط لليمين */
    }

    .main-nav ul li:last-child {
        margin-bottom: 0;
    }

    /* القائمة المنسدلة الفرعية في الجوال (Dropdowns) */
    .main-nav .dropdown {
        position: static; /* تصبح جزءاً من التدفق الطبيعي في الموبايل */
        box-shadow: none;
        background-color: transparent; /* بدون خلفية لأن العنصر الأب لديه خلفية */
        min-width: unset;
        padding: 5px 0 0 0; /* تقليل البادينج للداخل أكثر */
        text-align: right; 
        display: block; /* تظهر دائماً تحت العنصر الرئيسي في وضع الجوال */
        border: none;
    }

    .main-nav .dropdown li a {
        padding: 5px 0 5px 20px; /* بادينج لتمييزها كعناصر فرعية */
        color: #666;
    }
}

/* LTR Mode Styles */
body.ltr-mode {
    direction: ltr;
    text-align: left;
}

/* تعديل الـ container في وضع LTR ليسمح باللوجو والقائمة على اليسار والأزرار على اليمين */
body.ltr-mode .main-header .container {
    flex-direction: row; /* العناصر من اليسار لليمين */
    justify-content: flex-start; /* كل شيء يلتصق باليسار مبدئياً */
    align-items: center; /* محاذاة عمودية */
}

body.ltr-mode .main-header .logo {
    margin-right: 20px; /* مسافة على يمين اللوجو */
    margin-left: 0; /* إزالة هامش يسار إذا كان موجوداً */
    flex-shrink: 0; /* منع اللوجو من التقلص */
}

body.ltr-mode .main-nav {
    margin: 0; /* إزالة أي هوامش تلقائية كانت تدفعه */
    flex-grow: 1; /* السماح للقائمة بالتوسع لملء المساحة المتاحة */
}

body.ltr-mode .main-nav ul {
    justify-content: flex-start; /* عناصر القائمة تبدأ من اليسار داخل الـ nav */
    margin: 0; /* تأكد من عدم وجود هوامش زائدة */
    padding: 0; /* تأكد من عدم وجود هوامش زائدة */
}

body.ltr-mode .main-nav ul li {
    margin-right: 0; /* إلغاء الهامش الأيمن من وضع RTL */
    margin-left: 25px; /* إضافة هامش أيسر بين عناصر القائمة في LTR */
}

body.ltr-mode .main-nav ul li:first-child {
    margin-left: 0; /* العنصر الأول (Home) لا يحتاج هامش أيسر */
}

body.ltr-mode .main-nav .dropdown {
    right: auto; /* إلغاء محاذاة اليمين للقائمة المنسدلة الفرعية */
    left: 0; /* محاذاة اليسار للقائمة المنسدلة الفرعية */
    text-align: left; /* محاذاة النص في القائمة المنسدلة لليسار */
}

/* دفع زر تبديل اللغة والأزرار اللاحقة إلى أقصى اليمين */
body.ltr-mode .lang-toggle-btn {
    margin-left: auto; /* هذا هو المفتاح: يدفع الزر وكل ما يليه إلى أقصى اليمين */
    margin-right: 15px; /* مسافة على يمين الزر نفسه */
    flex-shrink: 0; /* منع الزر من التقلص */
}

body.ltr-mode .main-header .btn.contact-btn {
    margin-right: 0; /* إزالة أي هامش أيمن افتراضي */
    margin-left: 20px; /* مسافة على يسار زر اطلب عرضاً */
    flex-shrink: 0; /* منع الزر من التقلص */
}


body.ltr-mode .about-section .about-text {
    text-align: left; /* For LTR */
}

body.ltr-mode .about-section .about-image {
    text-align: right; /* Image on the right for LTR */
}

body.ltr-mode .contact-info p {
    justify-content: flex-start; /* Align contact info to the left for LTR */
}

body.ltr-mode .contact-info i {
    margin-left: 0; /* Remove left margin */
    margin-right: 10px; /* Space between icon and text for LTR */
}

body.ltr-mode .contact-form label,
body.ltr-mode .contact-form input,
body.ltr-mode .contact-form textarea {
    text-align: left; /* For LTR */
}

body.ltr-mode .contact-form button {
    align-self: flex-start; /* Align button to the left for LTR */
}

body.ltr-mode .service-field-list,
body.ltr-mode .service-category ul {
    text-align: left; /* For LTR */
}

body.ltr-mode .service-field-list li i,
body.ltr-mode .service-category ul li i {
    margin-left: 0; /* Remove left margin */
    margin-right: 10px; /* Space between icon and text for LTR */
}

/* Responsive adjustments for LTR mode */
@media (max-width: 768px) {
    body.ltr-mode .main-header .container {
        flex-direction: row-reverse; /* زر الهامبرغر على اليمين، اللوجو في الوسط، زر اللغة على اليسار */
        /* لا حاجة لـ justify-content: space-between; هنا إذا كنا نستخدم order و auto margins بشكل فعال */
    }
    body.ltr-mode .main-header .logo {
        order: 2; /* اللوجو في الوسط */
        margin-left: auto; /* لدفعه للمنتصف */
        margin-right: auto;
    }
    body.ltr-mode .menu-toggle {
        order: 1; /* الهامبرغر على أقصى اليمين (في LTR) */
        margin-right: 10px; /* مسافة من الحافة */
        margin-left: auto; /* يدفعه لليمين */
    }
    body.ltr-mode .lang-toggle-btn {
        order: 3; /* زر اللغة على أقصى اليسار (في LTR) */
        margin-left: 10px; /* مسافة من الحافة */
        margin-right: auto; /* يدفعه لليسار */
    }

    body.ltr-mode .main-nav ul {
        align-items: flex-start; /* محاذاة عناصر القائمة لليسار (بداية القائمة في LTR) */
        justify-content: flex-start; /* تأكيد البدء من اليسار */
    }

    body.ltr-mode .main-nav ul li {
        text-align: left; /* محاذاة كل عنصر رابط لليسار */
    }

    body.ltr-mode .main-nav .dropdown {
        padding-left: 20px; /* Indent dropdown items */
        padding-right: 0;
    }

    body.ltr-mode .contact-info p {
        justify-content: center; /* Center contact info on small screens */
    }
}