/* ==========================================================================
   Tin tức — home.php (/news/), archive.php (chuyên mục), single.php (bài viết).
   Dùng lại class thiết kế (.breadcrumb, .section-head, .eyebrow, .h2, .lead, .chip, .news-grid,
   .news-card, .link-arrow, .cta, .btn); file này chỉ thêm khung đầu trang, lưới danh sách,
   phân trang và typography nội dung bài.
   ========================================================================== */

/* Đầu trang tin: nền sáng như hero Sell Car, không ảnh */
.news-hero { background: var(--bg); border-bottom: 1px solid var(--line); }
.news-hero__inner { padding-top: 48px; padding-bottom: 56px; }
.news-hero .section-head { margin-top: 22px; }
.news-filter { margin-top: 28px; }

/* Danh sách: auto-fill giữ cột trống → chuyên mục ít bài không kéo 1 thẻ ra hết bề ngang */
.news-grid--list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.news-list .news-grid { margin-top: 0; }
.news-card__media--empty { background: var(--sky-50); }
.news-empty { font-size: 16px; line-height: 1.6; color: var(--muted); }
.news-empty a { font-weight: 600; }

/* Phân trang (the_posts_pagination) theo kiểu .chip */
.news-list .pagination { margin-top: 48px; }
.news-list .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.news-list .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 16px;
  border: 1px solid var(--input-line); border-radius: 999px; background: #fff;
  color: var(--text); font-size: 14px; font-weight: 600;
  transition: border-color .2s, color .2s;
}
.news-list a.page-numbers:hover { border-color: var(--blue); color: var(--blue-700); }
.news-list .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.news-list .page-numbers.dots { border-color: transparent; background: none; padding: 0 4px; min-width: 0; }

/* Bài viết: cột đọc hẹp */
.container.news-narrow { max-width: calc(760px + 2 * var(--gutter)); }
.news-article__head { max-width: none; }
.news-article__title { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
.news-article__meta {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--slate-2); margin-top: 18px;
}
.news-article__body { padding-top: 56px; }
.news-article__media { margin: 0 0 44px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--sky-50); }
.news-article__media img { width: 100%; height: 100%; object-fit: cover; }

/* Nội dung bài (the_content): h2/h3/p/ul/ol/blockquote/ảnh */
.news-content { font-size: 17px; line-height: 1.75; color: var(--text); overflow-wrap: break-word; }
.news-content > * + * { margin-top: 20px; }
.news-content h2 { font-size: clamp(22px, 2.3vw, 26px); line-height: 1.25; letter-spacing: -.015em; color: var(--ink); margin-top: 44px; }
.news-content h3 { font-size: 20px; line-height: 1.3; color: var(--ink); margin-top: 34px; }
.news-content :is(h2, h3) + * { margin-top: 12px; }
.news-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.news-content strong { color: var(--ink); }
.news-content ul, .news-content ol { display: grid; gap: 12px; }
.news-content ul li { position: relative; padding-left: 22px; }
.news-content ul li::before {
  content: ""; position: absolute; left: 2px; top: calc(.875em - 4px);
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
}
.news-content ol { list-style: decimal; padding-left: 22px; }
.news-content blockquote {
  margin-left: 0; margin-right: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--blue);
  font-family: var(--font-head); font-size: 19px; line-height: 1.55; color: var(--ink);
}
.news-content figure { margin-left: 0; margin-right: 0; }
.news-content img { height: auto; border-radius: var(--radius); }
.news-content figcaption { font-size: 13px; color: var(--subtle); margin-top: 8px; }

/* Bài liên quan: link "All articles" cùng hàng tiêu đề (thiết kế đặt margin-top:0 inline) */
.news-related .section-head--row .link-arrow { margin-top: 0; }

@media (max-width: 640px) {
  .news-hero__inner { padding-top: 32px; padding-bottom: 40px; }
  .news-filter { margin-top: 22px; }
  .news-list .pagination { margin-top: 36px; }
  .news-article__body { padding-top: 32px; }
  .news-article__media { margin-bottom: 32px; }
  .news-content { font-size: 16px; }
}
