/*//////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////*/

                  /* Início */

/*//////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////*/

/* Definições Gerais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*//////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////*/

/* Body - Img de Fundo - Fonte */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
  background-image: url("../fundo_img/fundo_3.jpg");
  background-size: cover;       
  background-position: center;  
  background-repeat: no-repeat; 
}

/*//////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////*/

/* HEADER */

/* Header - Dimensões, Posicionamento e estilização */
header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #f9f9f9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1000;
}

/* Animação da Linha do Header" */
header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: #7cc8c6;
  width: 0%;
  animation: linhaExpandir 2s ease-out forwards;
}

/* Animação da Linha do Header - KeyFrames */
@keyframes linhaExpandir {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* Escrita do Logo "Núcleo de Estudos em Epidemiologia e Saúde Pública" */
.logo h1 {
  font-size: 14px; 
  line-height: 17px;
  margin: 0; 
  color:#296f91
}

/* Marcação do Texto da Logo = "Núcleo de Estudos" */
h1 span{
  color:  #7cc8c6;
}

/* Posicionamento da Logo e alinhamento */
.logo{
 display: flex;
 align-items: center; 
}

/* Logo do Site na navbar */
.logo-img {
  height: 110px;
  width: 130px;
  object-fit: contain;
}

/*//////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////*/

/*  Navbar  */

/* Navbar div Pai, deixa alinhada e posicionada  */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding-left: 0;
}

/* Navbar */
nav li {
  position: relative;
  padding: 10px 15px;
  border-bottom: 1px solid transparent; 
  transition: border-bottom 0.3s linear;
}

/* Navbar ao Passar com o Mouse por cima - Linha */
nav li:hover {
  border-bottom: 1px solid #1e5068;
}

/* Navbar ao Passar com o Mouse por cima */
nav a {
  text-decoration: none;
  color: #296f91;
  font-weight: 500;
  font-size: 15px;
  display: block;
}

/* Navbar ao Passar com o Mouse por cima */
nav a:hover{
  color:#1e5068 ;
}

/*//////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////*/

/* Banner */
.banner {
  background-image: url("../img_statics/home_banner.jpg");
  background-size: cover;
  background-position: center;
  height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: #333 1px solid;
  background-repeat: no-repeat;
}

/* Banner Overlay */
.banner-overlay {
  background-color: rgba(0, 0, 0, 0.79);
  color: #fff;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
}

/* Marcação de Texto do Overlay */
.banner span{
  color: #7cc8c6;
}

/* Banner Overlay - Título */
.banner-overlay h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

/* Banner Overlay - Texto */
.banner-overlay p {
  font-size: 18px;
}

/*//////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////*/

/* Cards */

/* Div Pai - Cards */
.info-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 40px 20px;
}

/* Card Estilo e dimensões */
.card {
  background-color: #ffffff;
  width: 280px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  padding: 30px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #e0f7f6;
  border: #7cc8c6 1px solid;
}

/* Card Movimentação ao passar com o mouse em cima */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Card ícone */
.card .icon {
  font-size: 25px;
  color: #7cc8c6;
  margin-bottom: 15px;
}

/* Card Título */
.card h3 {
  color: #296f91;
  margin-bottom: 10px;
}

/* Card Botão */
.card a {
  display: inline-block;
  margin-top: 10px;
  color: #fff;
  background-color: #296f91;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  width: 100%;
  transition: background-color 0.3s;
}

/* Card Botão - Colocando o Mouse em Cima */
.card a:hover {
  background-color: #1f526c;
}

/*//////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////*/

/* Footer */

footer {
  text-align: center;
  padding: 20px;
  background-color: #f5f5f5;
  color: #666;
  margin-top: 40px;
  font-size: 14px;
}

/*//////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////*/

/* Barra de Rolagem */

/* Estilo da barra de rolagem */
::-webkit-scrollbar {
  width: 10px; /* Largura da barra lateral */
}

/* Fundo da barra */
::-webkit-scrollbar-track {
  background: #f0f0f0; 
  border-radius: 10px;
}

/* Cor do scroll em si */
::-webkit-scrollbar-thumb {
  background: #7cc8c6; 
  border-radius: 10px;
  border: 2px solid #f0f0f0; 
}

/* Quando o mouse passa por cima */
::-webkit-scrollbar-thumb:hover {
  background: #296f91;
}

/*//////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////*/

/* Responsividade */

@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
  }

  .banner-overlay h2 {
    font-size: 26px;
  }

  .banner-overlay p {
    font-size: 16px;
  }
}


/*//////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////*/
                  /* Final */

/*//////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////*/