/* Hub chuyên mục / tag / thư viện v2 — dùng biến/component của site.css. */
.hub-hero { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: center; padding: 16px 0 24px; }
.hub-hero-plain { grid-template-columns: 1fr; padding-bottom: 8px; }
.hub-hero h1 { margin-bottom: .35em; }
.hub-intro { color: var(--muted); max-width: 72ch; font-size: 1.02rem; }
.hub-intro p { white-space: pre-line; margin: 0; }
.hub-sapo { max-width: 72ch; font-size: 1.05rem; }
.hub-sapo p { margin: 0; }
.hub-sapo p + p { margin-top: .6em; }
.hub-hero-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-lg); background: var(--green-50); }
.hub-chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 0 8px; }

.hub-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; margin-top: 24px; }
.hub-section { margin-bottom: 48px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 1.4rem; }
.section-head .section-title { margin-bottom: 0; }

/* Thẻ dùng chung */
.card-v .card-more { margin-top: auto; padding-top: 4px; font-weight: 700; font-size: .92rem; color: var(--coral-700); text-decoration: none; }
.card-v .card-more:hover { text-decoration: underline; }
.card-v .tag, .card-h .tag { align-self: flex-start; }
.card-h .card-media { display: block; }
.card-h .card-body { display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.card-h .meta { margin: 0; }

/* Cụm chủ đề con */
.hub-cluster { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 32px; box-shadow: var(--shadow); }
.cluster-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.cluster-head h2 { font-size: 1.45rem; margin-bottom: .2em; }
.cluster-desc { margin: 0; color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.cluster-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; }
.cluster-lead .card-row { grid-template-columns: 1fr; height: 100%; box-shadow: none; }
.cluster-lead .card-row img { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
.cluster-lead h3 { font-size: 1.25rem; }
.cluster-links { display: flex; flex-direction: column; gap: 12px; }
.card-mini { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); padding: 8px; border-radius: var(--radius-sm); }
.card-mini:hover { background: var(--green-50); color: var(--ink); }
.card-mini img { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; flex: none; background: var(--green-50); }
.card-mini-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card-mini-title { font-family: var(--serif); font-weight: 700; color: var(--green-900); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* "Mới cập nhật": thẻ ngang 3 cột */
.latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.latest-grid .card-row { grid-template-columns: 96px 1fr; }
.latest-grid .card-row img { min-height: 100%; aspect-ratio: 1; }
.latest-grid .card-body { padding: 12px 14px; }
.latest-grid h3 { font-size: 1rem; }
.latest-grid .tag { font-size: .72rem; padding: 2px 8px; }

/* Sidebar */
.hub-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 16px; }
.side-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.side-box h2 { font-size: 1.15rem; margin-bottom: .8em; }
.side-cats { list-style: none; display: flex; flex-direction: column; }
.side-cats a { display: flex; align-items: center; gap: 12px; padding: 8px 0; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.side-cats li:last-child a { border-bottom: 0; }
.side-cats a:hover { color: var(--green-900); }
.side-cats img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--green-50); }
.side-arrow { margin-left: auto; color: var(--coral-700); }
.side-editorial { background: var(--green-50); border-color: #d5e5d8; }
.side-editorial p { font-size: .92rem; color: var(--muted); }
.side-editorial a { font-weight: 700; }

@media (max-width: 1100px) {
  .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hub-hero { grid-template-columns: minmax(0, 1fr) 160px; gap: 20px; }
  .hub-layout { grid-template-columns: 1fr; }
  .hub-sidebar { position: static; }
  .cluster-body { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hub-hero { grid-template-columns: 1fr; }
  .hub-hero-img { width: 120px; order: -1; }
  .latest-grid { grid-template-columns: 1fr; }
  .hub-cluster { padding: 18px; }
}

/* Trang tác giả & đội ngũ biên tập */
.author-hero { display: flex; gap: 24px; align-items: flex-start; padding: 16px 0 24px; }
.author-hero h1 { margin-bottom: .2em; }
.author-hero p { margin: 0 0 .6em; max-width: 70ch; }
.author-role { color: var(--coral-700); font-weight: 600; }
.team-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 8px 0 40px; }
.team-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 24px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.team-card h2 { font-size: 1.3rem; margin: .4em 0 0; }
.team-card h2 a { text-decoration: none; }
.team-card p { margin: 0; }
.team-card .btn { margin-top: 10px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .author-hero { flex-direction: column; gap: 12px; } }
