/* ========================================
   RTL Overrides for Arabic language support
   Only activates when dir="rtl" is set on <html>
   ======================================== */

/* Global text alignment */
[dir="rtl"] body {
    text-align: right;
}

/* Header */
[dir="rtl"] .header-item-wrapper {
    flex-direction: row-reverse;
}

[dir="rtl"] header nav ul {
    flex-direction: row-reverse;
}

[dir="rtl"] .header-right {
    flex-direction: row-reverse;
}

[dir="rtl"] .hr-btns {
    flex-direction: row-reverse;
}

/* Navigation dropdowns */
[dir="rtl"] .nav-dropdown-menu {
    left: auto;
    right: 0;
}

/* Hamburger menu */
[dir="rtl"] .header-hamburger {
    left: 20px;
    right: auto;
}

/* Statistics boxes */
[dir="rtl"] .sb-inner {
    flex-direction: row-reverse;
}

[dir="rtl"] .sb-detail {
    text-align: right;
}

/* Info video boxes - alternate layout */
[dir="rtl"] .info-video-box {
    flex-direction: row-reverse;
}

[dir="rtl"] .info-video-right {
    text-align: right;
    align-items: flex-end;
}

/* Features boxes */
[dir="rtl"] .features-box .fb-text {
    text-align: right;
}

/* How it works */
[dir="rtl"] .how-it-work-box-wrapper {
    flex-direction: row-reverse;
}

[dir="rtl"] .hiw-box-right ul li {
    flex-direction: row-reverse;
}

[dir="rtl"] .hiw-br-text {
    text-align: right;
}

/* Download app tabs */
[dir="rtl"] .dta-box-wrapper {
    flex-direction: row-reverse;
}

[dir="rtl"] .dta-box-left {
    text-align: right;
}

[dir="rtl"] .dta-tab-content {
    text-align: right;
}

/* Why choose boxes */
[dir="rtl"] .why-choose-box {
    text-align: right;
}

/* Title boxes */
[dir="rtl"] .title-box {
    text-align: right;
}

[dir="rtl"] .title-box-center {
    text-align: center;
}

/* Cookie banner */
[dir="rtl"] .cookie-banner-body {
    text-align: right;
}

/* Flex utility overrides for RTL */
[dir="rtl"] .rlms-flex.rlms-gap-5,
[dir="rtl"] .rlms-flex.rlms-gap-10,
[dir="rtl"] .rlms-flex.rlms-gap-20 {
    /* flex-direction is inherited, just need text alignment */
}

/* EFL page (why-efl) */
[dir="rtl"] .frame-1-inner {
    text-align: right;
}

[dir="rtl"] .frame-2-inner {
    text-align: right;
}

[dir="rtl"] .frame-2-boxes {
    direction: rtl;
}

[dir="rtl"] .frame-2-box {
    text-align: right;
}

[dir="rtl"] .frame-3-inner {
    flex-direction: row-reverse;
}

[dir="rtl"] .frame-3-right {
    text-align: right;
}

[dir="rtl"] .frame-4-feature-row {
    direction: rtl;
}

[dir="rtl"] .frame-5 {
    flex-direction: row-reverse;
}

[dir="rtl"] .frame-5-left {
    text-align: right;
}

[dir="rtl"] .frame-5-left ul li {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .frame-6 {
    text-align: right;
}

[dir="rtl"] .fsb {
    text-align: right;
}

/* Compare page */
[dir="rtl"] .frame-11-content {
    text-align: right;
}

[dir="rtl"] .frame-12-box ul li {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .frame-13-inner {
    flex-direction: row-reverse;
}

[dir="rtl"] .frame-13-content {
    text-align: right;
}

[dir="rtl"] .frame-14-box p {
    text-align: right;
}

[dir="rtl"] .frame-15 ul li {
    direction: rtl;
}

[dir="rtl"] .frame-16-inner {
    flex-direction: row-reverse;
}

[dir="rtl"] .frame-16-content {
    text-align: right;
}

[dir="rtl"] .frame-16-content ul li {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .frame-18-content {
    text-align: right;
}

/* Universities page */
[dir="rtl"] .frame-7-inner {
    text-align: right;
}

[dir="rtl"] .frame-9-info-right {
    text-align: right;
}

[dir="rtl"] .frame-9-card {
    flex-direction: row-reverse;
}

[dir="rtl"] .frame-9-card-left {
    text-align: right;
}

[dir="rtl"] .frame-10-box-item {
    text-align: right;
}

[dir="rtl"] .frame-10-info-box {
    text-align: right;
}

[dir="rtl"] .frame-10-info-msg-box {
    text-align: right;
}

/* Online Training page */
[dir="rtl"] .ot-hero-section {
    text-align: right;
}

[dir="rtl"] .about-online-training-box {
    flex-direction: row-reverse;
}

[dir="rtl"] .about-online-training-box-right {
    text-align: right;
}

[dir="rtl"] .ot-programs-box-card-head {
    text-align: right;
}

[dir="rtl"] .ot-programs-box-card-body {
    flex-direction: row-reverse;
}

[dir="rtl"] .ot-programs-box-card-body-left {
    text-align: right;
}

[dir="rtl"] .ot-programs-box-card-body-left ul li {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .ot-programs-box-card-footer {
    flex-direction: row-reverse;
}

[dir="rtl"] .conducting-the-vbmapp-box {
    text-align: right;
}

/* Onsite Training page */
[dir="rtl"] .bring-expert {
    flex-direction: row-reverse;
}

[dir="rtl"] .bring-expert-left {
    text-align: right;
}

[dir="rtl"] .bring-expert-right {
    text-align: right;
}

[dir="rtl"] .wc-ost-box {
    text-align: right;
}

[dir="rtl"] .wc-ost-box ul li {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .get-started-on-site-box {
    flex-direction: row-reverse;
}

[dir="rtl"] .get-started-on-site-box-left {
    text-align: right;
}

/* Testimonials */
[dir="rtl"] .testimonials-box {
    text-align: right;
}

[dir="rtl"] .testimonials-heading {
    text-align: right;
}

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

[dir="rtl"] .faq-answer {
    text-align: right;
}

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

[dir="rtl"] .footer-inner {
    flex-direction: row-reverse;
}

/* Language selector in RTL */
[dir="rtl"] ul.language-selector li {
    text-align: right;
}

/* Buttons with icons - flip icon order */
[dir="rtl"] .rlms-btn .rlms-icon {
    transform: scaleX(-1);
}

/* Advert popups */
[dir="rtl"] .advert-popup-2 {
    flex-direction: row-reverse;
}

[dir="rtl"] .advert-popup-1 .advert-p1-left {
    text-align: right;
}

/* Partners row */
[dir="rtl"] .partners-box-wrapper {
    flex-direction: row-reverse;
}

/* General helper overrides */
[dir="rtl"] .rlms-text-center {
    text-align: center !important;
}

/* Info section (shared component) */
[dir="rtl"] .info-section-box {
    text-align: right;
}
