/* Language Switcher Styles - Optimized for Single Button Display */
.language-switcher {
  white-space: nowrap;
  display: flex;
  align-items: center;
  min-width: 120px;
  /* Ensure consistent width when one language is hidden */
  justify-content: center;
  /* Center the single visible language button */
}

/* Hide language buttons by default to prevent flash */
.language-switcher .lang-btn {
  display: none !important;
}

/* Show language button when explicitly marked as visible */
.language-switcher .lang-btn.lang-visible {
  display: inline-block !important;
}

.language-switcher .lang-btn {
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
}

.language-switcher .lang-btn:hover {
  opacity: 0.8;
}

.language-switcher .lang-btn.active {
  text-decoration: underline;
}

/* When only one language is visible (current behavior) */
.language-switcher .lang-btn:only-child {
  font-weight: 600 !important;
  text-decoration: none;
  margin: 0 !important;
  /* Remove any inherited margins */
}

/* Style for the visible language button */
.language-switcher .lang-btn[style*="inline-block"] {
  font-weight: 600 !important;
  margin: 0 !important;
  /* Ensure no margins when centered */
}

/* Hide separator when not needed */
.language-switcher span:only-child {
  display: none;
}

/* Language switcher icon styling */
.language-switcher .lang-btn i {
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.language-switcher .lang-btn:hover i {
  opacity: 1;
}

/* Mobile Language Switcher Styles */
.language-switcher-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 10px;
  padding-top: 15px !important;
  padding-bottom: 15px !important;
}

/* Dark header support for mobile language switcher */
header.header-dark .language-switcher-mobile,
header .navbar-collapse .language-switcher-mobile {
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* Hide language buttons by default to prevent flash - Mobile */
.language-switcher-mobile .lang-btn {
  display: none !important;
}

/* Show language button when explicitly marked as visible - Mobile */
.language-switcher-mobile .lang-btn.lang-visible {
  display: inline-flex !important;
  align-items: center;
  padding: 8px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 15px;
}

.language-switcher-mobile .lang-btn.lang-visible:hover {
  background-color: rgba(0, 0, 0, 0.05);
  opacity: 0.9;
}

/* Dark header hover support */
header.header-dark .language-switcher-mobile .lang-btn.lang-visible:hover,
header .navbar-collapse .language-switcher-mobile .lang-btn.lang-visible:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.language-switcher-mobile .lang-btn i {
  font-size: 14px;
  margin-right: 5px;
  opacity: 0.8;
}

.language-switcher-mobile .lang-btn:hover i {
  opacity: 1;
}

/* Mobile Language Switcher - Small Screens */
@media (max-width: 991px) {
  .language-switcher-mobile {
    justify-content: flex-start;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .language-switcher-mobile .lang-btn.lang-visible {
    font-size: 14px;
    padding: 6px 12px;
  }
}

/* RTL Support for Mobile Language Switcher */
.rtl .language-switcher-mobile {
  direction: rtl;
  text-align: center;
  width: 100%;
  display: block;
}

.rtl .language-switcher-mobile .lang-btn i {
  margin-left: 5px;
  margin-right: 0;
}

/* RTL Support for Mobile Language Switcher */
.language-switcher-mobile {
  text-align: center;
  width: 100%;
  display: block;
}

/* RTL Support Enhancements */
.rtl {
  direction: rtl;
}

/* RTL Typography fixes */
.rtl {
  font-family: 'Tajawal', 'Cairo', 'Amiri', 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Apply Tajawal font to body in RTL mode */
body.rtl {
  font-family: 'Tajawal', 'Cairo', 'Amiri', 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif !important;
  overflow-x: hidden;
  width: 100%;
}

/* RTL Page layout full width fixes */
.rtl html {
  overflow-x: hidden;
  width: 100%;
}

.rtl body {
  overflow-x: hidden;
  width: 100%;
}

.rtl .page-layout {
  width: 100%;
  overflow-x: hidden;
}

/* RTL Container full width */
.rtl .container-fluid {
  width: 100%;
  max-width: 100%;
}

.rtl .container {
  width: 100%;
}

.rtl section {
  width: 100%;
  overflow-x: hidden;
}

.rtl .row {
  width: 100%;
}

/* RTL Wrapper elements */
.rtl main {
  width: 100%;
  overflow-x: hidden;
}

.rtl #wrapper {
  width: 100%;
  overflow-x: hidden;
}

.rtl .alt-font {
  font-family: 'Tajawal', 'Cairo', 'Amiri', 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
}

.rtl body,
.rtl h1,
.rtl h2,
.rtl h3,
.rtl h4,
.rtl h5,
.rtl h6,
.rtl p,
.rtl span,
.rtl div,
.rtl a {
  font-family: 'Tajawal', 'Cairo', 'Amiri', 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* RTL Navigation fixes */
.rtl .navbar-nav {
  direction: rtl;
}

/* RTL Dropdown toggle icon fixes
.rtl .navbar .navbar-nav .dropdown-toggle {
  transform: scaleX(-1);
}

.rtl .navbar .navbar-nav .dropdown-toggle.show {
  transform: scaleX(-1) rotate(-180deg);
} */

/* RTL Dropdown with icon positioning */
.rtl .navbar .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu li a i {
  margin-right: 0;
  margin-left: 15px;
}

/* RTL Language switcher icon fixes */
.rtl .language-switcher {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  direction: rtl;
}

.rtl .language-switcher .lang-btn i {
  margin-left: 0;
  margin-right: 5px;
}

.rtl .language-switcher .lang-btn .me-5px {
  margin-left: 5px;
  margin-right: 0;
}

.rtl .dropdown-menu {
  left: auto;
  right: 0;
}

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

.rtl .me-15px {
  margin-left: 15px;
  margin-right: 0;
}

.rtl .me-20px {
  margin-left: 20px;
  margin-right: 0;
}

.rtl .me-25px {
  margin-left: 25px;
  margin-right: 0;
}

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

.rtl .ms-15px {
  margin-right: 15px;
  margin-left: 0;
}

.rtl .ms-20px {
  margin-right: 20px;
  margin-left: 0;
}

/* RTL Text alignment fixes */
.rtl .text-start {
  text-align: right !important;
}

.rtl .text-end {
  text-align: left !important;
}

.rtl .text-lg-start {
  text-align: right !important;
}

.rtl .text-lg-end {
  text-align: left !important;
}

/* RTL Positioning fixes */
.rtl .left-icon i {
  margin-right: 0;
  margin-left: 10px;
}

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

/* RTL Float fixes */
.rtl .float-start {
  float: right !important;
}

.rtl .float-end {
  float: left !important;
}

/* RTL Carousel/Slider fixes */
.rtl .swiper-button-next {
  left: 10px;
  right: auto;
}

.rtl .swiper-button-prev {
  right: 10px;
  left: auto;
}

.rtl .tel-span {
  direction: ltr;
}

/* RTL Swiper Content Visibility and Direction Fixes */
.rtl .swiper {
  direction: rtl;
}

.rtl .swiper-wrapper {
  direction: rtl;
}

.rtl .swiper-slide {
  direction: rtl;
}

/* RTL Arrow Direction Fixes */
.rtl .swiper-button-next i,
.rtl .swiper-button-prev i {
  transform: scaleX(-1);
}

.rtl .swiper-button-next .feather,
.rtl .swiper-button-prev .feather {
  transform: scaleX(-1);
}

/* RTL Testimonials Style 12 Navigation Fixes */
.rtl .testimonials-style-12 .swiper-button-next-nav {
  left: -8px;
  right: auto;
}

.rtl .testimonials-style-12 .swiper-button-previous-nav {
  right: -8px;
  left: auto;
}

.testimonials-style-05 .testimonials-bubble:after,
.testimonials-style-05 .testimonials-bubble:before {
  left: auto;
}

/* RTL Custom Navigation Classes */
.rtl .swiper-button-next-nav {
  left: 10px;
  right: auto;
}

.rtl .swiper-button-previous-nav {
  right: 10px;
  left: auto;
}

/* RTL Swiper Content Structure Fixes */
.rtl .swiper-horizontal>.swiper-wrapper {
  direction: rtl;
}

.rtl .swiper-horizontal .swiper-slide {
  direction: rtl;
}

/* RTL Pagination Fixes */
.rtl .swiper-pagination {
  direction: ltr;
}

.rtl .swiper-horizontal>.swiper-pagination-bullets {
  direction: ltr;
}

/* RTL Testimonials Box Content Direction */
.rtl .testimonials-box {
  direction: rtl;
  text-align: right;
}

.rtl .testimonials-box-content {
  direction: rtl;
  text-align: right;
}

/* RTL Testimonials Style 12 Enhancements */
.rtl .testimonials-style-12 .swiper-slide .row {
  direction: rtl;
}

.rtl .testimonials-style-12 .services-box-img {
  order: 2;
}

.rtl .testimonials-style-12 .testimonials-box {
  order: 1;
}

/* RTL Star Rating Direction */
.rtl .review-star-icon {
  direction: ltr;
}

/* RTL Navigation Button Positioning for Testimonials */
@media (max-width: 767px) {
  .rtl .testimonials-style-12 .swiper-button-next-nav {
    left: 10px;
    right: auto;
  }

  .rtl .testimonials-style-12 .swiper-button-previous-nav {
    right: 10px;
    left: auto;
  }
}

/* RTL Swiper Arrow Icons Fix */
.rtl .swiper-button-next:after,
.rtl .swiper-button-prev:after {
  transform: scaleX(-1);
}

.rtl .feather.icon-feather-chevron-right,
.rtl .feather.icon-feather-chevron-left {
  transform: scaleX(-1);
}

/* RTL Arrow icon fixes */
.rtl .fa-arrow-right {
  transform: scaleX(-1);
  margin-left: 5px;
  margin-right: 5px;
}

/* RTL Social media icons */
.rtl .elements-social ul li {
  margin-left: 0;
  margin-right: 15px;
}

.rtl .elements-social ul li:last-child {
  margin-right: 0;
}

/* RTL Footer fixes */
.rtl .footer-navbar li {
  margin-left: 0;
  margin-right: 20px;
}

.rtl .footer-navbar li:last-child {
  margin-right: 0;
}

/* RTL Form fixes */
.rtl .newsletter-style-02 .form-control {
  padding-left: 45px;
  padding-right: 15px;
}

.rtl .newsletter-style-02 button {
  left: auto;
  right: auto;
}

/* RTL Animation direction fixes
.rtl [data-anime*="translateX"] {
  transform: scaleX(-1);
} */

/* RTL Outside box positioning fixes */
/* RTL fixes for outside-box-left-* classes */
.rtl .outside-box-left-1 {
  margin-left: 0;
  margin-right: -1vw;
}

.rtl .outside-box-left-2 {
  margin-left: 0;
  margin-right: -2vw;
}

.rtl .outside-box-left-5 {
  margin-left: 0;
  margin-right: -5vw;
}

.rtl .outside-box-left-7 {
  margin-left: 0;
  margin-right: -7vw;
}

.rtl .outside-box-left-8 {
  margin-left: 0;
  margin-right: -8vw;
}

.rtl .outside-box-left-10 {
  margin-left: 0;
  margin-right: -10vw;
}

.rtl .outside-box-left-15 {
  margin-left: 0;
  margin-right: -15vw;
}

.rtl .outside-box-left-20 {
  margin-left: 0;
  margin-right: -20vw;
}

.rtl .outside-box-left-25 {
  margin-left: 0;
  margin-right: -25vw;
}

.rtl .outside-box-left-30 {
  margin-left: 0;
  margin-right: -30vw;
}

.rtl .outside-box-left-35 {
  margin-left: 0;
  margin-right: -35vw;
}

.rtl .outside-box-left-40 {
  margin-left: 0;
  margin-right: -40vw;
}

.rtl .outside-box-left-50 {
  margin-left: 0;
  margin-right: -50vw;
}

.rtl .outside-box-left-60 {
  margin-left: 0;
  margin-right: -60vw;
}

.rtl .outside-box-left-65 {
  margin-left: 0;
  margin-right: -65vw;
}

/* RTL fixes for outside-box-right-* classes */
.rtl .outside-box-right-1 {
  margin-right: 0;
  margin-left: -1vw;
}

.rtl .outside-box-right-2 {
  margin-right: 0;
  margin-left: -2vw;
}

.rtl .outside-box-right-5 {
  margin-right: 0;
  margin-left: -5vw;
}

.rtl .outside-box-right-7 {
  margin-right: 0;
  margin-left: -7vw;
}

.rtl .outside-box-right-10 {
  margin-right: 0;
  margin-left: -10vw;
}

.rtl .outside-box-right-15 {
  margin-right: 0;
  margin-left: -15vw;
}

.rtl .outside-box-right-20 {
  margin-right: 0;
  margin-left: -20vw;
}

.rtl .outside-box-right-25 {
  margin-right: 0;
  margin-left: -25vw;
}

.rtl .outside-box-right-30 {
  margin-right: 0;
  margin-left: -30vw;
}

.rtl .outside-box-right-35 {
  margin-right: 0;
  margin-left: -35vw;
}

.rtl .outside-box-right-40 {
  margin-right: 0;
  margin-left: -40vw;
}

.rtl .outside-box-right-45 {
  margin-right: 0;
  margin-left: -45vw;
}

.rtl .outside-box-right-50 {
  margin-right: 0;
  margin-left: -50vw;
}

.rtl .outside-box-right-60 {
  margin-right: 0;
  margin-left: -60vw;
}

.rtl .outside-box-right-65 {
  margin-right: 0;
  margin-left: -65vw;
}

/* RTL Responsive Outside box positioning fixes */
@media (max-width: 1199px) {

  /* RTL XL responsive fixes for outside-box-left-* */
  .rtl .xl-outside-box-left-5 {
    margin-left: 0;
    margin-right: -5vw;
  }

  .rtl .xl-outside-box-left-10 {
    margin-left: 0;
    margin-right: -10vw;
  }

  .rtl .xl-outside-box-left-15 {
    margin-left: 0;
    margin-right: -15vw;
  }

  .rtl .xl-outside-box-left-20 {
    margin-left: 0;
    margin-right: -20vw;
  }

  .rtl .xl-outside-box-left-25 {
    margin-left: 0;
    margin-right: -25vw;
  }

  .rtl .xl-outside-box-left-30 {
    margin-left: 0;
    margin-right: -30vw;
  }

  /* RTL XL responsive fixes for outside-box-right-* */
  .rtl .xl-outside-box-right-5 {
    margin-right: 0;
    margin-left: -5vw;
  }

  .rtl .xl-outside-box-right-10 {
    margin-right: 0;
    margin-left: -10vw;
  }

  .rtl .xl-outside-box-right-15 {
    margin-right: 0;
    margin-left: -15vw;
  }

  .rtl .xl-outside-box-right-20 {
    margin-right: 0;
    margin-left: -20vw;
  }

  .rtl .xl-outside-box-right-25 {
    margin-right: 0;
    margin-left: -25vw;
  }

  .rtl .xl-outside-box-right-30 {
    margin-right: 0;
    margin-left: -30vw;
  }
}

@media (max-width: 991px) {

  /* RTL LG responsive fixes for outside-box-left-* */
  .rtl .lg-outside-box-left-7 {
    margin-left: 0;
    margin-right: -7vw;
  }

  .rtl .lg-outside-box-left-10 {
    margin-left: 0;
    margin-right: -10vw;
  }

  .rtl .lg-outside-box-left-20 {
    margin-left: 0;
    margin-right: -20vw;
  }

  .rtl .lg-outside-box-left-30 {
    margin-left: 0;
    margin-right: -30vw;
  }

  .rtl .lg-outside-box-left-40 {
    margin-left: 0;
    margin-right: -40vw;
  }

  .rtl .lg-outside-box-left-50 {
    margin-left: 0;
    margin-right: -50vw;
  }

  /* RTL LG responsive fixes for outside-box-right-* */
  .rtl .lg-outside-box-right-7 {
    margin-right: 0;
    margin-left: -7vw;
  }

  .rtl .lg-outside-box-right-10 {
    margin-right: 0;
    margin-left: -10vw;
  }

  .rtl .lg-outside-box-right-20 {
    margin-right: 0;
    margin-left: -20vw;
  }

  .rtl .lg-outside-box-right-30 {
    margin-right: 0;
    margin-left: -30vw;
  }

  .rtl .lg-outside-box-right-40 {
    margin-right: 0;
    margin-left: -40vw;
  }

  .rtl .lg-outside-box-right-50 {
    margin-right: 0;
    margin-left: -50vw;
  }
}

@media (max-width: 767px) {

  /* RTL MD responsive fixes for outside-box-left-* */
  .rtl .md-outside-box-left-0 {
    margin-left: 0;
    margin-right: 0;
  }

  .rtl .md-outside-box-left-7 {
    margin-left: 0;
    margin-right: -7vw;
  }

  .rtl .md-outside-box-left-10 {
    margin-left: 0;
    margin-right: -10vw;
  }

  .rtl .md-outside-box-left-15 {
    margin-left: 0;
    margin-right: -15vw;
  }

  .rtl .md-outside-box-left-20 {
    margin-left: 0;
    margin-right: -20vw;
  }

  .rtl .md-outside-box-left-25 {
    margin-left: 0;
    margin-right: -25vw;
  }

  .rtl .md-outside-box-left-30 {
    margin-left: 0;
    margin-right: -30vw;
  }

  /* RTL MD responsive fixes for outside-box-right-* */
  .rtl .md-outside-box-right-0 {
    margin-right: 0;
    margin-left: 0;
  }

  .rtl .md-outside-box-right-7 {
    margin-right: 0;
    margin-left: -7vw;
  }

  .rtl .md-outside-box-right-10 {
    margin-right: 0;
    margin-left: -10vw;
  }

  .rtl .md-outside-box-right-15 {
    margin-right: 0;
    margin-left: -15vw;
  }

  .rtl .md-outside-box-right-20 {
    margin-right: 0;
    margin-left: -20vw;
  }

  .rtl .md-outside-box-right-25 {
    margin-right: 0;
    margin-left: -25vw;
  }

  .rtl .md-outside-box-right-30 {
    margin-right: 0;
    margin-left: -30vw;
  }
}

@media (max-width: 575px) {

  /* RTL SM responsive fixes for outside-box-left-* */
  .rtl .sm-outside-box-left-7 {
    margin-left: 0;
    margin-right: -7vw;
  }

  .rtl .sm-outside-box-left-10 {
    margin-left: 0;
    margin-right: -10vw;
  }

  .rtl .sm-outside-box-left-15 {
    margin-left: 0;
    margin-right: -15vw;
  }

  .rtl .sm-outside-box-left-20 {
    margin-left: 0;
    margin-right: -20vw;
  }

  .rtl .sm-outside-box-left-25 {
    margin-left: 0;
    margin-right: -25vw;
  }

  .rtl .sm-outside-box-left-30 {
    margin-left: 0;
    margin-right: -30vw;
  }

  /* RTL SM responsive fixes for outside-box-right-* */
  .rtl .sm-outside-box-right-7 {
    margin-right: 0;
    margin-left: -7vw;
  }

  .rtl .sm-outside-box-right-10 {
    margin-right: 0;
    margin-left: -10vw;
  }

  .rtl .sm-outside-box-right-15 {
    margin-right: 0;
    margin-left: -15vw;
  }

  .rtl .sm-outside-box-right-20 {
    margin-right: 0;
    margin-left: -20vw;
  }

  .rtl .sm-outside-box-right-25 {
    margin-right: 0;
    margin-left: -25vw;
  }

  .rtl .sm-outside-box-right-30 {
    margin-right: 0;
    margin-left: -30vw;
  }
}

.rtl .right-30px {
  left: 30px !important;
  right: auto !important;
}

.rtl .me-auto {
  margin-left: auto !important;
  margin-right: 0 !important;
}

.rtl .feature-box.feature-box-left-icon-middle {
  text-align: right !important;
}

.rtl h1 {
  line-height: 100px;
}


.rtl h2 {
  line-height: 70px;
}

.rtl footer * {
  text-align: right !important;
}

.rtl .footer-navbar .nav-item {
  margin-left: 20px;
  margin-right: 0;
}

/* Responsive RTL fixes */
@media (max-width: 991px) {
  .rtl .navbar-collapse {
    text-align: right;
    right: auto;
    left: 0;
  }

  .rtl .navbar-nav {
    align-items: flex-end;
  }

  /* RTL Navbar toggler fixes */
  .rtl .navbar-toggler {
    float: right !important;
  }

  /* RTL Dropdown toggle positioning */
  .rtl .navbar-nav .nav-item .dropdown-toggle {
    right: auto;
    left: 0px;
  }

  /* RTL Modern menu positioning */
  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner {
    right: auto;
    left: -70vw;
    transform: translate3d(-30vw, 0, 0);
    -webkit-transform: translate3d(-30vw, 0, 0);
  }

  .rtl.navbar-collapse-show[data-mobile-nav-style=modern] .navbar-modern-inner {
    left: auto;
    right: 0;
  }

  /* RTL Modern menu background overlay */
  .rtl[data-mobile-nav-style=modern] .navbar-show-modern-bg {
    left: 0;
    right: auto;
  }

  .rtl.navbar-collapse-show[data-mobile-nav-style=modern] .navbar-show-modern-bg {
    left: 0;
    right: auto;
  }

  /* RTL Modern menu navbar collapse padding */
  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner .navbar-collapse {
    padding: 100px 50px 100px 50px;
    text-align: right;
    direction: rtl;
  }

  /* RTL Modern menu navbar items */
  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner .navbar-nav {
    align-items: flex-end;
    width: 100%;
  }

  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner .navbar-nav>.nav-item {
    width: 100%;
    text-align: right;
  }

  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner .navbar-nav .nav-item .nav-link {
    text-align: right;
    direction: rtl;
  }

  /* RTL Modern menu dropdown toggle */
  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner .navbar-nav .nav-item .dropdown-toggle {
    right: auto;
    left: 0;
  }

  /* RTL Modern menu dropdown with icon */
  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu li a {
    text-align: right;
  }

  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu li a i {
    margin-right: 0;
    margin-left: 15px;
  }

  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu li a:before {
    right: auto;
    left: 6px;
  }

  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu li a:hover:before {
    right: auto;
    left: 0px;
  }

  /* RTL Modern menu scrollbar */
  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner .mCSB_inside>.mCSB_container {
    margin-right: 0;
    margin-left: 0;
    padding: 0 20px;
  }

  /* RTL Modern menu dropdown submenu content */
  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner .navbar-nav .dropdown-menu .submenu-icon-content {
    text-align: right;
    direction: rtl;
  }

  /* RTL Modern menu dropdown items */
  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner .navbar-nav .dropdown-menu li {
    text-align: right;
  }

  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner .navbar-nav .dropdown-menu a {
    text-align: right;
    direction: rtl;
  }

  .rtl.navbar-collapse-show[data-mobile-nav-style=modern] .navbar,
  .rtl.navbar-collapse-show[data-mobile-nav-style=modern] .page-layout {
    transform: translate3d(70vw, 0, 0) !important;
    -webkit-transform: translate3d(70vw, 0, 0) !important;
  }

  /* RTL Prevent body shift when menu opens */
  .rtl.navbar-collapse-show {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  .rtl.navbar-collapse-show body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
  }

  /* RTL Full screen menu fixes */
  .rtl[data-mobile-nav-style=full-screen-menu] .navbar-full-screen-menu-inner .navbar-toggler {
    right: auto;
    left: 30px;
  }

  /* RTL dropdown with icon fixes */
  .rtl .navbar .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu li a i {
    margin-right: 0;
    margin-left: 15px;
  }

  .rtl .navbar .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu li a:before {
    right: auto;
    left: 6px;
  }

  .rtl .navbar .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu li a:hover:before {
    right: auto;
    left: 0px;
  }

  /* RTL Header icon positioning */
  .rtl .header-icon {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    flex-direction: row-reverse !important;
  }

  .rtl .header-icon>div {
    display: inline-flex !important;
    align-items: center !important;
  }

  .rtl .col-auto.col-lg-3.text-end {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .rtl .header-icon .icon>a {
    padding-right: 12px;
    padding-left: 0;
  }

  .rtl .header-icon .icon .header-cart>a,
  .rtl .header-icon .icon .header-language>a {
    padding-right: 12px;
    padding-left: 0;
  }

  /* RTL Language switcher responsive fixes */
  .rtl .language-switcher {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    direction: rtl;
  }

  /* RTL Header column ordering */
  .rtl header .col-auto.col-lg-2.me-lg-0.me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
  }

  /* RTL Menu order positioning */
  .rtl .menu-order {
    direction: rtl;
  }

  /* RTL Navbar brand positioning on mobile */
  .rtl .navbar-brand {
    float: right;
  }

  /* RTL Full width responsive fixes */
  .rtl body,
  .rtl html {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .rtl .page-layout {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .rtl .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
  }

  .rtl section {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* RTL Left sidebar header fixes */
  .rtl .left-sidebar-header .left-sidebar-nav .navbar-toggler {
    right: auto;
    left: 30px;
  }

  .rtl .left-sidebar-header {
    right: -300px;
    left: auto;
  }

  .rtl .left-sidebar-header.show {
    right: 0;
    left: auto;
  }

  .rtl .left-sidebar-header .left-sidebar-nav {
    right: -300px;
    left: auto;
  }

  .rtl .left-sidebar-header.show .left-sidebar-nav {
    right: 0;
    left: auto;
  }

  /* RTL Modern sidebar positioning */
  .rtl .left-modern-sidebar .toggle-icon {
    right: auto;
    left: 30px;
  }

  .rtl .left-modern-menu .left-modern-header .modern-sidebar-nav {
    right: -400px;
    left: auto;
  }

  .rtl .left-modern-menu .left-modern-header.show .modern-sidebar-nav {
    right: 0;
    left: auto;
  }

  /* RTL Push menu close button */
  .rtl header .push-menu .close-menu {
    right: auto;
    left: 30px;
  }

  /* RTL Responsive Testimonials Fixes */
  .rtl .testimonials-style-12 .swiper-button-next-nav {
    left: 25px;
    right: auto;
  }

  .rtl .testimonials-style-12 .swiper-button-previous-nav {
    right: 25px;
    left: auto;
  }
}

/* RTL Phone landscape fixes */
@media (max-width: 767px) {

  /* RTL Full width responsive fixes for small screens */
  .rtl body,
  .rtl html {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .rtl .page-layout {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .rtl .container-fluid,
  .rtl .container {
    width: 100% !important;
    max-width: 100% !important;
  }

  .rtl section {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner {
    right: auto;
    left: -80vw;
    transform: translate3d(-15vw, 0, 0);
    -webkit-transform: translate3d(-15vw, 0, 0);
  }

  .rtl.navbar-collapse-show[data-mobile-nav-style=modern] .navbar-modern-inner {
    left: 0;
    right: auto;
  }

  /* RTL Modern menu background overlay for small screens */
  .rtl[data-mobile-nav-style=modern] .navbar-show-modern-bg {
    left: auto;
    right: 0;
  }

  .rtl.navbar-collapse-show[data-mobile-nav-style=modern] .navbar-show-modern-bg {
    left: auto;
    right: 0;
  }

  /* RTL Modern menu navbar collapse padding for small screens */
  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner .navbar-collapse {
    padding: 100px 0px 100px 50px !important;
    text-align: right;
    direction: rtl;
  }

  /* RTL Modern menu navbar items for small screens */
  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner .navbar-nav {
    align-items: flex-end;
    width: 100%;
  }

  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner .navbar-nav>.nav-item {
    width: 100%;
    text-align: right;
  }

  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner .navbar-nav .nav-item .nav-link {
    text-align: right;
    direction: rtl;
  }

  /* RTL Modern menu dropdown toggle for small screens */
  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner .navbar-nav .nav-item .dropdown-toggle {
    right: auto;
    left: 0;
  }

  /* RTL Modern menu dropdown with icon for small screens */
  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu li a {
    text-align: right;
  }

  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu li a i {
    margin-right: 0;
    margin-left: 15px;
  }

  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu li a:before {
    right: auto;
    left: 6px;
  }

  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu li a:hover:before {
    right: auto;
    left: 0px;
  }

  /* RTL Modern menu dropdown submenu content for small screens */
  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner .navbar-nav .dropdown-menu .submenu-icon-content {
    text-align: right;
    direction: rtl;
  }

  /* RTL Modern menu dropdown items for small screens */
  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner .navbar-nav .dropdown-menu li {
    text-align: right;
  }

  .rtl[data-mobile-nav-style=modern] .navbar-modern-inner .navbar-nav .dropdown-menu a {
    text-align: right;
    direction: rtl;
  }

  .rtl.navbar-collapse-show[data-mobile-nav-style=modern] .navbar,
  .rtl.navbar-collapse-show[data-mobile-nav-style=modern] .page-layout {
    transform: translate3d(85vw, 0, 0) !important;
    -webkit-transform: translate3d(85vw, 0, 0) !important;
  }

  /* RTL Prevent body shift when menu opens */
  .rtl.navbar-collapse-show {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  .rtl.navbar-collapse-show body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
  }

  /* RTL Full screen menu toggler */
  .rtl[data-mobile-nav-style=full-screen-menu] .navbar-full-screen-menu-inner .navbar-toggler {
    right: auto;
    left: 15px;
  }

  /* RTL Push menu close button */
  .rtl header .push-menu .close-menu {
    right: auto;
    left: 15px;
  }

  /* RTL Search form close button */
  .rtl .search-form-wrapper .search-close {
    right: auto;
    left: 15px;
  }

  /* RTL Sidebar positioning */
  .rtl .left-sidebar-header .left-sidebar-nav .navbar-toggler {
    right: auto;
    left: 15px;
  }

  .rtl .left-modern-sidebar {
    padding: 0 15px;
  }
}

/* RTL Phone portrait fixes */
@media (max-width: 575px) {
  .rtl .left-modern-menu .left-modern-header .modern-sidebar-nav {
    right: -100%;
    left: auto;
  }

  .rtl .left-modern-menu .left-modern-header.show .modern-sidebar-nav {
    right: 0;
    left: auto;
  }
}

/* Google Fonts for Arabic */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&family=Amiri:wght@400;700&display=swap');