/* ════════════════════════════════════════════════════════════
   RTL Overrides - MPHG International
   Comprehensive right-to-left support for Arabic, Hebrew, etc.
   ════════════════════════════════════════════════════════════ */

/* ── Base Direction ─────────────────────────────────────── */
body {
  direction: rtl;
  text-align: right;
}

/* ── Header ─────────────────────────────────────────────── */
.site-nav,
.hdr-topbar-inner,
.hdr-main {
  flex-direction: row-reverse;
}

.hdr-topbar-left,
.hdr-topbar-right {
  flex-direction: row-reverse;
}

.hdr-nav {
  flex-direction: row-reverse;
}

.hdr-actions {
  flex-direction: row-reverse;
}

.hdr-burger {
  order: -1;
}

/* ── Language Dropdown ──────────────────────────────────── */
.lang-sel-dd,
.lang-dropdown {
  right: auto;
  left: 0;
}

/* ── Hero Slider ────────────────────────────────────────── */
.slide-content {
  text-align: right;
}

.slide-title,
.slide-subtitle,
.slide-eyebrow {
  text-align: right;
}

.slide-btns {
  justify-content: flex-start;
}

.hero-controls {
  direction: ltr;
}

.hero-arrow:first-child {
  order: 2;
}

.hero-arrow:last-child {
  order: 1;
}

/* ── Section Headers ────────────────────────────────────── */
.sec-head {
  text-align: center;
}

.sec-head-split {
  flex-direction: row-reverse;
  text-align: right;
}

.sec-head-split .btn-ghost svg {
  transform: scaleX(-1);
}

/* ── Navigation Arrows - Flip horizontally ──────────────── */
.dept-arrow,
.about-link svg,
.doctor-link svg,
.specialty-link svg,
.btn-hero-primary svg,
.btn-ghost svg,
.slide-btns svg {
  transform: scaleX(-1);
}

.slider-arrow {
  left: auto;
  right: 1.5rem;
}

.slider-arrow[style*="right:1.5rem"] {
  right: auto;
  left: 1.5rem;
}

.kalite-arrow.left {
  left: auto;
  right: 0;
}

.kalite-arrow.right {
  right: auto;
  left: 0;
}

/* ── Cards & Grids ─────────────────────────────────────── */
.doctor-card-body {
  text-align: right;
}

.card-body {
  text-align: right;
}

.intl-card {
  text-align: right;
}

.intl-card-num {
  right: auto;
  left: 1.5rem;
}

.payment-card {
  text-align: right;
}

.pay-detail-head {
  flex-direction: row-reverse;
  text-align: right;
}

.pay-detail-head .payment-logos {
  justify-content: flex-end;
}

.pay-detail-back svg {
  transform: rotate(180deg);
}

/* ── Technology Detail ───────────────────────────────────── */
.tech-detail-back {
  text-align: right;
}
.tech-detail-back svg {
  transform: rotate(180deg);
}
.tech-detail-card .tech-card-cat {
  float: right;
}
.tech-card-more svg {
  transform: rotate(180deg);
}
.tech-card:hover .tech-card-more svg {
  transform: rotate(180deg) translateX(3px);
}
.tech-detail-features li::before {
  margin-left: .6rem;
  margin-right: 0;
}

/* ── About Section ──────────────────────────────────────── */
.about-wrap {
  flex-direction: row-reverse;
}

.about-content {
  text-align: right;
}

.about-stats {
  justify-content: flex-start;
}

/* ── Department Cards ───────────────────────────────────── */
.dept-card {
  flex-direction: row-reverse;
  text-align: right;
}

.dept-text {
  text-align: right;
}

/* ── Technology Section ─────────────────────────────────── */
.tech-layout {
  flex-direction: row-reverse;
}

.tech-item {
  flex-direction: row-reverse;
  text-align: right;
}

.tech-item-text {
  text-align: right;
}

.tech-item-num {
  margin-right: 0;
  margin-left: 1rem;
}

.tech-item-link svg {
  transform: rotate(180deg);
}
.tech-item-link:hover svg {
  transform: rotate(180deg) translateX(3px);
}

/* ── Specialty Cards ────────────────────────────────────── */
.specialty-body {
  text-align: right;
}

/* ── Patient Stories ────────────────────────────────────── */
.insta-story-label {
  text-align: center;
}

.story-header {
  flex-direction: row-reverse;
}

.story-close-btn {
  order: -1;
}

.story-user-info {
  text-align: right;
}

.story-swipe-up {
  flex-direction: row-reverse;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer-main,
.ftr-main {
  direction: rtl;
  flex-direction: row-reverse;
}

.ftr-col {
  text-align: right;
}

.ftr-upper-inner {
  flex-direction: row-reverse;
}

.ftr-brand {
  text-align: right;
}

.ftr-brand-btns {
  justify-content: flex-start;
}

.ftr-bottom-inner {
  flex-direction: row-reverse;
}

.ftr-bottom-links {
  flex-direction: row-reverse;
}

.footer-bottom-links {
  flex-direction: row-reverse;
}

/* ── Map Section ────────────────────────────────────────── */
.map-wrap {
  flex-direction: row-reverse;
}

.map-info {
  text-align: right;
}

.map-contact-item {
  flex-direction: row-reverse;
}

/* ── Contact Page ───────────────────────────────────────── */
.contact-grid {
  flex-direction: row-reverse;
}

/* ── Forms ──────────────────────────────────────────────── */
.form-group label {
  text-align: right;
}

input,
textarea,
select {
  text-align: right;
}

/* ── Mobile Navigation ──────────────────────────────────── */
.mob-nav {
  direction: rtl;
  text-align: right;
}

.mob-nav a {
  text-align: right;
}

.mob-lang {
  flex-direction: row-reverse;
}

/* ── Scroll Top Button ──────────────────────────────────── */
.scroll-top {
  left: 1.5rem;
  right: auto;
}

/* ── Pagination ─────────────────────────────────────────── */
.pagination {
  direction: ltr;
}

/* ── Appointment Page ───────────────────────────────────── */
.appointment-form {
  text-align: right;
}

/* ── Privacy/KVKK Page ─────────────────────────────────── */
.kvkk-tabs {
  flex-direction: row-reverse;
}

/* ── Utility: Flip specific elements back to LTR ────────── */
.hero-dots,
.hero-arrows,
code,
pre,
.phone-number,
[dir="ltr"] {
  direction: ltr;
}

/* ── Accreditations RTL overrides ───────────────────────── */
.accred-item { text-align: right; }
.accred-more-btn { left: auto; right: var(--px); }
.accred-more-btn svg { transform: scaleX(-1); }
.accred-more-btn:hover svg { transform: scaleX(-1) translateX(-3px); }
@media (max-width: 1100px) {
  .accred-more-btn { left: auto; right: auto; }
}

/* ── Responsive adjustments ─────────────────────────────── */
@media (max-width: 768px) {
  .about-wrap {
    flex-direction: column;
  }
  
  .tech-layout {
    flex-direction: column;
  }
  
  .map-wrap {
    flex-direction: column;
  }
  
  .ftr-main {
    flex-direction: column;
  }
  
  .ftr-upper-inner {
    flex-direction: column;
  }

  .hero-stats-float {
    display: none;
  }
}

/* ── Timeline Carousel ───────────────────────────────────── */
.tl-card { text-align: center }
.tl-card-content { direction: rtl }

/* -- Milestone Spotlight -- */
.ms-stage { direction: ltr }
.ms-nav--prev svg { transform: rotate(180deg) }
.ms-nav--next svg { transform: rotate(180deg) }
.ms-text { direction: rtl }
.ms-ruler { direction: ltr }

