/* ==========================================================================
   Nova — RTL / Arabic stylesheet
   Loaded when WordPress locale is RTL (Arabic via Polylang).
   ========================================================================== */

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

:root {
  --nova-font: "Tajawal", "Manrope", sans-serif;
  --nova-font-inter: "Tajawal", "Inter", sans-serif;
}

/* Arabic typography */
html[dir="rtl"] .nova-landing {
  font-family: var(--nova-font);
  letter-spacing: 0;
}

html[dir="rtl"] .nova-label,
html[dir="rtl"] .nova-tag,
html[dir="rtl"] .top-tag,
html[dir="rtl"] .bottom-tag,
html[dir="rtl"] .mini-tag,
html[dir="rtl"] .mini-tag-neon,
html[dir="rtl"] .nova-btn,
html[dir="rtl"] .card-content .learn-more,
html[dir="rtl"] .solution .sub-title,
html[dir="rtl"] .solution .role-item,
html[dir="rtl"] .roles-grid-section .f-text,
html[dir="rtl"] .development-section .user-info p,
html[dir="rtl"] .development-section .sub-heading,
html[dir="rtl"] .development-section .feature-text h4,
html[dir="rtl"] .bottom-cta h2,
html[dir="rtl"] .gray-section h2,
html[dir="rtl"] .key-advantages .advantages-title h2,
html[dir="rtl"] .dark-section .decision-title h2,
html[dir="rtl"] .integrity-section .main-title {
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .nova-hero__title,
html[dir="rtl"] .detail-hero h1 {
  letter-spacing: 0;
}

/* Header & navigation */
html[dir="rtl"] .nova-nav__link::after {
  left: auto;
  right: 0;
}

html[dir="rtl"] .nova-lang-switcher .lang-item a {
  flex-direction: row-reverse;
}

/* Mega menu */
html[dir="rtl"] .mega-desc {
  margin-left: 0;
  margin-right: 36px;
}

html[dir="rtl"] .mega-item.is-active,
html[dir="rtl"] .mega-item:hover {
  border-left: none;
  border-right: 2px solid var(--nova-lime);
  padding-left: 0;
  padding-right: 2px;
}

/* Hero */
html[dir="rtl"] .nova-hero__glow {
  right: auto;
  left: -10%;
}

html[dir="rtl"] .nova-hero__desc {
  margin-right: 0;
}

/* Video modal */
html[dir="rtl"] .nova-video-modal__close {
  right: auto;
  left: 0;
}

/* Cards & links */
html[dir="rtl"] .card-content .learn-more svg,
html[dir="rtl"] .cta-btn-outline-white svg,
html[dir="rtl"] .hero-actions .nova-btn svg,
html[dir="rtl"] .nova-btn .nova-icon-arrow {
  margin-left: 0;
  margin-right: 10px;
  transform: scaleX(-1);
}

html[dir="rtl"] .cta-btn-outline-white svg {
  margin-right: 0;
  margin-left: 5px;
}

/* Footer */
html[dir="rtl"] .nova-footer__social-link {
  margin-right: 0;
  margin-left: 10px;
}


/* Single report */
html[dir="rtl"] .check-list li::before {
  margin-right: 0;
  margin-left: 15px;
}

html[dir="rtl"] .step-card .step-num {
  right: auto;
  left: 20px;
}

html[dir="rtl"] .fixed-adv-icon {
  right: auto;
  left: 50px;
}

html[dir="rtl"] .dark-section .list-item {
  border-left: 1px solid #1F2020;
  border-right: 4px solid var(--nova-lime);
}

html[dir="rtl"] .tag-pill {
  margin-right: 0;
  margin-left: 10px;
}

html[dir="rtl"] .integrity-section .card {
  text-align: right;
}

html[dir="rtl"] .nova-expertise .nova-section-header,
html[dir="rtl"] .nova-footer__bottom,
html[dir="rtl"] .solution .steps-card {
  text-align: right;
}
html[dir="rtl"] .solution .steps-card:not(:last-child)::after{
  left: -30px;
  right: unset;
}
html[dir="rtl"] .nova-footer__bottom {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nova-footer__legal {
  flex-direction: row-reverse;
}
html[dir="rtl"] .measure-section h2,
html[dir="rtl"] .white-section h2 {
  text-align: right;
}

html[dir="rtl"] .quality-section .status-card{
  border-right: 3px solid var(--nova-lime);
  border-left: none;
}

/* Solution page */

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

html[dir="rtl"] .solution .hero-stats {
  border-left: none;
  border-right: 1px solid #333;
  padding-left: 0;
  padding-right: 30px;
}

html[dir="rtl"] .solution .quote {
  border-left: none;
  border-right: 4px solid var(--nova-lime);
  padding-left: 0;
  padding-right: 30px;
}

html[dir="rtl"] .development-section .report-card {
  box-shadow: -20px 20px 0 var(--nova-grey-100);
}

html[dir="rtl"] .development-section .overall-score {
  text-align: left;
}

@media (max-width: 992px) {
  html[dir="rtl"] .solution .hero-stats {
    border-right: none;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  html[dir="rtl"] .mega-desc {
    margin-right: 0;
  }

  html[dir="rtl"] .mega-item.is-active,
  html[dir="rtl"] .mega-item:hover {
    border-right: none;
    padding-right: 0;
    border-bottom: 2px solid var(--nova-lime);
    padding-bottom: 2px;
  }

  html[dir="rtl"] .mega-title .arrow {
    display: inline-block;
    transform: scaleX(-1);
  }

  html[dir="rtl"] .view-all {
    letter-spacing: 0;
  }

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

  html[dir="rtl"] .nova-footer__bottom,
  html[dir="rtl"] .nova-expertise .nova-section-header,
  html[dir="rtl"] .solution .steps-card,
  html[dir="rtl"] .integrity-section .card,
  html[dir="rtl"] .solution .hero-content {
    text-align: right;
  }

  html[dir="rtl"] .solution .hero-stats {
    border-right: none;
    padding-right: 0;
  }

  html[dir="rtl"] .nova-lang-switcher {
    margin-left: auto;
    margin-right: 0;
  }

  html[dir="rtl"] .development-section .overall-score {
    text-align: right;
  }

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

  html[dir="rtl"] .nova-phone-mockup--back {
    right: auto;
    left: 10%;
  }

  html[dir="rtl"] .nova-phone-mockup--front {
    right: auto;
    left: 28%;
  }

  html[dir="rtl"] .solution .quote {
    padding-right: 20px;
    padding-left: 0;
  }

  html[dir="rtl"] .check-list li::before {
    margin-left: 12px;
  }

  html[dir="rtl"] .solution .hero-stats {
    border-left: none;
    border-top: 1px solid #333;
    padding-left: 0;
    padding-top: 24px;
  }

  html[dir="rtl"] .hero-actions .cta-btn-outline-white svg {
    margin-left: 5px;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  html[dir="rtl"] .nova-phone-mockup--back {
    left: 5%;
  }

  html[dir="rtl"] .nova-phone-mockup--front {
    left: 22%;
  }
}

/* Contact form */
html[dir="rtl"] .nova-form--cf7 input,
html[dir="rtl"] .nova-form--cf7 textarea,
html[dir="rtl"] .nova-form--cf7 select {
  text-align: right;
  direction: rtl;
}
html[dir="rtl"] .nova-form--cf7 input[type="submit"]{
  text-align: center;
  font-family: var(--nova-font);
}
/* Directional hover nudge */
html[dir="rtl"] .roles-grid-section .role-card:hover {
  transform: translateY(-5px);
}

html[dir="rtl"] a:hover .learn-more svg,
html[dir="rtl"] a:hover .learn-more .learn-more__icon svg {
  transform: scaleX(-1) translateX(-5px);
}

html[dir="rtl"] .card-content .learn-more,
html[dir="rtl"] .nova-archive-hero,
html[dir="rtl"] .nova-archive-cta {
  text-align: right;
}
html[dir="rtl"] .nova-archive-cta{
  text-align: center;
}
html[dir="rtl"] .nova-archive-hero {
  text-align: center;
}

html[dir="rtl"] .card-content .learn-more svg,
html[dir="rtl"] .card-content .learn-more .learn-more__icon svg {
  transform: scaleX(-1);
}

html[dir="rtl"] .nova-archive-pagination .nav-links {
  direction: rtl;
}

html[dir="rtl"] .contact-us p{
  direction: ltr;
  text-align: right;
}

html[dir="rtl"] .nova-landing a span.arrows,
html[dir="rtl"] .nova-landing a svg{
  transform: rotate(180deg);
  display: inline-block;
}
html[dir="rtl"] .social-links a.social-icon svg{
  transform: rotate(0deg)!important;
}
html[dir="rtl"] .nova-platform .nova-hero__actions .sign-up{
  display: flex;
  align-items: center;
  gap: 10px;
}

html[dir="rtl"] .nova-footer__social .social-icon svg,
html[dir="rtl"] .archive .learn-more svg,
html[dir="rtl"] .nova-mega-menu span{
  transform: rotate(0deg)!important;
  display: inline-block;
}