/* ══════════════════════════════════════════════
   COMPARISON SLIDER
   ══════════════════════════════════════════════ */

.slider__compare {
  position: relative;
}

.main__compare {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.main__compare > .compare__box {
  flex-shrink: 0;
  width: 340px;
}

/* Inner slider: fills right, bleeds to viewport edge on desktop */
.inner__slider {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.inner__slider .swiper-wrapper {
  align-items: stretch;
}

.inner__slider .swiper-slide {
  height: auto;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform-origin: left center;
}

.inner__slider .swiper-slide .compare__box {
  height: 100%;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  transition: background-color 0.4s ease;
}

/* Competitor icon styles */
.competitor-logo-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4A90D9, #357ABD);
  margin: 0 auto;
}

.competitor-initial {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
}

.competitor-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 0;
}

/* Feature support icons */
.compare__box .desc ul li .check i {
  color: #5331af;
}

.compare__box .desc ul li .cross i {
  color: #e53e3e;
  font-weight: 700;
}

.compare__box .desc ul li .partial-icon i {
  color: #d69e2e;
}

/* ── Desktop: bleed right + fixed 400px slides ── */
@media (min-width: 992px) {
  .inner__slider {
    margin-right: calc(-50vw + 50%);
    padding-right: calc(50vw - 50%);
  }

  .inner__slider .swiper-slide {
    width: 340px;
    max-width: 340px;
  }
}

/* ── Mobile: show Varyos card prominently, hide slider ── */
@media (max-width: 991px) {
  .main__compare {
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Show Varyos card on mobile with special styling */
  .main__compare > .compare__box.compare__box--varyos {
    display: block !important;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 1rem;
    border: 2px solid #5331af;
    background: linear-gradient(135deg, #f8f5ff 0%, #ffffff 100%);
    box-shadow: 0 4px 20px rgba(83, 49, 175, 0.15);
    border-radius: 12px;
    padding: 20px;
  }
  
  /* Hide the competitor slider on mobile - it's confusing without context */
  .inner__slider {
    display: none !important;
  }
  
  /* Show a summary message instead */
  .compare__mobile-summary {
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
  }
}

/* Hide mobile summary on desktop */
.compare__mobile-summary {
  display: none;
}

/* ── Right arrow ── */
.compare__arrow-next {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #2A0C5A;
  font-size: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease;
}

@media (min-width: 992px) {
  .compare__arrow-next {
    right: calc(50vw - 50% + 15px);
  }
}

.compare__arrow-next:hover {
  background: #fff;
}

/* ── Dots in .compare__dots ── */
.compare__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

@media (max-width: 991px) {
  .compare__dots {
    display: none;
  }
}

.compare__dots .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  opacity: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.compare__dots .swiper-pagination-bullet-active {
  background: #fff;
}
