/* style.css – Laboratório BioGC – Paleta Atualizada e Otimizada */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8fafc;
    color: #2c3e50;
    line-height: 1.6;
    font-style: normal;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Cabeçalho e Navegação ===== */
.header {
    background-color: #ffffff;
    color: #003f44;
    padding: 1rem 0;
    border-bottom: 2px solid #003f44;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.fiocruz-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    padding: 0;
    font-weight: 700;
    border-right: 1px solid #e0e0e0;
    padding-right: 1rem;
}

.fiocruz-symbol {
    font-size: 2rem;
    margin-bottom: -0.2rem;
}

.fiocruz-name {
    font-size: 0.7rem;
    letter-spacing: 0;
    color: #003f44;
}

.lab-name h1 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
    color: #003f44;
}

.lab-subtitle {
    font-size: 0.75rem;
    color: #5a6e7c;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

.main-nav a {
    color: #003f44;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: #003f44;
    text-decoration: underline;
}

/* ===== Hero (não usado, mantido para referência) ===== */
.hero {
    background: linear-gradient(105deg, #ffffff 0%, #f0f4f5 100%);
    padding: 4rem 0;
    border-bottom: 1px solid #dce4e8;
}
.hero h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #003f44;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}
.btn-primary {
    background-color: #003f44;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-primary:hover {
    background-color: #00252e;
}

/* ===== Seções e Tipografia ===== */
.section {
    padding: 4rem 0;
}

/* Título das seções (gerado pelos módulos dinâmicos) */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #003f44;
    margin-bottom: 2rem;
    border-left: 5px solid #003f44;
    padding-left: 1rem;
}

/* Fallback para títulos dentro de .section (caso algum módulo use <h2> direto) */
.section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #003f44;
    margin-bottom: 2rem;
    border-left: 5px solid #003f44;
    padding-left: 1rem;
}

.bg-light {
    background-color: #ffffff;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

/* ===== Cards e Informações ===== */
.info-card,
.pesquisa-item,
.grupo-pesquisador,
.membro-card,
.egresso-card,
.parceiro-card {
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border-left: 4px solid #003f44;
}

.info-card {
    padding: 1.2rem;
    margin-bottom: 1rem;
}
.info-card i {
    font-size: 1.8rem;
    color: #003f44;
    margin-bottom: 0.5rem;
}

.pesquisa-item {
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.2s;
}
.pesquisa-item:hover {
    transform: translateY(-5px);
}
.pesquisa-item i {
    font-size: 2.5rem;
    color: #003f44;
    margin-bottom: 1rem;
}

/* ===== Equipe e Membros ===== */
.grupo-pesquisador {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: #ffffff;
    border-left: 4px solid #003f44;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.pesquisador-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.pesquisador-header h3 {
    font-size: 1.4rem;
    color: #003f44;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pesq-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.pesq-titulo {
    font-weight: 600;
    color: #003f44;
    background: #e9ecef;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.pesq-email {
    font-size: 0.8rem;
    color: #5a6e7c;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.toggle-details {
    background: none;
    border: 1px solid #003f44;
    color: #003f44;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
    padding: 0.2rem 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 20px;
    transition: all 0.2s;
}
.toggle-details:hover {
    background: #003f44;
    color: white;
}

.extra-details {
    display: none;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #e0e0e0;
}
.extra-details.show {
    display: block;
}

.pesq-apresentacao {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #2c3e50;
}

.projetos-list {
    background: #f8fafc;
    padding: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    border-left: 3px solid #003f44;
}
.projeto-item {
    margin-bottom: 0.5rem;
}
.projeto-titulo {
    font-weight: 700;
    color: #003f44;
}

.membros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
    margin-top: 1rem;
}

.membro-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: 1rem;
    border-left: 3px solid #003f44;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.membro-foto {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.8rem;
    border: 2px solid #003f44;
}

.membro-card .nome {
    font-weight: 700;
    font-size: 1rem;
    color: #003f44;
    display: block;
    margin-bottom: 0.25rem;
}

.membro-card .cargo {
    font-size: 0.8rem;
    color: #5a6e7c;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.coorientador {
    font-size: 0.7rem;
    color: #003f44;
    margin-top: 0.2rem;
    background: #f0f4f5;
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 12px;
    font-style: normal; /* removido itálico */
}

.social-links {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-links a {
    color: #5a6e7c;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.social-links a:hover {
    color: #003f44;
}

/* ===== Egressos ===== */
.egresso-card {
    background: #ffffff;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid #003f44;
}
.egresso-card .nome {
    font-weight: 700;
    color: #003f44;
}

/* ===== Parceiros ===== */
.parceiro-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

.parceiro-logo {
    max-width: 100px;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.parceiro-card .nome {
    font-weight: 700;
    font-size: 0.9rem;
    color: #003f44;
    display: block;
}

/* Grid de parceiros (adicionei) */
.parceiros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* ===== Galeria ===== */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.galeria-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.2s;
}
.galeria-item img:hover {
    transform: scale(1.02);
}

/* ===== Oportunidades ===== */
.oportunidades-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.oportunidade-card {
    background: #f8fafc;
    padding: 1rem;
    border-left: 4px solid #003f44;
}
.oportunidade-titulo {
    font-weight: 700;
    color: #003f44;
    margin-bottom: 0.25rem;
}
.oportunidade-descricao {
    font-size: 0.9rem;
    color: #2c3e50;
}
.oportunidade-link {
    font-size: 0.8rem;
    color: #003f44;
    text-decoration: none;
    font-weight: 600;
}

/* ============================================================
   SEÇÃO DE PUBLICAÇÕES - ESTILO MODERNIZADO
   ============================================================ */

.publicacoes-lista {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.publicacao {
    display: flex;
    gap: 1.5rem;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #003f44;
    transition: box-shadow 0.25s ease-in-out, transform 0.2s ease;
}
.publicacao:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}

.pub-year {
    font-weight: 700;
    font-size: 1.4rem;
    color: #003f44;
    min-width: 70px;
    padding-top: 0.1rem;
    line-height: 1.2;
}

.pub-detalhe {
    flex: 1;
}

.pub-detalhe h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a2c3e;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.pub-autores {
    font-size: 0.9rem;
    color: #5a6e7c;
    margin-bottom: 0.2rem;
}
.pub-autores a {
    color: #003f44;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px dotted transparent;
    transition: border-color 0.2s;
}
.pub-autores a:hover {
    border-bottom-color: #003f44;
}

.pub-periodico {
    font-size: 0.85rem;
    color: #6c7a89;
    margin-bottom: 0.5rem;
    font-style: normal; /* removido itálico */
}
.pub-periodico .pub-doi {
    font-style: normal;
    font-weight: 500;
    color: #003f44;
    margin-left: 0.5rem;
}

.pub-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.pub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    background: #f0f4f8;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    text-decoration: none;
    color: #003f44;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, transform 0.1s;
}
.pub-link:hover {
    background: #003f44;
    color: white;
    transform: scale(1.02);
}

.pub-link.pdf-link {
    background: #e8edf2;
    color: #cc3121;
}
.pub-link.pdf-link:hover {
    background: #cc3121;
    color: white;
}

.pub-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #e9ecef;
    color: #5a6e7c;
    margin-left: 0.5rem;
    vertical-align: middle;
}
.pub-badge.open-access {
    background: #d4edda;
    color: #155724;
}
.pub-badge.pdf-available {
    background: #f8d7da;
    color: #721c24;
}

/* ===== Contato e Rodapé ===== */
.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contato-info i,
.localizacao i {
    width: 1.8rem;
    color: #003f44;
}

.social-footer a {
    background: #e9ecef;
    color: #003f44;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    border-radius: 50%;
    transition: background 0.2s;
    display: inline-block;
    margin-right: 0.5rem;
}
.social-footer a:hover {
    background: #003f44;
    color: white;
}

.footer {
    background: #003f44;
    color: #e9ecef;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
}
.footer a {
    color: #ffc107;
}

/* ===== Utilidades ===== */
.loading {
    text-align: center;
    padding: 2rem;
    font-style: normal;
    color: #5a6e7c;
}

.language-selector {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}
.lang-btn {
    background: none;
    border: 1px solid #003f44;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    border-radius: 4px;
    color: #003f44;
}
.lang-btn.active {
    background: #003f44;
    color: white;
}

/* ===== Announcements ===== */
.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.announcement-card {
    background: #ffffff;
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid #003f44;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.announcement-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.announcement-header {
    display: flex;
    justify-content: flex-start;
}

.announcement-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.announcement-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #003f44;
    margin: 0.2rem 0;
}

.announcement-description {
    font-size: 0.9rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    flex: 1;
}

.announcement-footer {
    margin-top: 0.3rem;
}

.announcement-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #003f44;
    text-decoration: none;
    border-bottom: 1px dotted transparent;
    transition: border-color 0.2s;
}
.announcement-link:hover {
    border-bottom-color: #003f44;
}

/* ===== Responsividade ===== */
@media (max-width: 880px) {
    .header-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .section h2 {
        font-size: 1.6rem;
    }
    .contato-grid {
        grid-template-columns: 1fr;
    }
    .galeria-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .pesquisador-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .publicacao {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    .pub-year {
        min-width: auto;
        font-size: 1.2rem;
    }
    .pub-detalhe h4 {
        font-size: 1rem;
    }
    .pub-actions {
        gap: 0.5rem;
    }
    .pub-link {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}
