/* ===== Trang danh sách tin tức ===== */
/* Dùng lại .article-topbar + .article-footer (article.css). Phần giữa: tab + grid + pager. */

/* Tờ giấy chứa tab + grid + phân trang */
.newslist {
  padding: 28px 16px 0;
}
.newslist__inner {
  max-width: 1180px;
  margin: 0 auto;
  /* Tờ giấy trắng co giãn theo nội dung */
  background: url("../assets/article/article-paper.png?v=742b2886") no-repeat center top / 100% 100%,
              #fbf7ee;
  padding: 40px clamp(28px, 4vw, 56px) 48px;
}

/* ===== Hàng tab lọc dạng biển gỗ ===== */
.newslist__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 2vw, 26px);
  margin-bottom: 32px;
}
.newslist-tab {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  width: clamp(120px, 16vw, 170px);
  opacity: 0.7;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.newslist-tab img { width: 100%; height: auto; display: block; }
.newslist-tab:hover { opacity: 0.92; transform: translateY(-1px); }
.newslist-tab.is-active { opacity: 1; }

/* ===== Grid thẻ tin (3 cột) ===== */
.newslist__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 30px);
  /* Thu nhỏ + căn giữa để thẻ nằm gọn trong khung giấy, có lề 2 bên */
  max-width: 88%;
  margin: 0 auto;
}

/* Một thẻ tin */
.news-card {
  display: block;
  text-decoration: none;
  color: inherit;
  /* Ô nền trắng bo góc + đổ bóng bao quanh thumbnail và nội dung */
  background: #fff;
  border-radius: 14px;
  padding: 12px 12px 18px;
  box-shadow: 0 6px 16px rgba(60, 36, 20, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(60, 36, 20, 0.2);
}
.news-card__thumb {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
}
.news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-card__title {
  margin: 14px 0 10px;
  text-align: center;
  color: #4a1c14;
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 800;
  letter-spacing: 0.01em;
}
.news-card__meta {
  display: flex;
  justify-content: center;
  gap: 18px;
  color: #a9967f;
  font-size: clamp(11px, 1.1vw, 13px);
  font-variant-numeric: tabular-nums;
}

/* ===== Phân trang ===== */
.newslist__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}
.pager-page,
.pager-arrow {
  border: 0;
  cursor: pointer;
  font-size: 15px;
  color: #6a4a2c;
  background: none;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.pager-page:hover { background: rgba(150, 96, 60, 0.14); }
.pager-page.is-active {
  background: #8a4a28;
  color: #fff;
  font-weight: 700;
}
.pager-dots { color: #a9967f; padding: 0 2px; }
.pager-arrow {
  padding: 0;
  width: 28px;
  height: 28px;
}
.pager-arrow img { width: 100%; height: 100%; display: block; }
.pager-arrow:hover { background: none; opacity: 0.85; }

/* ===== Mobile ===== */
@media (max-width: 760px) {
  .newslist__grid { grid-template-columns: repeat(2, 1fr); }
  .newslist-tab { width: clamp(96px, 28vw, 140px); }
}
@media (max-width: 480px) {
  .newslist__grid { grid-template-columns: 1fr; }
}
