/* noticias.css */
body {
  background: #f9f9f9;
  color: #333;
}

body.dark {
  background: #1a1a1a;
  color: #fff;
}

body.light {
  background: #f9f9f9;
  color: #333;
}

.news-section {
  padding: 170px 10% 60px;
  max-width: 1500px;
  margin: 0 auto;
  text-align: center;
}

.news-title {
  background: linear-gradient(90deg, #552194, #854ad3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.8rem;
  margin: 0 auto 1rem;
  display: table;
  text-align: center;
  width: fit-content;
  line-height: 1.2;
  font-weight: 700;
  background-repeat: no-repeat;
  background-position: center;
}

body.dark .news-title {
  background: linear-gradient(90deg, #8a63d6, #b28cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.news-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--acsent-color);
  margin-bottom: 3rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.news-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: scale(1.05);
  transition: all 0.3s ease, box-shadow 0.3s ease;
}

body.light .news-card:hover {
  box-shadow: 0 0 25px 10px rgba(128, 48, 208, 0.3);
}

body.dark .news-card:hover {
  box-shadow: 0 0 25px 10px rgba(192, 192, 192, 0.2);
}

.news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-card-title {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-summary {
  font-size: 1rem;
  font-weight: 300;
  color: #666;
  margin: 0;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Dark Mode */
body.dark .news-card {
  background: #1a1a1a;
  color: #fff;
}

body.dark .news-card-title {
  color: #fff;
}

body.dark .news-summary {
  color: #ccc;
}

/* Light Mode */
body.light .news-card {
  background: #f9f9f9;
  color: #333;
}

body.light .news-card-title {
  color: #333;
}

body.light .news-summary {
  color: #666;
}

/* Responsividade */
@media (max-width: 900px) {
  .news-section {
      padding: 100px 5% 40px;
  }

  .news-title {
      font-size: 2.2rem;
      width: 90%;
      max-width: 600px;
      display: block;
      margin-left: auto;
      margin-right: auto;
  }

  .news-subtitle {
      font-size: 1rem;
  }

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

  .news-summary {
      font-size: 0.9rem;
  }
}
