/* RTL Fixes - Advanced corrections for remaining issues
   Addresses:
   1. Headline areas - remove background for RTL
   2. What We Do - arrow animation and positioning
   3. Services - card hover and spacing
   4. Gallery/Sliders - arrow directions
   5. Team members - plus button hover centering
   6. Blog cards - details button positioning
   7. All margin/padding mirroring
*/


/* ==================== WHAT WE DO SECTION - ARROW ANIMATION ==================== */

html[dir="rtl"] .what-we-do-item {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

html[dir="rtl"] .what-we-do-item .number {
  min-width: 50px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--wispaar-primary-color);
  border-radius: 50%;
  margin-left: 25px;
  margin-right: 0;
  font-weight: 700;
  font-size: 20px;
  color: var(--wispaar-primary-color);
  flex-shrink: 0;
}

html[dir="rtl"] .what-we-do-item .number span {
  display: block;
}

html[dir="rtl"] .what-we-do-item .content {
  flex: 1;
  text-align: right;
}

html[dir="rtl"] .what-we-do-item .content h5 {
  font-size: 22px;
  font-weight: 600;
  color: var(--wispaar-headline-color);
  margin-bottom: 12px;
  text-align: right;
}

html[dir="rtl"] .what-we-do-item .content p {
  text-align: right;
  color: var(--wispaar-body-color);
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 15px;
}

html[dir="rtl"] .what-we-do-item .read-more {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 8px;
  color: var(--wispaar-secondary-color);
  transition: all 0.3s ease;
}

html[dir="rtl"] .what-we-do-item .read-more:hover {
  color: var(--wispaar-primary-color);
  transform: translateX(-5px);
}

html[dir="rtl"] .what-we-do-item .read-more i {
  font-size: 14px;
  transform: rotateY(180deg);
  transition: transform 0.3s ease;
  right:0px;
}


html[dir="rtl"] .what-we-do-item .read-more:hover i {
  transition: transform 0.3s ease;
  right:120px;
}



html[dir="rtl"] .what-we-do-item:hover .read-more i {
  transform: rotateY(180deg) translateX(-3px);
}

/* ==================== SERVICES SECTION - CARD POSITIONING ==================== */

html[dir="rtl"] .service-three-item {
  text-align: right;
  background: #f8fafd;
  padding: 35px;
  border-radius: 8px;
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
}

html[dir="rtl"] .service-three-item .title-icon {
  display: flex;
  flex-direction: row-reverse;
  justify-content: start;
  align-items: flex-start;
  margin-bottom: 40px;
  gap: 15px;
}

html[dir="rtl"] .service-three-item .title-icon h5 {
  text-align: right;
  max-width: 70%;
  font-size: 20px;
  font-weight: 600;
  color: var(--wispaar-headline-color);
  margin: 0;
}

html[dir="rtl"] .service-three-item .title-icon h5 a {
  color: inherit;
  text-decoration: none;
}



html[dir="rtl"] .service-three-item .title-icon img {
  width: 60px;
  height: 60px;
  min-width: 60px;
  margin: 0;
}

html[dir="rtl"] .service-three-item .content {
  flex: 1;
  text-align: right;
  display: flex;
  flex-direction: column;
}

html[dir="rtl"] .service-three-item .content p {
  text-align: right;
  color: var(--wispaar-body-color);
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 15px;
  flex: 1;
}

html[dir="rtl"] .service-three-item .read-more {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 8px;
  color: var(--wispaar-secondary-color);
  transition: all 0.3s ease;
  margin-top: auto;
}

html[dir="rtl"] .service-three-item .read-more i {
  transform: rotateY(180deg);
  font-size: 14px;
}

html[dir="rtl"] .service-three-item:hover {
  background: var(--wispaar-primary-color);
  box-shadow: 0 10px 40px rgba(209, 157, 30, 0.2);
  transform: translateY(-10px);
}

html[dir="rtl"] .service-three-item:hover h5,
html[dir="rtl"] .service-three-item:hover p,
html[dir="rtl"] .service-three-item:hover .read-more {
  color: white !important;
}

html[dir="rtl"] .service-three-item:hover .read-more i {
  transform: rotateY(180deg);
  color: white;
}

/* ==================== GALLERY/SLIDER ARROWS ==================== */

html[dir="rtl"] .main-slider-prev,
html[dir="rtl"] .main-slider-next,
html[dir="rtl"] .slick-prev,
html[dir="rtl"] .slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: var(--wispaar-primary-color);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

html[dir="rtl"] .main-slider-prev,
html[dir="rtl"] .slick-prev {
  right: 80px;
  left: auto;
}

html[dir="rtl"] .main-slider-next,
html[dir="rtl"] .slick-next {
  right: 20px;
  left: auto;
}

html[dir="rtl"] .main-slider-prev i,
html[dir="rtl"] .slick-prev i {
  transform: rotateY(180deg);
}

html[dir="rtl"] .main-slider-next i,
html[dir="rtl"] .slick-next i {
  transform: rotateY(180deg);
}

html[dir="rtl"] .main-slider-prev:hover,
html[dir="rtl"] .main-slider-next:hover,
html[dir="rtl"] .slick-prev:hover,
html[dir="rtl"] .slick-next:hover {
  background: var(--wispaar-secondary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* RTL Gallery Navigation */
html[dir="rtl"] .gallery-nav button,
html[dir="rtl"] .slider-nav button {
  transition: all 0.3s ease;
}

html[dir="rtl"] .gallery-nav button i,
html[dir="rtl"] .slider-nav button i {
  transform: rotateY(180deg);
}

/* ==================== TEAM MEMBERS - FULL STYLES ==================== */

/* ==================== BLOG CARDS - DETAILS BUTTON POSITIONING ==================== */

html[dir="rtl"] .blog-item {
  text-align: right;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.5s ease;
}

html[dir="rtl"] .blog-item h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--wispaar-headline-color);
  margin: 20px 20px 10px;
  line-height: 1.4;
  text-align: right;
}

html[dir="rtl"] .blog-item h4 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

html[dir="rtl"] .blog-item h4 a:hover {
  color: var(--wispaar-primary-color);
}

html[dir="rtl"] .blog-item hr {
  margin: 15px 20px;
  border: none;
  border-top: 1px solid #e5e5e5;
}

html[dir="rtl"] .blog-item .blog-meta {
  list-style: none;
  padding: 0 20px;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 20px;
  margin-bottom: 15px;
}

html[dir="rtl"] .blog-item .blog-meta li {
  font-size: 14px;
  color: var(--wispaar-body-color);
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 5px;
}

html[dir="rtl"] .blog-item .blog-meta i {
  margin: 0;
}

html[dir="rtl"] .blog-item .image {
  position: relative;
  overflow: hidden;
  margin: 15px 20px 20px;
  border-radius: 6px;
  height: 200px;
}

html[dir="rtl"] .blog-item .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

html[dir="rtl"] .blog-item .image .details-btn {
  position: absolute;
  width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  border-radius: 50%;
  background: var(--wispaar-primary-color);
  color: white;
  font-size: 18px;
  right: 20px;
  bottom: 20px;
  left: auto;
  opacity: 0;
  visibility: hidden;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

html[dir="rtl"] .blog-item:hover .image img {
  transform: scale(1.08);
}

html[dir="rtl"] .blog-item:hover .details-btn {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* ==================== MARGIN/PADDING MIRROR FIXES ==================== */

html[dir="rtl"] .pt-100 { padding-top: 100px; padding-bottom: 0; }
html[dir="rtl"] .pt-220 { padding-top: 180px; padding-bottom: 180px; }
html[dir="rtl"] .pt-115 { padding-top: 115px; padding-bottom: 0; }
html[dir="rtl"] .pt-125 { padding-top: 125px; padding-bottom: 0; }
html[dir="rtl"] .pt-130 { padding-top: 100px; padding-bottom: 0; }
html[dir="rtl"] .pt-70 { padding-top: 70px; padding-bottom: 0; }
html[dir="rtl"] .pt-75 { padding-top: 75px; padding-bottom: 0; }
html[dir="rtl"] .pt-90 { padding-top: 90px; padding-bottom: 0; }

html[dir="rtl"] .pb-85 { padding-bottom: 85px; padding-top: 0; }
html[dir="rtl"] .pb-90 { padding-bottom: 90px; padding-top: 0; }
html[dir="rtl"] .pb-100 { padding-bottom: 100px; padding-top: 0; }
html[dir="rtl"] .pb-120 {  }
html[dir="rtl"] .pb-70 { padding-bottom: 70px; padding-top: 0; }

html[dir="rtl"] .mt-20 { margin-top: 20px; margin-bottom: 0; }
html[dir="rtl"] .mt-35 { margin-top: 35px; margin-bottom: 0; }
html[dir="rtl"] .mb-55 { margin-bottom: 55px; margin-top: 0; }
html[dir="rtl"] .mb-60 { margin-bottom: 60px; margin-top: 0; }
html[dir="rtl"] .mb-65 { margin-bottom: 65px; margin-top: 0; }

html[dir="rtl"] .ms-auto { margin-right: auto !important; margin-left: 0; }
html[dir="rtl"] .me-auto { margin-left: auto !important; margin-right: 0; }





html[dir="rtl"] .work-process-three-area .work-step-item:after {
  right: calc(100% + 25px);
  transform: rotateY(180deg);
}







 html[dir="rtl"]  @media only screen and (max-width: 991px)
 .rpt-85 .rpy-85 {
        padding-top: 20px;
        padding-bottom: 50px;
        }





/* ==================== PRICING BADGE POSITION ==================== */

html[dir="rtl"] .pricing-plan-item .badge {
  position: absolute;
  right: 0px;
  background: var(--wispaar-primary-color);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 2;
}

/* ==================== SLIDER CONTROLS ==================== */

html[dir="rtl"] .slider-controls {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

html[dir="rtl"] .slider-controls button {
  transition: all 0.3s ease;
}

html[dir="rtl"] .slider-controls button:hover {
  background: var(--wispaar-primary-color);
  color: white;
}

/* ==================== ICON POSITIONING IN HOVER ==================== */

html[dir="rtl"] .read-more span,
html[dir="rtl"] .read-more i {
  transition: all 0.3s ease;
}

html[dir="rtl"] .read-more:hover i {
  transform: rotateY(180deg) translateX(-3px);
}

/* ==================== ALIGN FIXES FOR JUSTIFY ==================== */

html[dir="rtl"] .justify-content-end {
  justify-content: flex-start !important;
}

html[dir="rtl"] .justify-content-start {
  justify-content: flex-end !important;
}

html[dir="rtl"] .justify-content-between {
  justify-content: space-between !important;
}

html[dir="rtl"] .justify-content-center {
  justify-content: center !important;
}

/* ==================== RESPONSIVE FIXES ==================== */

@media (max-width: 768px) {
  html[dir="rtl"] .what-we-do-item {
    flex-direction: column;
  }

  html[dir="rtl"] .what-we-do-item .number {
    margin-right: 0;
    margin-bottom: 15px;
  }

  html[dir="rtl"] .service-three-item {
    padding: 25px;
  }

  html[dir="rtl"] .blog-item .image {
    height: 150px;
  }

  html[dir="rtl"] .main-slider-prev,
  html[dir="rtl"] .main-slider-next {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  html[dir="rtl"] .main-slider-prev {
    right: 60px;
  }

  html[dir="rtl"] .main-slider-next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  html[dir="rtl"] .section-title h2 {
    font-size: 24px;
  }

  html[dir="rtl"] .service-three-item .title-icon {
    flex-direction: column-reverse;
    align-items: center;
  }

  html[dir="rtl"] .service-three-item .title-icon h5 {
    max-width: 100%;
    text-align: center;
    margin-top: 15px;
  }

  html[dir="rtl"] .blog-item h4 {
    font-size: 18px;
  }

  html[dir="rtl"] .blog-item .blog-meta {
    flex-direction: column;
    gap: 8px;
  }

  html[dir="rtl"] .main-slider-prev,
  html[dir="rtl"] .main-slider-next {
    display: none;
  }
}

/* ==================== END ADVANCED FIXES ==================== */
