/* Layout do perfil do secretário */
.perfil-secretario {
    overflow: hidden; /* necessário para conter os floats */
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

/* Faixa superior colorida */
.perfil-secretario::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3, #004085);
    border-radius: 15px 15px 0 0;
}

/* Imagem do secretário */
.perfil-foto-container {
    float: left;
    width: 200px;
    margin-right: 20px;
    display: block;
}

.perfil-foto-wrapper {
    width: 100%;
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.perfil-foto-wrapper:hover {
    transform: translateY(-5px);
}

.perfil-foto {
    width: 100%;
    border-radius: 12px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 3px solid #ffffff;
    position: relative;
}

.perfil-foto::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 86, 179, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.perfil-foto:hover {
    /* transform: scale(1.03); */
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 8px 15px rgba(0, 0, 0, 0.15);
}

.perfil-foto:hover::after {
    opacity: 1;
}

/* Nome do secretário */
.perfil-nome {
    text-align: center;
    margin-top: 10px;
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.15rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* .perfil-nome span {
    display: block;
    transition: color 0.2s ease;
    border-bottom: 2px solid red;
} */

/* Área de conteúdo/texto */
.perfil-conteudo {
    overflow: hidden; /* força o texto a quebrar e continuar abaixo da imagem */
}

.perfil-texto {
    text-align: justify;
    line-height: 1.7;
    color: #495057;
    font-size: 1rem;
    margin-bottom: 0;
}

.perfil-texto p {
    /* margin-bottom: 1.2rem; */
    transition: color 0.2s ease;
}

.perfil-texto:hover {
    color: #343a40;
}

/* Animação sutil de entrada */
.animacao-entrada {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efeito glassmorphism */
.card.card-body {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0px 32px rgba(0, 0, 0, 0.1);
}

/* RESPONSIVIDADE */

/* Small devices (≤767.98px) */
@media (max-width: 767.98px) {
    .perfil-secretario {
        display: block;
        padding: 1.5rem;
    }

    .perfil-foto-container {
        float: none;
        width: 100%;
        margin-right: 0;
        display: flex;
        justify-content: center;
    }

    .perfil-foto-wrapper {
        width: 60%;
        max-width: 280px;
    }

    .perfil-nome {
        font-size: 1.25rem;
        margin-top: 20px;
    }

    .perfil-conteudo {
        overflow: visible;
        width: 100%;
    }

    .perfil-texto {
        text-align: left;
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Extra small devices (<576px) */
@media (max-width: 575.98px) {
    .perfil-foto-wrapper {
        width: 80%;
        max-width: 250px;
    }

    .perfil-texto {
        font-size: 0.9rem;
    }

    .perfil-nome {
        font-size: 1.15rem;
    }
}

