/* Wins slider section */
.wins-slider-section {
  padding: var(--section-padding-y) var(--section-padding-x);
  background: linear-gradient(180deg, #ffffff 0%, var(--light-gray) 100%);
}

.wins-slider-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem;
}

.gallery-tag {
  display: inline-block;
  color: var(--sunlife-marigold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.wins-slider-header h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--sunlife-dark);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.wins-slider-header p {
  color: #475569;
  line-height: 1.8;
  font-size: 1rem;
}

/* Slider main */
.wins-slider-main {
  position: relative;
  width: 100%;
  max-width: 1180px;
  height: 430px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.wins-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Small cards */
.wins-item {
  width: 115px;
  height: 155px;
  list-style: none;
  position: absolute;
  top: 70%;
  transform: translateY(-50%);
  border-radius: 16px;
  background-image: var(--slide-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  z-index: 6;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.32);
  transition:
    left 0.65s ease,
    top 0.65s ease,
    width 0.65s ease,
    height 0.65s ease,
    transform 0.65s ease,
    opacity 0.65s ease;
}

/* Active slides */
.wins-item:nth-child(1),
.wins-item:nth-child(2) {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  transform: none;
  border-radius: 0;
  box-shadow: none;
  background-image: none;
  overflow: hidden;
}

/* Previous active */
.wins-item:nth-child(1) {
  z-index: 1;
}

/* Current active */
.wins-item:nth-child(2) {
  z-index: 2;
}

/* Blurred background */
.wins-item:nth-child(1)::before,
.wins-item:nth-child(2)::before {
  content: "";
  position: absolute;
  inset: -30px;
  background-image: var(--slide-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(18px);
  transform: scale(1.08);
  z-index: 1;
}

/* Clear center image */
.wins-item:nth-child(2)::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38%;
  width: 34%;
  background-image: var(--slide-img);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 3;
}

/* Stacked cards */
.wins-item:nth-child(3) {
  left: 84%;
  z-index: 9;
}

.wins-item:nth-child(4) {
  left: calc(84% + 58px);
  z-index: 8;
  opacity: 0.96;
}

.wins-item:nth-child(5) {
  left: calc(84% + 116px);
  z-index: 7;
  opacity: 0.92;
}

.wins-item:nth-child(6) {
  left: calc(84% + 174px);
  z-index: 6;
  opacity: 0.88;
}

.wins-item:nth-child(n + 7) {
  left: calc(84% + 232px);
  opacity: 0;
}

/* Text content */
.wins-content {
  position: absolute;
  left: 2.5rem;
  bottom: 6.5rem;
  max-width: 360px;
  color: var(--white);
  opacity: 0;
  z-index: 7;
}

.wins-item:nth-child(2) .wins-content {
  opacity: 1;
  animation: fadeContent 0.7s ease forwards;
}

.wins-content span {
  display: inline-block;
  color: var(--sunlife-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.8),
    0 8px 18px rgba(0, 0, 0, 0.6);
}

.wins-content h3 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--white);
  font-weight: 700;
  text-shadow:
    0 4px 10px rgba(0, 0, 0, 0.95),
    0 12px 30px rgba(0, 0, 0, 0.7);
}

@keyframes fadeContent {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.wins-nav {
  position: absolute;
  left: 2.5rem;
  bottom: 2rem;
  z-index: 10;
  display: flex;
  gap: 0.7rem;
}

.wins-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
}

.wins-btn:hover {
  background: var(--sunlife-marigold);
  transform: translateY(-2px);
}

/* Tablet */
@media (max-width: 992px) {
  .wins-slider-section {
    padding: var(--section-padding-y-tablet) 1.5rem;
  }

  .wins-slider-main {
    height: 390px;
  }

  .wins-item {
    width: 100px;
    height: 140px;
    top: 72%;
  }

  .wins-item:nth-child(2)::after {
    left: 38%;
    width: 38%;
  }

  .wins-item:nth-child(3) {
    left: 80%;
  }

  .wins-item:nth-child(4) {
    left: calc(80% + 50px);
  }

  .wins-item:nth-child(5) {
    left: calc(80% + 100px);
  }

  .wins-item:nth-child(n + 6) {
    opacity: 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .wins-slider-section {
    padding: var(--section-padding-y-mobile) var(--section-padding-x-mobile);
  }

  .wins-slider-main {
    height: 360px;
    border-radius: 22px;
  }

  .wins-item:nth-child(2)::after {
    left: 42%;
    width: 55%;
    opacity: 0.85;
  }

  .wins-item:nth-child(3),
  .wins-item:nth-child(4),
  .wins-item:nth-child(5),
  .wins-item:nth-child(6) {
    opacity: 0;
  }

  .wins-content {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 5.5rem;
    max-width: 280px;
  }

  .wins-content h3 {
    font-size: 1.7rem;
  }

  .wins-nav {
    left: 1.5rem;
    bottom: 1.5rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .wins-slider-main {
    height: 330px;
  }

  .wins-item:nth-child(2)::after {
    left: 38%;
    width: 62%;
  }

  .wins-content h3 {
    font-size: 1.5rem;
  }

  .wins-btn {
    width: 38px;
    height: 38px;
  }
}
