/* Eyebrow */
.news-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.ne-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand, #0057ff);
}
.ne-ring {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--brand, #0057ff);
}
.ne-line {
  width: 34px;
  height: 2px;
  background: var(--brand, #0057ff);
  opacity: 0.5;
}
.ne-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand, #0057ff);
}

/* HERO */
.news-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 64px;
  background: linear-gradient(180deg, #eef3fb 0%, #ffffff 100%);
}
.news-hero::after {
  content: '';
  position: absolute;
  top: -130px;
  right: -90px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 87, 255, 0.13), transparent 70%);
  pointer-events: none;
}
.news-hero-wrap {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.news-hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #0d1117;
  margin: 0 0 18px;
  max-width: 16ch;
}
.news-hero h1 em {
  font-style: normal;
  color: var(--brand, #0057ff);
}
.news-hero p {
  font-size: 1.08rem;
  line-height: 1.6;
  color: #5a636f;
  max-width: 54ch;
  margin: 0;
}

/* LISTAGEM */
.news-section {
  background: #ffffff;
  padding: 56px 0 100px;
}
.news-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

/* ========== CARD REDESIGN COMPLETO ========== */
.news-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  border: 1px solid #edf0f5;
}

.news-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 87, 255, 0.25);
  box-shadow: 0 20px 48px -20px rgba(0, 87, 255, 0.3);
}

/* ===== IMAGEM - TAMANHO EQUILIBRADO ===== */
.news-card-img {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f4fa, #e4ebf5);
  width: 100%;
  /* Altura equilibrada para a imagem ser visível mas não dominar o card */
  height: 200px;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  object-fit: cover;
  object-position: center;
}

.news-card:hover .news-card-img img {
  transform: scale(1.05);
}

/* ===== BADGE DE CATEGORIA ===== */
.news-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 87, 255, 0.92);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 87, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== PLACEHOLDER SEM IMAGEM ===== */
.news-card-img.no-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f4fa, #e4ebf5);
  position: relative;
}

.news-card-img.no-img .no-img-icon {
  font-size: 3.5rem;
  color: rgba(0, 87, 255, 0.15);
  display: block;
}

.news-card-img.no-img .no-img-label {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: rgba(0, 87, 255, 0.3);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.7);
  padding: 3px 14px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* ===== CORPO DO CARD ===== */
.news-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #ffffff;
}

/* ===== DATA NO CORPO ===== */
.news-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.74rem;
  color: #8a929e;
}

.news-card-meta .date {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: #6b7482;
}

.news-card-meta .date i {
  font-size: 0.9rem;
  color: var(--brand, #0057ff);
  opacity: 0.6;
}

.news-card-meta .divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d0d7e2;
}

.news-card-meta .author {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #8a929e;
  font-weight: 500;
}

.news-card-meta .author i {
  font-size: 0.8rem;
}

/* Título */
.news-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0d1117;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.news-card:hover .news-card-title {
  color: var(--brand, #0057ff);
}

/* Resumo */
.news-card-excerpt {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #5a636f;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ===== BOTÃO LER MAIS ===== */
.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
}

.news-card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand, #0057ff);
  transition: gap 0.3s ease;
  letter-spacing: 0.02em;
}

.news-card-more i {
  transition: transform 0.3s ease;
  font-size: 1rem;
}

.news-card:hover .news-card-more {
  gap: 12px;
}

.news-card:hover .news-card-more i {
  transform: translateX(4px);
}

/* ===== TAG DE LEITURA ===== */
.news-card-readtime {
  font-size: 0.68rem;
  color: #a8b0bc;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 3px;
}

.news-card-readtime i {
  font-size: 0.8rem;
}

/* Estado vazio */
.news-empty {
  text-align: center;
  padding: 80px 20px;
  color: #8a929e;
}

.news-empty i {
  font-size: 3.4rem;
  display: block;
  margin-bottom: 16px;
  color: rgba(0, 87, 255, 0.2);
}

.news-empty p {
  font-size: 1.05rem;
  margin: 0;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
  .news-hero {
    padding: 120px 0 44px;
  }
  .news-hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
  }
  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
  .news-card-body {
    padding: 16px 18px 20px;
  }
  .news-card-title {
    font-size: 0.95rem;
  }
  .news-card-img {
    height: 180px;
  }
  .news-card-img.no-img {
    height: 180px;
  }
  .news-card-meta {
    font-size: 0.7rem;
    flex-wrap: wrap;
    gap: 5px;
  }
  .news-card-excerpt {
    font-size: 0.84rem;
  }
}

@media (max-width: 480px) {
  .news-hero {
    padding: 100px 0 36px;
  }
  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .news-section {
    padding: 36px 0 60px;
  }
  .news-card-body {
    padding: 14px 16px 18px;
  }
  .news-card-excerpt {
    font-size: 0.82rem;
    -webkit-line-clamp: 2;
  }
  .news-card-img {
    height: 160px;
  }
  .news-card-img.no-img {
    height: 160px;
  }
  .news-card-footer {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .news-card-meta {
    font-size: 0.65rem;
  }
  .news-card-title {
    font-size: 0.9rem;
  }
  .news-card-badge {
    font-size: 0.55rem;
    padding: 3px 10px;
    top: 10px;
    left: 10px;
  }
}
