/* First Al Nahla - RTL Specific Styles */

/* Override LTR styles for Arabic/RTL layout */
body.rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Tajawal', sans-serif;
}

/* Flip float directions */
body.rtl .header-content,
body.rtl .overview-content,
body.rtl .footer-grid,
body.rtl .contact-grid {
    direction: rtl;
}

/* Navigation adjustments */
body.rtl .nav-menu {
    padding-right: 0;
}

body.rtl .dropdown-content {
    left: auto;
    right: 0;
    text-align: right;
}

body.rtl .nav-link.active::after {
    left: auto;
    right: 0;
}

/* Slider adjustments */
body.rtl .slider-controls {
    flex-direction: row-reverse;
}

/* Section title underline */
body.rtl .section-title::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

/* Service cards */
body.rtl .service-link i {
    transform: rotate(180deg);
    margin-right: 0.5rem;
    margin-left: 0;
}

/* Footer adjustments */
body.rtl .footer-title::after {
    left: auto;
    right: 0;
}

body.rtl .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

body.rtl .footer-contact li {
    flex-direction: row-reverse;
}

/* Form adjustments */
body.rtl .form-group {
    text-align: right;
}

body.rtl textarea {
    text-align: right;
}

body.rtl select {
    text-align: right;
    padding-right: 1rem;
}

/* List adjustments */
body.rtl ol,
body.rtl ul {
    padding-right: 1.5rem;
    padding-left: 0;
}

body.rtl .features-grid {
    direction: rtl;
}

/* Team member adjustments */
body.rtl .member-info {
    text-align: center;
}

/* Stats container */
body.rtl .stats-container {
    direction: rtl;
}

/* CTA buttons */
body.rtl .cta-buttons {
    direction: rtl;
}

/* Language switcher position */
body.rtl .lang-switcher {
    right: auto;
    left: 20px;
}

/* Mobile menu */
@media (max-width: 767px) {
    body.rtl .nav-menu {
        right: 0;
        left: auto;
        text-align: right;
    }
    
    body.rtl .dropdown-content {
        padding-right: var(--spacing-md);
        padding-left: 0;
    }
}

/* Service page adjustments */
body.rtl .service-details {
    direction: rtl;
}

body.rtl .related-services a:hover {
    padding-left: 0;
    padding-right: 5px;
}

body.rtl .feature-item {
    flex-direction: row-reverse;
    text-align: right;
}

body.rtl .feature-icon {
    margin-right: 0;
    margin-left: var(--spacing-sm);
}

/* Contact info adjustments */
body.rtl .info-item {
    flex-direction: row-reverse;
    text-align: right;
}

/* Fix for form elements in RTL */
body.rtl input,
body.rtl textarea,
body.rtl select {
    text-align: right;
}

/* Fix for buttons with icons */
body.rtl .btn i {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Breadcrumb adjustments if added later */
body.rtl .breadcrumb-item + .breadcrumb-item::before {
    content: "\\";
    float: right;
    padding-right: 0;
    padding-left: 0.5rem;
}