/* Arabic RTL overrides — Cairo matches the AR mockup */
:root {
  --font: "Cairo", "Segoe UI", Tahoma, sans-serif;
}

html,
body,
body.lang-ar,
button,
input,
textarea,
select {
  direction: rtl !important;
  text-align: right;
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.rh-btn,
.rh-nav a,
.rh-hero__tab,
.rh-hero__title,
.rh-hero__tag,
.rh-about__label,
.rh-serve__label,
.rh-programs__label,
.rh-method__label,
.rh-testimonials__label,
.rh-contact__card h2,
.rh-contact__text,
.rh-contact__msg,
.rh-cta__eyebrow,
.rh-stat strong,
.rh-footer {
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif !important;
  letter-spacing: 0;
}

/* Keep navbar layout same as English: logo left, actions right */
.rh-header,
.rh-header__inner,
.rh-logo,
.rh-nav,
.rh-header__actions,
.rh-lang,
.rh-menu-toggle {
  direction: ltr !important;
}
.rh-header__inner {
  flex-direction: row !important;
}
.rh-nav {
  flex-direction: row !important;
}

.rh-social,
.rh-quote,
.rh-review,
.rh-stat,
.rh-footer__row,
.rh-step,
.rh-vm__card,
.rh-serve__item {
  direction: rtl;
}
.rh-review {
  border-left: 1px solid rgba(32, 184, 173, 0.2);
  border-right: 4px solid #20B8AD;
}
.rh-review:nth-child(3n+2) { border-right-color: #087F80; }
.rh-review:nth-child(3n) { border-right-color: #073B3B; }

/* Underline stays centered like English navbar */
.rh-nav a.is-active::after {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.rh-hero__content {
  left: auto;
  right: max(1.75rem, calc((100vw - var(--container)) / 2));
  margin: 0;
}
.rh-serve__content {
  padding: 4.25rem max(1.5rem, calc((100vw - var(--container)) / 2)) 4.25rem clamp(1.5rem, 4vw, 4rem);
}
.rh-serve__media {
  padding: 1.75rem 0 1.75rem max(1.5rem, calc((100vw - var(--container)) / 2));
}

.rh-serve__item {
  text-align: right;
}
.rh-serve__item:first-child { padding-right: 0; padding-left: 1.15rem; }
.rh-serve__item:last-child {
  padding-left: 0;
  padding-right: 1.15rem;
  border-right: 1px solid #d5e5ec;
  border-left: none;
}
.rh-serve__item {
  border-right: none;
  border-left: 1px solid #d5e5ec;
}

.rh-method__badge {
  left: auto;
  right: 0;
  clip-path: polygon(0 0, 100% 18%, 100% 100%, 0 100%);
  text-align: right;
}

.rh-steps {
  padding-left: 0;
  padding-right: 1.75rem;
  border-left: none;
  border-right: 1px solid #d7e3ea;
}

.rh-testimonials__head,
.rh-about__copy,
.rh-programs__intro,
.rh-audience__head,
.rh-acard,
.rh-why__head,
.rh-wcard,
.rh-faq__head,
.rh-faq__q,
.rh-faq__a,
.rh-follow__head,
.rh-method__copy,
.rh-contact__field input,
.rh-contact__field select {
  text-align: right;
}
.rh-contact__card h2,
.rh-contact__text,
.rh-contact__msg {
  text-align: center;
}
.rh-why__slogan {
  justify-content: flex-end;
}

.rh-quote,
.rh-review,
.rh-review__text {
  text-align: right;
}
.rh-slider__btn--prev { order: 3; }
.rh-slider__btn--next { order: 1; }
.rh-slider__viewport { order: 2; }

.rh-footer__brand { padding-left: 1.35rem; padding-right: 0; }
.rh-footer__contact { padding-right: 1.35rem; padding-left: 0; }

.rh-lang {
  margin-left: 0.5rem;
  margin-right: 0;
}

@media (max-width: 1020px) {
  .rh-logo {
    margin-right: auto !important;
    margin-left: 0 !important;
  }
  .rh-header__actions { order: 2; }
  .rh-menu-toggle { order: 3; }
  .rh-hero__content {
    right: 1.35rem;
    width: min(48%, 28rem);
  }
}

@media (max-width: 768px) {
  .rh-hero__content {
    right: 1.15rem;
    left: auto;
    width: min(68%, 19rem);
    max-width: calc(100% - 2.3rem);
  }
  .rh-serve__content {
    padding: 3.5rem 1.5rem 2.5rem;
  }
  .rh-serve__media {
    padding: 0 1.5rem 2.5rem;
  }
  .rh-serve__item,
  .rh-serve__item:first-child,
  .rh-serve__item:last-child {
    border-left: none;
    border-right: none;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
