/* RTL overrides — loaded only for the Arabic (/ar/) version, see includes/header.php */

html[dir="rtl"] {
  --font-sans: 'Cairo', Arial, sans-serif;
  --font-serif: 'Cairo', Arial, sans-serif;
}

/* Corporate ticker — flow right-to-left to match reading direction */
[dir="rtl"] .marquee-content {
  animation-direction: reverse;
}

/* Decorative corner blobs on .class-card — mirror to the opposite corners */
[dir="rtl"] .class-card::before {
  right: auto;
  left: -60px;
}
[dir="rtl"] .class-card::after {
  left: auto;
  right: -60px;
}
@media (hover: hover) and (min-width: 992px) {
  [dir="rtl"] .class-card:hover::before {
    transform: scale(1.4) translate(10px, 10px);
  }
  [dir="rtl"] .class-card:hover::after {
    transform: scale(1.4) translate(-10px, -10px);
  }
}
[dir="rtl"] .class-card:active::before {
  transform: scale(1.4) translate(10px, 10px);
}
[dir="rtl"] .class-card:active::after {
  transform: scale(1.4) translate(-10px, -10px);
}

/* Form validation messages */
[dir="rtl"] .invalid-feedback {
  text-align: right;
}

/* Production step watermark number + title clearance */
[dir="rtl"] .step-number {
  right: auto;
  left: 20px;
}
[dir="rtl"] .production-title {
  padding-right: 0;
  padding-left: 50px;
}

/* Tech card watermark number + top accent reveal direction */
[dir="rtl"] .tech-number {
  right: auto;
  left: 24px;
}
[dir="rtl"] .tech-card::before {
  transform-origin: right;
}

/* Standards parallax overlay gradient */
[dir="rtl"] .parallax-overlay {
  background: linear-gradient(
    to left,
    rgba(24, 24, 24, 0.9),
    rgba(24, 24, 24, 0.5)
  );
}
