/* Arabic RTL Specific Styles */

/* RTL Typography */
html[dir="rtl"] body {
    font-family: 'Inter', 'Segoe UI', 'Tahoma', Arial, sans-serif;
    direction: rtl;
    text-align: right;
}

/* Header RTL Adjustments */
/* Header RTL Adjustments - row-reverse removed to allow natural RTL flow */

html[dir="rtl"] .nav-link {
    margin-right: 0;
    margin-left: 2rem;
}

/* Button Icon Spacing (RTL) */
html[dir="rtl"] .btn-primary svg {
    margin-right: 0;
    margin-left: 8px;
}

/* Hero Section RTL */
html[dir="rtl"] .hero-content {
    text-align: right;
}

html[dir="rtl"] .hero-cta {
    justify-content: flex-start;
}

/* Service Items RTL */
html[dir="rtl"] .service-item {
    flex-direction: row-reverse;
}

html[dir="rtl"] .service-item-reverse {
    flex-direction: row;
}

html[dir="rtl"] .service-icon {
    margin-right: 0;
    margin-left: 2.5rem;
}

html[dir="rtl"] .service-list {
    padding-right: 1.5rem;
    padding-left: 0;
}

html[dir="rtl"] .service-list li::before {
    right: -1.5rem;
    left: auto;
}

/* Quick Cards RTL */
html[dir="rtl"] .quick-card {
    text-align: center;
}

/* Contact Form RTL */
html[dir="rtl"] .contact-form input,
html[dir="rtl"] .contact-form select,
html[dir="rtl"] .contact-form textarea {
    text-align: right;
}

html[dir="rtl"] .contact-form label {
    text-align: right;
}

/* Contact Info RTL */
html[dir="rtl"] .contact-method {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .contact-icon {
    margin-right: 0;
    margin-left: 1.5rem;
}

/* Footer RTL */
html[dir="rtl"] .footer-content {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-col {
    text-align: right;
}

html[dir="rtl"] .footer-col ul {
    padding-right: 0;
}

html[dir="rtl"] .social-links {
    justify-content: flex-start;
}

/* Steps RTL */
html[dir="rtl"] .step,
html[dir="rtl"] .process-step {
    flex-direction: row-reverse;
}

html[dir="rtl"] .step-number {
    margin-right: 0;
    margin-left: 1.5rem;
}

html[dir="rtl"] .step-content {
    text-align: right;
}

/* Pillars RTL */
html[dir="rtl"] .pillar {
    text-align: right;
}

/* Industry Cards RTL */
html[dir="rtl"] .industry-card {
    text-align: center;
    align-items: center;
}

html[dir="rtl"] .industry-link {
    flex-direction: row-reverse;
    justify-content: center;
}

html[dir="rtl"] .industry-link svg {
    transform: rotate(180deg);
    /* Flip arrow */
}

/* Badges RTL */
html[dir="rtl"] .hero-badges {
    justify-content: center;
    /* Keep centered */
    flex-wrap: wrap;
    /* Allow wrap */
    flex-direction: row;
    /* Normal row flow */
}

/* About Content RTL */
html[dir="rtl"] .about-content {
    text-align: right;
}

html[dir="rtl"] .about-text {
    text-align: right;
}

/* Section Headers RTL */
html[dir="rtl"] .section-header {
    text-align: right;
}

/* Mobile Menu RTL */
@media (max-width: 768px) {

    /* Keep header as normal row on mobile (logo left, lang center, hamburger right) */
    html[dir="rtl"] .header-content {
        flex-direction: row;
    }

    html[dir="rtl"] .nav {
        text-align: right;
        flex-direction: column;
        align-items: flex-start;

        /* RTL Slide Animation - from right */
        left: auto !important;
        right: -100%;
        border-right: none;
        border-left: 1px solid rgba(20, 184, 166, 0.2);
        transition: right 0.3s ease-in-out;
    }

    html[dir="rtl"] .nav.active {
        left: auto !important;
        right: 0;
    }

    html[dir="rtl"] .nav-link {
        margin-left: 0;
        width: 100%;
        text-align: right;
    }

    html[dir="rtl"] .mobile-menu-toggle {
        order: 3;
    }

    html[dir="rtl"] .logo {
        order: 1;
    }

    html[dir="rtl"] .header-actions {
        order: 2;
    }
}

/* Steps Decoration RTL */
html[dir="rtl"] .step {
    border-left: none;
    border-right: 4px solid var(--color-secondary-teal);
}

html[dir="rtl"] .step:hover {
    border-left-color: transparent;
    /* Reset default hover */
    border-right-color: var(--color-accent-gold);
    transform: translateX(-10px);
    /* Flip translation direction */
}

/* Team Skills List RTL */
html[dir="rtl"] .team-skills {
    text-align: right;
}

html[dir="rtl"] .team-skills li {
    padding-left: 0;
    padding-right: 1.5rem;
}

html[dir="rtl"] .team-skills li::before {
    left: auto;
    right: 0;
}

/* Skill Card List RTL */
html[dir="rtl"] .skill-card ul {
    text-align: right;
}

html[dir="rtl"] .skill-card ul li {
    padding-left: 0;
    padding-right: 1rem;
}

html[dir="rtl"] .skill-card ul li::before {
    left: auto;
    right: 0;
}

/* Project Results RTL */
html[dir="rtl"] .project-results li {
    padding-left: 0;
    padding-right: 1.2rem;
}

html[dir="rtl"] .project-results li::before {
    left: auto;
    right: 0;
}

/* Process Steps RTL */
html[dir="rtl"] .process-step {
    flex-direction: row-reverse;
}

html[dir="rtl"] .process-step:hover {
    transform: translateX(-10px);
}

/* Timeline Steps RTL */
html[dir="rtl"] .timeline-step {
    flex-direction: row-reverse;
}

html[dir="rtl"] .timeline-step:hover {
    transform: translateX(-10px);
}

/* Courses Card RTL */
html[dir="rtl"] .course-badge {
    left: auto;
    right: -10px;
}

html[dir="rtl"] .course-tag {
    flex-direction: row-reverse;
}

html[dir="rtl"] .course-title {
    text-align: right;
}

html[dir="rtl"] .course-subtitle-en {
    text-align: right;
    direction: ltr;
    /* English text should stay LTR but aligned right? Or just keep it as is. */
    /* Actually English subtitle 'Restaurant Financial Mastery' should probably be LTR */
    display: block;
    width: 100%;
    margin-right: 0;
}