/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f4f5f7;
  color: #222;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  color: #002FD8;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #1b46f2;
  text-decoration: underline;
}

.container, .main-container {
  width: 100%;
  max-width: 1240px;
  margin: auto;
  padding: 20px;
}

/* Header e navegação */
header, nav, footer {
  background: #101010;
  color: white;
}
nav a {
  padding: 12px 18px;
  display: inline-block;
  color: #eee;
  font-weight: 500;
}
nav a:hover {
  background: #1a1a1a;
  color: #fff;
}

/* Destaque principal */
.destaque-principal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-bottom: 50px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 30px;
}
.destaque-principal img {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.destaque-principal img:hover {
  transform: scale(1.02);
}
.destaque-principal .texto h2 {
  font-size: 2.2em;
  color: #111;
  margin-bottom: 10px;
}
.destaque-principal .texto p {
  font-size: 1.1em;
  color: #444;
}

/* Bloco de categoria */
.categoria-bloco {
  margin-bottom: 60px;
}
.categoria-bloco h3 {
  font-size: 1.6em;
  border-left: 6px solid #002FD8;
  padding-left: 12px;
  margin-bottom: 20px;
  color: #111;
}

/* Grade de notícias */
.grid-noticias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

/* Cartão de notícia */
.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.card img {
  width: 100%;
  object-fit: cover;
}
.card.img-destaque {
  min-height: 680px;
}
.card.img-destaque .img-principal {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Imagem principal destacada */
.img-principal {
  width: 100%;
  height: 680px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.card .conteudo {
  padding: 15px;
}
.card .conteudo h4 {
  font-size: 1.1em;
  margin-bottom: 8px;
  color: #111;
}
.card .conteudo p {
  font-size: 0.95em;
  color: #555;
}
.card .conteudo small {
  display: block;
  margin-top: 6px;
  color: #999;
  font-size: 0.8em;
}

/* Layout lado a lado */
.linhas-agrupadas {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 60px;
}
.linhas-agrupadas > div,
.linhas-agrupadas > aside {
  flex: 1;
  min-width: 280px;
}

/* Mais lidas */
.mais-lidas-lista {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mais-lidas-lista li {
  background: #e8f1ff;
  border: 1px solid #c2dbf8;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: background 0.3s;
}
.mais-lidas-lista li:hover {
  background: #d8eaff;
}
.mais-lidas-lista a {
  color: #002FD8;
  font-weight: 500;
  display: block;
}

/* Scroll infinito */
#mais-noticias {
  text-align: center;
  font-size: 1.1em;
  color: #555;
  padding: 20px 0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

/* Responsividade */
@media screen and (max-width: 768px) {
  .destaque-principal {
    flex-direction: column;
  }
  .destaque-principal img {
    max-width: 100%;
  }
  .linhas-agrupadas {
    flex-direction: column;
  }
  .mais-lidas {
    width: 100%;
  }
  nav a {
    padding: 10px 14px;
    font-size: 0.95em;
  }
}
