.news-container {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 0 2rem;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#news-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.news-item {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 900px;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.news-item img {
  width: 30%;
  min-width: 120px;
  height: 20vh;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-title {
  margin: 0;
  font-size: 1.4rem;
  color: #1e3a8a;
  font-weight: 600;
}

.news-description {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.4;
}

.news-date {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: auto;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tag {
  background-color: #e8f0fe;
  color: #1a3c8b;
  padding: 6px 12px;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.85rem;
  transition: background-color 0.3s ease;
}

.tag:hover {
  background-color: #d2e3fc;
  cursor: pointer;
}

.tags-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1rem;
  justify-content: center;
}

.tags-filter .tag-filter {
  padding: 0.5rem 1rem;
  background-color: #e0e7ff;
  color: #1f3c88;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  user-select: none;
}

.tags-filter .tag-filter:hover {
  background-color: #c7d2fe;
}

.tags-filter .tag-filter.active {
  background-color: #1f3c88;
  color: #ffffff;
}

#toggle-tags {
  display: inline-block;
  max-width: 250px;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #1e3a8a;
  border: none;
  border-radius: 9999px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  margin: 0 auto;
}

#toggle-tags:hover {
  background-color: #1d4ed8;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.pagination {
  text-align: center;
}

.pagination a,
.pagination span {
  margin: 0 5px;
  padding: 6px 12px;
  text-decoration: none;
  color: #1e3a8a;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

.pagination a.active {
  background-color: #c7d2fe;
}

.pagination a:hover {
  background-color: #e0e7ff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .news-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .news-item img {
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
  }

  .news-title {
    font-size: 1.2rem;
  }

  .news-description {
    font-size: 0.95rem;
  }

  .news-date {
    font-size: 0.85rem;
  }

  #toggle-tags {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .news-title {
    font-size: 1.1rem;
  }

  .tag {
    font-size: 0.8rem;
    padding: 4px 10px;
  }

  .tags-filter {
    padding: 0 0.5rem;
  }
}
