/* RTL Layout Overrides for Arabic */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] body {
    font-family: 'Tajawal', 'Inter', sans-serif;
}

/* Navbar RTL */
html[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

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

/* Mobile Menu RTL - Override flex-direction for mobile */
@media (max-width: 768px) {
    html[dir="rtl"] .nav-menu {
        flex-direction: column !important;
    }
}

/* Grid RTL - reverse order */
html[dir="rtl"] .grid {
    direction: rtl;
}

/* Lists */
html[dir="rtl"] ul {
    padding-right: 1rem;
    padding-left: 0;
}

/* Flex items with gap */
html[dir="rtl"] [style*="gap"] {
    direction: rtl;
}

/* Buttons */
html[dir="rtl"] .btn {
    direction: rtl;
}

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

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

/* Card content */
html[dir="rtl"] .card {
    text-align: right;
}

/* Form inputs */
html[dir="rtl"] input,
html[dir="rtl"] textarea {
    text-align: right;
    direction: rtl;
}

/* Numbered items - keep numbers on right */
html[dir="rtl"] [style*="flex"][style*="gap"]>span:first-child {
    order: 0;
}

/* Checkmarks and icons alignment */
html[dir="rtl"] .text-orange+span,
html[dir="rtl"] span+strong {
    margin-right: 0;
    margin-left: auto;
}