.wh-team-holder {
  position: relative;
}

.wh-team-holder .splide__pagination {
  margin-top: 48px;
}
.wh-team-holder .splide__arrows {
  position: absolute;
  bottom: -20px;
  left: 24px;
  width: calc(100% - 55px);
  display: flex;
  justify-content: space-between;
}

@media(max-width: 768px){
  .wh-team-panels {
    margin-left: -16px;
    margin-right: -16px;
  }
}

.wh-team-placeholder,
.wh-team-no-members {
  color: #666;
  font-style: italic;
  text-align: center;
  padding: 40px 0;
}

/* Tabs */
.wh-team-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 0;
  border-bottom: none;
}

.wh-team-tab {
  background: transparent;
  border: none;
  padding: 10px 0;
  font-size: 1.1rem;
  font-weight: 400;
  color: #888;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.wh-team-tab:hover {
  color: #000;
}

.wh-team-tab-active {
  color: #000;
  font-weight: 600;
}

/* Mobile Select */
.wh-team-mobile-select-wrapper {
  position: relative;
}

.wh-team-select {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
}

/* Tab Panels */
.wh-team-panels {
  position: relative;
}

.wh-team-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.wh-team-panel-active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Team Grid / Slider */
.wh-team-grid {
  padding: 0;
  list-style: none;
  margin: 0;
}

/* Desktop Grid */
@media (min-width: 769px) {
  .wh-team-grid,
  .wh-team-grid.splide__list {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: 100% !important;
    transform: none !important;
  }
  
  .wh-team-member,
  .wh-team-member.splide__slide {
    width: auto !important;
    margin: 0 !important;
  }
  
  .wh-team-splide .splide__track {
    overflow: visible;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .wh-team-grid,
  .wh-team-grid.splide__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Team Member Cards */
.wh-team-member {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wh-team-member.wh-clickable {
  cursor: pointer;
}

.wh-team-member.wh-clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wh-team-member-image-holder {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.wh-team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.wh-team-member:hover .wh-team-image {
  transform: scale(1.05);
}

.wh-team-member-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.wh-team-member-name {
  margin: 0 0 5px 0;
  color: #000;
  font-size: 1.1rem;
  font-weight: 600;
}

.wh-team-member-role {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  font-weight: 400;
}

.wh-team-member-bio {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #666;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .wh-hide-desktop {
    display: block;
  }
  .wh-hide-mobile {
    display: none;
  }
  
  /* Splide overrides if needed */
  .wh-team-splide .splide__pagination {
    bottom: -30px;
  }
  
  .wh-team-splide .splide__arrow {
    background: #fff;
    border: 1px solid #ddd;
    opacity: 1;
  }
  
  .wh-team-splide .splide__arrow--prev {
    left: -10px;
  }
  
  .wh-team-splide .splide__arrow--next {
    right: -10px;
  }
}

@media (min-width: 769px) {
  .wh-hide-desktop {
    display: none;
  }
  .wh-hide-mobile {
    display: flex;
  }
}
