/* RTL overrides for Arabic */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .header__inner {
  flex-direction: row;
}

[dir="rtl"] .header__aside {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .nav ul,
[dir="rtl"] .nav-utilities ul {
  flex-direction: row;
}

[dir="rtl"] .nav-utilities li {
  margin-left: 0;
  margin-right: 3rem;
}

@media (min-width: 1400px) {
  [dir="rtl"] .nav-utilities {
    right: auto;
    left: 10rem;
  }
}

[dir="rtl"] .hero__body {
  text-align: right;
}

[dir="rtl"] .hero__explainer li {
  text-align: right;
  padding-left: 0;
  padding-right: 30px;
}

[dir="rtl"] .hero__explainer li img {
  left: auto;
  right: 0;
  margin-right: 0;
  margin-left: 5px;
}

[dir="rtl"] .hero__image {
  direction: ltr;
  position: relative;
}

[dir="rtl"] .hero__actions {
  text-align: right;
}

[dir="rtl"] .hero__foot .g2 {
  text-align: right;
}

[dir="rtl"] .hero__foot .stars a {
  float: right;
}

[dir="rtl"] .hero__foot .stars + .stars {
  margin-left: 0;
  margin-right: 10px;
}

[dir="rtl"] .shape--1 {
  right: auto;
  left: -1.4rem;
}

[dir="rtl"] .shape--1 img {
  transform: scaleX(-1);
}

[dir="rtl"] .list-partners {
  direction: rtl;
}

[dir="rtl"] .section__head {
  text-align: right;
}

[dir="rtl"] .section__title {
  text-align: right;
}

[dir="rtl"] .feature__content {
  text-align: right;
}

[dir="rtl"] .service__content {
  text-align: right;
}

[dir="rtl"] .tile {
  text-align: right;
}

[dir="rtl"] .ballon {
  text-align: right;
}

[dir="rtl"] .ballon:nth-child(2) {
  right: auto;
  left: 2.5rem;
}

[dir="rtl"] .ballons-alt {
  direction: ltr;
}

[dir="rtl"] .ballon-alt {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .slider-testimonials {
  direction: ltr;
}

[dir="rtl"] .testimonial {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .plan {
  text-align: right;
}

[dir="rtl"] .plan__content ul {
  padding-right: 0;
}

[dir="rtl"] .footer__cols {
  flex-direction: row;
}

[dir="rtl"] .footer__nav ul {
  padding-right: 0;
}

[dir="rtl"] .footer__bar {
  flex-direction: row;
}

[dir="rtl"] .list-terms {
  flex-direction: row;
}

[dir="rtl"] .section__inner {
  flex-direction: row;
}

[dir="rtl"] .section-alt .section__inner {
  flex-direction: row;
}

[dir="rtl"] .section-alt--reversed .section__inner {
  flex-direction: row-reverse;
}

[dir="rtl"] .block h4 span {
  margin-right: 0;
  margin-left: 8px;
}

[dir="rtl"] .feature-alt {
  flex-direction: row-reverse;
}

[dir="rtl"] .feature-alt .feature__content {
  margin-left: 0;
  margin-right: 20px;
}

[dir="rtl"] .feature-default .feature__content ul {
  padding-right: 0;
}

[dir="rtl"] .list-checks li {
  padding-left: 0;
  padding-right: 25px;
}

[dir="rtl"] .list-checks li::before {
  left: auto;
  right: 0;
}

/* Mobile language trigger */
.lang-mobile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  font-size: 2rem;
  font-weight: 500;
}

.lang-mobile-trigger img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

/* Mobile language panel */
.lang-mobile-panel {
  display: none;
}

@media (max-width: 1023px) {
  .lang-mobile-panel {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 10;
    padding: 3rem 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    overflow-y: auto;
  }

  .lang-mobile-panel.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
}

.lang-mobile-panel__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #2152c4;
  font-size: 1.6rem;
  font-weight: 500;
  padding: 8px 0;
  margin-bottom: 2rem;
}

.lang-mobile-panel__list {
  display: flex;
  flex-direction: column;
}

.lang-mobile-panel__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  text-decoration: none;
  color: #292d34;
  font-size: 1.8rem;
  font-weight: 400;
  border-radius: 6px;
}

.lang-mobile-panel__link:active {
  background: #f5f5f5;
}

.lang-mobile-panel__link.is-active {
  font-weight: 600;
  color: #2152c4;
}

.lang-mobile-panel__link img {
  width: 24px;
  height: 17px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Language selector */
.lang-selector {
  position: relative;
  display: inline-block;
}

.lang-selector__toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  font-size: 14px;
}

.lang-selector__toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.lang-selector__toggle img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

.lang-selector__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 160px;
  z-index: 1000;
  padding: 4px 0;
}

[dir="rtl"] .lang-selector__dropdown {
  right: auto;
  left: 0;
}

[dir="rtl"] .lang-mobile-panel {
  transform: translateX(-100%);
}

[dir="rtl"] .lang-mobile-panel.is-active {
  transform: translateX(0);
}

.lang-selector:hover .lang-selector__dropdown {
  display: block;
}

.lang-selector__dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  white-space: nowrap;
}

.lang-selector__dropdown a:hover {
  background: #f5f5f5;
}

.lang-selector__dropdown a.is-active {
  font-weight: 600;
  color: #1E50C3;
}

.lang-selector__dropdown a img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}
