section.team-slider {
  padding: 104px 0;
  background: #fff;
}

section.team-slider .team-slider-header-wrapper {
  max-width: 1256px;
  padding: 0 20px;
  width: 100%;
  margin: 0 auto 64px;
}

section.team-slider .team-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

section.team-slider .team-slider-intro {
  max-width: 706px;
}

section.team-slider .team-slider-title {
  color: #005159;
  font-weight: 500;
  letter-spacing: 1.04px;
  margin: 0 0 16px 0;
}

section.team-slider .team-slider-text {
  color: #211e19;
  line-height: 28px;
  margin: 0;
}

/* Navigation Arrows (SVG in CSS) */
section.team-slider .team-slider-nav {
  display: flex;
  gap: 12px;
}

section.team-slider .team-slider-prev,
section.team-slider .team-slider-next {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

section.team-slider .team-slider-prev:hover,
section.team-slider .team-slider-next:hover {
  opacity: 0.7;
}

section.team-slider .team-slider-prev {
  background-image: url(../../assets/icons/circle-arrow-left.svg);
}

section.team-slider .team-slider-next {
  background-image: url(../../assets/icons/circle-arrow-right.svg);
}

/* Mobile controls row hidden on desktop */
section.team-slider .team-slider-controls-mobile {
  display: none;
}

/* Carousel wrapper */
section.team-slider .team-slider-carousel-wrapper {
  position: relative;
}

section.team-slider .team-swiper {
  overflow: hidden;
}

section.team-slider .swiper-wrapper {
  align-items: stretch;
}

section.team-slider .swiper-slide {
  width: 336px;
  height: auto;
}

/* Card */
section.team-slider .team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  aspect-ratio: 336 / 386;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
}

section.team-slider .team-card-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

section.team-slider .team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

section.team-slider .team-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 2;
}

section.team-slider .team-card-content {
  position: relative;
  z-index: 3;
  padding: 24px;
}

section.team-slider .team-card-name {
  font-family: "Geist", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  color: #fff;
  margin: 0 0 4px 0;
}

section.team-slider .team-card-role {
  font-family: "Geist", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Desktop large: align carousel with container left edge */
@media (min-width: 1296px) {
  section.team-slider .team-slider-carousel-wrapper {
    margin-left: calc((100% - 1256px) / 2 + 20px);
  }
}

/* Tablet */
@media (max-width: 1024px) {
  section.team-slider {
    padding: 80px 0;
  }

  section.team-slider .team-slider-header-wrapper {
    padding: 0 56px;
    margin-bottom: 48px;
  }

  section.team-slider .team-slider-carousel-wrapper {
    margin-left: 56px;
  }

  section.team-slider .swiper-slide {
    width: 300px;
  }

  section.team-slider .team-card {
    aspect-ratio: 300 / 345;
  }
}

/* Mobile */
@media (max-width: 767px) {
  section.team-slider {
    padding: 56px 0;
  }

  section.team-slider .team-slider-header-wrapper {
    padding: 0 20px;
    margin-bottom: 24px;
  }

  section.team-slider .team-slider-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  section.team-slider .team-slider-title {
    font-size: 36px;
    line-height: 45px;
    letter-spacing: 0.72px;
  }

  /* Hide desktop nav */
  section.team-slider .team-slider-nav-desktop {
    display: none;
  }

  /* Show mobile controls row above slider */
  section.team-slider .team-slider-controls-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 16px;
  }

  section.team-slider .team-slider-pagination {
    display: flex;
    gap: 8px;
  }

  section.team-slider .team-slider-carousel-wrapper {
    margin-left: 20px;
  }

  section.team-slider .swiper-slide {
    width: 280px;
  }

  section.team-slider .team-card {
    aspect-ratio: 280 / 416;
  }

  /* Pagination dots */
  section.team-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #989898;
    opacity: 1;
    border-radius: 50%;
    margin: 0;
  }

  section.team-slider .swiper-pagination-bullet-active {
    background: #00a2b1;
  }
}
