.team {
    max-width: 1200px;
    margin: 50px auto;
    padding: 40px;
}
.team > .texto {
    text-align: center;
    margin-bottom: 30px;
}
.team > .texto h1 {
    font-size: 2.4rem;
    color: #1d4e89;
    margin-bottom: 15px;
}
.team > .texto p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
    max-width: 900px;
    margin: auto;
}
.team > .imagem{
    text-align: center;
    margin-bottom: 50px;
}
.team > .imagem img {
    width: 100%;
    max-width: 700px;
    border-radius: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.professor {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    margin-bottom: 40px;
}
.foto img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #4a90e2;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}
.foto img:hover {
    transform: scale(1.05);
}
.info {
    flex: 1;
}
.info h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1d4e89;
    margin-bottom: 20px;
    justify-content: flex-start;
}

.flag {
    width: 26px;
    height: 18px;
    
}
.info p {
    line-height: 1.8;
    color: #333;
}
.card4 ul {
    margin: 20px 0 20px 25px;
}
.card4 li {
    color: #333;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 12px;
}
.card4 li::marker {
    color: #4a90e2;
}
.card1 {
    background: linear-gradient(135deg, #ffffff, #00ffff);
}
.card2 {
    background: linear-gradient(135deg, #ffffff, #b20202fc);
}
.card3 {
    background: linear-gradient(135deg, #ffffff, #0693e3);
}
.card4 {
    background: linear-gradient(135deg, #ffffff, #205A28);
}
.card5 {
    background: linear-gradient(135deg, #ffffff, #FF78AC);
}
.card6 {
    background: linear-gradient(135deg, #ffffff, #51e0e0, #07e35c);
}
@media(max-width: 850px) {
    .team {
        margin: 30px 15px;
        padding: 20px;
    }
    .team > .texto h1 {
        font-size: 1.8rem;
    }
    .team > .texto p {
        font-size: 1rem;
    }
    .team > .imagem img {
        max-width: 100%;
    }
    .professor {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
        padding: 25px 20px;
    }
    .foto img {
        width: 180px;
        height: 180px;
    }
    .info h2 {
        justify-content: center;
        flex-wrap: wrap;
        font-size: 1.5rem;
    }
    .info p {
        text-align: left;
        font-size: 1rem;
    }
    .flag {
        text-align: left;
        font-size: 1rem;
    }
}