.our-team-section-style5 {
  padding: 40px 0;
}

.team-card-style5 {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 380px;
  background-color: #f0f0f0;
}

.team-card-style5:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.team-image-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.team-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  object-position: top center;
}

.team-card-style5:hover .team-image-wrapper img {
  transform: scale(1.08);
}

.team-content-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 24px 24px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 2;
  color: #ffffff;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.team-card-style5 .team-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
  letter-spacing: 0.5px;
}

.team-card-style5 .team-post {
  font-size: 14px;
  color: #d1d5db;
  margin-bottom: 12px;
  font-weight: 400;
}

.team-card-style5 .team-social {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 12px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.team-card-style5:hover .team-social {
  opacity: 1;
}

.team-card-style5 .team-social li {
  display: inline-block;
}

.team-card-style5 .team-social li:first-child {
  margin-left: 0;
}

.team-card-style5 .team-social li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: #ffffff;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background-color: transparent;
  transition: all 0.3s ease;
  text-decoration: none;
}

.team-card-style5 .team-social li a:hover {
  color: #ffffff;
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}
@media (max-width: 1023px) and (min-width: 768px) {
  .our-team-section-style5 .col-md-3 {
    width: 33.33%;
    flex: 0 0 33.33%;
    max-width: 33.33%;
  }
}
