/* v13-ar RTL overrides — keep Elementor dumps intact, flip custom physical sides */

html[dir="rtl"],
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
    /* Kill page-level horizontal bleed (join-card margins / image pull)
       without creating a scroll container on the hero section.
       overflow-x:hidden alone forces overflow-y:auto — use clip. */
    overflow-x: clip;
}

/* Forms */
html[dir="rtl"] .form-input-main {
    text-align: right;
}

html[dir="rtl"] form label.error,
html[dir="rtl"] #first_name-error,
html[dir="rtl"] #last_name-error,
html[dir="rtl"] #email-error,
html[dir="rtl"] #phone-error,
html[dir="rtl"] #first_name-1-error,
html[dir="rtl"] #last_name-1-error,
html[dir="rtl"] #email-1-error,
html[dir="rtl"] #phone-1-error {
    text-align: right !important;
}

html[dir="rtl"] form input,
html[dir="rtl"] form textarea,
html[dir="rtl"] .form-control {
    text-align: right;
}

/* intl-tel-input: flag + dial code on the right */
html[dir="rtl"] .iti--allow-dropdown input,
html[dir="rtl"] .iti--allow-dropdown input[type="tel"],
html[dir="rtl"] .iti--allow-dropdown input[type="text"],
html[dir="rtl"] .iti--separate-dial-code input,
html[dir="rtl"] .iti--separate-dial-code input[type="tel"],
html[dir="rtl"] .iti--separate-dial-code input[type="text"],
html[dir="rtl"] #phone {
    padding-left: 12px !important;
    padding-right: 112px !important;
    direction: rtl !important;
    text-align: right !important;
}

html[dir="rtl"] .iti--allow-dropdown .iti__flag-container,
html[dir="rtl"] .iti--separate-dial-code .iti__flag-container {
    left: auto !important;
    right: 0 !important;
}

html[dir="rtl"] .iti__selected-flag {
    flex-direction: row-reverse !important;
}

html[dir="rtl"] .iti--separate-dial-code .iti__selected-dial-code {
    margin-left: 0 !important;
    margin-right: 6px !important;
    direction: ltr;
    unicode-bidi: embed;
}

html[dir="rtl"] .iti__country-list {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .iti__country {
    flex-direction: row-reverse;
}

/* About / legal / prose */
html[dir="rtl"] .about li,
html[dir="rtl"] .about p,
html[dir="rtl"] .about h1,
html[dir="rtl"] .about h2,
html[dir="rtl"] .elementor-7 .elementor-element.elementor-element-6778c71a p,
html[dir="rtl"] .elementor-element-6778c71a {
    text-align: right !important;
}

/* Contact plaques */
html[dir="rtl"] .contact-info-block,
html[dir="rtl"] .contact-info-block .elementor-widget-icon-box.elementor-position-left .elementor-icon-box-wrapper {
    text-align: right;
}

/* FAQ accent + content padding */
html[dir="rtl"] .faq .elementor-toggle-item:has(.elementor-tab-title.elementor-active) {
    box-shadow: inset -3px 0 0 #007bff;
}

html[dir="rtl"] .faq .elementor-toggle .elementor-tab-content {
    padding: 0 2.7rem 1.15rem 1.15rem !important;
}

@media (max-width: 767px) {
    html[dir="rtl"] .faq .elementor-toggle .elementor-tab-content {
        padding: 0 1rem 1rem 1rem !important;
    }
}

/* Breadcrumbs separator spacing */
html[dir="rtl"] .breadcrumb-list li:not(:last-child)::after {
    margin-left: 0;
    margin-right: 0.55rem;
}

/* Reviews: stars under author, align to start in RTL (= right) */
html[dir="rtl"] .elementor-widget-reviews .elementor-testimonial__cite {
    align-items: flex-end;
}

/* Activity bar */
html[dir="rtl"] .activity-bar__live {
    padding-right: 0;
    padding-left: 14px;
    margin-right: 0;
    margin-left: 4px;
    border-right: none;
    border-left: 1px solid rgba(188, 188, 188, 0.18);
}

html[dir="rtl"] .activity-bar__track {
    padding-left: 0;
    padding-right: 4px;
}

html[dir="rtl"] .activity-bar__item + .activity-bar__item {
    border-left: none;
    border-right: 1px solid rgba(188, 188, 188, 0.14);
}

html[dir="rtl"] .activity-bar__item-text {
    align-items: flex-end;
}

@media (max-width: 767px) {
    html[dir="rtl"] .activity-bar__live {
        padding-left: 10px;
    }
}

/* Elementor text / boxes that hardcode left in post-*.css */
html[dir="rtl"] .elementor-widget-heading .elementor-heading-title,
html[dir="rtl"] .elementor-widget-text-editor,
html[dir="rtl"] .elementor-widget-text-editor p,
html[dir="rtl"] .elementor-image-box-wrapper,
html[dir="rtl"] .elementor-icon-box-wrapper,
html[dir="rtl"] .elementor-icon-list-items,
html[dir="rtl"] .elementor-testimonial__text,
html[dir="rtl"] .elementor-testimonial__cite {
    text-align: right;
}

/* Product cards: keep icon+title stacked/centered on tablet (don't inherit text-align:right) */
@media (max-width: 1024px) {
    html[dir="rtl"] .elementor-element-7744b078 .elementor-image-box-wrapper,
    html[dir="rtl"] .elementor-element-10510516 .elementor-image-box-wrapper {
        text-align: center !important;
    }

    html[dir="rtl"] .elementor-element-7744b078 .elementor-image-box-title,
    html[dir="rtl"] .elementor-element-10510516 .elementor-image-box-title {
        text-align: center !important;
    }
}

/* Steps 01–03: beat post-7 text-align:left */
html[dir="rtl"] .elementor-7 .elementor-element-76a91d12 .elementor-icon-box-wrapper,
html[dir="rtl"] .elementor-7 .elementor-element-525d2446 .elementor-icon-box-wrapper,
html[dir="rtl"] .elementor-7 .elementor-element-7378f4d6 .elementor-icon-box-wrapper,
html[dir="rtl"] .elementor-7 .elementor-element-76a91d12 .elementor-icon-box-title,
html[dir="rtl"] .elementor-7 .elementor-element-525d2446 .elementor-icon-box-title,
html[dir="rtl"] .elementor-7 .elementor-element-7378f4d6 .elementor-icon-box-title,
html[dir="rtl"] .elementor-7 .elementor-element-76a91d12 .elementor-icon-box-description,
html[dir="rtl"] .elementor-7 .elementor-element-525d2446 .elementor-icon-box-description,
html[dir="rtl"] .elementor-7 .elementor-element-7378f4d6 .elementor-icon-box-description,
html[dir="rtl"] .elementor-7 .elementor-element-76a91d12 .elementor-icon-box-title span,
html[dir="rtl"] .elementor-7 .elementor-element-525d2446 .elementor-icon-box-title span,
html[dir="rtl"] .elementor-7 .elementor-element-7378f4d6 .elementor-icon-box-title span {
    text-align: right !important;
}

/* Registration page title — center */
html[dir="rtl"] .elementor-150 .elementor-element-45812a1e,
html[dir="rtl"] .elementor-150 .elementor-element-45812a1e .elementor-heading-title {
    text-align: center !important;
}

/* Home Join-us — clean RTL layout inside the same card size */
html[dir="rtl"] .elementor-element-38e0e187 {
    direction: ltr;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    --align-items: stretch !important;
    gap: 0.35rem;
    box-sizing: border-box;
}

html[dir="rtl"] .elementor-element-1d180878,
html[dir="rtl"] .elementor-element-136e83d9 {
    width: 100% !important;
    max-width: 100% !important;
    --container-widget-width: 100% !important;
}

html[dir="rtl"] .elementor-element-1d180878 .elementor-widget-container,
html[dir="rtl"] .elementor-element-136e83d9 > .elementor-widget-container {
    width: 100%;
    margin: 0 !important;
}

html[dir="rtl"] .elementor-element-1d180878 .elementor-image-box-wrapper {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.55rem;
    width: 100%;
    text-align: right !important;
}

html[dir="rtl"] .elementor-element-1d180878 .elementor-image-box-img {
    width: 1.85rem !important;
    height: 1.85rem !important;
    margin: 0 !important;
    flex: 0 0 1.85rem !important;
}

html[dir="rtl"] .elementor-element-1d180878 .elementor-image-box-img img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain !important;
    display: block;
}

html[dir="rtl"] .elementor-element-1d180878 .elementor-image-box-content {
    width: auto !important;
    flex: 0 1 auto;
    min-width: 0;
}

html[dir="rtl"] .elementor-element-1d180878 .elementor-image-box-title {
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
    direction: rtl;
    unicode-bidi: embed;
    font-size: 0.95rem !important;
    line-height: 1.25 !important;
    white-space: nowrap;
}

html[dir="rtl"] .elementor-element-136e83d9 .elementor-counter {
    width: 100%;
    align-items: flex-end;
}

html[dir="rtl"] .elementor-element-136e83d9 .elementor-counter-number-wrapper {
    direction: ltr;
    justify-content: flex-end;
    width: 100%;
    line-height: 1 !important;
}

html[dir="rtl"] .elementor-widget-icon-list .elementor-icon-list-item,
html[dir="rtl"] .elementor-widget-icon-list .elementor-icon-list-icon {
    text-align: right;
}

/* Keep Latin brand / numbers readable where needed */
/* Stars overlay: background + foreground must share the same edge in RTL */
html[dir="rtl"] .stars-foreground {
    left: auto;
    right: 0;
}

html[dir="rtl"] .header-logo__text,
html[dir="rtl"] .footer-logo__text {
    direction: ltr;
    unicode-bidi: isolate;
}

/* Reviews carousel uses LTR translateX math — keep track LTR, content RTL */
html[dir="rtl"] .elementor-swiper,
html[dir="rtl"] .elementor-main-swiper {
    direction: ltr;
}

html[dir="rtl"] .elementor-swiper .swiper-slide,
html[dir="rtl"] .elementor-swiper .elementor-testimonial {
    direction: rtl;
    text-align: right;
}
