/* ==========================================================================
   TEACHER.HTML - Página de Professores (CDL - Portal 2026)
   ========================================================================= */

/* --------------------------------------------------------------------------
   Cabeçalho Otimizado (Mantendo as cores escuras clássicas pedidas)
   -------------------------------------------------------------------------- */
.page-header {
    background: linear-gradient(rgba(52, 58, 64, 0.85), rgba(33, 37, 41, 0.95)), url('../img/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    padding: 20px 0 !important;      /* Mantém a altura compacta e otimizada */
    margin-bottom: 35px !important;  /* Alinhado com o padrão das outras páginas */
    border-bottom: 4px solid #343a40;
}

/* --------------------------------------------------------------------------
   Grid de Professores & Efeitos Dinâmicos (Team Section)
   -------------------------------------------------------------------------- */
.team-item {
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    position: relative;
}

/* Efeito de Elevação do Card no Hover */
.team-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Contentor da Imagem */
.team-img {
    position: relative;
    overflow: hidden;
}

/* Efeito Zoom Suave na Foto do Professor */
.team-img img {
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    height: auto;
}

.team-item:hover .team-img img {
    transform: scale(1.06);
}

/* --------------------------------------------------------------------------
   Painel de Redes Sociais Dinâmico (Revelação no Hover)
   -------------------------------------------------------------------------- */
.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(33, 37, 41, 0.65); /* Película escura translúcida */
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

/* Revela o fundo escuro ao passar o rato */
.team-item:hover .team-social {
    opacity: 1;
}

/* Botões de Redes Sociais com efeito de subida (Slide-up) */
.team-social .btn-square {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    margin: 0 5px;
}

/* Ativa a subida dos botões individualmente com pequenos delays para dinamismo */
.team-item:hover .team-social .btn-square:nth-child(1) { transform: translateY(0); transition-delay: 0.05s; }
.team-item:hover .team-social .btn-square:nth-child(2) { transform: translateY(0); transition-delay: 0.10s; }
.team-item:hover .team-social .btn-square:nth-child(3) { transform: translateY(0); transition-delay: 0.15s; }

/* Hover individual nos ícones sociais */
.team-social .btn-square:hover {
    background-color: #0284c7 !important; /* Cor primária do portal */
    border-color: #0284c7 !important;
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   Bloco de Texto (Nome e Cargo)
   -------------------------------------------------------------------------- */
.bg-secondary {
    background-color: #f8fafc !important; /* Mudado de cinza genérico para um tom off-white limpo */
    border-top: 1px solid #e2e8f0;
    transition: background-color 0.3s ease;
}

/* O fundo do nome destaca-se discretamente quando o card é focado */
.team-item:hover .bg-secondary {
    background-color: #ffffff !important;
}

.bg-secondary h5 {
    color: #0f172a;
    font-weight: 600;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.team-item:hover .bg-secondary h5 {
    color: #0284c7; /* Nome assume a cor de destaque do portal */
}

.bg-secondary p {
    color: #64748b;
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Elementos de Layout Globais (Newsletter & Ajustes)
   -------------------------------------------------------------------------- */
.btn-square {
    width: 38px;
    height: 38px;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

/* Customização dos inputs de Newsletter para manter coerência visual */
.input-group .form-control:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 0.2rem rgba(2, 132, 199, 0.25);
}

/* --------------------------------------------------------------------------
   Responsividade Adaptativa
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    /* Em touchscreens o efeito de hover é simplificado para evitar bugs visuais */
    .team-item:hover {
        transform: translateY(-3px);
    }
    .team-social {
        background: rgba(33, 37, 41, 0.4);
    }
    .team-social .btn-square {
        transform: translateY(0);
    }
}