/* ============================================================
   RTL – Arabic Font Family (ABCFavoritArabic)
   These fonts load only because main-rtl.css is included
   on the Arabic page.
   ============================================================ */

/* Regular */
@font-face {
    font-family: 'ABCFavoritArabic';
    src: url('../fonts/arabic/ABCFavoritArabic-Regular.woff2') format('woff2'),
         url('../fonts/arabic/ABCFavoritArabic-Regular.woff') format('woff'),
         url('../fonts/arabic/ABCFavoritArabic-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Medium */
@font-face {
    font-family: 'ABCFavoritArabic';
    src: url('../fonts/arabic/ABCFavoritArabic-Medium.woff2') format('woff2'),
         url('../fonts/arabic/ABCFavoritArabic-Medium.woff') format('woff'),
         url('../fonts/arabic/ABCFavoritArabic-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Bold */
@font-face {
    font-family: 'ABCFavoritArabic';
    src: url('../fonts/arabic/ABCFavoritArabic-Bold.woff2') format('woff2'),
         url('../fonts/arabic/ABCFavoritArabic-Bold.woff') format('woff'),
         url('../fonts/arabic/ABCFavoritArabic-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Apply Arabic font globally ONLY for RTL pages */
/* Apply Arabic font globally & override theme font vars */
body.rtl {
  font-family: 'ABCFavoritArabic', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* override the CSS variables used in main.css */
  --font-heading: 'ABCFavoritArabic', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'ABCFavoritArabic', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ===========================
   Global RTL base
   =========================== */
html[dir="rtl"],
body.rtl {
  direction: rtl;
  text-align: right;
}

/* Flip generic text alignment back to left where needed (numbers / code, etc.) */
body.rtl .text-left,
body.rtl .xb-footer-item.xb-newsletter,
body.rtl .xb-footer-item.xb-social_media {
  text-align: right;
}

/* ===========================
   Layout / flex reversals
   =========================== */

/* Header: put logo on right, icons/Arabic switch on left */
body.rtl .header__wrap {
  flex-direction: row-reverse;
}

/* If header-right looks reversed, flip inside again */
body.rtl .header-right {
  flex-direction: row-reverse;
}

/* Hero: put text column on the right, image on the left */
body.rtl .hero .row {
  flex-direction: row-reverse;
}

/* Sections where text and image are side by side */
body.rtl .process-sction .row,
body.rtl .cta .row {
  flex-direction: row-reverse;
}

/* ===========================
   Text alignment for titles / copy
   =========================== */

body.rtl .hero-content,
body.rtl .hero-content .title,
body.rtl .hero-content .sub-title,
body.rtl .sec-title,
body.rtl,
body.rtl .xb-item--content,
body.rtl .ts-tagline,
body.rtl .ts-list li,
body.rtl .cta-tiles {
  text-align: right;
}

/* Center titles that should stay centered */
body.rtl .sec-title.text-center,
body.rtl .brand .sec-title,
body.rtl .xb-footer-item p.sub-title {
  text-align: center;
}

/* ===========================
   Padding / margin flips (common)
   =========================== */

/* Your custom padding classes (from the overview section) */
body.rtl .pl-100 {
  padding-left: 0;
  padding-right: 100px;
}

body.rtl .pr-100 {
  padding-right: 0;
  padding-left: 100px;
}

/* If you have generic .pl-* / .pr-* utilities, you can swap them similarly */

/* Hero prompts on phone (right-align bubbles) */
body.rtl .xb-text-left {
  left: auto;
  right: 0;
}

/* ===========================
   Lists / bullets
   =========================== */

body.rtl .ts-list li {
  padding-left: 0;
  padding-right: 1.5rem;
}

body.rtl .ts-list li::before {
  left: auto;
  right: 0;
}

/* ===========================
   Footer
   =========================== */

body.rtl .xb-footer-inner .row {
  flex-direction: row-reverse;
}

/* Social icons can remain centered */
body.rtl .social-row {
  justify-content: center;
}

/* Store buttons already centered */
body.rtl .store-buttons {
  justify-content: center;
}

/* ============================================================
   RTL VERSION OF HERO IMAGE CONTAINER
   ============================================================ */
body.rtl .hero-img-container {
  position: relative;
  margin-left: -203px;   /* flipped */
  margin-right: 110px;   /* flipped */
}

@media (max-width: 1600px) {
  body.rtl .hero-img-container {
    margin-left: -130px;  /* flipped */
    margin-right: 50px;   /* flipped */
  }
}

@media only screen and (min-width: 1200px) and (max-width: 1500px) {
  body.rtl .hero-img-container {
    margin-right: 0;  /* flipped */
    margin-left: 0;   /* flipped */
  }
}

@media only screen and (min-width: 1200px) and (max-width: 1300px) {
  body.rtl .hero-img-container {
    bottom: -25px;
  }
}

@media (max-width: 1199px) {
  body.rtl .hero-img-container {
    margin-right: 0;     /* flipped */
    margin-left: -30px;  /* flipped */
    bottom: -70px;
  }
}

@media only screen and (max-width: 1023px) {
  body.rtl .hero-img-container {
    margin-right: -25px; /* flipped */
    margin-left: -35px;  /* flipped */
  }
}

@media (max-width: 991px) {
  body.rtl .hero-img-container {
    margin-left: 0;  /* flipped */
    margin-right: 0; /* flipped */
  }
}

@media (max-width: 767px) {
  body.rtl .hero-img-container {
    bottom: -20px;
  }
}

@media only screen and (min-width: 576px) and (max-width: 767px) {
  body.rtl .hero-img-container {
    max-width: 80%;
    margin: 0 auto;
  }
}

/* ============================================================
   RTL — LEFT BUBBLES BECOME RIGHT BUBBLES
   ============================================================ */
body.rtl .hero-img-container .xb-text-left {
  top: 78px;
  right: 0;       /* flipped */
  left: auto;     /* flipped */
  position: absolute;
}

@media only screen and (min-width: 1200px) and (max-width: 1300px) {
  body.rtl .hero-img-container .xb-text-left {
    right: -10px; /* flipped */
    left: auto;
  }
}

@media (max-width: 1199px) {
  body.rtl .hero-img-container .xb-text-left {
    max-width: 32%;
  }
}

body.rtl .hero-img-container .xb-text-left .img {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.55, 0.085, 0, 0.99);
}

body.rtl .hero-img-container .xb-text-left .img:not(:last-child) {
  margin-bottom: 10px;
}

@media (max-width: 767px) {
  body.rtl .hero-img-container .xb-text-left .img:not(:last-child) {
    margin-bottom: 5px;
  }
}

body.rtl .hero-img-container .xb-text-left.animated .img {
  opacity: 1;
  transition-delay: .6s;
  transform: translateY(0);
}

body.rtl .hero-img-container .xb-text-left.animated .img--2 {
  transition-delay: .8s;
}

/* ============================================================
   RTL — RIGHT BUBBLES BECOME LEFT BUBBLES
   ============================================================ */
body.rtl .hero-img-container .xb-text-right {
  position: absolute;
  top: 96px;
  left: 0;         /* flipped */
  right: auto;     /* flipped */
}

@media (max-width: 1199px) {
  body.rtl .hero-img-container .xb-text-right {
    max-width: 32%;
    left: 20px;    /* flipped */
    right: auto;
  }
}

@media (max-width: 991px) {
  body.rtl .hero-img-container .xb-text-right {
    left: 0;       /* flipped */
    right: auto;
  }
}

body.rtl .hero-img-container .xb-text-right .img {
  display: block;
  opacity: 0;
  transition-delay: .2s;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.55, 0.085, 0, 0.99);
}

body.rtl .hero-img-container .xb-text-right .img:not(:last-child) {
  margin-bottom: 10px;
}

@media (max-width: 767px) {
  body.rtl .hero-img-container .xb-text-right .img:not(:last-child) {
    margin-bottom: 5px;
  }
}

body.rtl .hero-img-container .xb-text-right.animated .img {
  opacity: 1;
  transition-delay: .6s;
  transform: translateY(0);
}

body.rtl .hero-img-container .xb-text-right.animated .img--2 {
  transition-delay: .8s;
}

body.rtl .hero-img-container .xb-text-right.animated .img--3 {
  transition-delay: 1s;
}

/* ============================================================
   RTL — GLASSY EFFECT MIRRORED
   ============================================================ */
body.rtl .hero-img-container .xb-glassy-effect-img {
  position: absolute;
  top: 23%;
  right: 15.5%;  /* flipped */
  left: auto;    /* flipped */
  opacity: 0;
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: all 0.8s cubic-bezier(0.55, 0.085, 0, 0.99);
}

@media (max-width: 1600px) {
  body.rtl .hero-img-container .xb-glassy-effect-img {
    top: 28.3%;
    right: 21.5%;   /* flipped */
    left: auto;
    max-width: 52%;
  }
}

body.rtl .hero-img-container .xb-glassy-effect-img.animated {
  opacity: 1;
  transition-delay: .5s;
  transform: scaleY(1);
}

/* =========================================
   RTL OVERRIDES FOR BUTTONS
   body.rtl must be on <body> in Arabic page
   ========================================= */

/* ---------- .thm-btn (generic CTA) ---------- */
body.rtl .thm-btn {
  flex-direction: row-reverse; /* arrow bubble on the left of text */
}

/* Move arrow SVG positioning to the right side inside the circle */
body.rtl .thm-btn .arrow-icon svg {
  right: 9px;
  left: auto;
}


/* ---------- .agency-btn (text + arrow block) ---------- */
body.rtl .agency-btn {
  display: inline-flex;
  flex-direction: row-reverse; /* arrow on the left, text on the right */
}

/* Swap rounded corners */
body.rtl .agency-btn .text {
  border-radius: 0 30px 30px 0; /* was 30px 0 0 30px */
}

body.rtl .agency-btn .arrow {
  border-radius: 30px 0 0 30px; /* was 0 30px 30px 0 */
}


/* ---------- .chatbot-btn (main JAIS CTA) ---------- */
body.rtl .chatbot-btn {
  gap: 8px;
  padding: 7px 20px 7px 7px; /* swap left/right padding */
}

@media (max-width: 767px) {
  body.rtl .chatbot-btn {
    gap: 10px;
    padding: 7px 10px 7px 7px; /* swap left/right for mobile too */
  }
}

/* Background animation should slide from the other side in RTL */
body.rtl .chatbot-btn .btn-bg {
  right: 0;
  left: auto;
}

body.rtl .chatbot-btn:hover .btn-bg {
  right: -100px;
  left: auto;
}


/* ---------- .custom-btn (circle icon with 2 images) ---------- */
body.rtl .custom-btn .xb-icon img {
  right: 8px;
  left: auto;
}


/* ---------- .ai-marketing-btn (arrow + text sliding) ---------- */
body.rtl .ai-marketing-btn {
  flex-direction: row-reverse;               /* arrow on the left */
  padding: 5px 5px 5px 15px;                 /* extra space near text on the right */
}

/* Move the background highlight to start from the right */
body.rtl .ai-marketing-btn::before {
  right: 5px;
  left: auto;
}

/* Text container stays fine; no direction-specific change needed */

body.rtl .arrow-icon {
    transform: scaleX(-1);
}

/* ---------- .xb-process-step ---------- */
body.rtl .xb-process-step {
  display: none;
  overflow: hidden;
  position: relative;
  margin-left: 63px;      /* flipped from margin-right */
  margin-right: 0;
  padding: 20px 20px 25px;
  text-align: center;
  border-radius: 10px;
  backdrop-filter: blur(40px);
  box-shadow: 0 4px 24px -1px rgba(28, 9, 61, 0.2);
  background: linear-gradient(209deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.05) 100%);
}

@media (max-width: 991px) {
  body.rtl .xb-process-step {
    margin-left: 285px;     /* flipped */
    margin-right: 0;
  }
}

@media (max-width: 767px) {
  body.rtl .xb-process-step {
    margin-left: 0;         /* flipped */
    margin-right: 0;
  }
}

body.rtl .xb-process-step::before {
  position: absolute;
  content: '';
  top: 0;
  right: 0;                /* flipped from left */
  left: auto;
  z-index: -1;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background-image: url(../img/process/noise.png);
  background-repeat: no-repeat;
  background-size: cover;
}

body.rtl .xb-process-step .xb-img {
  position: relative;
  box-shadow: 0 4px 24px -1px rgba(28,9,61,0.2);
}

body.rtl .xb-process-step .xb-img .step-number {
  position: absolute;
  right: 50%;                /* flipped from left */
  left: auto;
  top: 51%;
  transform: translate(50%, -50%); /* flipped horizontal translate */
  font-weight: 200;
  font-size: 50px;
  letter-spacing: -0.04em;
}

body.rtl .xb-process-step.active {
  display: block;
}

body.rtl .xb-process-step .step-name {
  font-size: 22px;
  padding-top: 30px;
  letter-spacing: -0.04em;
}

/* ---------- Left container ---------- */
body.rtl .xb-process-left-container {
  top: 50px;
  position: sticky;
  margin-left: 50px;     /* flipped from margin-right */
  margin-right: 0;
  padding-bottom: 100px;
}

@media (max-width: 1199px) {
  body.rtl .xb-process-left-container {
    margin-left: 0;      /* flipped */
  }
}

@media (max-width: 991px) {
  body.rtl .xb-process-left-container {
    padding-bottom: 30px;
  }
}

/* ---------- Right container ---------- */
body.rtl .xb-process-right-container {
  text-align: start;    /* flipped from end */
}

@media (max-width: 991px) {
  body.rtl .xb-process-right-container {
    padding-bottom: 62px;
  }
}

/* ---------- Section background overlay ---------- */
body.rtl .process-sction {
  overflow: clip;
  position: relative;
}

body.rtl .process-sction::before {
  position: absolute;
  content: '';
  right: -120px;       /* flipped from left */
  left: auto;
  bottom: -217px;
  height: 310px;
  width: 112.5%;
  z-index: 1;
  filter: blur(35px);
  background: #00020f;
}

.cta-btn a{margin-right: 0px; margin-left: 4px;}

.sec-title .title{font-size: 54px;}

.cta-icon {
    transform: rotate(220deg);
}

.cta-tile:hover .cta-icon {
    transform: rotate(180deg);
}

.rtl-title{text-align: right !important;}
.rtl-row{flex-direction: unset !important;}
.hero-btn img{margin-left: 2px;}
.app-store-img{width: 137px; height: 44.7px;}
.app-store-img-footer{width: 105px; height: 34px;}

@media (max-width: 768px) {
  .app-store-img{width: 107px; height: 34.7px;}
  .play-store-img{width: 107px; height: 34.7px;}
  body.rtl .pr-100{padding-left: 0px;}
  body.rtl .process-sction::before {background: unset;}
  .ts-tagline {text-align: center !important;}
}

/* Switch hero columns on mobile: text above image */
@media (max-width: 991px) {
  .hero.hero-style--two .col-lg-6:first-of-type {
    order: 2; /* image + prompts */
  }

  .hero.hero-style--two .col-lg-6:last-of-type {
    order: 1; /* heading + buttons */
  }
}

/* Swap logos block and language-switcher block on all screens except mobile */
@media (min-width: 768px) {
  body.rtl .header__wrap.xb-border.ul_li_between {
    display: flex;                 /* ensure it's flex */
    align-items: center;
    justify-content: space-between;
  }

  /* Put language switcher block first (on the right in RTL visual flow) */
  body.rtl .lang-switcher-div {
    order: 1 !important;
  }

  /* Put logos block second */
  body.rtl .logos-div {
    order: 2 !important;
  }
}