/* ------------------------- professores -- */
.professores {
    background: linear-gradient( to bottom, #1f2937 0%, #312d65 100% );
    padding: 20px 0;
}

.professores-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.professores h1 {
    color: #ffffff;
    text-align: center;
}

.professores-titulo-desktop {
    display: block;
}

.professores-titulo-mobile {
    display: none;
}

.professores-intro {
    max-width: 850px;
    margin: 0 auto 50px;
    text-align: center;
}

.professores-intro p {
    color: #ffffff;
    opacity: 0.9;
    line-height: 1.6;
}

/* grid */
.professores-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* card */
.professor-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px;
    min-width: 0;
}

/* topo */
.professor-topo {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* imagem */
.professor-topo img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00ff99;
}

/* info */
.professor-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

/* nome */
.professor-info h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #111827;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

/* disciplina */
.professor-disciplina {
    display: block;
    color: #312d65;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 2px;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ------------------------- mobile -- */
@media (max-width: 768px) {
    .professores {
        padding: 20px 16px;
    }
    .professores-container {
        padding: 0 10px;
    }
    .professores h1 {
        margin-bottom: 20px;
    }

    .professores-titulo-desktop {
        display: none;
    }

    .professores-titulo-mobile {
        display: block;
    }

    .professores-intro{
        display: none;
    }

    .professores-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .professor-card {
        padding: 16px 10px;
        min-width: 0;
    }

    .professor-topo {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    .professor-info {
        align-items: center;
        text-align: center;
    }
    .professor-topo img {
        width: 60px;
        height: 60px;
    }
    .professor-info h3 {
        font-size: 1.10rem;
    }
    .professor-disciplina {
        font-size: 0.85rem;
    }
}

@media (max-width: 380px) {

    .professores-grid{
        gap:10px;
    }

    .professor-card{
        padding:14px 8px;
    }

}
