/* RTL overrides for Arabic (loaded after theme.css when dir=rtl). */

body.is-rtl {
	--th-section-steps: 0;
}

body.is-rtl .th-btn:hover .th-icon { transform: translateX(-3px); }

body.is-rtl .th-icon--arrow-right,
body.is-rtl .th-icon--arrow-left { transform: scaleX(-1); }

body.is-rtl .th-hero__glow { inset-inline-end: auto; inset-inline-start: -120px; }

body.is-rtl .th-progress__bar { background: linear-gradient(270deg, var(--th-turquoise), var(--th-sky)); }

body.is-rtl .th-404__code { letter-spacing: 0; }

body.is-rtl .th-siteinfo { direction: rtl; }

body.is-rtl .th-faq__item summary .th-icon { transform: rotate(180deg); }
body.is-rtl .th-faq__item[open] summary .th-icon { transform: rotate(0deg); }

body.is-rtl .th-syllabus__head .th-icon { transform: rotate(180deg); }
body.is-rtl .th-syllabus__section[open] .th-syllabus__head .th-icon { transform: rotate(0deg); }

body.is-rtl .th-syllabus__num,
body.is-rtl .th-step__num,
body.is-rtl .th-eyebrow,
body.is-rtl .th-strip__claim,
body.is-rtl .th-card__eyebrow { letter-spacing: 0; }

body.is-rtl .th-menu--stacked a,
body.is-rtl .th-footer-info__list li,
body.is-rtl .th-footer__heading { letter-spacing: 0; }

body.is-rtl .th-filters__control input { padding-inline-start: 1rem !important; padding-inline-end: 2.6rem !important; }
body.is-rtl .th-filters__control .th-icon { inset-inline-start: auto; inset-inline-end: .85rem; }

body.is-rtl .th-price__was { direction: ltr; unicode-bidi: embed; }

/* English platform credit inside the RTL footer must not be re-ordered. */
body.is-rtl .th-siteinfo__meta {
	direction: ltr;
	unicode-bidi: isolate;
	text-align: left;
}

/* LearnPress course player: LearnPress ships LTR geometry when the WordPress
   locale is English, so mirror the absolutely positioned pieces for Arabic. */
body.is-rtl #popup-sidebar { border-right: 0; border-left: 1px solid var(--lp-border-color, #e1e1e1); }
body.is-rtl #popup-sidebar .search-course input[name=s] { left: 100px; right: 100%; }
body.is-rtl #popup-sidebar .search-course button { right: auto; left: 40px; }
body.is-rtl #popup-sidebar .search-course button.clear { left: 8px; }
body.is-rtl #popup-footer .course-item-nav a::before { direction: ltr !important; unicode-bidi: isolate !important; }
body.is-rtl .popup-right-sidebar { right: auto; left: 0; }
