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: #656565;
  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: background-image 0.2s ease;
}

/* Default: teal outline */
section.team-slider .team-slider-prev {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40' fill='none'%3E%3Cpath d='M20 26.667L13.333 20 20 13.333M13.333 20h13.334M36.667 20c0 9.205-7.462 16.667-16.667 16.667S3.333 29.205 3.333 20 10.795 3.333 20 3.333 36.667 10.795 36.667 20Z' stroke='%2300A2B1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

section.team-slider .team-slider-next {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40' fill='none'%3E%3Cpath d='M20 26.667L13.333 20 20 13.333M13.333 20h13.334M36.667 20c0 9.205-7.462 16.667-16.667 16.667S3.333 29.205 3.333 20 10.795 3.333 20 3.333 36.667 10.795 36.667 20Z' stroke='%2300A2B1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transform: scaleX(-1);
}

/* Hover / Active: filled teal with white arrow */
section.team-slider .team-slider-prev:hover,
section.team-slider .team-slider-next:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40' fill='none'%3E%3Cpath d='M20 36.667c9.205 0 16.667-7.462 16.667-16.667S29.205 3.333 20 3.333 3.333 10.795 3.333 20s7.462 16.667 16.667 16.667Z' fill='%2300A2B1'/%3E%3Cpath d='M20 26.667L13.333 20 20 13.333M13.333 20h13.334' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Disabled: grey outline (Swiper adds .swiper-button-disabled) */
section.team-slider .team-slider-prev.swiper-button-disabled,
section.team-slider .team-slider-next.swiper-button-disabled,
section.team-slider .team-slider-prev.swiper-button-disabled:hover,
section.team-slider .team-slider-next.swiper-button-disabled:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40' fill='none'%3E%3Cpath d='M20 26.667L13.333 20 20 13.333M13.333 20h13.334M36.667 20c0 9.205-7.462 16.667-16.667 16.667S3.333 29.205 3.333 20 10.795 3.333 20 3.333 36.667 10.795 36.667 20Z' stroke='%23989898' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: 1;
  cursor: not-allowed;
}

/* 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: 40px;
    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;
  }
}

section.team-slider .team-slider-button-wrapper {
  max-width: 1256px;
  width: 100%;
  margin: 64px auto 0;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

section.team-slider .team-slider-button-wrapper .btn-cta-outline {
  border: 1px solid var(--bg-primary-500);
  color: var(--text-primary-500);
  background: transparent;
  height: 54px;
  padding: 16px 20px;
  border-radius: 40px;
  text-transform: uppercase;
}

section.team-slider .team-slider-button-wrapper .btn-cta-outline:hover {
  background: #e2f2ef;
  color: #005159;
  border-color: #00a2b1;
}

/* Tablet */
@media (max-width: 1024px) {
  section.team-slider .team-slider-button-wrapper {
    margin-top: 48px;
    padding: 0 56px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  section.team-slider .team-slider-button-wrapper {
    margin-top: 40px;
    padding: 0 20px;
  }

  section.team-slider .team-slider-button-wrapper .btn-cta {
    width: 100%;
  }
}
