/* RTL Support for Arabic Language */
.rtl {
    direction: rtl;
    text-align: right;
}

/* Header RTL */
.rtl .header-inner {
    flex-direction: row-reverse;
}

.rtl .navigation {
    flex-direction: row-reverse;
}

.rtl .navigation li {
    margin-left: 0;
    margin-right: 30px;
}

.rtl .about-social {
    order: -1;
}

/* Hero Section RTL */
.rtl .modern-hero .grid {
    direction: rtl;
}

.rtl .modern-hero .order-1 {
    order: 2;
}

.rtl .modern-hero .order-2 {
    order: 1;
}

.rtl .lg\:text-left {
    text-align: right !important;
}

.rtl .lg\:justify-start {
    justify-content: flex-end !important;
}

/* Buttons RTL */
.rtl .modern-btn i {
    margin-left: 0;
    margin-right: 8px;
}

.rtl .group-hover\:translate-x-1:hover {
    transform: translateX(-4px);
}

/* Stats Grid RTL */
.rtl .grid-cols-3 {
    direction: ltr;
}

/* Gallery RTL */
.rtl .modern-gallery {
    direction: ltr;
}

.rtl .modern-gallery-overlay {
    text-align: left;
}

/* Footer RTL */
.rtl .mobile-nav-container {
    flex-direction: row-reverse;
}

/* Contact Cards RTL */
.rtl .grid {
    direction: rtl;
}

.rtl .modern-card {
    text-align: right;
}

/* Menu RTL */
.rtl .main-category-buttons {
    flex-direction: row-reverse;
}

.rtl .menu-grid {
    direction: rtl;
}

.rtl .menu-item {
    text-align: right;
}

.rtl .menu-item-footer {
    flex-direction: row-reverse;
}

/* Language Switcher RTL Adjustments */
.rtl .language-switcher {
    right: auto;
    left: 20px;
}

.rtl .language-dropdown {
    right: auto;
    left: 100%;
    margin-right: 0;
    margin-left: 15px;
}

/* Typography RTL */
.rtl h1, .rtl h2, .rtl h3, .rtl h4, .rtl h5, .rtl h6 {
    text-align: right;
}

.rtl p {
    text-align: right;
}

/* Flex RTL */
.rtl .flex {
    flex-direction: row-reverse;
}

.rtl .sm\:flex-row {
    flex-direction: row-reverse !important;
}

/* Icons RTL */
.rtl .ri-arrow-down-line,
.rtl .ri-arrow-right-line {
    transform: scaleX(-1);
}

/* About Page RTL */
.rtl .about-content-part {
    text-align: right;
}

.rtl .service-item {
    text-align: right;
}

.rtl .service-item i {
    float: right;
    margin-left: 15px;
    margin-right: 0;
}

/* Contact Page RTL */
.rtl .modern-cta {
    text-align: right;
}

/* Responsive RTL */
@media (max-width: 768px) {
    .rtl .language-switcher {
        left: 15px;
        right: auto;
    }
    
    .rtl .language-dropdown {
        left: 0;
        right: auto;
        margin-left: 0;
    }
    
    .rtl .mobile-header-container {
        flex-direction: row-reverse;
    }
}

/* Animation RTL */
.rtl .group-hover\:translate-x-1:hover {
    transform: translateX(-4px);
}

.rtl .group-hover\:translate-y-1:hover {
    transform: translateY(4px);
}

/* Form RTL */
.rtl input, .rtl textarea, .rtl select {
    text-align: right;
}

/* Table RTL */
.rtl table {
    direction: rtl;
}

.rtl th, .rtl td {
    text-align: right;
}

/* List RTL */
.rtl ul, .rtl ol {
    padding-right: 20px;
    padding-left: 0;
}

/* Margin and Padding RTL */
.rtl .mr-2 {
    margin-right: 0;
    margin-left: 0.5rem;
}

.rtl .ml-2 {
    margin-left: 0;
    margin-right: 0.5rem;
}

.rtl .mr-4 {
    margin-right: 0;
    margin-left: 1rem;
}

.rtl .ml-4 {
    margin-left: 0;
    margin-right: 1rem;
}

/* Border RTL */
.rtl .border-r {
    border-right: none;
    border-left: 1px solid;
}

.rtl .border-l {
    border-left: none;
    border-right: 1px solid;
}

/* Position RTL */
.rtl .right-0 {
    right: auto;
    left: 0;
}

.rtl .left-0 {
    left: auto;
    right: 0;
}

/* Text Alignment RTL */
.rtl .text-left {
    text-align: right !important;
}

.rtl .text-right {
    text-align: left !important;
}

/* Justify Content RTL */
.rtl .justify-start {
    justify-content: flex-end !important;
}

.rtl .justify-end {
    justify-content: flex-start !important;
}

/* Items Alignment RTL */
.rtl .items-start {
    align-items: flex-end !important;
}

.rtl .items-end {
    align-items: flex-start !important;
}
