/* Espaçamento da seção de notícias */
.tj-news-section {
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .tj-news-section {
    margin-bottom: 40px;
  }
}

@media (max-width: 576px) {
  .tj-news-section {
    margin-bottom: 30px;
  }
}

/* Estilos para os Cards de Notícias - Baseado nos Cards de Segmentos */
.news-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(18, 76, 15, 0.1);
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #124c0f, #1a6b14);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  z-index: 2;
}

.news-card:hover::before {
  transform: scaleX(1);
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(18, 76, 15, 0.15);
  border-color: #124c0f;
}

.news-thumb {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

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

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

.news-date-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #124c0f, #1a6b14);
  color: #fff;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(18, 76, 15, 0.3);
}

.news-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
  font-weight: 500;
}

.news-date i {
  color: #124c0f;
  margin-right: 6px;
}

.news-title {
  font-size: 18px;
  font-weight: 700;
  color: #124c0f;
  margin-bottom: 15px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.news-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-title a:hover {
  color: #1a6b14;
}

.news-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  transition: color 0.3s ease;
}

.news-card:hover .news-excerpt {
  color: #555;
}

.news-read-more {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(135deg, #124c0f, #1a6b14);
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  margin-top: auto;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  box-shadow: 0 3px 10px rgba(18, 76, 15, 0.2);
}

.news-read-more:hover {
  background: linear-gradient(135deg, #fff, #f1f1f1);
  color: #124c0f;
  border: 2px solid #124c0f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(18, 76, 15, 0.3);
  text-decoration: none;
}

.news-read-more i {
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.news-read-more:hover i {
  transform: translateX(3px);
}

/* Tags de categoria */
.news-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.95);
  color: #124c0f;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 3;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(18, 76, 15, 0.2);
}

/* Responsividade */
@media (max-width: 992px) {
  .news-card {
    margin-bottom: 25px;
    border-radius: 15px;
  }

  .news-thumb {
    height: 200px;
  }

  .news-content {
    padding: 20px;
  }

  .news-title {
    font-size: 17px;
    margin-bottom: 12px;
  }

  .news-excerpt {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .news-read-more {
    padding: 10px 20px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .news-thumb {
    height: 180px;
  }

  .news-content {
    padding: 18px;
  }

  .news-title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .news-excerpt {
    font-size: 12px;
    margin-bottom: 15px;
  }

  .news-date-badge {
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .news-category {
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    font-size: 10px;
  }
}

@media (max-width: 576px) {
  .news-card {
    border-radius: 12px;
    margin-bottom: 20px;
  }

  .news-thumb {
    height: 160px;
  }

  .news-content {
    padding: 15px;
  }

  .news-title {
    font-size: 15px;
  }

  .news-excerpt {
    font-size: 11px;
    line-height: 1.5;
  }

  .news-read-more {
    padding: 8px 16px;
    font-size: 12px;
  }
}

/* Animação de entrada staggered */
.news-card {
  opacity: 0;
  animation: slideInUp 0.6s ease forwards;
}

.news-card:nth-child(1) {
  animation-delay: 0.1s;
}
.news-card:nth-child(2) {
  animation-delay: 0.2s;
}
.news-card:nth-child(3) {
  animation-delay: 0.3s;
}
.news-card:nth-child(4) {
  animation-delay: 0.4s;
}
.news-card:nth-child(5) {
  animation-delay: 0.5s;
}
.news-card:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estados especiais */
.news-card.featured {
  background: linear-gradient(135deg, #124c0f, #1a6b14);
  color: #fff;
}

.news-card.featured .news-title,
.news-card.featured .news-title a {
  color: #fff;
}

.news-card.featured .news-excerpt {
  color: rgba(255, 255, 255, 0.9);
}

.news-card.featured .news-date {
  color: rgba(255, 255, 255, 0.8);
}

.news-card.featured .news-date i {
  color: rgba(255, 255, 255, 0.9);
}

.news-card.featured .news-read-more {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.news-card.featured .news-read-more:hover {
  background: #fff;
  color: #124c0f;
  border: 2px solid #fff;
}

.news-card.featured:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(18, 76, 15, 0.3);
}

/* Loading state */
.news-card.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
