.team-card {
    background: #111;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.18);
    border-color: var(--gold);
}

.team-photo-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(212, 175, 55, 0.3);
    transition: all 0.4s ease;
}

.team-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease;
}

.team-photo.front {
    opacity: 1;
    z-index: 2;
}

.team-photo.back {
    opacity: 0;
    z-index: 1;
}

.team-photo-container:hover .front {
    opacity: 0;
}

.team-photo-container:hover .back {
    opacity: 1;
}

.team-bio {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #ccc;
    margin-top: 1rem;
    flex-grow: 1;
}

/* Ajuste fino para telas maiores (opcional: se quiser 4 colunas em desktop grande) */
@media (min-width: 1200px) {
    .row-cols-xl-4 {
        --bs-row-cols: 4;
    }
}


@media (min-width: 1400px) {
    .row-cols-xxl-4 > * {
        flex: 0 0 auto;
        width: 25%;
    }
}
