/* RTL (Right-to-Left) styles for Arabic version */

body {
    direction: rtl;
    text-align: right;
    font-family: 'Tajawal', sans-serif;
}

/* Header */
header .container {
    flex-direction: row-reverse;
}

nav {
    order: 1;
}

.language-switcher-container {
    order: 2;
}

.logo {
    order: 3;
}

nav ul {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

nav ul li:first-child {
    margin-right: 0;
}

nav ul li {
    margin-right: 30px;
    margin-left: 0;
}

.hamburger {
    margin-right: auto;
    margin-left: 0;
}

/* About Section */
.about-content {
    direction: rtl;
}

/* Why Us Section */
.reason-card {
    direction: rtl;
}

/* Services Section */
.service-card {
    direction: rtl;
}

.service-card ul {
    text-align: right;
}

.service-card ul li {
    padding-right: 20px;
    padding-left: 0;
}

.service-card ul li::before {
    right: 0;
    left: auto;
}

/* Contact Section */
.contact-item i {
    margin-left: 15px;
    margin-right: 0;
}

.form-group label {
    text-align: right;
}

/* Footer */
.footer-links h3::after,
.footer-contact h3::after,
.footer-social h3::after {
    right: 0;
    left: auto;
}

.footer-contact p i {
    margin-left: 10px;
    margin-right: 0;
}

/* Projects Page */
.project-info {
    text-align: right;
}

.services-provided ul {
    padding-right: 20px;
    padding-left: 0;
}

/* Service Process */
.step {
    flex-direction: row-reverse;
}

.step-number {
    margin-left: 20px;
    margin-right: 0;
}

.step:not(:last-child)::after {
    right: 25px;
    left: auto;
}

/* Team Section */
.team-member {
    direction: rtl;
}

/* Organizational Chart */
.org-chart-content {
    direction: rtl;
}

.org-level::after {
    right: 50%;
    left: auto;
    transform: translateX(50%);
}

.org-box {
    direction: rtl;
}

/* Credentials Section */
.credential-info {
    direction: rtl;
}

/* FAQ Section */
.faq-item {
    direction: rtl;
}

/* Responsive Styles */
@media (max-width: 992px) {
    /* Reset the order for mobile view */
    nav, .language-switcher-container, .logo {
        order: initial;
    }
    
    header .container {
        flex-direction: row-reverse;
    }
    
    .hamburger {
        margin-right: auto;
        margin-left: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav ul.show {
        display: flex;
        position: absolute;
        top: 80px;
        right: 0;
        left: auto;
        width: 100%;
        background-color: #ffffff;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        text-align: right;
    }
    
    nav ul li {
        margin: 10px 0;
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        width: 100%;
    }
}
