.doctor-card {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  position: relative;
  cursor: pointer;
}

.doctor-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(79, 172, 254, 0.05),
    rgba(0, 242, 96, 0.05)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: 16px;
}

.doctor-card:hover::before {
  opacity: 1;
}

.doctor-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 20px rgba(79, 172, 254, 0.15);
  z-index: 10;
}

.doctor-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: all 0.5s ease;
  border-radius: 12px;
  margin: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.doctor-card:hover .doctor-img {
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.doctor-card:hover .card-title {
  color: #4facfe;
}

.card-text strong {
  color: #4facfe;
  font-weight: 600;
}

.bio-snippet {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease 0.2s;
  color: #555;
  line-height: 1.7;
}

.doctor-card:hover .bio-snippet {
  opacity: 1;
  transform: translateY(0);
}

.specialty-badge {
  display: inline-block;
  background: linear-gradient(45deg, #4facfe, #00f2fe);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 8px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.4s ease;
}

.doctor-card:hover .specialty-badge {
  opacity: 1;
  transform: translateX(0);
}

/* انیمیشن ورود کارت */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-card {
  animation: fadeInUp 0.6s ease-out forwards;
}
