:root {
    --AstvColor: #146ff8; /* Azul Padrão */
    --AstvActiveColor: #8cb4ff; /* Azul Claro para links ativos */
    --wp--preset--color--white: #ffffff;
    --wp--style--global--wide-size: 1200px;
    --wp--preset--shadow--natural: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html, body {
    height: 100%;
}

main {
    flex: 1;
}


body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}




.red    { color: red; }
.blue   { color: #4ac0fd }
.green  { color: green; }
.yellow { color: yellow; }
.orange { color: #E84919; }
.purple { color: purple; }
.pink   { color: pink; }
.black  { color: black; }
.white  { color: white; }
.gray   { color: gray; }
.brown  { color: brown; }



.bold       { font-weight: bold; }
.semi-bold  { font-weight: 600; }
.light      { font-weight: 300; }

.italic     { font-style: italic; }
.uppercase  { text-transform: uppercase; }
.lowercase  { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }


.text-sm  { font-size: 12px; }
.text-md  { font-size: 16px; }
.text-lg  { font-size: 20px; }
.text-xl  { font-size: 26px; }


.underline { text-decoration: underline; }
.line-through { text-decoration: line-through; }
.no-decoration { text-decoration: none; }






.container {
    max-width: var(--wp--style--global--wide-size);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER & NAV BASE --- */
.main-header {
    background: var(--wp--preset--color--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    position: relative;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
}

/* Configuração Geral da Logo (Desktop) */
.logo img { 
    height: 100px;
    width: auto;
    display: block;
    margin-left: 50px; /* Sua margem padrão para desktop */
}

/* --- CORREÇÃO PARA MOBILE (Abaixo de 768px) --- */
@media (max-width: 768px) {
    .nav-container {
        display: flex;
        justify-content: center; /* Centraliza a logo horizontalmente */
        align-items: center;
        position: relative; /* Base para o botão absoluto */
    }

    .logo img {
        margin-left: 0; /* Remove a margem de 50px do desktop */
        height: 90px;   /* Ajuste opcional para telas menores */
    }

    .mobile-menu-btn {
        position: absolute; /* Tira o botão do fluxo para não empurrar a logo */
        left: 20px;        /* Fixa o botão na esquerda */
        margin: 0;
    }
}

.nav-menu ul { 
    display: flex; 
    list-style: none; 
    gap: 25px;
    align-items: center; 
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 20px;
    transition: 0.3s;
    display: flex;
    align-items: center;
}

/* ESTADOS DE COR */
.nav-menu a:hover {
    color: var(--AstvColor) !important;
}

.nav-menu a.active {
    color: #146ff8 !important;
}

.arrow { 
    font-size: 12px; 
    margin-left: 8px; 
    transition: transform 0.3s ease; 
}

/* --- CONFIGURAÇÃO DESKTOP --- */
@media (min-width: 769px) {
    .mobile-menu-btn { display: none; }

    .dropdown { 
        position: relative;
        height: 80px; /* Alinha com a altura do header para manter o hover */
        display: flex;
        align-items: center;
    }

    .submenu {
        position: fixed;
        top: 80px; /* Começa exatamente onde o header termina */
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background: #fff;
        min-width: 220px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-radius: 0 0 8px 8px;
        padding: 10px 0;
        list-style: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    /* Ponte invisível para o mouse não perder o foco ao descer */
    .dropdown::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 15px;
    }

    .dropdown:hover .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }

    .dropdown:hover .arrow { transform: rotate(180deg); }
}

/* --- CONFIGURAÇÃO MOBILE --- */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        background: none; border: none;
        color: var(--AstvColor); font-size: 24px; cursor: pointer;
    }

    .nav-menu {
        position: absolute;
        top: 80px; left: 0; width: 100%;
        background: white;
        display: none;
        flex-direction: column;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    }

    .nav-menu.open { display: flex !important; }
    .nav-menu ul { flex-direction: column; width: 100%; gap: 0; }
    .nav-menu a { padding: 15px 25px; width: 100%; justify-content: space-between; border-bottom: 1px solid #f0f0f0; }

    .submenu {
        display: none !important;
        position: static;
        width: 100%;
        background: #f9f9f9;
        list-style: none;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none;
    }

    .submenu.show { display: block !important; }
    .submenu li a { padding-left: 45px; border-bottom: 1px solid #eee; }
}


/* -----------------------------------------------------------------------------------------------------*/

/* Container do Cabeçalho */
.header-container {
    width: 100%;
    background: #ffffff;
    padding: 15px 20px;
    box-sizing: border-box;
}

/* Wrapper para centralizar o conteúdo igual ao resto da página */
.header-wrapper {
    max-width: 1100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

/* Lado Esquerdo (Logo e Link) */
.logo-box {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-logo {
    height: 90px; /* Ajuste conforme o tamanho real da sua imagem */
    width: auto;
}

.btn-voltar {
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    font-size: 14px;
}

/* Lado Direito (Badge/Botão) */
.badge-pill {
    background-color: #e8f4ff; /* Cor azul claro da imagem */
    color: #002d62; /* Cor azul escuro do texto da imagem */
    padding: 12px 25px;
    border-radius: 10px; /* Formato de pílula */
    font-weight: bold;
    font-size: 19px;
    cursor: default;
}

/* Responsividade */
@media (max-width: 600px) {
    .header-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    .badge-pill {
        font-size: 14px;
        padding: 8px 15px;
    }
}


/* Container Principal */
.main-content { max-width: 1100px;border-radius: 15px; margin: 10px auto; /* 🔥 centraliza */ padding: 20px; background-color: #f4f8fb; }
.section-title { font-size: 32px; font-weight: bold; margin-bottom: 25px; }
.icone-calendario {
    color: #36A0FC;
    font-size: 20px;
}

/* Card de Destaque */
.card-destaque {
    display: flex;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    gap: 30px;
}

/* Imagens */
.card-media { display: flex; gap: 10px; flex-shrink: 0; }
.card-media img { 
    max-width: 500px; 
    height: auto; 
    object-fit: cover; 
    border-radius: 10px; 
}

/* Texto */
.card-text { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.card-date { color: #555; font-size: 19px; }
.card-text h3 { font-size: 24px; line-height: 1.3; color: #000; margin: 0; }
.card-link { color: #00b0ff;font-size: 24px; text-decoration: none; }

/* Responsividade (Igual à imagem) */
@media (max-width: 850px) {
    .card-destaque { flex-direction: column; }
    .card-media { justify-content: center; }
    .card-media img { width: 45%; height: auto; }
    .card-text { text-align: center; }
}


/* --- HERO ESCOLA FULL (Replicando Imagem 7) --- */


/* --- HERO ESCOLA FULL --- */

.hero-escola-full {
    
    margin-bottom: 50px;
    position: relative;
    width: 100%;
    min-height: 70vh;
    background-image: url("../img/producoes-cientificas/Banner-superior-5.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    
}

.hero-escola-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;

    width: 100%;
    max-width: 1200px;

    margin: 0;              /* 🔥 REMOVE CENTRALIZAÇÃO */
    padding-left: 50px;     /* 🔥 JOGA PRA ESQUERDA */
}


/* 🔥 FORÇA o card pra esquerda */
.escola-card-floating {
    background: #ffffff;
    padding: 20px 60px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 10;
    max-width: 500px;
    text-align: left;
    margin-left: 0;   /* garante esquerda */
}

/* Label */
.escola-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    color: #E84919;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* Título */
.escola-card-floating h1 {
    font-size: 36px;
    color: #002d62;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}


/* --- RESPONSIVIDADE (Mobile) --- */
@media (max-width: 768px) {
    .hero-escola-full {
        min-height: auto; /* Deixa o conteúdo ditar a altura */
        padding: 40px 20px;
    }

    .hero-escola-container {
        justify-content: center; /* Centraliza o card no mobile */
    }

    .escola-card-floating {
        padding: 30px;
        text-align: center;
        border-radius: 15px;
    }

    .escola-label {
        justify-content: center;
    }

    .escola-card-floating h1 {
        font-size: 28px;
    }
}


/*-----------@-----------*/




/* Container Principal */
.section-contribuicoes {
    padding: 80px 20px;
    background-color: #f0f7ff; /* Ajuste conforme a cor de fundo do seu site */
}

.container-contribuicoes {
    
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px; /* Espaçamento entre texto e imagem */
}

/* Lado do Texto */
.text-side {
    flex: 1;
}

.text-side h2 {
    color: #002d62; /* Cor azul escuro característica */
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 25px;
}

.text-side p {
    color: #333;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Lado da Imagem */
.image-side {
    flex: 1;
}

.image-side img {
    width: 100%;
    height: auto;
    border-radius: 20px; /* Bordas arredondadas da imagem */
    display: block;
}

/* Responsividade */
@media (max-width: 992px) {
    .container-contribuicoes {
        flex-direction: column; /* Empilha os elementos em telas menores */
        gap: 30px;
    }
    
    .text-side h2 {
        font-size: 28px;
    }
}


/* ---- */



.scientific-productions {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Espaço entre os itens da lista */
    max-width: 900px;
    margin: 40px auto;
}

.prod-item {
    display: flex;
    align-items: center; /* Alinha verticalmente imagem e texto */
    text-decoration: none; /* Remove sublinhado padrão do link */
    color: #002d62; /* Cor azul institucional */
    transition: transform 0.2s ease, background-color 0.2s ease;
    padding: 10px;
    border-radius: 8px;
    margin: 15px;
}

.prod-item:hover {
    background-color: #f0f7ff; /* Efeito suave de destaque ao passar o mouse */
    transform: translateX(5px); /* Efeito de movimento lateral */
}

.prod-img {
    width: 450px; /* Largura fixa da imagem */
    height: auto;
    border-radius: 4px;
    margin-right: 30px; /* Espaçamento entre a imagem e o texto */
    flex-shrink: 0; /* Garante que a imagem não encolha */
}

.prod-text h3 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Responsividade: Empilha imagem e texto em telas menores */
@media (max-width: 600px) {
    .prod-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .prod-img {
        width: 85%;
        margin-right: 0;
        margin-bottom: 15px;
    }
}






/* ---- */



.section-congressos {
    padding: 60px 20px;
    background-color: #f9f9f9; /* Fundo suave */
}

.grid-congressos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}



.container-poster h2 {
    font-size: 40px;
    text-align: center;
     margin-bottom: 35px;
}


.card-trabalho {
    background: #fff3ee;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}



.icone-doc {
    color: #00B1ED;
    font-size: 25px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}


.label-poster {
    font-weight: bold;
    color: #002d62;
    font-size: 22px;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
}

.card-trabalho h3 {
    font-size: 19px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 10px;
    flex-grow: 1;
    font-weight: 450;
}

.btn-ver-mais {
    position: relative;
    color: #00B1ED;
    font-weight: 600;
    text-decoration: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 5px;

    transition: all 0.3s ease;
}

/* linha animada */
.btn-ver-mais::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: #00B1ED;
    transition: 0.3s;
}

.btn-ver-mais:hover {
    color: #007bb5;
}

.btn-ver-mais:hover::after {
    width: 100%;
}



.icone-download {
    transition: transform 0.3s ease;
}

.btn-ver-mais:hover .icone-download {
    transform: translateY(3px);
}


/* Responsividade */
@media (max-width: 992px) {
    .grid-congressos {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas em tablets */
    }
}

@media (max-width: 600px) {
    .grid-congressos {
        grid-template-columns: 1fr; /* 1 coluna em mobiles */
    }
}



/* ---- */


.section-congressos2 {
    padding: 60px 20px;
    background-color: #edf7ff; /* Fundo suave */
}


/* --- */



.section-videos {
    padding: 60px 20px;
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header com Título e Botão */
.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.btn-youtube {
    background-color: #ff4500; /* Cor Laranja/Vermelha da imagem */
    color: white;
    padding: 5px 30px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: bold;

     transition: all 0.3s ease;
}


.btn-youtube:hover {
    background-color: rgb(216, 67, 12);
    transform: translateY(-3px);
    box-shadow: #e55800;
}


/* Grid de Vídeos */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Proporção 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 10px;

    transition: all 0.3s ease;
}


.video-container:hover {
    background-color: rgb(70, 70, 70);
    transform: translateY(-3px);
    box-shadow:0px 3px 7px #0000008f;
}


.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsividade */
@media (max-width: 992px) {
    .videos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .videos-grid { grid-template-columns: 1fr; }
    .container-header { flex-direction: column; gap: 15px; }
}









/* ---- */



/* -----------------------------------------------------------------------------------------------------*/

.main-footer {
    background-color: #f8fbff; /* Fundo leve para contraste */
    padding: 80px 0 0 0;
    border-top: 1px solid #e1e8f0;
    color: #002d62;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 60px;
}

/* Coluna da Logo */
.footer-brand {
    flex: 1 1 250px;
}

.footer-logo {
    max-width: 90px;
    margin-bottom: 30px;
}

.social-title {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 18px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    font-size: 22px;
    color: #002d62;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #146ff8; /* Azul destaque no hover */
}

/* Colunas de Links */
.footer-links {
    flex: 1 1 180px;
}

.footer-links h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #002d62;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 5px;
    font-weight: 600;
}

.footer-links ul li a {
    text-decoration: none;
    color: #555;
    font-size: 15px;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: #146ff8;
    padding-left: 5px; /* Efeito suave de deslocamento */
}

/* Utilitários */
.mt-20 { margin-top: 30px; }

/* Barra de Copyright */
.footer-bottom {
    background: linear-gradient(to bottom, #4ac0fd, #246c94, #12394e);
    padding: 20px 0;
    color: #fff;
    text-align: center;
    font-size: 14px;

    border-top: 1.5px solid #000000;
}

/* Responsividade */
@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-links ul li a:hover {
        padding-left: 0;
    }
}
