.team-card {
border-radius: 1rem;
transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-card:hover {
transform: translateY(-12px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.team-img {
height: 320px;
object-fit: cover;
transition: transform 0.6s ease;
}

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

.position-relative {
/* overflow: hidden; */
border-top-left-radius: 1rem;
border-top-right-radius: 1rem;
}

.overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.4));
pointer-events: none;
opacity: 0;
transition: opacity 0.4s ease;
}

.team-card:hover .overlay {
opacity: 1;
}

.text-primary {
color: #0d6efd !important; /* Adjust if using a custom primary color */
}

.transition-all {
transition: all 0.3s ease;
}
