/* Butz Team Grid Slider Styles */

.butz-team-wrapper {
  width: 100%;
  position: relative;
}

/* Desktop Grid View - 3 Columns */
.butz-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-item {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  padding: 0 30px;
  border-radius: 20px;
}

.team-item-inner {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
}

.team-image-col {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
}

.team-image {
  width: 100%;
  overflow: hidden;
  margin: -20px 0px -20px 0px;
}

.team-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.team-content-col {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 20px;
  justify-content: center;
}

.team-heading {
  margin: 0;
}

.team-subheading {
  margin: 0;
}

.team-text {
  margin: 0;
}

/* Mobile View (Slider) - Column Style */
@media (max-width: 767px) {
  .butz-team-grid {
    display: block;
  }

  .team-item-inner {
    flex-direction: column;
  }

  .team-image-col {
    width: 100%;
    margin-bottom: 15px;
  }

  .team-content-col {
    padding-left: 0;
    width: 100%;
  }

  /* Slick slider overrides for mobile */
  .butz-team-wrapper.slick-initialized .butz-team-grid {
    display: block;
  }
}

/* Tablet View (Slider) */
@media (max-width: 1024px) and (min-width: 768px) {
  .butz-team-grid {
    display: block;
  }

  .team-item-inner {
    flex-direction: row;
  }

  /* Slick slider overrides for tablet */
  .butz-team-wrapper.slick-initialized .butz-team-grid {
    display: block;
  }
}

/* Slick Slider Arrows */
.butz-team-wrapper .slick-prev,
.butz-team-wrapper .slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.butz-team-wrapper .slick-prev:hover,
.butz-team-wrapper .slick-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.butz-team-wrapper .slick-prev {
  left: 10px;
}

.butz-team-wrapper .slick-next {
  right: 10px;
}

.butz-team-wrapper .slick-prev:before,
.butz-team-wrapper .slick-next:before {
  font-size: 20px;
  line-height: 1;
  opacity: 1;
  color: white;
}

.butz-team-wrapper .slick-prev:before {
  content: "←";
}

.butz-team-wrapper .slick-next:before {
  content: "→";
}

/* Slick Dots */
.butz-team-wrapper .slick-dots {
  position: relative;
  bottom: auto;
  margin-top: 20px;
  padding: 0;
  list-style: none;
  text-align: center;
}

.butz-team-wrapper .slick-dots li {
  display: inline-block;
  margin: 0 5px;
}

.butz-team-wrapper .slick-dots li button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid #000;
  border-radius: 50%;
  background-color: transparent;
  font-size: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.butz-team-wrapper .slick-dots li.slick-active button {
  background-color: #000;
}

.butz-team-wrapper .slick-dots li button:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Fix for slick slider items on mobile/tablet */
@media (max-width: 1024px) {
  .butz-team-wrapper .slick-slide {
    float: left;
  }

  .butz-team-wrapper .slick-track {
    display: flex;
  }
}

/* Fade In Up Animation (Desktop Only) */
@media (min-width: 1025px) {
  .team-item.animation-ready {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  .team-item.animation-ready.animate-in {
    opacity: 1;
    transform: translateY(0);
  }
}
