/* RTL overrides – load when dir="rtl" (Arabic) */


@font-face {
  font-family:'main-font';
  src: url('./Tajawal-Medium.ttf');
}

[dir="rtl"] {
  direction: rtl;
  text-align: start;
  font-family: 'main-font';
}

[dir="rtl"] body {
  text-align: start;
  font-family: 'main-font';
}
.theme-modern .font-display, .theme-modern h1, .theme-modern h2, .theme-modern h3, .theme-modern .hero-headline, .theme-modern .services-title, .theme-modern .academy-section__title, .theme-modern .blog-title, .theme-modern .home-contact-band__title {
  font-family: 'main-font';
}


/* Keep explicitly centered content centered */
[dir="rtl"] .text-center {
  text-align: center !important;
}

/* Header RTL: logo and menu grouped on the right, hamburger on the left */
[dir="rtl"] header,
[dir="rtl"] header nav {
  direction: rtl;
}

[dir="rtl"] header nav {
  flex-direction: row;
}

[dir="rtl"] header nav ul {
  flex-direction: row;
  flex: 1;
  justify-content: center;
  margin-inline-start: 0.75rem;
  margin-inline-end: 0.75rem;
}

/* Mobile menu RTL */
[dir="rtl"] .mobile-nav-link {
  text-align: right;
}

[dir="rtl"] .mobile-nav-section-label {
  text-align: right;
}

[dir="rtl"] .mobile-nav-lang-link,
[dir="rtl"] .mobile-nav-lang-current {
  text-align: center;
}

/* Language dropdown – left side in RTL (between nav links and hamburger) */
[dir="rtl"] .lang-dropdown summary::-webkit-details-marker,
[dir="rtl"] .lang-dropdown-trigger::-webkit-details-marker {
  display: none;
}

/* Shrink-wrap trigger so the panel anchors to the clicked summary */
[dir="rtl"] header .lang-dropdown {
  position: relative;
  display: inline-block;
  width: max-content;
  max-width: 100%;
}

[dir="rtl"] .lang-dropdown-menu {
  display: none;
  left: auto !important;
  right: 0;
  transform: none;
  text-align: right;
}

[dir="rtl"] .lang-dropdown.products-dropdown .lang-dropdown-menu {
  min-width: max(220px, max-content);
}

[dir="rtl"] .lang-dropdown:not(.products-dropdown) .lang-dropdown-menu {
  min-width: max(140px, max-content);
}

[dir="rtl"] .lang-dropdown[open] .lang-dropdown-menu {
  display: block;
}

[dir="rtl"] .lang-dropdown-menu a {
  white-space: nowrap;
  text-align: right;
}

/* Footer: brand on right, columns flow RTL */
[dir="rtl"] .site-footer-top {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .site-footer-brand {
  text-align: right;
}

[dir="rtl"] .site-footer-column {
  text-align: right;
}

[dir="rtl"] .site-footer-bottom {
  flex-direction: row-reverse;
}

@media (min-width: 640px) {
  [dir="rtl"] .site-footer-bottom {
    text-align: right;
  }
  [dir="rtl"] .site-footer-legal {
    justify-content: flex-end;
  }
}

[dir="rtl"] .site-footer-legal {
  flex-direction: row-reverse;
}

/* Contact section RTL */
[dir="rtl"] .contact-welcome {
  direction: rtl;
  text-align: right;
}

@media (min-width: 1024px) {
  [dir="rtl"] .contact-welcome {
    text-align: right;
   
  }
}

[dir="rtl"] .contact-form-wrap,
[dir="rtl"] .contact-form-card-inner,
[dir="rtl"] .contact-form {
  text-align: right;
}

[dir="rtl"] .contact-field label,
[dir="rtl"] .contact-field input,
[dir="rtl"] .contact-field textarea {
  text-align: right;
}

[dir="rtl"] .contact-field input::placeholder,
[dir="rtl"] .contact-field textarea::placeholder {
  text-align: right;
}

[dir="rtl"] .contact-cta-link {
  flex-direction: row-reverse;
}

[dir="rtl"] .contact-cta-arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .contact-cta-link:hover .contact-cta-arrow {
  transform: scaleX(-1) translateX(4px);
}

[dir="rtl"] .contact-grid {
  direction: rtl;
}

/* Contact form card glow – move to left in RTL */
[dir="rtl"] .contact-form-card-glow {
  right: auto;
  left: -20%;
}

/* MV cards – number and glow position */
[dir="rtl"] .mv-card-inner,
[dir="rtl"] .about-card .relative {
  text-align: right;
}

/* About page (ar) – Vision/Mission card blur orbs in RTL */
[dir="rtl"] .about-card .absolute.top-0.right-0 {
  right: auto;
  left: 0;
  transform: translate(-50%, -50%);
}

[dir="rtl"] .about-card .absolute.bottom-0.left-0 {
  left: auto;
  right: 0;
  transform: translate(50%, 50%);
}

/* About page – values cards text alignment (section after .about-mv) */
[dir="rtl"] .about-mv + section [class*="rounded-2xl"] {
  text-align: right;
}

[dir="rtl"] .about-cta-link {
  flex-direction: row-reverse;
}

[dir="rtl"] .mv-header,
[dir="rtl"] .mv-header__main {
  text-align: right;
}

@media (min-width: 1024px) {
  [dir="rtl"] .mv-lead {
  
    margin-inline-start: 0;
    margin-inline-end: auto;
  }
}

[dir="rtl"] .mv-card::after {
  right: auto;
  left: -25%;
}

/* Agile line – animate from right in RTL */
[dir="rtl"] .agile-line {
  transform-origin: right;
}

[dir="rtl"] .agile-line.animated {
  transform: translateY(-50%) scaleX(1);
}

/* Service card – blur orb on left in RTL */
[dir="rtl"] .service-card > .absolute.top-0.right-0 {
  right: auto;
  left: 0;
  transform: translate(-50%, -50%);
}

[dir="rtl"] .service-card:hover > .absolute.top-0.right-0 {
  transform: translate(-50%, -50%);
}

/* Post content */
[dir="rtl"] .post-content {
  text-align: right;
}

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

/* Blog card content */
[dir="rtl"] .blog-card-content {
  text-align: right;
}

/* Section reveal – ensure transform works in RTL (no horizontal shift) */
[dir="rtl"] .section-reveal.revealed {
  transform: translateY(0);
}

[dir="rtl"] .section-reveal {
  transform: translateY(28px);
}

/* Ensure flex wrap and justify don't break in RTL */
[dir="rtl"] .flex.flex-wrap.gap-4.justify-center {
  flex-direction: row;
}

[dir="rtl"] .flex.flex-wrap.gap-2,
[dir="rtl"] .flex.flex-wrap.gap-3 {
  direction: rtl;
}

.mv-label {
  display: inline-block;
  font-size: unset;
  font-weight: 700;
  letter-spacing: unset;
  text-transform: uppercase;
  color: rgb(219, 9, 77);
  margin-bottom: 1rem;
  font-family: 'main-font';
}

/* Home — enterprise proof metrics */
[dir="rtl"] .page-home-enterprise .hero-proof__metrics > div {
  border-right: none;
  padding-right: 0;
  border-left: 1px solid var(--border-subtle);
  padding-left: 1rem;
}

[dir="rtl"] .page-home-enterprise .hero-proof__metrics > div:last-child {
  border-left: none;
  padding-left: 0;
}

@media (max-width: 639px) {
  [dir="rtl"] .page-home-enterprise .hero-proof__metrics > div {
    border-left: none;
    padding-left: 0;
  }
}

[dir="rtl"] .page-home-enterprise .enterprise-cta__actions {
  justify-content: flex-start;
}

@media (min-width: 768px) {
  [dir="rtl"] .page-home-enterprise .enterprise-cta__actions {
    justify-content: flex-start;
  }
}

/* ===== Home — Arabic layout ===== */
[dir="rtl"] .page-home-enterprise .hero-content,
[dir="rtl"] .page-home-enterprise .hero-headline,
[dir="rtl"] .page-home-enterprise .hero-lead,
[dir="rtl"] .page-home-enterprise .hero-meta,
[dir="rtl"] .page-home-enterprise .section-eyebrow--enterprise {
  text-align: start;
}

[dir="rtl"] .page-home-enterprise .hero-meta {
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  [dir="rtl"] .page-home-enterprise .hero-content {
    text-align: start;
  }
}

/* Home hero SOC — center 3D panel on mobile (Arabic / RTL) */
@media (max-width: 767px) {
  /*
   * Page is RTL, but the SOC stage uses LTR flex/positioning (same as EN/TR).
   * Arabic copy inside the frame stays RTL.
   */
  html[dir="rtl"] .page-home-enterprise .hero-aside .hero-3d-scene,
  html[dir="rtl"] .page-home-enterprise .hero-aside .hero-3d-scene .hero-visual--soc,
  html[dir="rtl"] .page-home-enterprise .hero-aside .hero-3d-scene .hero-visual__stage,
  html[dir="rtl"] .page-home-enterprise .hero-aside .hero-3d-scene .hero-3d-tilt {
    direction: ltr;
  }

  html[dir="rtl"] .page-home-enterprise .hero-visual--soc {
    justify-content: center;
    align-items: center;
  }

  html[dir="rtl"] .page-home-enterprise .hero-visual__stage {
    margin-left: auto;
    margin-right: auto;
    margin-inline: auto;
  }

  html[dir="rtl"] .page-home-enterprise .hero-aside .hero-3d-scene .hero-visual__frame,
  html[dir="rtl"] .page-home-enterprise .hero-visual--soc .hero-visual__frame,
  html[dir="rtl"] .page-home-enterprise.motion-3d .hero-3d-tilt .hero-visual__frame,
  html[dir="rtl"] .hero-visual--soc .hero-visual__frame {
    direction: rtl;
    left: auto;
    right: auto;
  }

  html[dir="rtl"] .hero-visual--soc .hero-node--3 {
    left: 50%;
    right: auto;
    inset-inline-start: 50%;
    inset-inline-end: auto;
    translate: -50% 0;
  }
}

[dir="rtl"] .cyber-intro__lead,
[dir="rtl"] .cyber-intro__stat,
[dir="rtl"] .cyber-why-world__copy,
[dir="rtl"] .cyber-why-world__headline,
[dir="rtl"] .cyber-why-world__lead,
[dir="rtl"] .services-header,
[dir="rtl"] .services-lead,
[dir="rtl"] .blog-header,
[dir="rtl"] .blog-lead,
[dir="rtl"] .theme-cyber .section-header,
[dir="rtl"] .theme-cyber .section-lead,
[dir="rtl"] .home-contact-band__content,
[dir="rtl"] .academy-section__head,
[dir="rtl"] .academy-section__copy {
  text-align: start;
}

[dir="rtl"] .academy-section__inner {
  direction: rtl;
}

[dir="rtl"] .academy-section__points li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding-inline-start: 0;
  text-align: start;
}

[dir="rtl"] .academy-section__points li::before {
  display: none;
}

[dir="rtl"] .academy-section__points .ui-icon {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--accent-light);
}

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

[dir="rtl"] .academy-section__cta-icon {
  transform: scaleX(-1);
}

[dir="rtl"] .home-faqs__header,
[dir="rtl"] .home-faqs__question,
[dir="rtl"] .home-faqs__answer {
  text-align: start;
}

@media (min-width: 768px) {
  [dir="rtl"] .home-contact-band__inner,
  [dir="rtl"] .theme-modern .home-contact-band__inner {
    direction: rtl;
  }
}

[dir="rtl"] .home-contact-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

[dir="rtl"] .cyber-sticky-cta {
  flex-direction: row-reverse;
}

[dir="rtl"] .home-clients__header {
  text-align: center;
}

[dir="rtl"] .page-home-enterprise .home-projects__header,
[dir="rtl"] .page-home-enterprise .home-projects__lead {
  text-align: start;
}

[dir="rtl"] .svc-card__link {
  text-align: start;
}

[dir="rtl"] .svc-card__more {
  text-align: start;
}

[dir="rtl"] .blog-showcase__header,
[dir="rtl"] .blog-showcase__lead {
  text-align: center;
}

[dir="rtl"] .blog-showcase__body {
  text-align: start;
}

[dir="rtl"] .page-projects-enterprise .project-show-hero__container,
[dir="rtl"] .page-projects-enterprise .project-show-block__header,
[dir="rtl"] .page-projects-enterprise .project-show-block__title,
[dir="rtl"] .page-projects-enterprise .project-show-content__body,
[dir="rtl"] .page-projects-enterprise .project-highlights__item {
  text-align: start;
}

[dir="rtl"] .page-projects-enterprise .project-show-hero__breadcrumb {
  direction: rtl;
}

[dir="rtl"] .page-projects-enterprise .project-show-hero__stats {
  direction: rtl;
}

[dir="rtl"] .page-projects-enterprise .project-gallery-shell {
  direction: rtl;
}

[dir="rtl"] .page-clients-enterprise .clients-header,
[dir="rtl"] .page-clients-enterprise .clients-lead,
[dir="rtl"] .page-clients-enterprise .clients-metrics__item,
[dir="rtl"] .page-clients-enterprise .clients-page__empty {
  text-align: start;
}

[dir="rtl"] .page-clients-enterprise .clients-header__back {
  direction: rtl;
}

[dir="rtl"] .page-blog-enterprise .blog-hero__metric,
[dir="rtl"] .page-blog-enterprise .blog-hero__metric-value,
[dir="rtl"] .page-blog-enterprise .blog-hero__metric-label {
  text-align: start;
}

[dir="rtl"] .page-contact-enterprise .contact-hero,
[dir="rtl"] .page-contact-enterprise .contact-info,
[dir="rtl"] .page-contact-enterprise .contact-map__header {
  text-align: start;
}

[dir="rtl"] .page-contact-enterprise .contact-info__item {
  flex-direction: row-reverse;
}

[dir="rtl"] .page-contact-enterprise .contact-field label,
[dir="rtl"] .page-contact-enterprise .contact-field input,
[dir="rtl"] .page-contact-enterprise .contact-field textarea {
  text-align: start;
}