/* RTL overrides for Persian pages */
html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] body {
  font-family: "Vazirmatn", "Tahoma", system-ui, sans-serif;
  text-align: right;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
  font-family: "Vazirmatn", sans-serif;
}

html[dir="rtl"] .brand {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav__list {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav__actions {
  flex-direction: row-reverse;
}

html[dir="rtl"] .hero__actions,
html[dir="rtl"] .hero__stats,
html[dir="rtl"] .article-footer,
html[dir="rtl"] .footer-bottom,
html[dir="rtl"] .contact-info__item {
  flex-direction: row-reverse;
}

html[dir="rtl"] .grid-2,
html[dir="rtl"] .grid-3,
html[dir="rtl"] .grid-4,
html[dir="rtl"] .blog-grid,
html[dir="rtl"] .process-grid {
  direction: rtl;
}

html[dir="rtl"] .article-content ul,
html[dir="rtl"] .article-content ol {
  padding-right: 1.25rem;
  padding-left: 0;
}

html[dir="rtl"] .breadcrumb {
  direction: rtl;
}

html[dir="rtl"] .lang-switch a {
  direction: ltr;
}

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

/* RTL support for the improved hamburger menu (<992px) */
@media (max-width: 992px) {
  html[dir="rtl"] .nav {
    transform: translateX(100%);
  }
  html[dir="rtl"] .nav.is-open {
    transform: translateX(0);
  }
}