/* 醫療團隊樣式 */
.doctor-team-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px;
}

.doctor-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.doctor-item:hover {
  transform: translateY(-5px);
}

.doctor-image-wrapper {
  position: relative;
  width: 400px;
  margin: 0 auto 20px;
  overflow: visible;
  border-radius: 8px;
}

.doctor-image {
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
}

.doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.doctor-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #a57865;
  opacity: 0.3;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.doctor-item:hover .doctor-overlay {
  background: linear-gradient(
      180deg,
      rgba(165, 120, 101, 0) 50.09%,
      #a57865 99.95%
    ),
    url() rgba(211, 211, 211, 0) -116.927px -44.636px / 156.285% 148.431%
      no-repeat;
  opacity: 1;
  animation: fadeInOverlay 0.6s ease-in-out;
}

@keyframes fadeInOverlay {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
}

.doctor-info {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.doctor-item:hover .doctor-info {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

.doctor-title {
  color: white;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.doctor-name {
  color: white;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 響應式設計 */
@media (max-width: 768px) {
  .doctor-team-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
  }

  .doctor-image-wrapper {
    width: 160px;
    height: 160px;
  }

  .doctor-image {
    width: 140px;
    height: 140px;
  }

  .doctor-name {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .doctor-team-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .doctor-image-wrapper {
    width: 140px;
    height: 140px;
  }

  .doctor-image {
    width: 120px;
    height: 120px;
  }
}
