/* Yongchi Auto - Arabic RTL Styles */
/* Overrides for right-to-left layout */

/* RTL Base */
body {
    direction: rtl;
    text-align: right;
    font-family: 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
}

/* Header RTL */
.header .container {
    flex-direction: row-reverse;
}
.nav ul {
    flex-direction: row-reverse;
}
.lang-switch {
    margin-right: 0;
    margin-left: auto;
}

/* Hero RTL */
.hero, .slide .hero-content {
    text-align: center;
}

/* Features RTL */
.section-title:after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

/* Vehicle Cards */
.vehicle-card {
    text-align: right;
}
.price {
    text-align: right;
}
.vehicle-info .btn-outline {
    float: left;
}

/* CTA */
.cta {
    text-align: center;
}

/* Footer RTL */
.footer {
    text-align: right;
}
.footer-grid {
    direction: rtl;
}

/* Blog/Category RTL */
.blog-layout {
    direction: rtl;
}
.blog-content {
    text-align: right;
}
.sidebar-widget {
    text-align: right;
}

/* Breadcrumbs RTL */
.breadcrumbs {
    direction: rtl;
    text-align: right;
}

/* Page Content RTL */
.content-body {
    text-align: right;
}
.content-body ul, .content-body ol {
    padding-right: 20px;
    padding-left: 0;
}

/* Vehicle Detail RTL */
.vehicle-detail-layout {
    direction: rtl;
}
.features ul li {
    padding-right: 25px;
    padding-left: 0;
}
.features ul li:before {
    left: auto;
    right: 0;
}

/* Vehicle Detail features list */
.vehicle-info .features ul li {
    padding-right: 25px;
}

/* Sidebar RTL */
.vehicle-sidebar .sidebar-widget {
    text-align: right;
}

/* Mobile toggle RTL - keep on left */
.mobile-toggle {
    margin-left: 0;
    margin-right: auto;
}

/* Language switcher */
.lang-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-start;
}
.lang-switch a {
    display: inline-block;
}

/* Page header */
.page-header {
    text-align: right;
}

/* Pagination */
.pagination-wrap {
    direction: rtl;
}

/* Inquiry form RTL */
.inquiry-form {
    text-align: right;
}
.inquiry-form label {
    text-align: right;
}
.inquiry-form .form-group {
    text-align: right;
}
.inquiry-form input,
.inquiry-form textarea,
.inquiry-form select {
    text-align: right;
    direction: rtl;
}

/* Form controls */
.form-control {
    direction: rtl;
    text-align: right;
}

/* Product detail */
.product-detail {
    text-align: right;
}

/* Button alignment */
.btn + .btn {
    margin-right: 10px;
    margin-left: 0;
}

/* Mobile responsive RTL */
@media (max-width: 768px) {
    .nav ul {
        flex-direction: column;
        text-align: right;
    }
    .header .container {
        flex-direction: row;
    }
    .mobile-toggle {
        margin-left: 0;
        margin-right: auto;
        order: -1;
    }
    .logo {
        flex: 1;
        text-align: right;
    }
    .lang-switch {
        order: 1;
    }
}
