/* ============================================================
   Pioneer — i18n Shared Styles
   Language switcher + RTL layout overrides
   Applies to ALL pages
   ============================================================ */

/* ----------------------------------------------------------
   LANGUAGE SWITCHER
   ---------------------------------------------------------- */
.lang-switcher { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1.5px solid rgba(39, 44, 100, 0.25);
  border-radius: 50px;
  padding: 6px 12px;
  color: var(--title, #272C64);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.lang-btn:hover {
  background: var(--theme2, #CAE7FC);
  border-color: var(--theme, #272C64);
}
.lang-btn svg { flex-shrink: 0; }
.lang-chevron { transition: transform 0.25s ease; }
.lang-btn[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid rgba(39, 44, 100, 0.12);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(39, 44, 100, 0.15);
  list-style: none;
  padding: 6px;
  margin: 0;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 9999;
}
.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--title, #272C64);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}
.lang-option:hover,
.lang-option.active {
  background: var(--theme2, #CAE7FC);
  color: var(--title, #272C64);
}

/* Sticky header */
#header-sticky.sticky .lang-btn { border-color: rgba(39, 44, 100, 0.3); }

/* Prevent dropdown clipping */
.header-1 .mega-menu-wrapper { z-index: 999 !important; overflow: visible !important; }
.header-section-1, #header-sticky { overflow: visible !important; }


/* ----------------------------------------------------------
   RTL — Arabic layout overrides
   ---------------------------------------------------------- */

/* Flip two-column section rows */
[dir="rtl"] .intro-wrapper .row,
[dir="rtl"] .about-wrapper .row,
[dir="rtl"] .advantage-wrapper .row.d-flex,
[dir="rtl"] .work-process-wrapper .row {
  flex-direction: row-reverse !important;
}

/* Footer - DON'T flip columns, keep same order as English */
/* Just align text to right for Arabic */

/* Reset all footer text to right alignment */
[dir="rtl"] .footer-widgets-wrapper .single-footer-widget,
[dir="rtl"] .footer-widgets-wrapper .widget-head,
[dir="rtl"] .footer-widgets-wrapper .widget-head h3,
[dir="rtl"] .footer-widgets-wrapper .footer-content,
[dir="rtl"] .footer-widgets-wrapper .footer-content p,
[dir="rtl"] .footer-widgets-wrapper .list-area,
[dir="rtl"] .footer-widgets-wrapper .list-area li,
[dir="rtl"] .footer-widgets-wrapper .contact-box,
[dir="rtl"] .footer-widgets-wrapper .contact-box .subtitle,
[dir="rtl"] .footer-widgets-wrapper .contact-box .widget-head,
[dir="rtl"] .footer-widgets-wrapper .contact-box .text {
  text-align: right !important;
}

/* Move underlines to right side in Arabic */
[dir="rtl"] .footer-widgets-wrapper .single-footer-widget .widget-head h3::before {
  left: auto !important;
  right: 0 !important;
}

[dir="rtl"] .footer-widgets-wrapper .single-footer-widget .widget-head h3::after {
  left: auto !important;
  right: 40px !important;
}

/* Remove left padding from lists */
[dir="rtl"] .footer-widgets-wrapper .list-area {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Keep store links aligned to right */
[dir="rtl"] .footer-widgets-wrapper .store-links {
  display: flex;
  justify-content: flex-start !important;
}

/* Flip Play Store button content (icon right, text left) */
[dir="rtl"] .footer-widgets-wrapper .store-links .play a {
  display: flex !important;
  flex-direction: row-reverse !important;
  align-items: center !important;
  gap: 8px !important;
}

[dir="rtl"] .footer-widgets-wrapper .store-links .play a svg {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Keep contact info layout as-is (icon left, text right) - don't flip */
[dir="rtl"] .footer-widgets-wrapper .contact-box .info {
  display: flex !important;
  flex-direction: row !important;
  align-items: start !important;
  gap: 15px !important;
}

/* Keep phone numbers and emails in LTR direction */
[dir="rtl"] .footer-widgets-wrapper .contact-box .info .link,
[dir="rtl"] .footer-widgets-wrapper .contact-box .info .link a {
  direction: ltr !important;
  unicode-bidi: bidi-override !important;
}

/* Footer bottom bar */
[dir="rtl"] .footer-bottom .footer-wrapper {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .footer-bottom p {
  text-align: right;
}


/* Work process boxes — center text in RTL */
[dir="rtl"] .work-process-box {
  text-align: center !important;
}
[dir="rtl"] .work-process-box .step,
[dir="rtl"] .work-process-box .title,
[dir="rtl"] .work-process-box .text {
  text-align: center;
}
[dir="rtl"] .about-content,
[dir="rtl"] .advantage-content,
[dir="rtl"] .cta-content,
[dir="rtl"] .wcu-section .section-title,
[dir="rtl"] .contact-form,
[dir="rtl"] .contact-info-box .contact-content,
[dir="rtl"] .form-clt {
  text-align: right;
}

/* Form inputs */
[dir="rtl"] .form-clt input,
[dir="rtl"] .form-clt textarea {
  text-align: right;
  direction: rtl;
}

/* Checklist items — icon on right */
[dir="rtl"] .checklist.style1 li {
  flex-direction: row-reverse;
  justify-content: flex-start;
  gap: 12px;
}
[dir="rtl"] .checklist.style1 li img {
  margin-right: 0;
  margin-left: 10px;
}

/* WCU fancy boxes — icon on right in RTL */
[dir="rtl"] .fancy-box.style2 {
  flex-direction: row-reverse !important;
  text-align: right;
  justify-content: flex-end;
  gap: 19px;
}
[dir="rtl"] .fancy-box.style2 .icon {
  margin-left: 0 !important;
  margin-right: 0 !important;
  flex-shrink: 0;
}
[dir="rtl"] .fancy-box.style2 .content {
  text-align: right;
}

/* WCU left column in RTL: text RIGHT, icon LEFT */
[dir="rtl"] .wcu-left .fancy-box.style2 {
  flex-direction: row !important;
  justify-content: flex-end;
}

/* WCU right column in RTL: text RIGHT, icon LEFT */
[dir="rtl"] .wcu-right .fancy-box.style2 {
  flex-direction: row !important;
  text-align: right;
  justify-content: flex-end;
}
[dir="rtl"] .wcu-right .fancy-box.style2 .content {
  text-align: right;
}

/* Offcanvas contact list */
[dir="rtl"] .offcanvas__contact ul li {
  flex-direction: row-reverse;
  text-align: right;
}

/* Mirror about phone mockup */
[dir="rtl"] .about-thumb .main-thumb img {
  transform: scaleX(-1);
}

/* Arrow icons in buttons */
[dir="rtl"] .theme-btn .fa-arrow-right-long {
  transform: scaleX(-1);
  display: inline-block;
}
[dir="rtl"] .theme-btn svg {
  transform: scaleX(-1);
}

/* Nav links */
[dir="rtl"] .main-menu nav > ul {
  flex-direction: row-reverse;
}

/* Breadcrumb */
[dir="rtl"] .breadcumb-wrapper { text-align: right; }
[dir="rtl"] .page-heading .links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 4px;
}
[dir="rtl"] .page-heading h1 {
  text-align: center;
}

/* About image column — keep centered in RTL */
[dir="rtl"] .about-img-col,
[dir="rtl"] .about-thumb {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Intro image column — keep centered in RTL */
[dir="rtl"] .intro-thumb {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Advantage image column — keep centered in RTL */
[dir="rtl"] .advantage-thumb {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* CTA image column — keep centered in RTL */
[dir="rtl"] .cta-thumb {
  display: flex;
  justify-content: center;
  align-items: center;
}
[dir="rtl"] .contact-form-wrapper .row {
  flex-direction: row-reverse;
}

/* Contact info boxes — center icon and text in RTL */
[dir="rtl"] .contact-info-box .contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
[dir="rtl"] .contact-info-box .contact-content .icon {
  display: flex;
  justify-content: center;
  width: 100%;
}
