/* RTL Support for Arabic Language */

/* Base RTL Styles */
.rtl {
  direction: rtl;
  text-align: right;
}

.rtl .container {
  direction: rtl;
}

/* Navigation RTL */
.rtl .navmenu ul {
  direction: rtl;
}

.rtl .navmenu ul li {
  text-align: right;
}

.rtl .navmenu ul li a {
  text-align: right;
}

/* Dropdown RTL */
.rtl .dropdown ul {
  right: 0;
  left: auto;
  text-align: right;
}

.rtl .dropdown ul li {
  text-align: right;
}

/* Megamenu RTL */
.rtl .desktop-megamenu {
  direction: rtl;
}

.rtl .desktop-megamenu .tab-navigation {
  text-align: right;
}

.rtl .desktop-megamenu .tab-content {
  text-align: right;
}

/* Hero Section RTL */
.rtl .hero-content {
  text-align: right;
}

.rtl .hero-stats {
  direction: rtl;
}

/* About Section RTL */
.rtl .about .content {
  text-align: right;
}

.rtl .stats-container {
  direction: rtl;
}

/* Services Section RTL */
.rtl .services-content {
  text-align: right;
}

.rtl .service-card {
  text-align: right;
}

.rtl .service-card .content {
  text-align: right;
}

/* How We Work RTL */
.rtl .steps-grid {
  direction: rtl;
}

.rtl .step-card {
  text-align: right;
}

/* Contact Section RTL */
.rtl .contact-cards-container {
  direction: rtl;
}

.rtl .contact-card {
  text-align: right;
}

.rtl .contact-form-container {
  text-align: right;
}

.rtl .contact-form-container h3 {
  text-align: right;
}

.rtl .contact-form-container p {
  text-align: right;
}

/* Footer RTL */
.rtl .footer-about {
  text-align: right;
}

.rtl .footer-links {
  text-align: right;
}

.rtl .footer-links ul {
  text-align: right;
}

.rtl .footer-contact {
  text-align: right;
}

/* Form RTL */
.rtl .form-group {
  text-align: right;
}

.rtl .form-control {
  text-align: right;
}

.rtl .form-control::placeholder {
  text-align: right;
}

/* Button RTL */
.rtl .btn {
  text-align: center;
}

/* Social Links RTL */
.rtl .social-links {
  direction: rtl;
}

/* Stats RTL */
.rtl .stat-item {
  text-align: center;
}

/* Arrow Icons RTL */
.rtl .bi-arrow-right {
  transform: scaleX(-1);
}

.rtl .bi-chevron-right {
  transform: scaleX(-1);
}

.rtl .bi-chevron-left {
  transform: scaleX(-1);
}

/* Swiper Navigation RTL */
.rtl .swiper-nav-prev {
  right: 0;
  left: auto;
}

.rtl .swiper-nav-next {
  left: 0;
  right: auto;
}

/* Mobile Navigation RTL */
.rtl .mobile-nav-toggle {
  right: 15px;
  left: auto;
}

/* Text Alignment Overrides */
.rtl h1,
.rtl h2,
.rtl h3,
.rtl h4,
.rtl h5,
.rtl h6 {
  text-align: right;
}

.rtl p {
  text-align: right;
}

.rtl .lead {
  text-align: right;
}

/* Section Titles RTL */
.rtl .section-title {
  text-align: center;
}

.rtl .section-title h2 {
  text-align: center;
}

.rtl .section-title p {
  text-align: center;
}

/* Feature Cards RTL */
.rtl .feature-card {
  text-align: center;
}

/* Service Cards RTL */
.rtl .service-card .icon-box {
  text-align: center;
}

/* Contact Form RTL */
.rtl .php-email-form {
  text-align: right;
}

.rtl .php-email-form .form-group {
  text-align: right;
}

/* Copyright RTL */
.rtl .copyright {
  text-align: center;
}

.rtl .credits {
  text-align: center;
}

/* Floating Elements RTL */
.rtl .floating-card {
  right: 20px;
  left: auto;
}

/* Responsive RTL Adjustments */
@media (max-width: 768px) {
  .rtl .hero-content {
    text-align: center;
  }

  .rtl .about .content {
    text-align: center;
  }

  .rtl .services-content {
    text-align: center;
  }

  .rtl .contact-form-container {
    text-align: center;
  }

  .rtl .footer-about {
    text-align: center;
  }

  .rtl .footer-links {
    text-align: center;
  }

  .rtl .footer-contact {
    text-align: center;
  }
}

/* Arabic Font Support */
.rtl {
  font-family: "Cairo", "Roboto", sans-serif;
}

.rtl h1,
.rtl h2,
.rtl h3,
.rtl h4,
.rtl h5,
.rtl h6 {
  font-family: "Cairo", "Roboto", sans-serif;
  font-weight: 600;
}

.rtl p,
.rtl span,
.rtl div {
  font-family: "Cairo", "Roboto", sans-serif;
}

/* RTL Animation Adjustments */
.rtl [data-aos] {
  direction: rtl;
}

/* RTL Grid Adjustments */
.rtl .row {
  direction: rtl;
}

.rtl .col-lg-6:first-child {
  order: 2;
}

.rtl .col-lg-6:last-child {
  order: 1;
}

@media (max-width: 991px) {
  .rtl .col-lg-6:first-child,
  .rtl .col-lg-6:last-child {
    order: unset;
  }
}
