/* IMEDIC RTL Styles for Arabic */

[dir="ar"] {
    text-align: right;
    font-family: 'Cairo', sans-serif;
}

[dir="ar"] .nav-links {
    margin-right: auto;
    margin-left: initial;
    flex-direction: row-reverse;
}

[dir="ar"] .lang-switcher {
    margin-right: 1.5rem;
    margin-left: 0;
    border-right: 1px solid rgba(255,255,255,0.2);
    border-left: none;
    padding-right: 1rem;
    padding-left: 0;
    flex-direction: row-reverse;
}

[dir="ar"] header.scrolled .lang-switcher {
    border-right-color: var(--border);
}

/* Mobile RTL nav lang-switcher fix */
@media (max-width: 768px) {
    [dir="ar"] .nav-links .lang-switcher {
        margin-right: 0;
        border-right: none;
        border-top: 1px solid var(--border);
        padding-right: 0;
        flex-direction: row;
    }
}

[dir="ar"] .hero-content {
    text-align: right;
}

[dir="ar"] .hero-actions {
    justify-content: flex-start;
    flex-direction: row-reverse;
}

[dir="ar"] .badge-dot {
    margin-left: 0.5rem;
    margin-right: 0;
}

[dir="ar"] .stat-unit {
    margin-right: 0.15rem;
    margin-left: 0;
}

[dir="ar"] .feature-pills {
    justify-content: flex-start;
    flex-direction: row-reverse;
}

[dir="ar"] .pill {
    flex-direction: row-reverse;
}



[dir="ar"] .service-card-link {
    flex-direction: row-reverse;
}

[dir="ar"] .service-card-link svg {
    transform: scaleX(-1);
}

[dir="ar"] .service-card-link:hover svg {
    transform: scaleX(-1) translateX(-3px);
}

[dir="ar"] .footer-grid {
    direction: rtl;
}

[dir="ar"] .footer-col a:hover {
    padding-left: 0;
    padding-right: 4px;
}

[dir="ar"] .menu-toggle svg {
    transform: scaleX(-1);
}

/* Timeline in Tracking Page */
[dir="ar"] .update-card {
    direction: rtl !important;
}

[dir="ar"] .update-content {
    text-align: right;
}

/* Contact & Forms */
[dir="ar"] .form-label {
    text-align: right;
}

[dir="ar"] .form-control {
    text-align: right;
}

/* FAQ */
[dir="ar"] .faq-question {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="ar"] .faq-chevron {
    margin-left: 0;
    margin-right: auto;
}

/* Tracking Page Specifics */
[dir="ar"] .phase-card {
    text-align: right;
}

[dir="ar"] .board-card {
    text-align: right;
}

[dir="ar"] .board-card.president {
    text-align: center;
}

[dir="ar"] .partners-slider {
    animation: scrollMarqueeRTL 40s linear infinite;
}

@keyframes scrollMarqueeRTL {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(250px * 10)); }
}

[dir="ar"] .update-feed .section-header {
    text-align: right;
}

[dir="ar"] .update-feed .section-subtitle {
    margin-right: 0;
    margin-left: auto;
}
