/* ── Página de Notícias (/noticias) ───────────────────────────────────────── */
.noticias-section {
  padding-top: 60px;
  padding-bottom: 80px;
}

.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.noticia-card {
  background: var(--bg-panel);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.noticia-card:hover {
  border-color: var(--lime);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(102, 255, 51, 0.12);
}

.noticia-fonte {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--lime);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
}

.noticia-titulo {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  color: var(--white);
  line-height: 1.3;
}

.noticia-resumo {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.noticia-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue-sky);
}

.noticia-card:hover .noticia-link { color: var(--lime); }

.noticias-aviso {
  margin-top: 2.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Modal leitor de matéria (iframe) ─────────────────────────────────────── */
.noticia-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 30, 0.85);
  z-index: 1000;
  padding: 2.5vh 3vw;
}

.noticia-modal.aberto {
  display: flex;
  align-items: center;
  justify-content: center;
}

.noticia-modal-box {
  width: 100%;
  height: 95vh;
  max-width: 1100px;
  background: var(--bg-panel);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.noticia-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-field);
  border-bottom: 1px solid var(--blue-border);
}

.noticia-modal-fonte {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--lime);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.noticia-modal-acoes {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.noticia-modal-link {
  font-size: 0.85rem;
  color: var(--blue-sky);
  white-space: nowrap;
}

.noticia-modal-link:hover { color: var(--lime); }

.noticia-modal-fechar {
  background: transparent;
  border: 1px solid var(--blue-border);
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: border-color 0.2s, color 0.2s;
}

.noticia-modal-fechar:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.noticia-modal-iframe {
  flex: 1;
  width: 100%;
  border: none;
  background: var(--white);
}

@media (max-width: 640px) {
  .noticia-modal { padding: 0; }
  .noticia-modal-box { height: 100vh; border-radius: 0; max-width: 100%; }
}
