/* ==========================================================================
   ADWATKM RTL Overrides
   ========================================================================== */

html {
  direction: rtl;
}

body.adwatkm-theme,
.adwatkm-site {
  direction: rtl;
  text-align: right;
}

/* Header */
.adwatkm-header__inner {
  flex-direction: row;
}

.adwatkm-badge {
  left: auto;
  right: 4px;
}

/* Mobile menu slides from right */
.adwatkm-mobile-menu__panel {
  right: 0;
  left: auto;
  animation-name: slideInRight;
}

/* Hero — text aligned right in RTL */
.adwatkm-hero__content {
  text-align: right;
}

@media (min-width: 768px) {
  .adwatkm-hero__content {
    margin-right: 0;
    margin-left: auto;
    text-align: right;
  }

  .adwatkm-hero__overlay {
    background: linear-gradient(to right, rgba(10, 17, 26, 0.9) 0%, rgba(10, 17, 26, 0.3) 60%, transparent 100%);
  }
}

.adwatkm-hero__actions {
  justify-content: flex-start;
}

/* Section headers — "عرض الكل" on the left in RTL */
.adwatkm-section-header {
  flex-direction: row;
}

/* Category cards — icon bottom-right */
.adwatkm-category-card__content {
  align-items: flex-start;
  text-align: right;
}

/* Quote CTA — reverse on desktop */
@media (min-width: 768px) {
  .adwatkm-quote-cta__inner {
    flex-direction: row-reverse;
  }

  .adwatkm-quote-cta__content {
    text-align: right;
  }

  .adwatkm-quote-cta__actions {
    justify-content: flex-start;
  }
}

/* WhatsApp float — bottom left in RTL (standard for Arabic sites) */
.adwatkm-whatsapp-float {
  left: 16px;
  right: auto;
}

/* Footer */
.adwatkm-footer__grid {
  text-align: right;
}

/* Forms */
.adwatkm-form-row label {
  text-align: right;
}

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

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

.adwatkm-portfolio-swiper,
.adwatkm-testimonials-swiper {
  direction: rtl;
}

/* Bottom nav */
.adwatkm-bottom-nav__item.is-active::before {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

/* Contact grid */
.adwatkm-contact-info {
  text-align: right;
}

/* Search */
.adwatkm-search-form {
  flex-direction: row;
}

.adwatkm-search-form input[type="search"] {
  text-align: right;
}

/* Pagination */
.navigation.pagination .nav-links {
  direction: rtl;
}

/* Testimonials */
.adwatkm-testimonial-card__quote {
  text-align: right;
}

.adwatkm-testimonial-card__author {
  flex-direction: row;
}

/* Quick actions scroll */
.adwatkm-quick-actions__grid {
  direction: rtl;
}

/* Why us */
.adwatkm-why-us__grid {
  direction: rtl;
}

/* Page content */
.adwatkm-page-content,
.adwatkm-entry-content,
.adwatkm-article {
  text-align: right;
}

.adwatkm-page-title {
  text-align: right;
}

.adwatkm-404 {
  text-align: center;
}

.adwatkm-404 .adwatkm-page-title {
  text-align: center;
}
