/* Trang chủ, mục Tin tức & Cẩm nang: thiết kế theo mục "Dự án" của Catbox (thẻ trắng, nhãn ngày, nhãn chủ đề, ngày đăng, phân trang tròn). */
.nw { max-width: 1280px; margin-inline: auto; padding-inline: 24px; }
.nw-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.nw-head h2 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.01em; line-height: 1.15; color: var(--color-ink, #191c1d); }
.nw-all { font-size: 14px; font-weight: 700; color: var(--color-ink, #191c1d); text-decoration: none; white-space: nowrap; }
.nw-all:hover { color: var(--color-primary, #e67e22); }
.nw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.nw-card { position: relative; display: flex; flex-direction: column; background: #fff; transition: box-shadow .2s, transform .2s; }
.nw-card[hidden] { display: none; }
.nw-card:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .12); }
.nw-img { display: block; overflow: hidden; background: var(--color-surface-tint, #f1f3f5); aspect-ratio: 4 / 3; }
.nw-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.nw-card:hover .nw-img img { transform: scale(1.03); }
.nw-date { position: absolute; top: 16px; left: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 52px; background: #fff; border: 2px solid var(--color-ink, #191c1d); color: var(--color-ink, #191c1d); line-height: 1; pointer-events: none; }
.nw-date b { font-size: 21px; font-weight: 800; }
.nw-date small { margin-top: 3px; font-size: 11px; font-weight: 600; }
.nw-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 18px; }
.nw-kicker { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-ink-muted, #4b5563); }
.nw-body h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--color-ink, #191c1d); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw-body h3 a { color: inherit; text-decoration: none; }
.nw-body h3 a::after { content: ''; position: absolute; inset: 0; }
.nw-card:hover h3 a { color: var(--color-primary, #e67e22); }
.nw-ex { margin: 14px 0 0; font-size: 15px; line-height: 1.65; color: var(--color-ink-muted, #4b5563); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-meta { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--color-ink-muted, #4b5563); }
.nw-ex + .nw-meta { margin-top: 18px; border-top: 1px solid var(--color-line, #e5e7eb); }
.nw-meta span { display: inline-flex; align-items: center; gap: 7px; }
.nw-meta svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nw-pager { display: flex; justify-content: center; gap: 12px; margin-top: 36px; }
.nw-pager button { display: grid; place-items: center; width: 50px; height: 50px; padding: 0; font: inherit; font-size: 16px; font-weight: 700; color: var(--color-ink, #191c1d); background: #fff; border: 1px solid var(--color-ink, #191c1d); border-radius: 50%; cursor: pointer; transition: background .15s, color .15s; }
.nw-pager button:hover:not(:disabled) { background: var(--color-surface-alt, #f8f9fa); }
.nw-pager button[aria-current="true"] { background: var(--color-ink, #191c1d); color: #fff; }
.nw-pager button:disabled { opacity: .35; cursor: default; border-color: var(--color-ink-faint, #9ca3af); }
.nw-pager svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .nw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .nw { padding-inline: 16px; }
  .nw-head { align-items: center; margin-bottom: 18px; }
  .nw-head h2 { font-size: 22px; }
  .nw-all { font-size: 13px; }
  .nw-grid { grid-template-columns: 1fr; gap: 16px; }
  .nw-img { aspect-ratio: 16 / 9; }
  .nw-date { top: 10px; left: 10px; width: 44px; height: 44px; }
  .nw-date b { font-size: 18px; }
  .nw-date small { font-size: 10px; }
  .nw-body { padding: 14px 16px 14px; }
  .nw-kicker { font-size: 11px; margin-bottom: 6px; }
  .nw-body h3 { font-size: 16px; }
  .nw-ex { margin-top: 8px; font-size: 14px; line-height: 1.55; -webkit-line-clamp: 2; }
  .nw-ex + .nw-meta { margin-top: 12px; padding-top: 12px; }
  .nw-meta { font-size: 12px; }
  .nw-pager { gap: 8px; margin-top: 24px; }
  .nw-pager button { width: 42px; height: 42px; font-size: 14px; }
}

/* Trang /blog: đầu trang, thẻ lọc, danh sách */
.nw-pagehead { background: #fff; border-bottom: 1px solid var(--color-line, #e5e7eb); padding-bottom: 28px; margin-bottom: 40px; }
.nw-pagehead nav[aria-label="Breadcrumb"] { max-width: 1280px; margin-inline: auto; padding-inline: 24px; }
.nw-pagehead-in { max-width: 1280px; margin-inline: auto; padding-inline: 24px; }
.nw-pagehead-in h1 { margin: 6px 0 0; font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.01em; line-height: 1.15; color: var(--color-ink, #191c1d); }
.nw-pagehead-in p { margin: 10px 0 0; max-width: 640px; font-size: 16px; line-height: 1.6; color: var(--color-ink-muted, #4b5563); }
.nw-tags { max-width: 1280px; margin: 22px auto 0; padding-inline: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.nw-tags a { padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--color-ink, #191c1d); text-decoration: none; border: 1px solid var(--color-line, #e5e7eb); border-radius: 999px; background: #fff; transition: all .15s; }
.nw-tags a:hover { border-color: var(--color-ink, #191c1d); }
.nw-tags a[aria-current="true"] { background: var(--color-ink, #191c1d); border-color: var(--color-ink, #191c1d); color: #fff; }
.nw-list { padding-bottom: 72px; }
.nw-empty { padding: 40px 0; text-align: center; color: var(--color-ink-muted, #4b5563); }
.nw-back { margin: 32px 0 0; text-align: center; }
.nw-back a { font-weight: 700; color: var(--color-primary-hover, #d35400); text-decoration: none; }
@media (max-width: 600px) {
  .nw-pagehead { padding-bottom: 18px; margin-bottom: 24px; }
  .nw-pagehead nav[aria-label="Breadcrumb"], .nw-pagehead-in { padding-inline: 16px; }
  .nw-pagehead-in p { font-size: 15px; }
  /* Thẻ lọc thành một hàng vuốt ngang thay vì nhiều dòng */
  .nw-tags { margin-top: 16px; padding-inline: 16px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nw-tags::-webkit-scrollbar { display: none; }
  .nw-tags a { flex: none; }
  .nw-list { padding-bottom: 48px; }
}
