/* =========================================================================
   coverflow.css — Premium Swiper Carousel for features section
   ========================================================================= */

/* ── Section ── */
.how-it-works {
  position: relative;
  overflow-x: hidden; /* prevent horizontal scroll from swiper overflow */
}

/* ── Fade wrapper: mask-image clips the swiper edges visually ── */
.clinly-swiper-fade {
  position: relative;
  /* Apply a horizontal gradient mask so cards fade at both edges */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent    0%,
    black          18%,
    black          82%,
    transparent   100%
  );
  mask-image: linear-gradient(
    to right,
    transparent    0%,
    black          18%,
    black          82%,
    transparent   100%
  );
}

/* On mobile show a narrower fade */
@media (max-width: 640px) {
  .clinly-swiper-fade {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent  0%,
      black        10%,
      black        90%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent  0%,
      black        10%,
      black        90%,
      transparent 100%
    );
  }
}

/* ── Wrapper ── */
.clinly-swiper {
  width: 100%;
  padding: 2rem 0 4rem !important;
  overflow: visible !important;
  position: relative;
}

/* ── Individual Slide ── */
.clinly-swiper .swiper-slide {
  width: 300px;
  height: auto;
  display: flex;
  align-items: stretch;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.4s ease;
}

/* Non-active slides: slightly faded + smaller */
.clinly-swiper .swiper-slide:not(.swiper-slide-active) {
  opacity: 0.45;
  transform: scale(0.88);
}

.clinly-swiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
  z-index: 10;
}

/* ── Feature Card ── */
.feat-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  min-height: 260px;
  cursor: grab;
  transition:
    transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  user-select: none;
  will-change: transform;
}

.feat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(78, 205, 196, 0.18);
  border-color: rgba(78, 205, 196, 0.45);
}

.swiper-slide-active .feat-card {
  border-color: rgba(78, 205, 196, 0.35);
  box-shadow: 0 8px 32px rgba(78, 205, 196, 0.15);
}

/* ── Icon ── */
.feat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg,
    rgba(78, 205, 196, 0.12) 0%,
    rgba(78, 205, 196, 0.06) 100%);
  color: #4ECDC4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.feat-card:hover .feat-icon {
  background: linear-gradient(135deg,
    rgba(78, 205, 196, 0.22) 0%,
    rgba(78, 205, 196, 0.12) 100%);
  transform: scale(1.08) rotate(-3deg);
}

/* ── Typography ── */
.feat-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1B2E4B;
  line-height: 1.4;
  margin: 0;
}

.feat-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.7;
  margin: 0;
}

/* ── Navigation Buttons ── */
/* Removed per user request */

/* ── Pagination Dots ── */
.clinly-swiper-pagination {
  bottom: 0 !important;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.clinly-swiper-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #cbd5e1;
  opacity: 1;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.clinly-swiper-pagination .swiper-pagination-bullet-active {
  background: #4ECDC4;
  width: 24px;
  border-radius: 9999px;
}

/* ── Section container ── */
.how-it-works .container {
  position: relative;
  max-width: 1600px; /* Make the carousel area significantly wider */
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .clinly-swiper .swiper-slide {
    width: 260px;
  }


  .swiper-edge-fade {
    width: 80px;
  }
}

@media (max-width: 480px) {
  .clinly-swiper .swiper-slide {
    width: 230px;
  }
}
