/* Card */
.team-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

/* Media wrapper */
.team-media {
  position: relative;
}

/* Image */
.team-media img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

/* Image scale on hover */
.team-card:hover img {
  transform: scale(1.06);
}

/* Dark overlay */
.team-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 30%,
    rgba(0,0,0,0.85) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.team-card:hover .team-media::after {
  opacity: 1;
}

/* ✅ SOCIAL ICONS — FIXED */
.team-social {
  position: absolute;              /* 🔑 REQUIRED */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0 !important;                       /* 🔑 reset theme */
  padding: 0 !important;                      /* 🔑 reset theme */
  z-index: 2;
  list-style: none !important;
}

.team-social li {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.35s ease;
}

.team-card:hover .team-social li {
  opacity: 1;
  list-style: none;
  transform: translateY(0);
}

.team-social li:nth-child(1) { transition-delay: 0.1s; }
.team-social li:nth-child(2) { transition-delay: 0.2s; }
.team-social li:nth-child(3) {transition-delay: 0.3s;list-style-type: none;}
.team-social li:nth-child(4) { transition-delay: 0.4s; }

.team-social a {
  width: 36px;
  height: 36px;
  background: #fff;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

 .team-content {
  position: absolute;              
  bottom: 20px;
  left: 20px;
  right: 20px;
  text-align: left;
  color: #fff;
  z-index: 2;
}

.team-title {
  margin: 0;
  font-size: 20px;
	color: #fff;
	font-weight: 800 !important;
}

.team-title a {
  color: #fff;
  text-decoration: none;
}

.team-designation {
  font-size: 17px;
  opacity: 0.8;
}
