.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
    /* Center the grid items if they don't fill row */
}

/* Enforce smaller card size within the staff grid */
.staff-grid .card {
    max-width: 300px;
    margin: 0 auto;
    /* Center card in grid cell */
}

.card {
    background-color: #350303;
    width: 100%;
    max-height: 550px;
    text-align: center;
    border-radius: 5%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* RESOLUÇÃO DE CONFLITO: Mantive a versão maior e centralizada */
.card-title {
    font-size: 1.5rem;
    color: #B77D00;
    text-align: center;
    margin-bottom: 0.5rem;
}

.card-title-prod {
    font-size: 0.9rem;
    color: #B77D00;
    margin-bottom: 0.5rem;
}

.card-text-prod {
    font-size: 0.8rem;
    color: #DCDCDC;
    margin-bottom: 1rem;
}

/* Separating styles to enforce sizing */
.staff-image {
    width: 87%;
    margin: 1rem auto;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    /* Ensures consistent portrait size */
    margin-bottom: 0 !important;
}

.staff-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 0;
    /* Container handles radius */
}


.staff-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.staff-overlay p {
    font-size: 1rem;
    color: #DCDCDC;
    text-align: center;
    padding: 10px;
    line-height: 1.6;
}

.staff-member:hover .staff-overlay {
    opacity: 1;
    visibility: visible;
}

.staff-member:hover .staff-image img {
    transform: scale(1.1);
}

/* --- Card Depoimento --- */
.card.depoimento {
    text-align: center;
    padding: 1.5rem;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #310505;
    color: #dcdcdc;
    transition: transform 0.3s, box-shadow 0.3s;
    max-height: fit-content;
    /* Ajuste para não quebrar */
}

.card.depoimento:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card.depoimento p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.depoimento {
    color: #DCDCDC;
    font-size: 0.9rem;
}

.card.depoimento footer.blockquote-footer,
.blockquote-footer {
    font-size: 0.875rem;
    color: #B77D00;
}

.card.depoimento footer.blockquote-footer a {
    color: #007bff;
    text-decoration: none;
}

.card.depoimento footer.blockquote-footer a:hover {
    text-decoration: underline;
}

/* Responsividade Cards */
@media (max-width: 768px) {
    .card.depoimento {
        margin-bottom: 1.5rem;
    }
}