/*
 * LMS Home Page — RTL Overrides (Arabic)
 * Scoped under .lms-home-rtl
 * Loaded alongside lms-home.css for the Arabic home page
 */

/* Google Font: Cairo */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* Global RTL Direction */
.lms-home-rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', 'Inter', system-ui, -apple-system, sans-serif;
}

.lms-home-rtl * {
    font-family: inherit;
}

/* Hero Section */
.lms-home-rtl .lms-home-hero-label {
    direction: rtl;
}

.lms-home-rtl .lms-home-hero-title {
    font-family: 'Cairo', sans-serif;
}

.lms-home-rtl .lms-home-hero-subtitle {
    font-family: 'Cairo', sans-serif;
}

.lms-home-rtl .lms-home-btn {
    font-family: 'Cairo', sans-serif;
    flex-direction: row-reverse;
}

.lms-home-rtl .lms-home-btn svg {
    transform: scaleX(-1);
}

/* Product Section */
.lms-home-rtl .lms-home-product-card {
    direction: rtl;
    text-align: right;
}

.lms-home-rtl .lms-home-product-card .lms-home-product-info {
    text-align: right;
}

.lms-home-rtl .lms-home-btn-dark {
    font-family: 'Cairo', sans-serif;
    flex-direction: row-reverse;
}

.lms-home-rtl .lms-home-btn-dark svg {
    transform: scaleX(-1);
}

/* Learn / Modules Section */
.lms-home-rtl .lms-home-learn-grid {
    direction: rtl;
}

.lms-home-rtl .lms-home-module-card {
    text-align: right;
}

.lms-home-rtl .lms-home-module-number {
    margin-left: 16px;
    margin-right: 0;
}

.lms-home-rtl .lms-home-module-lessons {
    text-align: right;
}

/* Bottom CTA Section */
.lms-home-rtl .lms-home-bottom-section {
    direction: rtl;
    text-align: right;
}

/* About Section */
.lms-home-rtl .lms-home-about-section {
    direction: rtl;
    text-align: right;
}

.lms-home-rtl .lms-home-about-title {
    font-family: 'Cairo', sans-serif;
}

.lms-home-rtl .lms-home-modal-close {
    right: auto;
    left: 20px;
}

/* FAQ Section */
.lms-home-rtl .lms-home-faq-section {
    direction: rtl;
    text-align: right;
}

.lms-home-rtl .lms-home-faq-question {
    text-align: right;
    flex-direction: row-reverse;
}

.lms-home-rtl .lms-home-faq-question span:first-child {
    text-align: right;
    flex: 1;
}

.lms-home-rtl .lms-home-faq-answer {
    text-align: right;
}

/* Social Section */
.lms-home-rtl .lms-home-social-section {
    direction: rtl;
}

/* Sticky CTA */
.lms-home-rtl .lms-fx-sticky-cta {
    right: auto;
    left: 24px;
}

.lms-home-rtl .lms-fx-sticky-cta a {
    font-family: 'Cairo', sans-serif;
    flex-direction: row-reverse;
}

.lms-home-rtl .lms-fx-sticky-cta a svg {
    transform: scaleX(-1);
}

/* Responsive */
@media (max-width: 480px) {
    .lms-home-rtl .lms-fx-sticky-cta {
        left: 16px;
        right: 16px;
    }
}

@media (max-width: 900px) {
    .lms-home-rtl .lms-home-product-card {
        text-align: right;
    }
}