/* Arabic RTL layout overrides */
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
  font-family: "Cairo", "DM Sans", sans-serif;
}

html[dir="rtl"] .page-wrapper,
html[dir="rtl"] .container,
html[dir="rtl"] .row {
  direction: rtl;
}

/* Header: contact left | menu center | logo right */
html[dir="rtl"] .main-header-one__bottom-inner--rtl {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  direction: ltr;
}

html[dir="rtl"] .main-header-one__bottom-inner--rtl .main-header-one__bottom-slot {
  flex: 0 0 180px;
  display: flex;
  align-items: center;
}

html[dir="rtl"] .main-header-one__bottom-inner--rtl .main-header-one__bottom-right {
  justify-content: flex-start;
}

html[dir="rtl"] .main-header-one__bottom-inner--rtl .main-header-one__bottom-logo {
  justify-content: flex-end;
}

html[dir="rtl"] .main-header-one__bottom-inner--rtl .main-header-one__bottom-center {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

html[dir="rtl"] .main-header-one__bottom-inner--rtl .main-header-one__bottom-menu {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100%;
  display: flex;
  justify-content: center;
}

html[dir="rtl"] .main-header-one__bottom-inner--rtl .main-menu__main-menu-box {
  display: flex;
  justify-content: center;
  width: 100%;
}

html[dir="rtl"] .main-header-one__bottom-inner--rtl .main-header-one__bottom-logo .logo-box a img {
  width: auto;
  max-height: 55px;
}

html[dir="rtl"] .main-header-one__bottom-inner--rtl .main-header-one__bottom-right-btn a {
  display: inline-flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 8px;
}

html[dir="rtl"] .main-menu .main-menu__list,
html[dir="rtl"] .stricky-header .main-menu__list {
  direction: rtl;
}

html[dir="rtl"] .main-header-one__bottom-right-btn a i,
html[dir="rtl"] .thm-btn i.icon-right-arrow21,
html[dir="rtl"] .icon-right-arrow21,
html[dir="rtl"] .footer-one__quick-links-list .icon-right-arrow1 {
  transform: scaleX(-1);
  display: inline-block;
}

/* Main navigation */
html[dir="rtl"] .stricky-header .main-menu__wrapper-inner .main-header-one__bottom-inner,
html[dir="rtl"] .stricky-header.stricked-menu .main-menu__wrapper-inner {
  direction: rtl;
}

html[dir="rtl"] .main-menu .main-menu__list > li + li,
html[dir="rtl"] .stricky-header .main-menu__list > li + li {
  margin-left: 0;
  margin-right: 48px;
}

html[dir="rtl"] .main-menu .main-menu__list > li.dropdown > a,
html[dir="rtl"] .stricky-header .main-menu__list > li.dropdown > a {
  padding-right: 0;
  padding-left: 18px;
}

html[dir="rtl"] .main-menu .main-menu__list > li.dropdown > a:after,
html[dir="rtl"] .stricky-header .main-menu__list > li.dropdown > a:after {
  right: auto;
  left: 0;
}

html[dir="rtl"] .main-menu .main-menu__list > li > ul,
html[dir="rtl"] .main-menu .main-menu__list > li > ul > li > ul,
html[dir="rtl"] .stricky-header .main-menu__list > li > ul,
html[dir="rtl"] .stricky-header .main-menu__list > li > ul > li > ul {
  left: auto;
  right: 0;
  text-align: right;
}

html[dir="rtl"] .lang-menu {
  left: auto !important;
  right: 0;
  text-align: right;
}

/* Slider navigation on the right in RTL */
html[dir="rtl"] .slider-one__carousel.owl-theme .owl-nav {
  left: auto;
  right: 0;
}

html[dir="rtl"] .slider-one__carousel:hover.owl-theme .owl-nav {
  left: auto;
  right: 70px;
}

html[dir="rtl"] .slider-one__carousel.owl-theme .owl-nav .owl-prev span,
html[dir="rtl"] .slider-one__carousel.owl-theme .owl-nav .owl-next span {
  transform: scaleX(-1);
  display: inline-block;
}

/* Sections & content blocks */
html[dir="rtl"] .footer-one__quick-links-list,
html[dir="rtl"] .why-choose-one__content-list ul,
html[dir="rtl"] .contact-page__bottom-inner ul,
html[dir="rtl"] .thm-breadcrumb {
  direction: rtl;
}

html[dir="rtl"] .thm-breadcrumb li {
  float: none;
  display: inline-block;
}

html[dir="rtl"] .footer-one__bottom-inner,
html[dir="rtl"] .about-one__content-bottom,
html[dir="rtl"] .btn-box,
html[dir="rtl"] .service-one__single-content .btn-box a,
html[dir="rtl"] .project-one__overlay-content,
html[dir="rtl"] .hex-content,
html[dir="rtl"] .sec-title__tagline,
html[dir="rtl"] .about-one__content-text2-single-top,
html[dir="rtl"] .contact-page__bottom-single,
html[dir="rtl"] .footer-one__about-contact-info,
html[dir="rtl"] .input-box {
  text-align: right;
}

html[dir="rtl"] .sec-title__tagline {
  flex-direction: row-reverse;
}

html[dir="rtl"] .about-one__content-bottom {
  flex-direction: row-reverse;
}

html[dir="rtl"] .about-one__content-bottom .contact-box {
  flex-direction: row-reverse;
}

html[dir="rtl"] .features-two__single-content-bottom .btn-box {
  text-align: left;
}

html[dir="rtl"] .sec-title.center,
html[dir="rtl"] .slider-one__single-content.text-center {
  text-align: center !important;
}

/* GSAP SplitText: keep normal spacing on RTL headings */
html[dir="rtl"] .tg-heading-subheading .tg-element-title {
  letter-spacing: normal;
  word-spacing: normal;
}

html[dir="rtl"] .brochure-form .form-grid,
html[dir="rtl"] .contact-page__top .row {
  direction: rtl;
}

html[dir="rtl"] .mobile-nav__content {
  text-align: right;
}

html[dir="rtl"] .owl-carousel .owl-item {
  float: right;
}
