body {
  direction: rtl;
  text-align: right;
}

/* Fix header color layer shift in Arabic version */
body[dir="rtl"] .header-flex {
  flex-direction: row-reverse; /* ensures the image and text align correctly */
}

body[dir="rtl"] .header-image-wrap {
  margin-left: 0;   /* remove left margin if any */
  margin-right: auto; /* align image to the left side visually in RTL */
}

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

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

.work-box {
  direction: rtl;
}

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

nav ul {
  flex-direction: row-reverse;
}

.card {
  text-align: right;
}

.hero-buttons {
  justify-content: flex-end;
}


/* --------------------------------- */
/* ----- Theme Switcher (Arabic) -----*/ 
/* --------------------------------- */

.theme-switch {
  flex-direction: row-reverse; /* flip for RTL */
}

input:checked {
  --thumb-position: -100%; /* move thumb from right to left */
}


/* Force slider to stay LTR even in Arabic pages */
.testimonial-slider,
.testimonials {
  direction: ltr !important;
}

/* But keep text inside each slide RTL */
.testimonial,
.testimonial * {
  direction: rtl;
  text-align: right;
}


.blog-readmore::after {
  content: "\2190"; /* Left arrow for RTL */
}


.blog-card:hover .blog-readmore::after {
  transform: translateX(-4px);
}
