/* Default LTR styles */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.navbar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
}

.nav-menu-flex {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: center;
  flex: 1;
  gap: 30px;
}

.brand {
  flex: 0 0 auto;
}

.navbar-button-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* Grid layouts */
.services-grid,
.facts-grid,
.solutions-grid,
.numbers-grid,
.footer-grid,
.features-grid {
  padding: 0 20px;
  margin: 0 auto;
  max-width: 1300px;
  width: 100%;
  box-sizing: border-box;
}

/* RTL styles for Arabic language */
.rtl {
  direction: rtl;
  text-align: right;
  font-family: "Tajawal", sans-serif !important;
}

.rtl .nav-menu {
  flex-direction: row-reverse;
}

.rtl .navbar-wrapper {
  flex-direction: row-reverse;
}

/* Sections padding */
/* .section {
  padding: 80px 40px;
} */

.hero-section {
  padding: 120px 20px;
}

/* Fix container spacing for RTL */
.rtl .container {
  padding: 0 20px;
}

.rtl .services-grid,
.rtl .facts-grid,
.rtl .solutions-grid,
.rtl .numbers-grid,
.rtl .footer-grid,
.rtl .features-grid {
  padding: 0 20px;
}

/* Basic RTL rules */
.rtl h1,
.rtl h2,
.rtl h3,
.rtl h4,
.rtl h5,
.rtl h6,
.rtl p,
.rtl span,
.rtl a,
.rtl button,
.rtl input,
.rtl textarea,
.rtl select,
.rtl label,
.rtl .nav-link,
.rtl .button,
.rtl .paragraph-large,
.rtl .display-1,
.rtl .display-2,
.rtl .display-3,
.rtl .text-field {
  font-family: "Tajawal", sans-serif !important;
}

/* Navigation RTL */
.rtl .brand {
  margin-left: auto;
  margin-right: 0;
}

.rtl .navbar-button-wrapper {
  margin-right: 0;
}

.rtl .language-select {
  margin-right: 0;
  margin-left: 10px;
}

/* Bullets and lists */
.rtl .bullet-list-item {
  flex-direction: row-reverse;
}

.rtl .bullet {
  margin-left: 0;
  margin-right: 10px;
}

.rtl .unordered-list {
  padding-right: 20px;
  padding-left: 0;
}

/* Cards and content */
.rtl .tab-inner {
  text-align: right;
}

.rtl .rating {
  direction: ltr; /* Keep rating stars direction */
  justify-content: flex-end;
}

.rtl .testimonial-card-footer {
  flex-direction: row-reverse;
}

.rtl .testimonial-card-footer .avatar {
  margin-left: 15px;
  margin-right: 0;
}

/* Grids */
.rtl .services-grid,
.rtl .facts-grid,
.rtl .solutions-grid,
.rtl .numbers-grid,
.rtl .footer-grid,
.rtl .features-grid {
  flex-direction: row-reverse;
}

/* Margins and alignment adjustments */
.rtl .margin-bottom-20,
.rtl .margin-bottom-25,
.rtl .margin-bottom-30,
.rtl .margin-bottom-35 {
  text-align: right;
}

/* Form elements */
.rtl .text-field {
  text-align: right;
}

.rtl .input-group {
  flex-direction: row-reverse;
}

/* Footer */
.rtl .social-links {
  flex-direction: row-reverse;
}

/* Mobile navigation */
.rtl .navbar-inner-mobile .navbar-wrapper-mobile {
  flex-direction: row-reverse;
}

.rtl .nav-menu-flex-mobile {
  align-items: flex-end;
  text-align: right;
}

/* Fix for English content inside Arabic context */
.rtl .price-currency {
  margin-right: 0;
  margin-left: 5px;
}

.rtl .price-duration {
  margin-right: 5px;
  margin-left: 0;
}

/* Fix for icons and images */
.rtl .doodle-arrow,
.rtl .doodle-shine {
  transform: scaleX(-1);
}

/* Language switcher button states */
.language-button.active {
  font-weight: bold;
  color: #007bff;
  text-decoration: underline;
}

.tajawal-extralight {
  font-family: "Tajawal", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.tajawal-light {
  font-family: "Tajawal", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.tajawal-regular {
  font-family: "Tajawal", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.tajawal-medium {
  font-family: "Tajawal", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.tajawal-bold {
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.tajawal-extrabold {
  font-family: "Tajawal", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.tajawal-black {
  font-family: "Tajawal", sans-serif;
  font-weight: 900;
  font-style: normal;
}

body[lang="ar"] {
  font-family: "Tajawal", sans-serif;
  direction: rtl;
  text-align: right;
}

/* Hero section layout */
.hero {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 600px;
}

.hero .container {
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 570px;
  width: 45%;
  margin-right: 50%;
  padding-right: 20px;
  position: relative;
}

.hero-image-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.play {
  display: none;
}

/* RTL Hero section */
.rtl .hero-content {
  margin-right: -10px;
  margin-left: 45%;
  padding-right: 0;
  padding-left: 20px;
}

.rtl .hero-image-wrapper {
  right: auto;
  left: 0;
}

/* Responsive styles */
@media screen and (max-width: 991px) {
  .hero {
    min-height: 500px;
  }

  .hero-content {
    width: 50%;
    margin-right: 45%;
  }

  .rtl .hero-content {
    margin-left: 45%;
    margin-right: -10px;
  }
}

@media screen and (max-width: 767px) {
  .hero {
    min-height: auto;
  }

  .hero-grid {
    display: block;
    padding-top: 400px;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 40px 0;
    text-align: center;
  }

  .hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 400px;
  }

  .rtl .hero-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 40px 0;
    text-align: center;
  }

  .rtl .hero-image-wrapper {
    left: 0;
    right: 0;
  }
}

@media screen and (max-width: 479px) {
  .hero-grid {
    padding-top: 300px;
  }

  .hero-image-wrapper {
    height: 300px;
  }

  .hero-content {
    padding: 30px 0;
  }

  .rtl .hero-content {
    padding: 30px 0;
  }
}

/* Language selector styles */
.language-select {
  background-color: white;
  color: #605dba;
  border: 2px solid #605dba;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
  height: 47px;
  width: 120px;
  margin-right: 15px;
  padding: 0 30px 0 15px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23605dba' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  transition: all 0.3s ease;
}

/* .language-select:hover {
  color: white;
  border-color: #8683d6;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
} */

.language-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(96, 93, 186, 0.2);
}

/* RTL Language selector */
.rtl .language-select {
  padding: 0 15px 0 30px;
  background-position: left 10px center;
  margin: 0 15px;
}

/* Doodle images positioning */
.doodle-arrow,
.doodle-shine {
  position: absolute;
  z-index: 1;
}

.doodle-shine {
  top: -20px;
  left: -30px;
}

.doodle-arrow {
  bottom: 0;
  right: -40px;
}

/* RTL Doodle positioning */
.rtl .doodle-shine {
  left: auto;
  right: -30px;
  transform: scaleX(-1);
}

.rtl .doodle-arrow {
  right: auto;
  left: -40px;
  transform: scaleX(-1);
}

/* Responsive adjustments for doodles */
@media screen and (max-width: 767px) {
  .doodle-shine {
    top: -10px;
    left: 0;
  }

  .doodle-arrow {
    bottom: -20px;
    right: 0;
  }

  .rtl .doodle-shine {
    right: 0;
  }

  .rtl .doodle-arrow {
    left: 0;
  }

  .hero-content {
    padding: 40px 20px;
  }
}
