section {
  padding: 20px 0;
  text-align: left;
  background-color: #f0f0f0;
}

/*NOTÍCIAS*/

.banner-noticia {
  background: linear-gradient(90deg, #37AF8F 40%, #007EA7 60%);
  color: white;
  text-align: center;
  padding: 5px 0;
  margin-top: 40px;
}

.banner-noticia h1 {
  font-size: 2rem;
  font-weight: 700;
}

/*DESCRIÇÃO*/

.noticia {
  background-color: #FFFFFF;
  text-align: center;
  padding: 30px 20px;

}

.noticia-container {
  max-width: 800px;
  margin: 0 auto;
}

.noticia p {
  font-size: 1.1rem;
  color: #353D3F;
  margin-bottom: 3px;
}

/*LISTA DE NOTICIAS*/

#lista-noticias {
  width: 90%;
  max-width: 1300px;
  margin: 40px auto;
}

#lista-noticias.varias-noticias {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

#lista-noticias.uma-noticia {
  display: flex;
  justify-content: center;
}

#lista-noticias.uma-noticia .noticia-corpo {
  max-width: 600px;
  width: 100%;
}

#lista-noticias .conteudo{
  white-space: pre-line;
}

/* CARD DA NOTÍCIA */

.noticia-card {
  background: #FFFFFF;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  aspect-ratio: 1 / 1;
}

.noticia-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.noticia-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*Notícia*/

.noticia-corpo .titulo {
  font-size: 32px;
  margin-bottom: 10px;
  color: #222;
}

.noticia-corpo .subtitulo {
  font-size: 18px;
  color: #666;
  margin-bottom: 20px;
}

.noticia-corpo img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.noticia-corpo .conteudo {
  font-size: 17px;
  line-height: 1.7;
  color: #333;
  text-align: justify;
}

/*Administrativo*/

.administrativo {
    margin-top: 30px;
    text-align: center;
    margin-bottom: 20px;
}

.administrativo .btn {
    background-color: #37AF8A;
    color: white;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.administrativo .btn:hover {
    background-color: #267D63;
}

/*RESPONSIVIDADE - TELAS MÉDIAS (ATÉ 1024px)*/
@media (max-width: 1024px) {

  /* Notícia lista */
  .noticia-card {
    gap: 20px;
   }

   .noticia-card img {
     width: 240px;
     height: 160px;
    }
    
   #lista-noticias.varias-noticias {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* RESPONSIVIDADE - MOBILE (ATÉ 768px)*/

@media (max-width: 768px) {

  /* Banner */
  .banner-noticia h1 {
    font-size: 1.6rem;
  }

  /* Notícia individual */
  .noticia-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .noticia-card img {
    width: 100%;
    max-width: 400px;
    height: auto;
  }

  .noticia-info p {
    font-size: 1rem;
  }

  .btn-noticia {
    width: 70%;
    text-align: center;
  }
}


/*RESPONSIVIDADE - MOBILE PEQUENO (ATÉ 480px)*/

@media (max-width: 480px) {

  .banner-noticia h1 {
    font-size: 1.3rem;
  }

  .noticia p {
    font-size: 1rem;
  }

  /* Cards */
  .noticia-card {
    padding: 15px;
  }

  .btn-noticia {
    width: 85%;
    font-size: 0.95rem;
  }
  
  #lista-noticias.varias-noticias {
    grid-template-columns: 1fr;
  }
}





