/* ===== Little Horizons: RTL ===== */
[dir="rtl"] {
  --font-body: "Manrope", "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Sans Hebrew", sans-serif;
  --font-heading: "DM Sans", "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Sans Hebrew", sans-serif;
}

/* letter-spacing breaks joined Arabic letters */
[dir="rtl"] .lh-header,
[dir="rtl"] .lh-menu,
[dir="rtl"] .lh-brand__name { letter-spacing: 0; }

/* flip the arrow and its hover direction */
[dir="rtl"] .lh-btn i { transform: scaleX(-1); }
[dir="rtl"] .lh-btn:hover i { translate: -3px 0; }

/* the dropdown, paddings and margins already use logical properties */


/* hero */
[dir="rtl"] .lh-hero__title { letter-spacing: 0; }
[dir="rtl"] .lh-hero__btn .fa-arrow-right { transform: scaleX(-1); }


/* hero */
[dir="rtl"] .lh-hero__title { letter-spacing: 0; }
[dir="rtl"] .lh-hero__btn .fa-arrow-right { transform: scaleX(-1); }
[dir="rtl"] .lh-hero__photo-back { rotate: 5deg; }


/* about */
[dir="rtl"] .lh-about__title { letter-spacing: 0; }
[dir="rtl"] .lh-about__btn .fa-arrow-right { transform: scaleX(-1); }
[dir="rtl"] .lh-about__btn:hover i { translate: -3px 0; }


/* programs */
[dir="rtl"] .lh-programs__title { letter-spacing: 0; }
[dir="rtl"] .lh-card__link i,
[dir="rtl"] .lh-programs__btn i { transform: scaleX(-1); }
[dir="rtl"] .lh-card__link:hover i { translate: -4px 0; }
[dir="rtl"] .lh-programs__btn:hover i { translate: -3px 0; }


/* how it works */
[dir="rtl"] .lh-how__title { letter-spacing: 0; }
[dir="rtl"] .lh-step__label { letter-spacing: 0; }
[dir="rtl"] .lh-how__svg { transform: scaleX(-1); }

/* a day at Little Horizons */
[dir="rtl"] .lh-day__title { letter-spacing: 0; }


/* parent FAQ */
[dir="rtl"] .lh-faq__title { letter-spacing: 0; }
[dir="rtl"] .lh-faq__btn i { transform: scaleX(-1); }
[dir="rtl"] .lh-faq__btn:hover i { translate: -3px 0; }

/* parent stories */
[dir="rtl"] .lh-stories__title { letter-spacing: 0; }
[dir="rtl"] .lh-stories__arrow i { transform: scaleX(-1); }


/* final CTA */
[dir="rtl"] .lh-cta__title { letter-spacing: 0; }

/* footer */
[dir="rtl"] .lh-footer__tel { direction: ltr; unicode-bidi: isolate; display: inline-block; }


/* Home 2 video hero */
[dir="rtl"] .lh-vhero__title { letter-spacing: 0; }
[dir="rtl"] .lh-vhero__btn .fa-arrow-right { transform: scaleX(-1); }
[dir="rtl"] .lh-vhero__overlay {
  background:
    linear-gradient(to left, var(--vhero-overlay-a) 0%, var(--vhero-overlay-b) 45%, var(--vhero-overlay-c) 100%),
    linear-gradient(to top, rgba(13, 27, 20, .55), transparent 40%);
}
[dir="rtl"] .lh-vhero__journey li + li { border-radius: 999px 0 0 999px; }


/* Home 2 bento */
[dir="rtl"] .lh-bento__title { letter-spacing: 0; }
[dir="rtl"] .lh-bento__ghost { transform: rotate(10deg); }
[dir="rtl"] .lh-bento__tile:hover .lh-bento__ghost { transform: rotate(4deg) scale(1.06); }



/* assessment day */
[dir="rtl"] .lh-assess__title { letter-spacing: 0; }
@media (min-width: 1025px) {
  [dir="rtl"] .lh-assess__list::after { transform-origin: right center; }
}


/* learning profile */
[dir="rtl"] .lh-profile__title { letter-spacing: 0; }
[dir="rtl"] .lh-report__label,
[dir="rtl"] .lh-report__ribbon { letter-spacing: 0; }
[dir="rtl"] .lh-report::before { rotate: 2.4deg; translate: 6px 8px; }
[dir="rtl"] .lh-report::after  { rotate: -2deg; translate: -8px 14px; }



/* specialists */
[dir="rtl"] .lh-team__title { letter-spacing: 0; }
[dir="rtl"] .lh-team__figure::before { translate: -10px 10px; }
[dir="rtl"] .lh-team__link i { transform: scaleX(-1); }
[dir="rtl"] .lh-team__link:hover i { translate: -3px 0; }

/* after the assessment */
[dir="rtl"] .lh-next__title { letter-spacing: 0; }
[dir="rtl"] .lh-next__svg { transform: scaleX(-1); }
[dir="rtl"] .lh-next__btn i { transform: scaleX(-1); }
[dir="rtl"] .lh-next__btn:hover i { translate: -3px 0; }

/* parent voices */
[dir="rtl"] .lh-voices__title { letter-spacing: 0; }
[dir="rtl"] .lh-voices__quote p { letter-spacing: 0; }
[dir="rtl"] .lh-voices__mark i { transform: scaleX(-1); }


/* assessment questions */
[dir="rtl"] .lh-ask__title { letter-spacing: 0; }
[dir="rtl"] .lh-ask__num { letter-spacing: 0; }
[dir="rtl"] .lh-ask__link i { transform: scaleX(-1); }
[dir="rtl"] .lh-ask__link:hover i { translate: -3px 0; }


/* closing band */
[dir="rtl"] .lh-end__title { letter-spacing: 0; }
[dir="rtl"] .lh-end__btn--ghost i { transform: scaleX(-1); }
[dir="rtl"] .lh-end__btn--ghost:hover i { translate: -3px 0; }
[dir="rtl"] .lh-end__trail { transform: scaleX(-1); }


/* about hero */
[dir="rtl"] .lh-ahero__title { letter-spacing: 0; }
[dir="rtl"] .lh-ahero__btn--main i { transform: scaleX(-1); }
[dir="rtl"] .lh-ahero__btn--main:hover i { translate: -3px 0; }

/* about: our story */
[dir="rtl"] .lh-astory__title,
[dir="rtl"] .lh-astory__believe-title { letter-spacing: 0; }


/* about: history */
[dir="rtl"] .lh-hist__title,
[dir="rtl"] .lh-hist__year { letter-spacing: 0; }
[dir="rtl"] .lh-hist__svg { transform: scaleX(-1); }


/* about: team */
[dir="rtl"] .lh-crew__title,
[dir="rtl"] .lh-crew__name,
[dir="rtl"] .lh-crew__bar-title,
[dir="rtl"] .lh-crew__role { letter-spacing: 0; }
[dir="rtl"] .lh-crew__quote-mark i { transform: scaleX(-1); }


/* about: closing CTA */
[dir="rtl"] .lh-acta__title,
[dir="rtl"] .lh-acta__details-title { letter-spacing: 0; }
[dir="rtl"] .lh-acta__btn--ghost i { transform: scaleX(-1); }
[dir="rtl"] .lh-acta__btn--ghost:hover i { translate: -3px 0; }
[dir="rtl"] .lh-acta__scene svg { transform: scaleX(-1); }
/* keep phone and email left-to-right inside Arabic/Hebrew text */
[dir="rtl"] .lh-acta__tel,
[dir="rtl"] .lh-acta__mail { direction: ltr; unicode-bidi: isolate; }



/* contact hero */
[dir="rtl"] .lh-chero__title { letter-spacing: 0; }
[dir="rtl"] .lh-chero__wave { transform: scaleX(-1); }
/* the arrow points down and the phone icon is neutral, so no flip needed */

/* contact: ways to reach us */
[dir="rtl"] .lh-ways__eyebrow,
[dir="rtl"] .lh-ways__title,
[dir="rtl"] .lh-ways__name { letter-spacing: 0; }
[dir="rtl"] .lh-ways__link i { transform: scaleX(-1); }
[dir="rtl"] .lh-ways__item:hover .lh-ways__link i { translate: -3px 0; }
[dir="rtl"] .lh-ways__ltr { direction: ltr; unicode-bidi: isolate; }
/* the top line and the dividers use logical properties, so they mirror on their own */


/* contact: form */
[dir="rtl"] .lh-enq__eyebrow,
[dir="rtl"] .lh-enq__title,
[dir="rtl"] .lh-enq__done-title { letter-spacing: 0; }
[dir="rtl"] .lh-enq__send { transform: scaleX(-1); }
[dir="rtl"] .lh-enq__btn--main:hover .lh-enq__send { translate: -3px -2px; }
[dir="rtl"] .lh-enq__photo { animation-direction: reverse; }
/* emails and phone numbers stay left-to-right but sit on the right edge */
[dir="rtl"] .lh-enq__input[type="email"],
[dir="rtl"] .lh-enq__input[type="tel"] { direction: ltr; text-align: end; }
/* everything else (grid, borders, the select chevron, the photo corner) uses logical properties */



/* contact: map and address */
[dir="rtl"] .lh-visit__eyebrow,
[dir="rtl"] .lh-visit__title,
[dir="rtl"] .lh-visit__h { letter-spacing: 0; }
[dir="rtl"] .lh-visit__btn i { transform: scaleX(-1); }
[dir="rtl"] .lh-visit__btn:hover i { translate: -3px 0; }
[dir="rtl"] .lh-visit__map { animation-direction: reverse; }
/* the map corner, dividers and grid use logical properties, so they mirror on their own */


/* contact: closing CTA */
[dir="rtl"] .lh-ccta__eyebrow,
[dir="rtl"] .lh-ccta__title { letter-spacing: 0; }
[dir="rtl"] .lh-ccta__btn--main i { transform: scaleX(-1); }
[dir="rtl"] .lh-ccta__btn--main:hover i { translate: -3px 0; }
[dir="rtl"] .lh-ccta__wave { transform: scaleY(-1) scaleX(-1); }
/* mirror the photo too, so the children stay on the visible (end) side */
[dir="rtl"] .lh-ccta__bg { transform: scaleX(-1); }
/* the veil switches direction (on tablet and mobile it stays even) */
@media (min-width: 1025px) {
  [dir="rtl"] .lh-ccta__veil { background: var(--ccta-veil-rtl); }
}


/* programs: hero */
[dir="rtl"] .lh-phero__title,
[dir="rtl"] .lh-phero__num,
[dir="rtl"] .lh-phero__index-title { letter-spacing: 0; }

[dir="rtl"] .lh-phero__btn .fa-arrow-right,
[dir="rtl"] .lh-phero__arrow i { transform: scaleX(-1); }
[dir="rtl"] .lh-phero__btn--ghost:hover i,
[dir="rtl"] .lh-phero__link:hover .lh-phero__arrow i,
[dir="rtl"] .lh-phero__link:focus-visible .lh-phero__arrow i { translate: -3px 0; }

/* flipped decorative SVG */
[dir="rtl"] .lh-phero__hills { transform: scaleX(-1); }


/* programs: sticky nav (the edge fades point the other way) */
[dir="rtl"] .lh-pnav__wrap::before { background: linear-gradient(to left,  var(--bg) 25%, transparent); }
[dir="rtl"] .lh-pnav__wrap::after  { background: linear-gradient(to right, var(--bg) 25%, transparent); }


/* programs: sticky nav (the edge fades point the other way) */
[dir="rtl"] .lh-pnav__wrap::before { background: linear-gradient(to left,  var(--bg) 25%, transparent); }
[dir="rtl"] .lh-pnav__wrap::after  { background: linear-gradient(to right, var(--bg) 25%, transparent); }


/* programs: who you'll work with */
[dir="rtl"] .lh-pwho__title { letter-spacing: 0; }
[dir="rtl"] .lh-pwho__more i { transform: scaleX(-1); }
[dir="rtl"] .lh-pwho__more:hover i { translate: -4px 0; }


/* programs: split CTA */
[dir="rtl"] .lh-pcta__title { letter-spacing: 0; }


/* parent resources: hero */
[dir="rtl"] .lh-rhero__title,
[dir="rtl"] .lh-rhero__jump-title { letter-spacing: 0; }

/* flipped decorative SVG */
[dir="rtl"] .lh-rhero__wave { transform: scaleX(-1); }

/* RTL Support */
[dir="rtl"] .lh-prep__eyebrow::before { order: 2; }
[dir="rtl"] .lh-card-chk__body { text-align: right; }

/* ===== RTL Specific Overrides (Optional if not handled globally) ===== */
[dir="rtl"] .lh-rhome__eyebrow::before {
  order: 2; /* Moves the decorative line to the right of the text if needed */
}

[dir="rtl"] .lh-rhome__tablist {
  justify-content: flex-start; /* Keeps wrapping consistent in RTL */
}

[dir="rtl"] .lh-rhome__panel li {
  text-align: right;
}

/* ===== RTL Specific Overrides for Glossary (Optional) ===== */
[dir="rtl"] .lh-words__eyebrow::before,
[dir="rtl"] .lh-words__eyebrow::after {
  /* Keeps decorative lines balanced on both sides in RTL */
  order: initial;
}

[dir="rtl"] .lh-card {
  text-align: right;
}

[dir="rtl"] .lh-card__tip {
  text-align: right;
}

/* RTL Support */
[dir="rtl"] .lh-word-item { text-align: right; }
[dir="rtl"] .lh-words__search-box input { padding: 14px 48px 14px 20px; }

/* RTL Support */
[dir="rtl"] .lh-accordion__summary,
[dir="rtl"] .lh-accordion__content {
  text-align: right;
}

/* 404 */
[dir="rtl"] .lh-nf__title { letter-spacing: 0; }
[dir="rtl"] .lh-nf__btn--ghost i { transform: scaleX(-1); }
[dir="rtl"] .lh-nf__btn--ghost:hover i { translate: -3px 0; }
[dir="rtl"] .lh-nf__scene svg { transform: scaleX(-1); }