/* seção "Notícias do mercado financeiro" */

.news {
  background: var(--b3-gray-light);
  padding: 64px 0;
}
.news .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.news-header {
  text-align: center;
  margin-bottom: 40px;
}
.news-header h2 {
  font-size: 36px;
  font-weight: 400;
  color: var(--b3-text-primary);
  margin-bottom: 12px;
}
.news-header p {
  font-size: 18px;
  font-weight: 400;
  color: var(--b3-text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--b3-white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.news-card .body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.news-card .tag {
  color: var(--b3-cyan-accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.news-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--b3-text-primary);
  line-height: 1.35;
}
.news-card time {
  margin-top: auto;
  color: var(--b3-text-muted);
  font-size: 13px;
}

@media (max-width: 768px) {
  .news { padding: 40px 0; }
  .news-header h2 { font-size: 28px; }
  .news-header p { font-size: 16px; }
  .news-grid { grid-template-columns: 1fr; }
}
