/* ==========================================================================
   RTL CSS Fixes for Medova Physiotherapy Theme
   ========================================================================== */

@font-face {
  font-family: 'Tishreen';
  src: url('../fonts/tishreen/tishreen-100.woff2') format('woff2');
  font-style: normal;
  font-weight: 100;
  font-display: swap;
}

@font-face {
  font-family: 'Tishreen';
  src: url('../fonts/tishreen/tishreen-300.woff2') format('woff2');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'Tishreen';
  src: url('../fonts/tishreen/tishreen-400.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Tishreen';
  src: url('../fonts/tishreen/tishreen-500.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Tishreen';
  src: url('../fonts/tishreen/tishreen-600.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Tishreen';
  src: url('../fonts/tishreen/tishreen-800.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Tishreen';
  src: url('../fonts/tishreen/tishreen-800.woff2') format('woff2');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: 'Tishreen';
  src: url('../fonts/tishreen/tishreen-900.woff2') format('woff2');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

html[dir="rtl"] body {
  font-family: 'Tishreen', sans-serif !important;
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] h1, 
html[dir="rtl"] h2, 
html[dir="rtl"] h3, 
html[dir="rtl"] h4, 
html[dir="rtl"] h5, 
html[dir="rtl"] h6,
html[dir="rtl"] .sec-title,
html[dir="rtl"] .hero-title,
html[dir="rtl"] .widget_title {
  font-family: 'Tishreen', sans-serif !important;
}

/* Fix Mobile Menu Drawer in RTL */
html[dir="rtl"] .th-menu-wrapper .th-menu-area {
  left: auto !important;
  right: -110% !important;
  border-right: none !important;
  border-left: 3px solid var(--theme-color, #0d6efd) !important;
}

html[dir="rtl"] .th-menu-wrapper.th-body-visible .th-menu-area {
  right: 0 !important;
  left: auto !important;
}

html[dir="rtl"] .th-menu-wrapper .th-menu-toggle {
  right: auto !important;
  left: 0 !important;
}

html[dir="rtl"] .th-mobile-menu ul li a {
  text-align: right !important;
}

/* Fix dropdown and header alignments in RTL */
html[dir="rtl"] .main-menu > ul > li {
  margin-left: 25px;
  margin-right: 0;
}

html[dir="rtl"] .main-menu ul li a {
  text-align: right;
}

/*
 * Hero 6 was authored for an LTR layout: its decorative offset is applied
 * from the left.  In RTL that places the headline flush against the right
 * edge, so the first characters can be clipped on laptop-sized screens.
 */
html[dir="rtl"] .hero-style6 {
  margin-left: 0;
  margin-right: clamp(0px, 4vw, 60px);
}

/* The full navigation does not have enough room alongside the Arabic logo
 * and call button below a wide-desktop viewport. Keep every link available
 * through the existing accessible menu drawer instead of letting the header
 * compress or wrap.
 */
@media (max-width: 1199px) {
  html[dir="rtl"] .header-layout6 .main-menu.d-lg-inline-block {
    display: none !important;
  }

  html[dir="rtl"] .header-layout6 .th-menu-toggle.d-lg-none {
    display: inline-block !important;
  }
}

@media (max-width: 575px) {
  html[dir="rtl"] .hero-style6 {
    margin-right: 0;
  }
}

html[dir="rtl"] .header-links ul li i,
html[dir="rtl"] .info-box_icon,
html[dir="rtl"] .th-btn i {
  margin-left: 8px;
  margin-right: 0;
}

html[dir="rtl"] .checklist ul li::before,
html[dir="rtl"] .checklist.list-two-column ul li::before {
  right: 0;
  left: auto;
}

html[dir="rtl"] .checklist ul li {
  padding-right: 28px;
  padding-left: 0;
}

/* Fix Swiper slider buttons in RTL */
html[dir="rtl"] .slider-arrow.slider-prev {
  right: auto;
  left: 20px;
}

html[dir="rtl"] .slider-arrow.slider-next {
  right: auto;
  left: 80px;
}

/* Fix Accordion Box Numbers in RTL */
html[dir="rtl"] .accordion-card .box-number {
  margin-left: 10px;
  margin-right: 0;
}

/* Floating WhatsApp Fix */
.floating-whatsapp-widget {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 99999;
  background: #25d366;
  color: #fff !important;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  text-decoration: none !important;
  transition: transform 0.3s ease;
}

.floating-whatsapp-widget:hover {
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   Refined visual system: calm, readable, and appropriate for home care.
   -------------------------------------------------------------------------- */
:root {
  --theme-color: #d96a78;
  --theme-color2: #2f9db0;
  --title-color: #143a63;
  --body-color: #536b81;
  --smoke-color2: #eff7fa;
  --smoke-color5: #fbf5f5;
  --th-border-color: #dce9ef;
  --body-font: 'Tishreen', sans-serif;
  --title-font: 'Tishreen', sans-serif;
  --title-font2: 'Tishreen', sans-serif;
  --section-space: 96px;
}

html[dir="rtl"] body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--body-color);
  background: #f8fcfd;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] .sec-title,
html[dir="rtl"] .hero-title,
html[dir="rtl"] .widget_title {
  font-family: 'Alexandria', 'Tajawal', sans-serif !important;
  letter-spacing: 0 !important;
}

/* Header: the mark, one clear navigation, and one call action are enough. */
html[dir="rtl"] .header-layout6 .header-top {
  display: none;
}

html[dir="rtl"] .header-layout6 .sticky-wrapper {
  position: sticky;
  top: 0;
  z-index: 9999;
  margin-top: 32px;
  padding: 10px 0;
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

html[dir="rtl"] .header-layout6 .menu-area {
  min-height: 82px;
  border: 1px solid rgba(20, 58, 99, 0.1);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(20, 58, 99, 0.08);
}

html[dir="rtl"] .header-layout6 .header-logo img {
  display: block;
  width: min(205px, 42vw);
  height: auto;
}

html[dir="rtl"] .header-layout6 .main-menu > ul > li {
  margin: 0 9px;
}

html[dir="rtl"] .header-layout6 .main-menu > ul > li > a {
  padding: 27px 0;
  font-family: 'Tishreen', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #284d70;
  letter-spacing: 0;
}

html[dir="rtl"] .header-layout6 .menu-area .header-button .th-btn {
  padding: 14px 17px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

html[dir="rtl"] .header-layout6 .th-menu-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid #d7e6ed;
  border-radius: 10px;
  color: var(--title-color);
}

/* Give the campaign message a deliberate hierarchy instead of template scale. */
html[dir="rtl"] .hero-6 .th-hero-bg::before {
  background: linear-gradient(90deg, rgba(12, 48, 87, 0.56), rgba(12, 48, 87, 0.83));
}

html[dir="rtl"] .hero-6 {
  --header-space: 0px;
  width: calc(100% - clamp(32px, 3vw, 96px));
  margin-top: 0;
  min-height: 92svh;
}

html[dir="rtl"] .hero-6 .swiper,
html[dir="rtl"] .hero-6 .swiper-wrapper,
html[dir="rtl"] .hero-6 .swiper-slide,
html[dir="rtl"] .hero-6 .hero-inner {
  min-height: 92svh;
}

html[dir="rtl"] .hero-6 .hero-inner {
  display: flex;
  align-items: stretch;
}

html[dir="rtl"] .hero-6 .hero-inner > .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

html[dir="rtl"] .hero-style6 {
  --hero-space: 0px;
  max-width: 760px;
  padding: 164px 28px 104px;
}

html[dir="rtl"] .hero-style6 .sub-title {
  margin-bottom: 16px;
  font-family: 'Alexandria', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: #fff !important;
}

html[dir="rtl"] .hero-style6 .hero-title {
  max-width: 800px;
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 4.8vw, 4.4rem);
  font-weight: 700;
  line-height: 1.32;
}

html[dir="rtl"] .hero-style6 .hero-title .text-theme {
  display: block;
  margin-top: 0.1em;
  color: #ffabb5 !important;
}

html[dir="rtl"] .hero-style6 p {
  max-width: 680px;
  margin-bottom: 30px !important;
  font-size: 18px !important;
  line-height: 1.9;
}

html[dir="rtl"] .hero-style6 .th-btn {
  min-height: 54px;
  padding: 17px 21px;
  border-radius: 10px;
  font-weight: 700;
}

/* Section titles and surfaces use less decoration and more whitespace. */
html[dir="rtl"] .sub-title {
  padding: 0;
  margin-bottom: 12px;
  font-family: 'Alexandria', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--theme-color2);
}

html[dir="rtl"] .sub-title::before {
  display: none;
}

html[dir="rtl"] .sec-title {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 700;
  line-height: 1.45;
}

html[dir="rtl"] .sec-title .fw-normal {
  font-weight: 500 !important;
}

html[dir="rtl"] .title-area {
  margin-bottom: 42px;
}

html[dir="rtl"] .bg-smoke2 {
  background-color: #eff7fa !important;
}

html[dir="rtl"] .bg-smoke5 {
  background-color: #fbf5f5 !important;
}

html[dir="rtl"] #target-sec .bg-white,
html[dir="rtl"] #pricing-sec .bg-white,
html[dir="rtl"] #pricing-sec .bg-primary {
  border-color: #dce9ef !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 28px rgba(20, 58, 99, 0.06) !important;
}

html[dir="rtl"] #target-sec .bg-white {
  padding: 30px !important;
}

html[dir="rtl"] #target-sec .bg-white i {
  color: var(--theme-color2) !important;
}

html[dir="rtl"] .service-card3,
html[dir="rtl"] .service-card7,
html[dir="rtl"] .accordion-card,
html[dir="rtl"] .accordion-physio .accordion-item {
  border-radius: 18px;
  overflow: hidden;
}

html[dir="rtl"] .service-card3,
html[dir="rtl"] .service-card7 {
  box-shadow: 0 12px 30px rgba(20, 58, 99, 0.08);
}

/* Service cards are a fixed responsive grid, not a duplicated carousel. */
html[dir="rtl"] #serviceSlider8 > .col-md-6 {
  display: flex;
}

html[dir="rtl"] #serviceSlider8 .service-card3 {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
}

html[dir="rtl"] #serviceSlider8 .service-card3 .box-img img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

html[dir="rtl"] #serviceSlider8 .service-card3 .box-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

html[dir="rtl"] #serviceSlider8 .service-card3 .btn-wrap {
  margin-top: auto;
}

html[dir="rtl"] .footer-layout6 {
  background: #123b63 !important;
}

@media (max-width: 1199px) {
  html[dir="rtl"] .header-layout6 .main-menu.d-lg-inline-block {
    display: none !important;
  }

  html[dir="rtl"] .header-layout6 .th-menu-toggle.d-lg-none {
    display: inline-block !important;
  }
}

@media (max-width: 767px) {
  html[dir="rtl"] .header-layout6 {
    margin-bottom: -82px;
  }

  :root {
    --section-space: 72px;
  }

  html[dir="rtl"] .header-layout6 .header-top {
    padding: 10px 0;
  }

  html[dir="rtl"] .header-layout6 .header-top .header-button {
    display: none;
  }

  html[dir="rtl"] .header-layout6 .sticky-wrapper {
    margin-top: 12px;
  }

  html[dir="rtl"] .hero-6 {
    --header-space: 82px;
    width: calc(100% - 24px);
    margin-top: -82px;
  }

  html[dir="rtl"] .hero-style6 {
    --hero-space: 72px;
    padding: calc(var(--header-space) + 92px) 0 76px;
  }

  html[dir="rtl"] .hero-style6 .hero-title {
    font-size: clamp(2.35rem, 10vw, 3rem);
    line-height: 1.38;
  }

  html[dir="rtl"] .hero-style6 p {
    font-size: 16px !important;
  }

  html[dir="rtl"] .hero-style6 .btn-group {
    gap: 12px;
  }
}

/* About: one clear reading column and one supporting image, without LTR offsets. */
html[dir="rtl"] #about-sec .row {
  align-items: stretch;
}

html[dir="rtl"] #about-sec .col-xl-5 {
  order: 1 !important;
  flex: 0 0 55%;
  max-width: 55%;
  align-self: stretch !important;
}

html[dir="rtl"] #about-sec .col-xl-4 {
  order: 2 !important;
  flex: 0 0 45%;
  max-width: 45%;
  align-self: stretch !important;
}

html[dir="rtl"] #about-sec .col-xl-3 {
  display: none;
}

html[dir="rtl"] #about-sec .about-wrap6 {
  height: 100%;
  margin: 0;
  padding: 42px;
  background: #fff;
  border: 1px solid #dce9ef;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(20, 58, 99, 0.06);
}

html[dir="rtl"] #about-sec .about-wrap6 .title-area {
  margin-bottom: 22px;
}

html[dir="rtl"] #about-sec .about-wrap6 .sec-text {
  max-width: none;
  margin: 0;
  font-family: 'Tishreen', sans-serif !important;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.8;
  color: #365a7c;
}

html[dir="rtl"] #about-sec .about-wrap6 .checklist {
  margin-top: 28px;
}

html[dir="rtl"] #about-sec .checklist.list-two-column ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 26px;
  direction: rtl;
  padding: 0;
  text-align: right;
}

html[dir="rtl"] #about-sec .checklist.list-two-column ul li {
  margin: 0;
  padding-right: 26px;
  font-size: 16px;
  line-height: 1.65;
}

html[dir="rtl"] #about-sec .about-wrap6 .btn-group {
  margin-top: 30px !important;
  gap: 16px;
}

html[dir="rtl"] #about-sec .img-box6-1,
html[dir="rtl"] #about-sec .img-box6-1 .img1,
html[dir="rtl"] #about-sec .img-box6-1 img {
  height: 100%;
}

html[dir="rtl"] #about-sec .img-box6-1 .img1 {
  min-height: 540px;
}

html[dir="rtl"] #about-sec .img-box6-1 img {
  width: 100%;
  object-fit: cover;
  object-position: center;
}

/* Rehabilitation tabs: compact cards rather than oversized template panels. */
html[dir="rtl"] #project-sec .title-area {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

html[dir="rtl"] #project-sec .row {
  align-items: stretch;
  --bs-gutter-x: 24px;
  margin-right: 0;
  margin-left: 0;
}

html[dir="rtl"] #project-sec .row > [class*="col-"] {
  padding-right: 12px;
  padding-left: 12px;
}

html[dir="rtl"] #project-sec .service-card-tab2 {
  gap: 14px;
}

html[dir="rtl"] #project-sec .service-card-tab2 .tab-btn {
  min-height: 102px;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid #dce9ef;
  border-radius: 14px;
  font-family: 'Alexandria', 'Tajawal', sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.55;
  text-align: right;
  box-shadow: none;
}

html[dir="rtl"] #project-sec .service-card-tab2 .tab-btn .box-date-wrap {
  width: 128px;
  padding: 0 0 0 18px;
  border-right: 0;
  border-left: 1px solid #dce9ef;
}

html[dir="rtl"] #project-sec .service-card-tab2 .tab-btn .box-subtitle {
  font-family: 'Alexandria', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

html[dir="rtl"] #project-sec .service-card-tab2 .tab-btn .box-date {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
}

html[dir="rtl"] #project-sec .service-card-tab2 .tab-btn .box-number {
  width: 48px;
  height: 48px;
  margin: 0 0 0 2px;
  border-radius: 10px;
  font-family: 'Alexandria', sans-serif;
  font-size: 16px;
}

html[dir="rtl"] #project-sec .service-card-tab2 .tab-btn.active {
  background: #143a63;
  border-color: #143a63;
}

html[dir="rtl"] #project-sec .service-card7 {
  height: 100%;
  padding: 16px;
  background: #fff;
  border: 1px solid #dce9ef;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(20, 58, 99, 0.06);
}

html[dir="rtl"] #project-sec .service-card7 .box-img {
  height: 280px;
  margin-bottom: 20px;
  border-radius: 12px;
}

html[dir="rtl"] #project-sec .service-card7 .box-img img {
  height: 100%;
  object-fit: cover;
}

html[dir="rtl"] #project-sec .service-card7 .box-content {
  padding: 0 6px 8px;
}

html[dir="rtl"] #project-sec .service-card7 .box-title {
  font-size: 24px;
  line-height: 1.45;
  margin-bottom: 10px;
}

html[dir="rtl"] #project-sec .service-card7 .box-text {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}

html[dir="rtl"] #project-sec .service-card7 .th-btn {
  padding: 15px 18px;
  border-radius: 10px;
  font-weight: 700;
}

@media (max-width: 1199px) {
  html[dir="rtl"] #about-sec .col-xl-5,
  html[dir="rtl"] #about-sec .col-xl-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  html[dir="rtl"] #about-sec .col-xl-5 {
    order: 1 !important;
  }

  html[dir="rtl"] #about-sec .col-xl-4 {
    order: 2 !important;
  }

  html[dir="rtl"] #about-sec .img-box6-1 .img1 {
    min-height: 420px;
  }
}

@media (max-width: 767px) {
  html[dir="rtl"] #about-sec .about-wrap6 {
    padding: 28px 22px;
  }

  html[dir="rtl"] #about-sec .about-wrap6 .sec-text {
    font-size: 18px;
  }

  html[dir="rtl"] #about-sec .checklist.list-two-column ul {
    grid-template-columns: 1fr;
  }

  html[dir="rtl"] #about-sec .img-box6-1 .img1 {
    min-height: 320px;
  }

  html[dir="rtl"] #project-sec .service-card-tab2 .tab-btn {
    display: flex;
    align-items: center;
    min-height: 0;
    gap: 12px;
    padding: 14px;
    font-size: 16px;
  }

  html[dir="rtl"] #project-sec .service-card-tab2 .tab-btn .box-date-wrap {
    width: 102px;
    padding-left: 12px;
  }

  html[dir="rtl"] #project-sec .service-card-tab2 .tab-btn .box-number {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  html[dir="rtl"] #project-sec .service-card7 .box-img {
    height: 220px;
  }
}

/* Booking steps: preserve the visual order and controls when Arabic is RTL. */
html[dir="rtl"] #process-sec .row {
  direction: rtl;
}

html[dir="rtl"] #process-sec .accordion-area5,
html[dir="rtl"] #faq-sec .accordion-physio {
  display: grid;
  gap: 12px;
}

html[dir="rtl"] #process-sec .accordion-card {
  margin: 0;
  border: 1px solid #dce9ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(20, 58, 99, 0.05);
}

html[dir="rtl"] #process-sec .accordion-button {
  min-height: 76px;
  padding: 16px 22px;
  background: #fff;
  color: #143a63;
  direction: rtl;
  text-align: right;
  font-family: 'Alexandria', 'Tajawal', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
  box-shadow: none;
}

html[dir="rtl"] #process-sec .accordion-button::after,
html[dir="rtl"] #faq-sec .accordion-button::after {
  margin-right: auto;
  margin-left: 0;
  background-position: center;
}

html[dir="rtl"] #process-sec .accordion-card.style4 .accordion-button::after {
  top: 50%;
  right: auto;
  left: 18px;
  width: 32px;
  height: 32px;
  padding: 0;
  transform: translateY(-50%);
}

html[dir="rtl"] #process-sec .accordion-button .box-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin-right: 0;
  margin-left: 14px;
  place-items: center;
  border-radius: 50%;
  background: #edf7fb;
}

html[dir="rtl"] #process-sec .accordion-button .box-icon i {
  margin: 0;
  font-size: 17px;
}

html[dir="rtl"] #process-sec .accordion-card.active .accordion-button,
html[dir="rtl"] #process-sec .accordion-button:not(.collapsed) {
  background: #f2f9fb;
}

html[dir="rtl"] #process-sec .accordion-body {
  padding: 0 78px 18px 22px;
  background: #f2f9fb;
  color: #536b81;
}

html[dir="rtl"] #process-sec .accordion-body .faq-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
}

/* FAQ: calm, tappable cards rather than thin unstructured rows. */
html[dir="rtl"] #faq-sec {
  background: #f8fcfd;
}

html[dir="rtl"] #faq-sec .accordion-item {
  margin: 0;
  border: 1px solid #dce9ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(20, 58, 99, 0.045);
}

html[dir="rtl"] #faq-sec .accordion-button {
  padding: 18px 22px;
  background: #fff;
  color: #143a63;
  direction: rtl;
  text-align: right;
  font-family: 'Alexandria', 'Tajawal', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  box-shadow: none;
}

html[dir="rtl"] #faq-sec .accordion-button:not(.collapsed) {
  background: #eef7fa;
  color: #143a63;
  box-shadow: none;
}

html[dir="rtl"] #faq-sec .accordion-body {
  padding: 0 22px 20px;
  background: #fff;
  color: #536b81;
  font-size: 16px;
  line-height: 1.9;
}

/* FAQ: each question reads as a clear care note, not a generic row. */
html[dir="rtl"] #faq-sec .accordion-physio {
  position: relative;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dce9ef;
  border-radius: 22px;
  background: linear-gradient(145deg, #eaf6f8 0%, #f8fcfd 65%);
  box-shadow: 0 18px 40px rgba(20, 58, 99, 0.08);
  counter-reset: faq-item;
}

html[dir="rtl"] #faq-sec .accordion-item {
  position: relative;
  overflow: hidden;
  counter-increment: faq-item;
  border-color: rgba(20, 58, 99, 0.1);
  box-shadow: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

html[dir="rtl"] #faq-sec .accordion-item:has(.accordion-button:not(.collapsed)) {
  border-color: rgba(47, 169, 189, 0.42);
  box-shadow: 0 10px 24px rgba(20, 58, 99, 0.08);
}

html[dir="rtl"] #faq-sec .accordion-button {
  min-height: 68px;
  padding: 17px 76px 17px 58px;
}

html[dir="rtl"] #faq-sec .accordion-button::before {
  content: counter(faq-item, decimal-leading-zero);
  position: absolute;
  top: 50%;
  right: 17px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 11px;
  background: #e8f5f8;
  color: #2fa9bd;
  font-family: 'Arial', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

html[dir="rtl"] #faq-sec .accordion-button:not(.collapsed)::before {
  background: #2fa9bd;
  color: #fff;
}

html[dir="rtl"] #faq-sec .accordion-button::after {
  position: absolute;
  top: 50%;
  right: auto;
  left: 20px;
  width: 28px;
  height: 28px;
  margin: 0;
  transform: translateY(-50%);
  border: 1px solid #dce9ef;
  border-radius: 50%;
  background-color: #fff;
  background-position: center;
}

html[dir="rtl"] #faq-sec .accordion-button:not(.collapsed) {
  background: #f4fbfc;
}

html[dir="rtl"] #faq-sec .accordion-body {
  margin: 0 76px 0 58px;
  padding: 0 0 18px;
  background: #f4fbfc;
  color: #60768a;
}

/* Use the theme's light card footer, tailored to the site's identity. */
html[dir="rtl"] .footer-layout1 {
  margin-top: 0;
  padding: 76px 0 0;
  background-color: #123b63;
  background-image: linear-gradient(rgba(12, 47, 78, 0.9), rgba(12, 47, 78, 0.96)), url('../img/normal/contact_4.jpg') !important;
  background-size: cover;
  background-position: center bottom;
}

html[dir="rtl"] .footer-layout1 .widget-area {
  margin: 0 40px;
  padding: 52px 56px 34px;
}

html[dir="rtl"] .footer-layout1 .about-logo img {
  display: block;
  width: min(205px, 100%);
  height: auto;
}

html[dir="rtl"] .footer-layout1 .widget_title {
  margin-bottom: 20px;
  color: #143a63;
  font-size: 20px;
}

html[dir="rtl"] .footer-layout1 .about-text,
html[dir="rtl"] .footer-layout1 .footer-widget .menu a,
html[dir="rtl"] .footer-layout1 .th-widget-contact .info-box_text,
html[dir="rtl"] .footer-layout1 .copyright-text {
  color: #536b81 !important;
}

html[dir="rtl"] .footer-layout1 .footer-widget .menu a:hover {
  color: #d96a78 !important;
}

html[dir="rtl"] .footer-layout1 .th-widget-contact .info-box {
  display: flex;
  max-width: none;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  text-align: right;
}

html[dir="rtl"] .footer-layout1 .th-widget-contact .info-box_icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  min-width: 34px;
  height: 34px;
  margin: 0;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: #eef7fa;
  line-height: 1;
  font-size: 15px;
}

html[dir="rtl"] .footer-layout1 .th-widget-contact .info-box_text {
  margin: 0;
  line-height: 1.5;
}

html[dir="rtl"] .footer-layout1 .th-widget-contact {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

html[dir="rtl"] .footer-layout1 .th-widget-contact .info-box {
  min-height: 48px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(20, 58, 99, 0.09);
}

html[dir="rtl"] .footer-layout1 .th-widget-contact .info-box:last-child {
  border-bottom: 0;
}

html[dir="rtl"] .footer-layout1 .copyright-wrap {
  margin-top: 38px;
  border-color: #dce9ef !important;
}

html[dir="rtl"] .footer-layout1 .copyright-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.94) !important;
}

html[dir="rtl"] .footer-layout1 .copyright-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

html[dir="rtl"] .footer-layout1 .privacy-link {
  color: #d96a78;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

html[dir="rtl"] .footer-layout1 .privacy-link:hover,
html[dir="rtl"] .footer-layout1 .privacy-link:focus-visible {
  color: #143a63;
  text-decoration: underline;
}

/* Persistent actions stay on the right in Arabic and keep sufficient spacing. */
html[dir="rtl"] .floating-whatsapp-widget {
  right: 25px;
  left: auto;
}

.floating-call-widget {
  position: fixed;
  right: 25px;
  bottom: 98px;
  z-index: 99999;
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #143a63;
  color: #fff !important;
  font-size: 22px;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(20, 58, 99, 0.28);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.floating-call-widget:hover {
  transform: scale(1.08);
  background: #d96a78;
}

/* Compact header and hero hierarchy. */
html[dir="rtl"] .header-layout6 .main-menu > ul > li {
  margin: 0 12px;
}

html[dir="rtl"] .hero-style6 .sub-title {
  font-size: 14px;
}

html[dir="rtl"] .hero-style6 .hero-title {
  max-width: 650px;
  font-size: clamp(2.15rem, 3.15vw, 3rem);
  line-height: 1.42;
}

/* The header has its own space above the hero and sticks without a layout jump. */
html[dir="rtl"] .header-layout6 {
  position: sticky;
  top: 0;
  margin-bottom: -120px;
  z-index: 9998;
}

html[dir="rtl"] .header-layout6 .sticky-wrapper,
html[dir="rtl"] .header-layout6 .sticky-wrapper.sticky {
  position: relative !important;
  top: auto;
  right: 0;
  left: 0;
  width: 100%;
  margin-top: 32px !important;
  padding: 10px 0;
  z-index: 9999 !important;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

html[dir="rtl"] .header-layout6 .sticky-wrapper .menu-area,
html[dir="rtl"] .header-layout6 .sticky-wrapper.sticky .menu-area {
  min-height: 82px;
  padding: 0 22px;
  border: 1px solid rgba(20, 58, 99, 0.1);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(20, 58, 99, 0.08);
  transition: box-shadow 0.25s ease, border-radius 0.25s ease;
}

html[dir="rtl"] .header-layout6 .sticky-wrapper .header-logo img,
html[dir="rtl"] .header-layout6 .sticky-wrapper.sticky .header-logo img {
  width: min(205px, 42vw);
}

html[dir="rtl"] .header-layout6 .sticky-wrapper .main-menu > ul > li > a,
html[dir="rtl"] .header-layout6 .sticky-wrapper.sticky .main-menu > ul > li > a {
  padding: 27px 0;
  font-size: 15px;
  font-weight: 800;
}

html[dir="rtl"] .header-layout6 .sticky-wrapper .header-button .th-btn,
html[dir="rtl"] .header-layout6 .sticky-wrapper.sticky .header-button .th-btn {
  padding: 14px 17px;
  font-size: 14px;
}

/* The hero is readable immediately; theme entrance animation can otherwise leave its Arabic copy hidden. */
html[dir="rtl"] .hero-style6 [data-ani],
html[dir="rtl"] .hero-style6 .slideinup {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* One shared reading width: background bands stay full-bleed, while every section aligns to the same calm content column. */
@media (min-width: 1300px) {
  html[dir="rtl"],
  html[dir="rtl"] .th-container,
  html[dir="rtl"] .th-container2,
  html[dir="rtl"] .th-container3,
  html[dir="rtl"] .th-container4,
  html[dir="rtl"] .th-container5 {
    --main-container: 1320px;
  }
}

/* The recommended-plan label is contained by its card at every viewport. */
html[dir="rtl"] #pricing-sec .pricing-featured-card {
  position: relative;
  overflow: hidden;
}

html[dir="rtl"] #pricing-sec .pricing-highlight {
  position: static !important;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 13px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 214, 91, 0.55);
  border-radius: 999px;
  background: rgba(255, 214, 91, 0.14);
  color: #ffe39a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

html[dir="rtl"] #pricing-sec .pricing-highlight i {
  color: #ffd65b;
  font-size: 11px;
}

/* Put every benefit icon on its own line marker, centered against its text. */
html[dir="rtl"] #about-sec .checklist.list-two-column ul li {
  display: flex;
  align-items: center;
  min-height: 30px;
  padding-right: 38px;
  padding-left: 0;
}

html[dir="rtl"] #about-sec .checklist.list-two-column ul li::before {
  top: 50%;
  right: 0;
  left: auto;
  margin: 0;
  transform: translateY(-50%);
  line-height: 1;
}

/* Target cards use a consistent visible icon alongside each case title. */
html[dir="rtl"] #target-sec .bg-white {
  position: relative;
  padding: 26px !important;
  text-align: right;
}

html[dir="rtl"] #target-sec .target-card-icon {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 !important;
  place-items: center;
  border-radius: 12px;
  background: #eaf7fa;
  color: #2f9db0 !important;
  font-size: 19px !important;
}

html[dir="rtl"] #target-sec .bg-white h4 {
  display: flex;
  min-height: 42px;
  margin-bottom: 10px;
  padding-right: 56px;
  align-items: center;
  text-align: right;
  line-height: 1.55;
}

html[dir="rtl"] #target-sec .bg-white p {
  margin: 0;
  text-align: right;
  line-height: 1.75;
}

/* The two persistent actions intentionally share the same distinctive shape. */
html[dir="rtl"] .floating-whatsapp-widget,
.floating-call-widget {
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(20, 58, 99, 0.28);
}

html[dir="rtl"] .floating-whatsapp-widget {
  font-size: 28px;
}

.floating-call-widget {
  bottom: 96px;
  font-size: 21px;
}

@media (max-width: 767px) {
  html[dir="rtl"] .header-layout6 .sticky-wrapper,
  html[dir="rtl"] .header-layout6 .sticky-wrapper.sticky {
    margin-top: 8px !important;
    padding: 8px 0;
  }

  html[dir="rtl"] .header-layout6 .sticky-wrapper .menu-area,
  html[dir="rtl"] .header-layout6 .sticky-wrapper.sticky .menu-area {
    min-height: 66px;
    padding: 0 14px;
    border-radius: 14px;
  }

  html[dir="rtl"] .hero-style6 {
    max-width: none;
    padding: 142px 24px 92px;
  }

  html[dir="rtl"] .hero-style6 .hero-title {
    max-width: 620px;
    font-size: clamp(2.1rem, 9vw, 2.8rem);
    line-height: 1.35;
  }

  html[dir="rtl"] .hero-style6 p {
    max-width: 580px;
    font-size: 16px !important;
    line-height: 1.8;
  }

  html[dir="rtl"] #process-sec .accordion-button,
  html[dir="rtl"] #faq-sec .accordion-button {
    padding: 15px 16px;
    font-size: 14px;
  }

  html[dir="rtl"] #process-sec .accordion-body {
    padding: 0 16px 16px;
  }

  html[dir="rtl"] #process-sec .accordion-body .faq-text,
  html[dir="rtl"] #faq-sec .accordion-body {
    font-size: 14px;
  }

  html[dir="rtl"] #faq-sec .accordion-physio {
    padding: 8px;
    border-radius: 18px;
  }

  html[dir="rtl"] #faq-sec .accordion-button {
    min-height: 62px;
    padding: 14px 62px 14px 48px;
  }

  html[dir="rtl"] #faq-sec .accordion-button::before {
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 11px;
  }

  html[dir="rtl"] #faq-sec .accordion-button::after {
    left: 14px;
    width: 25px;
    height: 25px;
  }

  html[dir="rtl"] #faq-sec .accordion-body {
    margin: 0 62px 0 48px;
    padding-bottom: 15px;
  }

  html[dir="rtl"] .footer-layout1 {
    padding-top: 56px;
  }

  html[dir="rtl"] .footer-layout1 .widget-area {
    margin: 0 12px;
    padding: 36px 24px 28px;
  }

  html[dir="rtl"] .footer-layout1 .copyright-row {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  html[dir="rtl"] .floating-whatsapp-widget {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
    font-size: 25px;
  }

  .floating-call-widget {
    right: 16px;
    bottom: 78px;
    width: 52px;
    height: 52px;
    font-size: 19px;
  }

  html[dir="rtl"] #target-sec .bg-white {
    padding: 22px !important;
  }

  html[dir="rtl"] .header-layout6 .sticky-wrapper.sticky {
    padding: 6px 0;
  }

  html[dir="rtl"] .header-layout6 .sticky-wrapper.sticky .menu-area {
    min-height: 60px;
    padding: 0 12px;
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html *,
  html *::before,
  html *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Apply Tishreen to all written UI while preserving the icon-font families. */
html[dir="rtl"] body,
html[dir="rtl"] body *:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
  font-family: 'Tishreen', sans-serif !important;
}
