/* -----------------------------------------------------------------------------
   NEGM CLINIC customisations (theme custom stylesheet)
-------------------------------------------------------------------------------- */

/* Logo icon in a circle, placed before section subtitles */
.nc-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Page-header titles: two balanced lines, the second in a light gradient */
.sn-breadcrumb-content .bread_title {
  text-wrap: balance;
}
.nc-grad {
  color: transparent;
  -webkit-background-clip: text;
          background-clip: text;
  background-image: linear-gradient(-90deg, #ffffff 0%, #b9d0ff 55%, #7fa6f5 100%);
}

/* Back-to-top button: arrow icon */
.mx-scrollup i {
  font-size: 18px;
  line-height: inherit;
}

/* Phone numbers and social handles inside the hero info cards are links */
.mx-app-cta-item .item-list li a {
  color: inherit;
}
.mx-app-cta-item .item-list li a:hover {
  color: var(--mx-prime-c);
}

/* Gradient line on light backgrounds; split-text words (animated headings) carry the gradient too */
.nc-grad.is-dark {
  background-image: linear-gradient(-90deg, #1c4fa8 0%, #3368c6 50%, #5b8def 100%);
}
.nc-grad div {
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
          background-clip: text;
  background-image: inherit;
}

/* Header logo stands out on photo backgrounds: soft white glow under the mark and lettering */
img[src*="brand/logo.svg"],
img[src*="brand/logo-home.svg"] {
  -webkit-filter: drop-shadow(0 2px 3px rgba(255, 255, 255, 0.7)) drop-shadow(0 4px 10px rgba(255, 255, 255, 0.45));
          filter: drop-shadow(0 2px 3px rgba(255, 255, 255, 0.7)) drop-shadow(0 4px 10px rgba(255, 255, 255, 0.45));
}

/* Experience badge: number and label aligned to the start of the box */
.mx-abt1-exp .item-text {
  text-align: start;
}

/* Arabic headings kept to their intended two lines (one line for the Why Choose Us title) */
.mx-abt1-exp .item-text h3 {
  white-space: nowrap;
}
@media (min-width: 1200px) {
  [dir="rtl"] .mx-ab3-top .mx-sec-title {
    max-width: 1100px;
  }
  [dir="rtl"] .mx-ab3-top .mx-sec-title .sec_title {
    font-size: 36px;
  }
  [dir="rtl"] .mx-abt-title .ab1_title {
    max-width: 820px;
  }
  [dir="rtl"] .mx-wc3-text-wrap .sec_title {
    font-size: 36px;
    white-space: nowrap;
  }
}
@media (min-width: 1200px) and (max-width: 1399px) {
  [dir="rtl"] .mx-ab3-top .mx-sec-title .sec_title {
    font-size: 28px;
  }
}

/* Why Choose Us counters: four square cards (one row on wide screens, two by two on phones) */
.mx-wc3-count-wrap {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.mx-wc3-count-item .item-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
}
.mx-wc3-count-item .item-icon i {
  font-size: 22px;
}
.mx-wc3-count-item .item-text h3 {
  font-size: 30px;
}
.mx-wc3-count-item .item-text p {
  font-size: 14px;
}
@media (min-width: 1200px) and (max-width: 1399px) {
  .mx-wc3-count-item .item-text h3 {
    font-size: 25px;
  }
  .mx-wc3-count-item .item-text p {
    font-size: 13px;
  }
}
@media (max-width: 767px) {
  .mx-wc3-count-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mx-wc3-count-item {
    max-width: 100%;
  }
  .mx-wc3-count-item .item-text h3 {
    font-size: 30px;
  }
}

/* Headings with a shorter phone wording */
.nc-desk,
.nc-mob {
  color: inherit !important;
}
.nc-mob {
  display: none !important;
}
@media (max-width: 767px) {
  .nc-desk {
    display: none !important;
  }
  .nc-mob {
    display: inline !important;
  }
}

/* Phones: tighter vertical rhythm */
@media (max-width: 767px) {
  .pt-100, .pt-120, .pt-145, .pt-200 { padding-top: 50px !important; }
  .pb-100, .pb-120, .pb-165 { padding-bottom: 50px !important; }
  .pt-80 { padding-top: 40px !important; }
  .mt-50, .mt-55, .mt-60, .mt-85, .mt-150 { margin-top: 28px !important; }
  .mt-45 { margin-top: 24px !important; }
  .mb-45, .mb-50, .mb-55 { margin-bottom: 24px !important; }
  .e-con.e-parent > .e-con-inner {
    padding-top: min(var(--padding-top, 0px), 50px) !important;
    padding-bottom: min(var(--padding-bottom, 0px), 50px) !important;
  }
  .e-con-full.e-parent {
    padding-top: min(var(--padding-top, 0px), 50px) !important;
    padding-bottom: min(var(--padding-bottom, 0px), 50px) !important;
  }
  .m-brand-logo {
    margin-top: 16px !important;
    margin-bottom: 16px !important;
  }
  .mx-hero3-wrapper {
    padding-top: 120px !important;
  }
  .mx-hero-client {
    margin-top: 28px !important;
  }
  .sn-breadcrumb-content {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }
  .mx-wc3-content {
    padding-top: 50px !important;
  }
  .mx-wc3-text-wrap {
    padding: 36px 20px !important;
  }
  .mx-wc3-list {
    gap: 10px;
    margin-bottom: 22px;
    align-items: center;
    flex-direction: column;
  }
  .mx-wc3-list span {
    width: 40px;
    height: 40px;
  }
  /* home services: compact tabs that scroll sideways, compact card */
  .mx-ser3-slide-thumb {
    height: auto !important;
  }
  .mx-ser3-thumb .ser3-thumb {
    font-size: 17px;
    padding: 12px 14px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mx-ser3-slider-wrap {
    gap: 16px;
  }
  .mx-ser3-item .item-text {
    padding: 22px 18px;
  }
  .mx-ser3-item .item-text .item-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
  }
  .mx-ser3-item .item-img {
    height: 220px !important;
  }
  .mx-ser3-item .item-title {
    font-size: 20px;
  }
  .mx-ser3-item p {
    padding-bottom: 16px;
  }
  .mx-ab3-ft-item .item-text {
    padding: 12px 14px;
  }
  .mx-workp3-step .item-text {
    padding: 18px;
  }
  .mx-testi1-ratting {
    margin-top: 40px !important;
  }
  .mx-testi1-content {
    padding-top: 50px !important;
  }
  .mx-ftr-wrapper {
    padding-top: 40px !important;
  }
  .mx-ftr-newslatter {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }
  .mx-ftr1-widget-wrapper {
    padding-bottom: 30px !important;
  }
  .mx-ftr1-widget .social-widget {
    padding: 30px 20px 0 !important;
  }
  .mx-ftr1-widget .menu-widget,
  .mx-ftr1-widget .recent-widget {
    padding-top: 30px !important;
  }
}

/* Arabic on phones: content centred, headings sized to two lines at most */
@media (max-width: 767px) {
  [dir="rtl"] .mx-hero3-text,
  [dir="rtl"] .mx-sec-title,
  [dir="rtl"] .mx-sec-title p,
  [dir="rtl"] .mx-abt-title,
  [dir="rtl"] .top-desc,
  [dir="rtl"] .mx-ab3-feature-wrap .item-decs,
  [dir="rtl"] .mx-appoint2-text,
  [dir="rtl"] .mx-workp3-text-wrap,
  [dir="rtl"] .mx-wc3-text-wrap,
  [dir="rtl"] .mx-wc3-list .item-text,
  [dir="rtl"] .mx-testi1-text-wrap,
  [dir="rtl"] .mx-abt1-text,
  [dir="rtl"] .mx-ser3-item .item-text,
  [dir="rtl"] .mx-ftr1-widget,
  [dir="rtl"] .mx-ftr-copyright,
  [dir="rtl"] .mx-ftr-newsltr-wrap,
  [dir="rtl"] .prthalign {
    text-align: center !important;
  }
  [dir="rtl"] .mx-hero3-text .hero-slug,
  [dir="rtl"] .mx-hero3-text .btn-wrap,
  [dir="rtl"] .mx-hero-client,
  [dir="rtl"] .mx-abt-title,
  [dir="rtl"] .mx-sec-title .subtitle,
  [dir="rtl"] .mx-abt-title .subtitle,
  [dir="rtl"] .mx-ser3-top,
  [dir="rtl"] .mx-ftr1-widget .social-widget .social-icon,
  [dir="rtl"] .mx-ftr-copyright {
    justify-content: center !important;
  }
  [dir="rtl"] .mx-ser3-item .item-text {
    align-items: center;
  }
  [dir="rtl"] .mx-ser3-item .read_more {
    justify-content: center;
  }
  [dir="rtl"] .mx-ftr-copyright {
    flex-direction: column;
    gap: 6px;
  }
  [dir="rtl"] .mx-ftr1-widget,
  [dir="rtl"] .mx-ftr1-widget .menu-widget,
  [dir="rtl"] .mx-ftr1-widget .recent-widget,
  [dir="rtl"] .mx-ftr1-widget .social-widget {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
    border: none;
  }
  [dir="rtl"] .mx-ftr1-widget .rec-news-item {
    text-align: start;
  }
  [dir="rtl"] .mx-wc3-list span,
  [dir="rtl"] .mx-ser3-item .item-text .item-icon {
    margin-right: auto;
    margin-left: auto;
  }
  [dir="rtl"] .top-desc .mx-btn1,
  [dir="rtl"] .mx-workp3-text-wrap .mx-btn1,
  [dir="rtl"] .mx-wc3-text-wrap .mx-btn1,
  [dir="rtl"] .mx-sec-title + .mx-btn1 {
    display: flex;
    justify-content: center;
  }
  [dir="rtl"] .mx-hero3-text .hero-title {
    font-size: 30px;
  }
  [dir="rtl"] .mx-sec-title .sec_title,
  [dir="rtl"] .mx-ab3-top .mx-sec-title .sec_title,
  [dir="rtl"] .mx-wc3-text-wrap .mx-sec-title .sec_title,
  [dir="rtl"] .mx-testi1-text-wrap .mx-sec-title .sec_title {
    font-size: 26px;
  }
  [dir="rtl"] .mx-abt-title .ab1_title {
    font-size: 24px;
  }
  [dir="rtl"] .mx-cta3-item .item-text h3 {
    font-size: 20px;
  }
  [dir="rtl"] .sn-breadcrumb-content .bread_title {
    font-size: 30px;
  }
  [dir="rtl"] .mx-blog2-item .item-text .blg_title {
    font-size: 19px;
  }
}

/* Phones: FAQ, call-to-action and article cards */
@media (max-width: 767px) {
  .mx-faq3-wrap .mx-faq3-shape,
  .mx-faq3-wrap .mx-faq3-shape2 {
    display: none;
  }
  .mx-faq3-content {
    padding: 10px !important;
  }
  .mx-faq3-content .accordion-item {
    padding: 16px 14px !important;
  }
  .mx-faq3-content .accordion-button {
    padding: 0 !important;
    font-size: 17px;
  }
  .mx-faq3-content .accordion-body .bi-faq-text {
    padding: 12px 0 0 !important;
  }
  .mx-cta3-item {
    border: none;
  }
  .mx-cta3-item .blank-space {
    height: 110px !important;
  }
  .mx-cta3-item .item-text {
    padding: 26px 16px;
    border-radius: 24px;
  }
  .mx-cta3-sec .mx-cta3-content {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  .mx-team1-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .mx-team1-top .mx-btn1 {
    display: flex;
    justify-content: center;
  }
  .mx-blog2-content {
    gap: 18px !important;
  }
  .mx-blog2-item {
    padding: 10px;
    border-radius: 22px;
    background-color: #fff;
    border: 1px solid rgba(9, 36, 60, 0.06);
    box-shadow: 0 10px 28px rgba(9, 36, 60, 0.07);
  }
  .mx-blog2-item .item-img {
    height: 210px;
    margin-bottom: 0;
    border-radius: 16px;
  }
  .mx-blog2-item .item-text {
    padding: 14px 8px 8px;
  }
  .mx-blog2-item .item-text .blg_title {
    margin-bottom: 14px;
  }
}
@media (max-width: 767px) {
  [dir="rtl"] .mx-hero3-text .hero-title {
    font-size: clamp(23px, 7vw, 28px);
  }
  [dir="rtl"] .mx-sec-title .sec_title,
  [dir="rtl"] .mx-ab3-top .mx-sec-title .sec_title {
    font-size: clamp(22px, 6.5vw, 26px);
  }
  [dir="rtl"] .mx-cta3-item .item-text h3 {
    font-size: clamp(18px, 5.2vw, 21px);
  }
  [dir="rtl"] .b-thumbnail h1 {
    font-size: 24px;
  }
}

/* Arabic phones: hero photo, buttons, footer, spacing above Why Choose Us */
@media (max-width: 767px) {
  [dir="rtl"] .mx-hero3-img-wrap {
    display: none !important;
  }
  [dir="rtl"] .mx-btn1,
  [dir="rtl"] .mx-btn2 {
    display: flex;
    justify-content: center;
  }
  [dir="rtl"] .mx-ftr-newsltr-wrap {
    display: none !important;
  }
  [dir="rtl"] .mx-ftr1-widget .widget-title:before {
    right: 0;
    left: 0;
    margin: 0 auto;
  }
  [dir="rtl"] .mx-ftr1-widget .recent-news-wrap {
    max-width: 330px;
    margin: 0 auto;
  }
  [dir="rtl"] .mx-ftr1-widget .rec-news-item,
  [dir="rtl"] .mx-ftr1-widget .rec-news-item .item-text {
    text-align: start;
  }
  [dir="rtl"] .mx-item-scroll-wrap {
    display: none;
  }
  [dir="rtl"] .mx-wc3-content {
    padding-top: 24px !important;
  }
}
/* sideways overflow is clipped on the page wrapper (not on html/body, which unsettles fixed buttons on iPhone) */
@supports (overflow: clip) {
  .site_wrapper {
    overflow-x: clip;
  }
}

/* Hero photo under the title on phones only */
.nc-hero-photo {
  display: none;
}
@media (max-width: 767px) {
  [dir="rtl"] .nc-hero-photo {
    display: block;
    margin: 4px 0 22px;
  }
  [dir="rtl"] .nc-hero-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(9, 36, 60, 0.18);
  }
  /* full-width blocks that also carry side margins stay inside the screen */
  .e-con.e-parent {
    width: auto !important;
  }
  [dir="rtl"] .mx-ab3-top {
    justify-content: center !important;
  }
  [dir="rtl"] .mx-ab3-top .mx-sec-title,
  [dir="rtl"] .mx-ser1-top .mx-sec-title {
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    max-width: 100%;
  }
  /* home services: card content always visible on phones */
  [dir="rtl"] .mx-ser3-item p,
  [dir="rtl"] .mx-ser3-item .item-title,
  [dir="rtl"] .mx-ser3-item .read_more {
    opacity: 1 !important;
    transform: none !important;
  }
  [dir="rtl"] .mx-ser3-item .item-text .item-icon {
    clip-path: none !important;
  }
  /* call-to-action: white box inset from the photo edges */
  [dir="rtl"] .mx-cta3-item .item-text {
    margin: 0 14px;
  }
  /* visit steps: number centred against its card; description without the forced line break */
  [dir="rtl"] .mx-workp3-step {
    align-items: center;
  }
  [dir="rtl"] .mx-workp3-step:before,
  [dir="rtl"] .mx-workp3-step:after {
    display: none;
  }
  [dir="rtl"] .mx-workp3-step .item-text p br {
    display: none;
  }
  /* footer columns and contact rows centred */
  [dir="rtl"] .mx-ftr1-widget .menu-widget,
  [dir="rtl"] .mx-ftr1-widget .recent-widget,
  [dir="rtl"] .mx-ftr1-widget .social-widget {
    padding-right: 0 !important;
    padding-left: 0 !important;
    min-width: 0 !important;
  }
  [dir="rtl"] .mx-ftr1-widget .menu-widget ul {
    padding: 0;
  }
  [dir="rtl"] .mx-appoint2-list,
  [dir="rtl"] .mx-appt-list {
    margin-right: 0 !important;
    margin-left: 0 !important;
    max-width: 100% !important;
  }
}
@media (max-width: 767px) {
  [dir="rtl"] .mx-ftr1-widget {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
  [dir="rtl"] .mx-appt-list {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }
}

/* ---------------- Arabic desktop refinements ---------------- */
/* subtitle pills: equal space before the icon and after the label */
[dir="rtl"] .mx-sec-title .subtitle span,
[dir="rtl"] .mx-abt-title .subtitle span {
  padding: 6px 14px !important;
}
/* footer: developer credit stands out a little */
[dir="rtl"] .mx-ftr-copyright a[href*="rp-realpromotion"] {
  font-weight: 700;
  color: var(--mx-prime-c);
}
/* empty scrolling strip between Services and Why Choose Us */
[dir="rtl"] .mx-item-scroll-wrap {
  display: none;
}
/* visit steps: number, card content and line centred vertically; line fills as the page scrolls */
[dir="rtl"] .mx-workp3-step {
  align-items: center;
}
[dir="rtl"] .mx-workp3-step .item-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
[dir="rtl"] .mx-workp3-step .item-serial span {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--mx-heading);
  color: var(--mx-prime-c2);
}
[dir="rtl"] .mx-workp3-step:before,
[dir="rtl"] .mx-workp3-step:after {
  top: 50%;
  height: calc(100% + 20px);
}
[dir="rtl"] .mx-workp3-step:after,
[dir="rtl"] .mx-workp3-step:is(.active):after {
  height: calc((100% + 20px) * var(--fill, 0));
  transition: none;
}
@media (min-width: 768px) {
  /* call-to-action: no white frame, the white card sits in the middle of the photo */
  [dir="rtl"] .mx-cta3-item {
    border: none;
  }
  [dir="rtl"] .mx-cta3-item .blank-space {
    display: none;
  }
  [dir="rtl"] .mx-cta3-sec .mx-cta3-content {
    display: flex;
    min-height: 440px;
    align-items: center;
  }
  [dir="rtl"] .mx-cta3-item .item-text {
    border-radius: 30px;
  }
}
@media (min-width: 992px) {
  /* footer newsletter: heading and form centred against each other, equal side padding */
  [dir="rtl"] .mx-ftr-newslatter {
    align-items: center;
  }
  [dir="rtl"] .mx-ftr-newsltr-wrap {
    flex: 1;
    align-items: center;
    padding: 0 50px !important;
  }
  [dir="rtl"] .mx-ftr-newsltr-wrap h2 {
    margin: 0;
  }
}
@media (min-width: 1200px) {
  /* home services block: 100px side margins */
  [dir="rtl"] .mx-ser3-sec {
    margin: 0 100px;
  }
  /* home articles: four cards in a row */
  [dir="rtl"] .mx-blog2-content {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
  [dir="rtl"] .mx-blog2-content .mx-blog2-item .item-img {
    height: 300px;
  }
  /* visit steps: shorter section */
  [dir="rtl"] .elementor-782 .elementor-element.elementor-element-0672bce {
    --padding-top: 70px;
    --padding-bottom: 70px;
  }
  [dir="rtl"] .mx-workp3-step .item-text {
    padding: 20px 26px;
  }
  /* why choose us: one-line descriptions, tighter spacing, less space above the photo */
  [dir="rtl"] .mx-wc3-content {
    padding-top: 100px !important;
  }
  [dir="rtl"] .mx-wc3-content .mx-wc3-img {
    top: 0;
  }
  [dir="rtl"] .mx-wc3-text-wrap {
    padding-top: 44px;
    padding-bottom: 44px;
  }
  [dir="rtl"] .mx-wc3-list .item-text {
    flex: 1;
    max-width: none !important;
  }
  [dir="rtl"] .mx-wc3-list {
    margin-bottom: 22px;
  }
  [dir="rtl"] .mx-wc3-list-wrapper {
    margin-top: 28px !important;
  }
  [dir="rtl"] .mx-wc3-text-wrap .mx-sec-title p,
  [dir="rtl"] .mx-wc3-list .item-text p {
    white-space: nowrap;
  }
}
@media (min-width: 1200px) {
  [dir="rtl"] .mx-wc3-content {
    padding-top: 150px !important;
  }
  [dir="rtl"] .mx-wc3-content .mx-wc3-img {
    top: 50px;
  }
  [dir="rtl"] .mx-workp3-step .item-text p {
    white-space: nowrap;
    font-size: clamp(14px, 1.08vw, 16px);
  }
  [dir="rtl"] .mx-ftr-newsltr-wrap h2 {
    white-space: nowrap;
    font-size: clamp(24px, 2.1vw, 32px);
  }
}

/* ---------------- Arabic round 19 (desktop first, phones follow unless set otherwise) ---------------- */
.nc-br-desk { display: inline; }
@media (max-width: 767px) { .nc-br-desk { display: none; } }
/* why choose us: round number badges centred on the dashed line */
[dir="rtl"] .mx-wc3-list span {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  padding: 0;
  line-height: 1;
}
/* visit steps: intro column centred against the cards */
[dir="rtl"] .elementor-782 .elementor-element.elementor-element-71c2611 {
  --justify-content: center;
  justify-content: center !important;
}
/* article cards (home + articles page): white bordered cards with rounded corners */
[dir="rtl"] .mx-blog2-item {
  padding: 10px;
  border-radius: 22px;
  background-color: #fff;
  border: 1px solid rgba(9, 36, 60, 0.08);
  box-shadow: 0 10px 28px rgba(9, 36, 60, 0.06);
}
[dir="rtl"] .mx-blog2-item .item-img {
  margin-bottom: 0;
  border-radius: 16px;
}
[dir="rtl"] .mx-blog2-item .item-text {
  padding: 16px 10px 8px;
}
/* footer newsletter: space between heading and form */
[dir="rtl"] .mx-ftr-newsltr-wrap {
  gap: 48px;
}
/* menu: the current page looks like the hovered item */
[dir="rtl"] .mx-header-section:is(.header_style_one) .main-navigation li.current-menu-item > a {
  color: #fff;
  background-color: var(--mx-prime-c2);
}
[dir="rtl"] .mx-header-section:is(.header_style_three) .navigation-wrapper .main-navigation li.current-menu-item > a {
  color: var(--mx-prime-c);
}
/* inner pages: the logo sits on a soft frosted plate so it reads on any banner photo */
[dir="rtl"] .mx-header-section:is(.header_style_one) .brand-logo {
  padding: 8px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(9, 36, 60, 0.12);
}
/* phone icons point up-left */
[dir="rtl"] .ct-call svg,
[dir="rtl"] .mx-appt-list img[src*="icon-22"] {
  transform: scaleX(-1);
}
/* service pages: rounded gallery photos */
[dir="rtl"] .gallery .gallery-item img,
[dir="rtl"] .gallery .gallery-icon {
  border-radius: 20px;
  overflow: hidden;
}
/* about page: badge content centred, why-choose icons a little lower */
[dir="rtl"] .mx-abt1-exp {
  align-items: center;
  text-align: center;
}
[dir="rtl"] .mx-abt1-exp .item-text {
  text-align: center;
}
[dir="rtl"] .mx-wc1-item {
  padding-top: 28px;
}
/* contact / booking: details side by side, roomier content, natural-colour shorter map */
[dir="rtl"] .mx-appoint2-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
[dir="rtl"] .mx-appt-list {
  margin: 0 !important;
}
[dir="rtl"] .mx-appt-list a {
  padding-top: 4px;
  padding-bottom: 4px;
}
[dir="rtl"] .mx-appt-list .item-text {
  font-size: 15px;
}
[dir="rtl"] .mx-appoint2-wrapper.pt-145 {
  padding-top: 110px;
}
[dir="rtl"] .mx-appoint2-wrapper.pb-100 {
  padding-bottom: 70px;
}
[dir="rtl"] .elementor-11 .elementor-element.elementor-element-5eb5c90 iframe {
  height: 380px !important;
  filter: none !important;
}
@media (min-width: 992px) {
  [dir="rtl"] .mx-appoint2-content {
    padding: 0 40px;
  }
}
@media (max-width: 575px) {
  [dir="rtl"] .mx-appoint2-list {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1200px) {
  /* home services: less vertical space */
  [dir="rtl"] .mx-ser3-wrap {
    padding-top: 70px !important;
    padding-bottom: 70px !important;
  }
  [dir="rtl"] .mx-ser3-slider-wrap {
    margin-top: 40px !important;
  }
  [dir="rtl"] .mx-ser3-nav {
    margin-top: 30px !important;
  }
  /* about page services slider starts with a whole card on the right */
  [dir="rtl"] .mx-ser1-slider {
    margin-right: 20px;
  }
  /* about intro: smaller photos, tighter section */
  [dir="rtl"] .mx-abt1-img {
    max-width: 380px;
  }
  [dir="rtl"] .mx-abt1-img img,
  [dir="rtl"] .mx-abt1-img2 .item-img img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
  }
  [dir="rtl"] .mx-abt1-exp {
    height: 260px;
    margin-top: -150px;
  }
  [dir="rtl"] .mx-abt1-content.mt-60 {
    margin-top: 36px;
  }
}
@media (min-width: 1200px) {
  [dir="rtl"] .mx-ab3-feature-wrap .item-decs {
    white-space: nowrap;
    font-size: clamp(14px, 1.15vw, 17px);
  }
}

/* ---------------- Arabic round 20 ---------------- */
/* testimonial corner fillers: positions follow RTL, shapes mirrored to match */
[dir="rtl"] .mx-testi1-slider-wrap:before,
[dir="rtl"] .mx-testi1-slider-wrap:after,
[dir="rtl"] .mx-testi1-ratting:before,
[dir="rtl"] .mx-testi1-ratting:after {
  transform: scaleX(-1);
}
/* footer: logo above the clinic line */
[dir="rtl"] .nc-ftr-logo {
  display: block;
  margin-bottom: 22px;
}
[dir="rtl"] .nc-ftr-logo img {
  max-width: 230px;
  height: auto;
}
/* contact / booking: intro text centred against the photo behind it */
[dir="rtl"] .mx-appoint2-content {
  align-items: center !important;
}
/* soft lift instead of the ringing icon animation */
[dir="rtl"] .mx-wc1-item .item-icon {
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 400ms ease, background-color 400ms ease;
}
[dir="rtl"] .mx-wc1-item:hover .item-icon {
  animation: none;
  transform: translateY(-6px);
  background-color: var(--mx-prime-c);
  box-shadow: 0 14px 28px rgba(51, 104, 198, 0.3);
}
/* review stats: each number centred over its label */
[dir="rtl"] .mx-testi1-ratting .item-wrap {
  text-align: center;
  flex: 1;
}
@media (min-width: 1200px) {
  /* home about: the two columns sit together in the middle */
  [dir="rtl"] .mx-ab3-content {
    justify-content: center !important;
    gap: 70px;
  }
  /* about: smaller experience badge, nudged right so the photo shows behind it */
  [dir="rtl"] .mx-abt1-exp {
    width: 230px;
    height: 200px !important;
    padding: 20px;
    margin-top: -120px !important;
    transform: translateX(60px);
  }
  [dir="rtl"] .mx-abt1-exp .item-fav {
    margin-bottom: 8px;
  }
  /* about why-choose: photo inside the card, shorter section, features centred in the photo notch */
  [dir="rtl"] .mx-whyc-content.pt-100 {
    padding-top: 60px;
  }
  [dir="rtl"] .mx-whyc-content.pb-165 {
    padding-bottom: 76px;
  }
  [dir="rtl"] .mx-wc-img {
    right: 0 !important;
    left: auto !important;
    width: 44%;
  }
  [dir="rtl"] .mx-wc-img img {
    width: 100%;
    height: 640px;
    object-fit: cover;
  }
  [dir="rtl"] .mx-why-c-content.mt-150 {
    margin-top: 136px;
  }
  /* about reviews: stats box fully inside the section with equal white space */
  [dir="rtl"] .mx-testi1-ratting {
    margin-left: 40px !important;
    margin-right: 40px !important;
    max-width: 480px;
  }
}

/* ---------------- Arabic phones, round 21 ---------------- */
[dir="rtl"] .mx-wc3-list span {
  font-family: var(--mx-heading);
  font-weight: 700;
  font-size: 19px;
}
@media (max-width: 767px) {
  /* hero: no faded watermark letters; the rating row clears the cards below */
  [dir="rtl"] .mx-hr3-text {
    display: none !important;
  }
  [dir="rtl"] .mx-hero-client {
    margin-bottom: 40px;
  }
  /* visit steps: cards centred, the step number drawn as a large outline in the card corner */
  [dir="rtl"] .mx-workp3-step {
    display: block;
    position: relative;
  }
  [dir="rtl"] .mx-workp3-step .item-text {
    max-width: 100%;
    position: relative;
    z-index: 1;
  }
  [dir="rtl"] .mx-workp3-step .item-serial {
    position: absolute;
    top: 8px;
    left: 16px;
    z-index: 2;
    pointer-events: none;
  }
  [dir="rtl"] .mx-workp3-step .item-serial span {
    width: auto;
    height: auto;
    border: none;
    background: none;
    font-family: var(--mx-heading);
    font-weight: 700;
    font-size: 64px;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(51, 104, 198, 0.22);
  }
  /* article page: title readable on light photos, centred tags and share */
  [dir="rtl"] .b-thumbnail h1,
  [dir="rtl"] .sn-b-thumbnail-section h1 {
    text-shadow: 0 2px 4px rgba(9, 36, 60, 0.55), 0 6px 24px rgba(9, 36, 60, 0.6);
  }
  [dir="rtl"] .art-blog-tag,
  [dir="rtl"] .art-blog-share {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  [dir="rtl"] .art-blog-tag ul,
  [dir="rtl"] .art-blog-share ul,
  [dir="rtl"] .art-blog-tag .tag-list,
  [dir="rtl"] .art-blog-share .share-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 0;
  }
  [dir="rtl"] .art-blog-tag a {
    border-radius: 100px;
    padding: 8px 18px;
    border: 1px solid rgba(51, 104, 198, 0.25);
    background: #fff;
  }
  [dir="rtl"] .art-blog-share a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    background: #fff;
    border: 1px solid rgba(9, 36, 60, 0.1);
  }
  /* comment button: no stray background behind it */
  [dir="rtl"] #respond input.submit,
  [dir="rtl"] #respond .form-submit {
    background: transparent !important;
  }
  [dir="rtl"] #respond input.submit {
    display: none;
  }
  /* about intro: compact on phones */
  [dir="rtl"] .mx-abt-sec .mx-abt1-img img,
  [dir="rtl"] .mx-abt-sec .mx-abt1-img2 .item-img img {
    max-height: 260px;
    width: 100%;
    object-fit: cover;
  }
  [dir="rtl"] .mx-abt1-exp {
    width: 100%;
    height: auto !important;
    margin-top: 16px !important;
    padding: 18px !important;
    transform: none !important;
  }
  [dir="rtl"] .mx-abt1-exp .item-fav {
    margin-bottom: 6px;
  }
  [dir="rtl"] .mx-abt1-exp .item-text h3 {
    font-size: 38px;
  }
  /* about why-choose: centred cards */
  [dir="rtl"] .mx-wc1-item {
    max-width: 100%;
    margin: 0 auto 14px;
    padding: 24px 20px;
    text-align: center;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(9, 36, 60, 0.08);
    box-shadow: 0 10px 26px rgba(9, 36, 60, 0.06);
  }
  [dir="rtl"] .mx-wc1-item .item-icon {
    margin: 0 auto 16px;
    width: 60px;
    height: 60px;
  }
  /* about care steps: shorter cards */
  [dir="rtl"] .mx-workp-item {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
  /* reviews: dots centred; stats fit on two lines each */
  [dir="rtl"] .mx-tst-pagi {
    display: flex;
    justify-content: center;
    text-align: center;
  }
  [dir="rtl"] .mx-testi1-ratting .item-wrap h3 {
    font-size: 34px;
    white-space: nowrap;
  }
}
@media (max-width: 767px) {
  [dir="rtl"] .mx-app-cta-content {
    margin-top: 0 !important;
  }
  [dir="rtl"] .art-blog-tag,
  [dir="rtl"] .art-blog-share .social-media {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  [dir="rtl"] .art-blog-tag > span,
  [dir="rtl"] .art-blog-share > span {
    display: block;
    width: 100%;
    margin-bottom: 6px;
  }
  [dir="rtl"] #respond button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
}

/* breadcrumbs stay on one line (long page names are cut with an ellipsis) */
[dir="rtl"] .sn-breadcrumb-content ul {
  flex-wrap: nowrap;
  max-width: 100%;
}
[dir="rtl"] .sn-breadcrumb-content ul li {
  white-space: nowrap;
}
[dir="rtl"] .sn-breadcrumb-content ul li:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* article page: share block separated from the tags (phones) */
@media (max-width: 767px) {
  [dir="rtl"] .art-blog-share {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(9, 36, 60, 0.1);
  }
}
/* ---------------- Arabic phones, round 22 ---------------- */
@media (max-width: 767px) {
  /* inner pages: logo and menu sit on the page banner, like desktop */
  [dir="rtl"] .mx-header-section:is(.header_style_one):not(.txa_sticky) {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
    padding-top: 14px;
  }
  [dir="rtl"] .sn-breadcrumb-sec {
    padding-top: 0 !important;
  }
  [dir="rtl"] .sn-breadcrumb-content {
    padding-top: 130px !important;
    padding-bottom: 46px !important;
  }
  [dir="rtl"] .sn-breadcrumb-content ul li,
  [dir="rtl"] .sn-breadcrumb-content ul li a {
    font-size: 14px;
  }
  /* mobile menu: white panel, dark text, larger logo */
  [dir="rtl"] .mobile_menu .mobile_menu_content {
    background-color: #fff !important;
  }
  [dir="rtl"] .mobile_menu .mobile_menu_content .m-brand-logo img {
    width: 210px;
    max-width: 80%;
    height: auto;
  }
  [dir="rtl"] .mobile_menu .mobile_menu_content .mobile-main-navigation .navbar-nav li a,
  [dir="rtl"] .mobile_menu .mobile_menu_content .ptx-mobile-header-social a,
  [dir="rtl"] .mobile_menu .mobile_menu_content .mobile_menu_close,
  [dir="rtl"] .mobile_menu .mobile_menu_content .mobile_menu_close i {
    color: #09243C !important;
  }
  [dir="rtl"] .mobile_menu .mobile_menu_content .mobile-main-navigation .navbar-nav li {
    border-color: rgba(9, 36, 60, 0.1) !important;
  }
  [dir="rtl"] .mobile_menu .mobile_menu_content .mobile-main-navigation .navbar-nav li.current-menu-item > a {
    color: var(--mx-prime-c) !important;
  }
  [dir="rtl"] .mobile_menu .mobile_menu_content .mobile-search-bar input {
    background-color: #F3F5F9 !important;
    color: #09243C !important;
  }
  [dir="rtl"] .mobile_menu .mobile_menu_content .mobile-search-bar button,
  [dir="rtl"] .mobile_menu .mobile_menu_content .mobile-search-bar i {
    color: #09243C !important;
  }
  /* footer: tighter space between the clinic line and the icons */
  [dir="rtl"] .mx-ftr1-widget .social-widget .social-icon {
    padding-top: 18px !important;
  }
  /* reviews: divider between the two numbers */
  [dir="rtl"] .mx-testi1-ratting .item-wrap + .item-wrap {
    border-inline-start: 1px solid rgba(255, 255, 255, 0.25);
  }
  [dir="rtl"] .mx-testi1-ratting .item-wrap:before {
    display: none;
  }
  /* about services slider: shorter cards, content centred */
  [dir="rtl"] .mx-ser1-item .item-icon-img .item-img {
    height: 170px !important;
  }
  [dir="rtl"] .mx-ser1-item .item-icon-img {
    height: 170px !important;
  }
  [dir="rtl"] .mx-ser1-item .item-text-wrap,
  [dir="rtl"] .mx-ser1-item .item-text {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    text-align: center;
  }
  [dir="rtl"] .mx-ser1-item .item-btn,
  [dir="rtl"] .mx-ser1-item .mx-btn1 {
    display: flex;
    justify-content: center;
    margin-top: 12px !important;
  }
  /* article page: shorter photo header, centred author box */
  [dir="rtl"] .b-thumbnail {
    min-height: 0 !important;
    height: auto !important;
    padding-top: 115px !important;
    padding-bottom: 105px !important;
  }
  [dir="rtl"] .art-blog-details-author {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 14px;
  }
  [dir="rtl"] .art-blog-details-author .inner-img {
    margin: 0 auto;
  }
  /* service pages: gallery photos two per row */
  [dir="rtl"] .gallery {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  [dir="rtl"] .gallery .gallery-item {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  [dir="rtl"] .gallery .gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
  }
  /* contact / booking: shorter section, smaller photo, white detail rows, shorter map */
  [dir="rtl"] .mx-appoint2-wrapper {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }
  [dir="rtl"] .mx-appoint2-text {
    padding: 34px 18px !important;
  }
  [dir="rtl"] .mx-appt-list {
    background-color: #fff;
    border-radius: 16px;
  }
  [dir="rtl"] .elementor-11 .elementor-element.elementor-element-5eb5c90 iframe {
    height: 260px !important;
  }
}
@media (max-width: 767px) {
  [dir="rtl"] .b-thumbnail h1 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

@media (max-width: 767px) {
  /* service pages: less space above the main photo */
  [dir="rtl"] .elementor-1583 .elementor-element.elementor-element-25804e9f {
    padding-top: 22px !important;
  }
  /* mobile menu: logo as large as the header logo, readable search hint, booking link highlighted, round social icons */
  [dir="rtl"] .mobile_menu_content .m-brand-logo img {
    width: 213px !important;
    max-width: none !important;
    height: auto !important;
  }
  [dir="rtl"] .mobile_menu_content .mobile-search-bar input::placeholder {
    color: #09243C !important;
    font-weight: 700;
    opacity: 1;
  }
  [dir="rtl"] .mobile_menu_content .mobile-main-navigation .navbar-nav li.drn-menu-cta > a {
    color: var(--mx-prime-c) !important;
    font-weight: 700;
  }
  [dir="rtl"] .mobile_menu_content .ptx-mobile-header-social {
    display: flex;
    gap: 12px;
    justify-content: center;
  }
  [dir="rtl"] .mobile_menu_content .ptx-mobile-header-social a {
    width: 48px;
    height: 48px;
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 100%;
    border: 1px solid rgba(9, 36, 60, 0.15);
  }
  /* reviews: two equal halves so the divider sits in the middle */
  [dir="rtl"] .mx-testi1-ratting .inner-item-wrap {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding-right: 20px;
    padding-left: 20px;
  }
  /* contact / booking: no empty gap under the intro; icon and text on one line */
  [dir="rtl"] .mx-appoint2-list {
    margin-top: 24px !important;
  }
  [dir="rtl"] .mx-appt-list .item-inner {
    flex-wrap: nowrap !important;
    gap: 14px;
    align-items: center !important;
  }
  [dir="rtl"] .mx-appt-list .item-icon {
    flex-shrink: 0;
    width: 52px !important;
    height: 52px !important;
  }
  /* back-to-top: smaller, clear of the phone toolbar */
  [dir="rtl"] .mx-scrollup {
    width: 44px;
    height: 44px;
    line-height: 44px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

/* ---------------- Arabic round 24 ---------------- */
/* gradient words inside animated headings keep their gradient (incl. phone/desktop wording spans) */
[dir="rtl"] .nc-grad div {
  background-image: linear-gradient(-90deg, #ffffff 0%, #b9d0ff 55%, #7fa6f5 100%);
}
[dir="rtl"] .nc-grad.is-dark div {
  background-image: linear-gradient(-90deg, #1c4fa8 0%, #3368c6 50%, #5b8def 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* article photo headers: soft dark wash so the title always reads */
[dir="rtl"] .b-thumbnail:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(-180deg, rgba(9, 36, 60, 0.55) 0%, rgba(9, 36, 60, 0.3) 45%, rgba(9, 36, 60, 0.6) 100%);
}
[dir="rtl"] .b-thumbnail > * {
  position: relative;
  z-index: 1;
}
/* article: tags and share as two matching cards on one row */
[dir="rtl"] .art-blog-share-tag {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
[dir="rtl"] .art-blog-share-tag > .art-blog-tag,
[dir="rtl"] .art-blog-share-tag > .art-blog-share {
  margin: 0 !important;
  padding: 22px !important;
  border: 1px solid rgba(9, 36, 60, 0.08) !important;
  border-radius: 18px;
  background: #fff;
  width: auto !important;
  max-width: none !important;
}
@media (max-width: 767px) {
  [dir="rtl"] .art-blog-share-tag {
    grid-template-columns: 1fr;
  }
}
/* review stats: number on one line, label under it, divider between the halves */
[dir="rtl"] .mx-testi1-ratting .inner-item-wrap {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
[dir="rtl"] .mx-testi1-ratting .item-wrap:before {
  display: none;
}
[dir="rtl"] .mx-testi1-ratting .item-wrap + .item-wrap {
  border-inline-start: 1px solid rgba(255, 255, 255, 0.25);
}
[dir="rtl"] .mx-testi1-ratting .item-wrap h3 {
  white-space: nowrap;
  font-size: clamp(30px, 2.6vw, 42px);
}
/* about why-choose features as cards */
[dir="rtl"] .mx-wc1-item {
  padding: 26px 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(9, 36, 60, 0.08);
  box-shadow: 0 10px 26px rgba(9, 36, 60, 0.06);
}
@media (min-width: 1200px) {
  /* footer: same space under the columns as above them */
  [dir="rtl"] .mx-ftr1-widget .social-widget {
    padding-bottom: 60px !important;
  }
  [dir="rtl"] .mx-ftr1-widget-wrapper {
    padding-bottom: 36px !important;
  }
  /* service pages: less space above the main photo */
  [dir="rtl"] .elementor-1583 .elementor-element.elementor-element-25804e9f {
    padding-top: 24px !important;
  }
  /* contact: less space around the map */
  [dir="rtl"] .elementor-11 .elementor-element.elementor-element-973821c,
  [dir="rtl"] .elementor-11 .elementor-element.elementor-element-d9c0056 {
    --padding-top: 25px;
  }
  /* article list intro: title on one line, description centred beside it */
  [dir="rtl"] .mx-team1-top {
    align-items: center !important;
  }
  [dir="rtl"] .mx-team1-top .sec_title {
    white-space: nowrap;
  }
  /* home hero: photo 100px further left, text 100px in from the right */
  [dir="rtl"] .mx-hero3-img-wrap {
    transform: translateX(-100px);
  }
  [dir="rtl"] .mx-hero3-text {
    padding-inline-start: 100px;
  }
  /* home services: card photo inset like the text, block 40px wider with more inner room */
  [dir="rtl"] .mx-ser3-item {
    padding: 24px;
  }
  [dir="rtl"] .mx-ser3-sec {
    margin: 0 60px !important;
  }
  [dir="rtl"] .mx-ser3-wrap {
    padding-right: 40px;
    padding-left: 40px;
  }
  /* about why-choose cards: a little room at the sides */
  [dir="rtl"] .mx-why-c-content {
    gap: 24px;
    padding: 0 24px;
  }
  /* about care steps: shorter */
  [dir="rtl"] .mx-workp-item {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    min-height: 0 !important;
    height: auto !important;
  }
}

/* ---------------- Arabic round 25 ---------------- */
/* home hero title: always two lines */
@media (min-width: 768px) {
  [dir="rtl"] .mx-hero3-text .hero-title {
    white-space: nowrap;
    font-size: clamp(40px, 3.7vw, 70px);
  }
}
/* footer clinic line: two lines */
@media (min-width: 1200px) {
  [dir="rtl"] .mx-ftr1-widget .social-widget > p {
    white-space: nowrap;
    font-size: 15px;
  }
  [dir="rtl"] .mx-ftr1-widget .social-widget {
    padding-right: 40px !important;
    padding-left: 40px !important;
  }
}
/* about badge: number fits inside the box */
[dir="rtl"] .mx-abt1-exp .item-text h3 {
  white-space: nowrap;
  font-size: 44px !important;
}
/* review stats: numbers sized to their half, divider in the middle */
[dir="rtl"] .mx-testi1-ratting .item-wrap {
  padding: 0 14px;
}
[dir="rtl"] .mx-testi1-ratting .item-wrap h3 {
  font-size: clamp(28px, 2.3vw, 38px) !important;
}
/* reviews background photo: rounded corners */
[dir="rtl"] .mx-testi1-bg {
  border-radius: 30px;
}
@media (min-width: 1200px) {
  /* about why-choose cards: half the gap, the first card clears the photo by the same 48px as the outer edge */
  [dir="rtl"] .mx-why-c-content {
    display: block !important;
    padding: 0 !important;
    margin-right: calc(22.7% + 48px) !important;
    margin-left: 24px !important;
  }
  [dir="rtl"] .mx-why-c-content .mx-wc-wrap {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 27px !important;
    width: 100%;
    max-width: none !important;
  }
  [dir="rtl"] .mx-wc1-item {
    max-width: none;
  }
}
@media (max-width: 767px) {
  /* mobile menu: logo on the right, round close button level with it, booking as a button */
  [dir="rtl"] .mobile_menu_content .m-brand-logo {
    text-align: left;
    padding-left: 64px;
  }
  [dir="rtl"] .mobile_menu_content .mobile_menu_close {
    position: absolute;
    left: 20px;
    right: auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    border: 1px solid rgba(9, 36, 60, 0.15);
    background: #fff;
  }
  [dir="rtl"] .mobile_menu_content .mobile-main-navigation .navbar-nav li.drn-menu-cta > a {
    display: flex !important;
    justify-content: center;
    margin-top: 14px;
    padding: 14px 20px !important;
    border-radius: 100px;
    color: #fff !important;
    background-color: var(--mx-prime-c);
  }
  [dir="rtl"] .mobile_menu_content .mobile-main-navigation .navbar-nav li.drn-menu-cta {
    border: none !important;
  }
  /* services page cards: comfortable side padding */
  [dir="rtl"] .mx-ser2-item {
    padding: 22px 20px !important;
  }
  /* about badge: on the right, hanging below and outside the photo corner so the doctor stays visible */
  [dir="rtl"] .mx-abt1-exp {
    width: 58% !important;
    margin-top: -92px !important;
    margin-right: -14px !important;
    margin-left: auto !important;
    position: relative;
    z-index: 2;
  }
  [dir="rtl"] .mx-abt1-exp .item-text h3 {
    font-size: 34px !important;
  }
  /* reviews heading and stats centred */
  [dir="rtl"] .mx-testi1-text-wrap,
  [dir="rtl"] .mx-testi1-text-wrap .mx-sec-title {
    text-align: center !important;
    margin-right: auto;
    margin-left: auto;
  }
  [dir="rtl"] .mx-testi1-ratting {
    margin-right: auto !important;
    margin-left: auto !important;
  }
}
@media (max-width: 767px) {
  [dir="rtl"] .mx-abt1-img-wrapper,
  [dir="rtl"] .mx-abt1-img2,
  [dir="rtl"] .mx-abt1-img2 .item-img {
    width: 100%;
    max-width: 100% !important;
  }
  [dir="rtl"] .mobile_menu_content .m-brand-logo {
    display: flex;
    justify-content: flex-start;
  }
  [dir="rtl"] .mobile_menu_content .mobile_menu_close {
    top: 18px !important;
  }
}
@media (max-width: 767px) {
  [dir="rtl"] .mobile_menu_content .m-brand-logo {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  [dir="rtl"] .mobile_menu_content .m-brand-logo a {
    display: block;
    margin-left: auto !important;
    margin-right: 0 !important;
  }
}

/* animated gradient headings: only the words carry the gradient (painting it on the phrase too doubled the text) */
[dir="rtl"] .nc-grad:has(div) {
  background-image: none !important;
}
[dir="rtl"] .nc-grad div {
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}
/* article: smaller tag/share cards, content centred; blue tag chips, round share icons */
[dir="rtl"] .art-blog-share-tag {
  max-width: 760px;
  margin: 0 auto;
}
[dir="rtl"] .art-blog-share-tag > .art-blog-tag,
[dir="rtl"] .art-blog-share-tag > .art-blog-share {
  padding: 18px !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}
[dir="rtl"] .art-blog-tag > span,
[dir="rtl"] .art-blog-share > span {
  display: block;
  width: 100%;
  margin: 0 !important;
}
[dir="rtl"] .art-blog-tag {
  flex-flow: row wrap !important;
}
[dir="rtl"] .art-blog-tag a {
  margin: 0 4px !important;
  padding: 7px 16px !important;
  border-radius: 10px !important;
  border: none !important;
  color: #fff !important;
  background-color: var(--mx-prime-c) !important;
}
[dir="rtl"] .art-blog-share .social-media {
  display: flex;
  gap: 10px;
  justify-content: center;
}
[dir="rtl"] .art-blog-share .social-media a {
  width: 42px;
  height: 42px;
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
  background: #fff;
  border: 1px solid rgba(9, 36, 60, 0.15);
}
/* gradient phrases that are not split into animated words keep their own gradient */
[dir="rtl"] .nc-grad.is-dark:not(:has(div)) {
  background-image: linear-gradient(-90deg, #1c4fa8 0%, #3368c6 50%, #5b8def 100%) !important;
  -webkit-background-clip: text !important;
          background-clip: text !important;
  -webkit-text-fill-color: transparent;
}
@media (max-width: 767px) {
  /* services page: cards inset 20px from the screen edges */
  [dir="rtl"] .mx-ser2-item {
    margin-right: 20px !important;
    margin-left: 20px !important;
  }
  /* services intro: two lines */
  [dir="rtl"] .mx-sec-title.prthalign > p {
    font-size: 15px;
  }
  /* mobile menu: search box with equal space above and below */
  [dir="rtl"] .mobile_menu_content .mobile-search-bar {
    margin-top: 28px !important;
    margin-bottom: 28px !important;
  }
}
/* hero and article-list titles: sized so the two lines never get clipped, tighter line spacing */
@media (min-width: 768px) {
  [dir="rtl"] .mx-hero3-text .hero-title {
    font-size: clamp(34px, 3.2vw, 48px) !important;
    line-height: 1.35 !important;
  }
  [dir="rtl"] .mx-team1-top .sec_title {
    font-size: clamp(26px, 2.25vw, 34px) !important;
  }
}
@media (max-width: 767px) {
  [dir="rtl"] .mx-hero3-text .hero-title {
    line-height: 1.35 !important;
  }
  [dir="rtl"] .mx-sec-title.prthalign > p {
    white-space: nowrap;
    font-size: clamp(12px, 3.7vw, 15px);
  }
}
@media (min-width: 768px) {
  [dir="rtl"] .mx-team1-top .mx-sec-title {
    max-width: none !important;
    flex-shrink: 0;
  }
}
/* about: doctor key facts list */
[dir="rtl"] .nc-dr-facts {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
[dir="rtl"] .nc-dr-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-weight: 500;
  color: var(--mx-title-color, #09243C);
}
/* filled brand-colour circle with a white check */
[dir="rtl"] .nc-dr-facts li .nc-fact-check {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--mx-prime-c);
}
[dir="rtl"] .nc-dr-facts li .nc-fact-check::after {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}
@media (min-width: 1200px) {
  [dir="rtl"] .nc-dr-facts li {
    white-space: nowrap;
  }
}

/* about services slider: every card as tall as the tallest, button at the bottom */
[dir="rtl"] .mx-ser1-slider .swiper-slide {
  height: auto;
}
[dir="rtl"] .mx-ser1-slider .mx-ser1-item {
  height: 100%;
}
[dir="rtl"] .mx-ser1-item .item-text-wrap {
  flex-grow: 1;
}
[dir="rtl"] .mx-ser1-item .item-btn {
  margin-top: auto;
}
@media (max-width: 767px) {
  /* less empty space between the photo, the text and the button */
  [dir="rtl"] .mx-ser1-item .item-text-wrap {
    padding: 14px 6px 2px !important;
  }
  [dir="rtl"] .mx-ser1-item .item-text {
    padding: 0 !important;
  }
  [dir="rtl"] .mx-ser1-item .item-text h3 {
    padding-bottom: 8px !important;
  }
  [dir="rtl"] .mx-ser1-item .item-btn {
    padding-top: 14px;
  }
}
/* reviews on phones: the curved inside corners where the light card meets the photo (as on desktop) */
@media (max-width: 767px) {
  [dir="rtl"] .mx-testi1-ratting:before,
  [dir="rtl"] .mx-testi1-ratting:after {
    display: block;
    width: 26px;
    height: 28px;
  }
  [dir="rtl"] .mx-testi1-ratting:before {
    right: -25px;
  }
  [dir="rtl"] .mx-testi1-ratting:after {
    left: -25px;
  }
}
