/* Centralizar conteúdo dentro do card */
.custom-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    height: 100%; /* Altura do card ajusta ao conteúdo */
    width: 275px; /* Largura fixa para uniformidade */
    padding: 15px;
    box-sizing: border-box;
}

/* Imagem do membro no formato circular */
.custom-card-img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Corpo do card */
.custom-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Alinha o conteúdo ao topo */
    text-align: center;
    width: 100%;
}

/* Título do membro */
.custom-card-title {
    font-size: 1.15rem;
    font-weight: bold;
    word-wrap: break-word;
    word-break: break-word; /* Permite quebra em palavras longas */
    hyphens: auto; /* Divide palavras automaticamente */
    margin-bottom: 13px;
    text-align: center;
    line-height: 1.5;
}

/* Texto da descrição */
.custom-card-text {
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 12px;
    word-wrap: break-word;
    word-break: break-word; /* Permite quebra em palavras longas */
}

/* Botão "Ver Lattes" sempre alinhado ao final */
.custom-btn-info {
    margin-top: auto; /* Empurra o botão para o final do card */
    text-align: center;
}

/* Row com flexbox para centralizar até 2 membros */
section .row-equipe {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start; /* Padrão: Alinhado à esquerda */
}

section .row-equipe:has(.custom-card:nth-child(-n+2)) {
    justify-content: center; /* Centralizar quando houver até 2 cards */
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .custom-card {
        width: 200px;
    }

    .custom-card-img {
        width: 120px;
        height: 120px;
    }

    .custom-card-title {
        font-size: 0.9rem;
    }

    .custom-card-text {
        font-size: 0.8rem;
    }
}

.custom-card-icons {
    display: flex;
    justify-content: center;
    gap: 10px; /* Espaçamento entre os ícones */
    margin-top: 10px;
}

.custom-card-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.custom-icon-img {
    width: 36px; /* Tamanho do ícone */
    height: 36px;
    transition: transform 0.2s ease;
}

.custom-icon-img:hover {
    transform: scale(1.2); /* Efeito de zoom ao passar o mouse */
}