.team-card {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.team-card img {
  display: block;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.team-card:hover img {
  filter: grayscale(0%);
}

/* Nút LinkedIn mặc định ẩn dưới đáy */
.linkedin-overlay {
  position: absolute;
  bottom: -60px; /* nằm ngoài đáy */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: all 0.6s ease;
}

/* Hover card → bay lên cách đáy 40px */
.team-card:hover .linkedin-overlay {
  bottom: 40px;
  opacity: 1;
}

/* Style cho nút LinkedIn vuông */
.team-card .linkedin-overlay a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: #fff;   /* nền trắng mặc định */
  color: #000;        /* chữ đen */
  font-size: 14px;
  border-radius: 4px; /* bo nhẹ góc */
  transition: all 0.3s ease;
  text-decoration: none;
}

/* Hiệu ứng swing như đồng hồ iOS */
@keyframes swing {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(8deg); }
  50% { transform: rotate(-8deg); }
  75% { transform: rotate(4deg); }
  100% { transform: rotate(0deg); }
}

/* Hover vào nút → đổi nền + lắc */
.linkedin-overlay a:hover {
  background: #f14401;
  color: #000;
  animation: swing 0.5s ease forwards;
}