/* ═══ Arabic RTL Overrides ═══ */
/* Loaded AFTER style.css on ar.html only */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* ── Base RTL ── */
html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] body,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] p,
html[dir="rtl"] a,
html[dir="rtl"] span,
html[dir="rtl"] li,
html[dir="rtl"] button,
html[dir="rtl"] .section-title,
html[dir="rtl"] .section-desc,
html[dir="rtl"] .hero-sub,
html[dir="rtl"] .hero-badge,
html[dir="rtl"] .nav-cta,
html[dir="rtl"] .btn-primary,
html[dir="rtl"] .btn-outline {
  font-family: 'Cairo', 'Inter', sans-serif;
}

html[dir="rtl"] .section-title {
  font-family: 'Cairo', 'Playfair Display', serif;
}

html[dir="rtl"] h1 {
  font-family: 'Cairo', 'Playfair Display', serif;
}

/* ── Navbar ── */
html[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav-cta svg {
  transform: scaleX(-1);
}

/* ── Hero ── */
html[dir="rtl"] .hero-content {
  flex-direction: row-reverse;
}

html[dir="rtl"] .hero-highlights {
  justify-content: flex-start;
}

html[dir="rtl"] .hero-float-card.card-1 {
  left: auto;
  right: -30px;
}

html[dir="rtl"] .hero-float-card.card-2 {
  right: auto;
  left: -30px;
}

/* ── Feature cards ── */
html[dir="rtl"] .feature-card {
  flex-direction: row-reverse;
  text-align: right;
}

/* ── Admin section ── */
html[dir="rtl"] .admin-content {
  flex-direction: row-reverse;
}

html[dir="rtl"] .admin-feature {
  flex-direction: row-reverse;
  text-align: right;
}

/* ── Timeline ── */
html[dir="rtl"] .timeline-wrapper::before {
  left: auto;
  right: 24px;
}

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

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

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

/* ── Buttons ── */
html[dir="rtl"] .btn-primary svg,
html[dir="rtl"] .hero-buttons .btn-primary svg {
  transform: scaleX(-1);
}

/* ── Tech badges ── */
html[dir="rtl"] .tech-badge svg {
  margin-right: 0;
  margin-left: 6px;
}

/* ── General text alignment ── */
html[dir="rtl"] .section-header {
  text-align: center;
}

html[dir="rtl"] .deliverable-card {
  text-align: center;
}

html[dir="rtl"] .tech-card {
  text-align: center;
}

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

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

/* ── Mobile responsive ── */
@media (max-width: 768px) {
  html[dir="rtl"] .hero-content {
    flex-direction: column;
  }
  html[dir="rtl"] .admin-content {
    flex-direction: column;
  }
  html[dir="rtl"] .feature-card {
    flex-direction: column;
    text-align: center;
  }
  html[dir="rtl"] .admin-feature {
    flex-direction: column;
    text-align: center;
  }
  html[dir="rtl"] .timeline-wrapper::before {
    right: 24px;
  }
}
