.news-listing-section {
  background-color: #f9fafb; /* bg-gray-50 */
  padding: 4rem 0;
}
@media (min-width: 640px) {
  .news-listing-section {
    padding: 5rem 0;
  }
}
.news-listing-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Category Filters --- */
.category-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem; /* gap-3 */
  margin-bottom: 3rem;
}
.cat-button {
  padding: 0.5rem 1.25rem; /* px-5 py-2 */
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem; /* rounded-md */
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  background-color: white;
  color: #4b5563; /* text-gray-600 */
  border: 1px solid #d1d5db; /* border-gray-300 */
}
.cat-button:hover {
  background-color: #e5e7eb;
}
.cat-button--active {
  background-color: #1f2937; /* bg-gray-800 */
  color: white;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  border-color: #1f2937;
}

/* --- Articles List --- */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* space-y-6 */
  max-width: 64rem; /* max-w-5xl */
  margin: 0 auto;
}
.news-row {
  display: block;
  background-color: white;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}
.news-row:hover {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  border-color: #d1d5db;
}

.news-row-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .news-row-content {
    flex-direction: row;
  }
}
.news-row-image-wrapper {
  width: 100%;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .news-row-image-wrapper {
    width: 33.333333%;
  }
}
@media (min-width: 1024px) {
  .news-row-image-wrapper {
    width: 25%;
  }
}

.news-row-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.375rem;
  aspect-ratio: 4 / 3;
}
.news-row-text {
  flex: 1;
}

.meta-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 940px) {
  .meta-info {
    flex-direction: column;
    justify-content: start;
    align-items: start;
  }

  .news-row-text {
    width: 50%;
  }
}
.category-tag {
  font-weight: 600;
  color: #2563eb;
}
.date-tag {
  color: #6b7280;
}
.news-row-text .title {
  font-weight: 700;
  font-size: 1.125rem;
  color: #1f2937;
  line-height: 1.375;
  margin: 0;
}
.news-row-text .excerpt {
  width: 85%;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.625;
  /* --- Line clamp effect --- */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.no-articles-found {
  text-align: center;
  padding: 3rem 0;
  color: #6b7280;
}

/* Reusing Pagination CSS, just ensure it is loaded */
.pagination {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 500;
  color: #4b5563;
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  transition: all 0.2s ease-in-out;
}
.page-link:hover {
  background-color: #f3f4f6;
  color: #1f2937;
}
.page-link.active {
  background-color: #2563eb;
  color: white;
  border-color: #2563eb;
  cursor: default;
}
