/* ===== RTL overrides for Arabic pages ===== */

html[dir="rtl"] body {
  font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  text-align: right;
}

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

/* topbar */
html[dir="rtl"] .topbar .container { flex-direction: row-reverse; }
html[dir="rtl"] .topbar .contact-strip { flex-direction: row-reverse; }

/* header / nav */
html[dir="rtl"] .nav-wrap { flex-direction: row-reverse; }
html[dir="rtl"] .brand { flex-direction: row-reverse; }
html[dir="rtl"] .brand-text { text-align: right; }
html[dir="rtl"] nav.main-nav ul { flex-direction: row-reverse; }
html[dir="rtl"] .nav-actions { flex-direction: row-reverse; }

@media (max-width: 760px) {
  html[dir="rtl"] nav.main-nav {
    right: auto;
    left: -100%;
    transition: left 0.25s ease;
  }
  html[dir="rtl"] nav.main-nav.open { left: 0; right: auto; }
}

/* hero / page-hero */
html[dir="rtl"] .hero-actions { flex-direction: row-reverse; justify-content: flex-end; }
html[dir="rtl"] .breadcrumb { direction: rtl; }

/* split sections */
html[dir="rtl"] .split-media { order: -1; }
@media (min-width: 981px) {
  html[dir="rtl"] .split { direction: rtl; }
}

/* cards / icons stay centered visually, just flip text */
html[dir="rtl"] .card,
html[dir="rtl"] .team-card,
html[dir="rtl"] .project-card .body { text-align: right; }
html[dir="rtl"] .team-card p { text-align: right; }

/* pillars */
html[dir="rtl"] .pillar { flex-direction: row-reverse; }

/* project meta grid */
html[dir="rtl"] .project-meta { direction: rtl; }

/* CTA */
html[dir="rtl"] .cta { flex-direction: row-reverse; text-align: right; }

/* contact page */
html[dir="rtl"] .contact-item { flex-direction: row-reverse; text-align: right; }
html[dir="rtl"] form.contact-form { direction: rtl; }
html[dir="rtl"] form.contact-form label { text-align: right; }

/* footer */
html[dir="rtl"] .footer-grid { direction: rtl; }
html[dir="rtl"] .footer-grid .brand { flex-direction: row-reverse; justify-content: flex-end; }
html[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }

/* featured-leaders / team-card-featured */
html[dir="rtl"] .team-card-featured { text-align: right; }
html[dir="rtl"] .team-card-featured .avatar-photo,
html[dir="rtl"] .team-card-featured .avatar { margin: 0 0 18px auto; }

/* filter tabs */
html[dir="rtl"] .filter-tabs { flex-direction: row-reverse; justify-content: flex-end; }

/* language switch link */
.lang-switch { font-weight: 700; }
.lang-switch a:hover { color: var(--gold-light); }
