/*-----------------------------------*\
  #RTL & Arabic adjustments
  Same layout, colors and sizes as vCard.
\*-----------------------------------*/

html[dir="rtl"] body {
  font-family: "IBM Plex Sans Arabic", "Poppins", sans-serif;
}

html[dir="rtl"] .info-content .name { letter-spacing: 0; }

html[dir="rtl"] .article-title::after {
  left: auto;
  right: 0;
}

html[dir="rtl"] .info_more-btn {
  right: auto;
  left: -15px;
  border-radius: 15px 0;
}

html[dir="rtl"] .social-list {
  padding-left: 0;
  padding-right: 7px;
}

html[dir="rtl"] .timeline-list {
  margin-left: 0;
  margin-right: 45px;
}

html[dir="rtl"] .timeline-item:not(:last-child)::before {
  left: auto;
  right: -30px;
}

html[dir="rtl"] .timeline-item::after {
  left: auto;
  right: -33px;
}

html[dir="rtl"] .project-title,
html[dir="rtl"] .project-category {
  margin-left: 0;
  margin-right: 10px;
}

html[dir="rtl"] .filter-select .select-icon {
  right: auto;
  left: 15px;
}

html[dir="rtl"] .filter-list {
  padding-left: 0;
  padding-right: 5px;
}

html[dir="rtl"] .form-btn {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .mapbox iframe { width: 100%; }

@media (min-width: 580px) {
  html[dir="rtl"] .info_more-btn {
    right: auto;
    left: -30px;
  }

  html[dir="rtl"] .service-content-box { text-align: right; }

  html[dir="rtl"] .timeline-list { margin-right: 65px; }

  html[dir="rtl"] .timeline-item:not(:last-child)::before { right: -40px; }

  html[dir="rtl"] .timeline-item::after { right: -43px; }
}

@media (min-width: 1024px) {
  html[dir="rtl"] .navbar {
    left: 0;
    right: auto;
    border-radius: 20px 0;
  }
}

/* service icons replace the template images with the same gold accent */
html[dir="rtl"] .service-icon-box ion-icon {
  font-size: 32px;
  color: var(--orange-yellow-crayola);
}

html[dir="rtl"] .service-icon-box { margin-bottom: 15px; }

@media (min-width: 580px) {
  html[dir="rtl"] .service-icon-box { margin-bottom: 0; margin-top: 5px; }
}

/* service icons: centered on phones, aligned with the text on desktop */
html[dir="rtl"] .service-icon-box {
  display: flex;
  justify-content: center;
}

html[dir="rtl"] .service-content-box { text-align: center; }

@media (min-width: 580px) {
  html[dir="rtl"] .service-icon-box { justify-content: flex-start; }
  html[dir="rtl"] .service-content-box { text-align: right; }
}

/* phone number: keep the digits LTR but align them under their label */
html[dir="rtl"] .contact-link[dir="ltr"] {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  text-align: left;
}

/* testimonials in RTL */
html[dir="rtl"] .testimonials-avatar-box {
  left: auto;
  right: 0;
  transform: translate(-15px, -25px);
}

html[dir="rtl"] .testimonials-modal {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .modal-img-wrapper {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .modal-close-btn {
  right: auto;
  left: 15px;
}

html[dir="rtl"] .modal-content { text-align: right; }
