/* ── Child Card Slider ─────────────────────────────────────────── */

.child-slider-wrapper {
  position: relative;
  overflow: hidden;
  padding: 50px 0 !important;
}

/* Track: hiển thị 3 card, card giữa to hơn */
.child-slider-track {
  display: flex;
  align-items: center;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  gap: 24px;
}

/* ── Slide Item ─────────────────────────────────────────────────── */
.child-slide-item {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 240px;
  background: linear-gradient(321.04deg, #0200B9 22.36%, #020207 77.64%);
  border-radius: 9px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
  transform: scale(0.9) !important;
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.child-slide-item.swiper-slide-active {
  transform: scale(1.1) !important;
  box-shadow: 0 8px 36px rgba(0,0,0,0.16);
  z-index: 2;
}

/* ── Image ──────────────────────────────────────────────────────── */
.child-slide-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 7px;
}

.child-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Content ────────────────────────────────────────────────────── */
.child-slide-content {
  color: #fff;
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.child-slide-title {
  font-size: 25px;
  font-weight: 700;
  margin: 0;
  text-align: center;
  color: #fff;
  line-height: 1.3;
}

.child-slide-desc {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  text-align: center;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  flex: 1;
}

/* ── Button ─────────────────────────────────────────────────────── */
.child-slide-btn {
  display: block;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  color: #1a3aad;
  border-radius: 24px;
  padding: 4px 40px;
  line-height: 1.7;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.2s, color 0.2s;
  margin-top: 4px;
}

.child-slide-btn:hover {
  background: #e8eeff;
  color: #1a3aad;
}

/* ── Navigation Arrows ──────────────────────────────────────────── */
.child-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  transition: background 0.2s, box-shadow 0.2s;
  z-index: 10;
  color: #333;
}

.child-slider-nav:hover {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
}

.child-slider-prev { left: 4px; }
.child-slider-next { right: 4px; }

/* ── Dots ───────────────────────────────────────────────────────── */
.child-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  position: absolute;
  bottom: 12px;
  width: 100%;
}

.child-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(26,58,173,0.25);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.child-slider-dot.is-active {
  background: #1a3aad;
  transform: scale(1.3);
}

/* Custom arrow button for child-slider-wrapper */
.child-slider-wrapper .swiper-button-prev,
.child-slider-wrapper .swiper-button-next {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
    color: #1a2cff;
    transition: border-color 0.2s, box-shadow 0.2s;
    z-index: 10;
}
.child-slider-wrapper .swiper-button-prev svg,
.child-slider-wrapper .swiper-button-next svg {
    width: 28px;
    height: 28px;
    stroke: #1a2cff;
}
.child-slider-wrapper .swiper-button-prev {
    left: 5px;
}
.child-slider-wrapper .swiper-button-next {
    right: 5px;
}
.child-slider-wrapper .swiper-button-prev:hover,
.child-slider-wrapper .swiper-button-next:hover {
    box-shadow: 0 4px 16px rgba(26,44,255,0.08);
}
.child-slider-wrapper .swiper-button-prev:after,
.child-slider-wrapper .swiper-button-next:after {
    display: none;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .child-slider-wrapper {
    padding: 0 !important;
  }

  /* Subtle scale on mobile — center card slightly larger than peek cards */
  .child-slide-item {
    transform: scale(0.88) !important;
    flex: 0 0 auto;
  }

  .child-slide-item.swiper-slide-active {
    transform: scale(1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
  }

  /* Smaller arrows on mobile */
  .child-slider-wrapper .swiper-button-prev,
  .child-slider-wrapper .swiper-button-next {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .child-slider-wrapper .swiper-button-prev svg,
  .child-slider-wrapper .swiper-button-next svg {
    width: 20px;
    height: 20px;
  }
}
