/* Page Header */
/* Page Header styles removed - inheriting from modern.css */

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.team-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    /* Cobre a área sem distorcer */
    object-position: top center;
    /* Foca no topo por padrão (rostos) */
}

/* Classes auxiliares para ajuste fino de posição */
.pos-top {
    object-position: top center;
}

.pos-center {
    object-position: center center;
}

.pos-bottom {
    object-position: bottom center;
}

.pos-custom-1 {
    object-position: 50% 20%;
}

/* Exemplo para ajustes manuais */

.team-info {
    padding: 20px;
}

.team-info h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.team-role {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 12px;
    font-style: italic;
}

.team-info p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.team-link {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.team-link:hover {
    color: var(--secondary-color);
}

.btn-contact {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.btn-contact:hover {
    background: #003d82;
}

/* Student Cards */
.student-card .team-img {
    height: 400px;
}

.thesis-title {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}