/* =============================== */
/* BLOCO DE NOTÍCIAS – VERSÃO NOVA */
/* =============================== */

.bloco-noticias {
  padding: 40px 20px;
  text-align: center;
}

.bloco-noticias h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  font-weight: 700;
  color: #222;
}

/* GRID – SEMPRE 3 NO DESKTOP */
.noticias-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* CARTÃO DA NOTÍCIA */
.noticia {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: all .25s ease;
  cursor: pointer;
}

/* EFEITO HOVER (zoom + sombra + subida) */
.noticia:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* Imagem */
.noticia img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

/* Conteúdo do cartão */
.noticia h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 14px 14px 6px;
  color: #222;
}

.noticia p {
  font-size: 0.95rem;
  margin: 0 14px 10px;
  color: #555;
  line-height: 1.4;
}

.noticia small {
  font-size: 0.8rem;
  color: #888;
  margin: 4px 14px 12px;
  display: block;
}

.noticia a {
  margin: 0 14px 16px;
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}

.noticia a:hover {
  color: #004999;
}

/* ================= */
/* PAGINAÇÃO MODERNA */
/* ================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 35px auto 60px;
}

.pagination a {
  padding: 8px 14px;
  background: #e0e0e0;
  color: #333;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s;
}

.pagination a:hover {
  background: #ccc;
}

.pagination a.active {
  background: var(--accent);
  color: #fff;
}

/* ================= */
/* RESPONSIVO */
/* ================= */

/* 2 por linha no tablet */
@media (max-width: 900px) {
  .noticias-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1 por linha no celular */
@media (max-width: 600px) {
  .noticias-container {
    grid-template-columns: 1fr;
  }

  .noticia img {
    height: 180px;
  }
}