/* ===== SERVICES CAROUSEL SECTION ===== */
.services-carousel-section {
  padding: 100px 20px;
  background: #f7f9fc;
  overflow: hidden;
}

/* Section heading */
.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: #0b1a3a;
}

/* ===== CAROUSEL STAGE ===== */
.carousel-stage {
  position: relative;
  height: 480px;
  perspective: 1400px;
  touch-action: pan-y;
}

/* ===== CARD WRAPPER ===== */
.cards {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

/* ===== CARD ===== */
.card {
  position: absolute;
  top: 50%;
  left: 50%;

  width: min(22vw, 300px);
  aspect-ratio: 4 / 5;

  transform-style: preserve-3d;
  transform-origin: center center;
  transform: translate(-50%, -50%);

  background-size: cover;
  background-position: center;
  border-radius: 18px;
  overflow: hidden;

  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.4s ease,
              opacity 0.4s ease;
}

/* Active card */
.card.active {
  box-shadow: 0 25px 60px rgba(0, 86, 179, 0.45);
  filter: none;
  opacity: 1;
}

/* Side cards */
.card:not(.active) {
  filter: blur(2px);
  opacity: 0.7;
}

/* ===== GRADIENT OVERLAY ===== */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11,26,58,0.85),
    rgba(11,26,58,0.25),
    transparent
  );
  z-index: 1;
}

/* ===== CARD TEXT ===== */
.card-content {
  position: absolute;
  bottom: 24px;
  left: 20px;
  right: 20px;
  z-index: 2;

  color: #fff;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

/* ===== ARROWS (DESKTOP ONLY) ===== */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;

  width: 52px;
  height: 52px;
  border-radius: 50%;

  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.35);

  font-size: 30px;
  color: #0b1a3a;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.3s ease;
}

.carousel-arrow:hover {
  background: rgba(255,255,255,0.45);
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.left {
  left: 20px;
}

.carousel-arrow.right {
  right: 20px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .carousel-stage {
    height: 360px;
  }

  .card {
    width: 70vw;
    max-width: 280px;
    aspect-ratio: 3 / 4;
  }

  .card:not(.active) {
    filter: blur(3px);
    opacity: 0.6;
  }

  .carousel-arrow {
    display: none;
  }
}
