
h1 {
  text-align: center;
  margin: 40px 0 20px;
  font-size: 2.2rem;
  color: #ffffff;
}

.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 40px;
}

.card {
  background-color: #1e3c64;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #ffffff;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.card img {
  width: 100%;
  object-fit: cover;
}

.card h3 {
  font-size: 1.1rem;
  margin: 10px 16px 10px;
  color: #ffffffd6;
  text-align: center;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  background-color: #1e3c64;
  margin: auto;
  padding: 20px;
  border-radius: 8px;
  max-width: 800px;
  color: #ffffff;
  position: relative;
}

.modal-content img {
  width: 80%;
  max-width: 600px;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
}

.modal-content .fechar {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #ff6600;
  font-weight: bold;
}

#modal-descricao {
  font-size: 1rem;
  color: #f0f0f0;
}
.titulo-h1,
.subtitulo-p {
  color: white;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}
.noticias-header {
  display: flex;
  align-items: center; /* centraliza verticalmente */
  justify-content: center; /* centraliza horizontalmente */
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.noticias-img {
  width: 80px; /* ou ajuste conforme desejar */
  height: auto;
}

.titulo-h1 {
  margin: 0;
  font-size: 2.5rem;
  color: white;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}
