/* ═══════════════════════════════════════════════════
   NOTÍCIAS ATUAIS — Seção de feeds externos (Revista Oeste / Gazeta do Povo)
   ═══════════════════════════════════════════════════ */

.section-news-externas {
  padding: 80px 0;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.news-header {
  text-align: center;
  margin-bottom: 32px;
}

.news-section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin: 8px 0 6px;
}

.news-section-desc {
  color: #94a3b8;
  font-size: 1rem;
  margin: 0;
}

/* ABAS */
.news-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.news-tab {
  padding: 10px 24px;
  border: 2px solid #334155;
  border-radius: 30px;
  background: transparent;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-tab:hover {
  border-color: #60a5fa;
  color: #60a5fa;
}

.news-tab.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

/* GRID */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  min-height: 200px;
}

/* CARD */
.news-card {
  background: #1e293b;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #334155;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}

.news-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.news-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.news-card--featured .news-img {
  aspect-ratio: auto;
  min-height: 280px;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-img img {
  transform: scale(1.05);
}

.news-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #334155;
  font-size: 3rem;
}

.news-source-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-date {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.4;
  margin: 0 0 10px;
}

.news-card--featured .news-title {
  font-size: 1.4rem;
}

.news-excerpt {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.5;
  flex: 1;
  margin: 0 0 16px;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #60a5fa;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.news-link:hover {
  color: #93c5fd;
}

/* LOADING */
.news-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #94a3b8;
}

.news-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #334155;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* FOOTER DA SEÇÃO */
.news-footer {
  text-align: center;
  margin-top: 32px;
}

.btn-news-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #2563eb;
  color: #fff;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-news-source:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .section-news-externas {
    padding: 50px 0;
  }

  .news-section-title {
    font-size: 1.7rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card--featured {
    grid-template-columns: 1fr;
  }

  .news-card--featured .news-img {
    min-height: 200px;
  }

  .news-tabs {
    gap: 8px;
  }

  .news-tab {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}
