/* Trang danh sách: chuyên mục, tìm kiếm, thẻ, tác giả, trang tĩnh, 404 */
.page-wrap { padding-bottom: 40px; }
.page-wrap--narrow { max-width: 860px; }
.page-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 22px; padding-bottom: 14px; border-bottom: 2px solid var(--c-line); position: relative; }
.page-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 120px; height: 2px; background: var(--c-blue); }
.page-head__title { font-size: 28px; line-height: 1.2; color: var(--c-royal); }
.page-head__sub { margin-top: 4px; font-size: 13.5px; color: var(--c-muted); }

.layout { display: grid; gap: 30px; align-items: start; }
.layout--sidebar { grid-template-columns: minmax(0, 1fr) var(--sidebar-w); }
.layout__main { min-width: 0; }
.sidebar { display: grid; gap: 16px; min-width: 0; }

/* hai bài nổi bật đầu chuyên mục */
.cat-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.overlay-card--cat { aspect-ratio: 16 / 10; }
.overlay-card--cat .overlay-card__title { font-size: 19px; -webkit-line-clamp: 3; }
.overlay-card--cat .overlay-card__body { left: 18px; right: 18px; bottom: 16px; gap: 8px; }

/* danh sách: thumb trái, nội dung phải */
.post-list { display: grid; gap: 0; }
.post-row { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.post-row:first-child { padding-top: 0; }
.post-row__thumb { aspect-ratio: 250 / 160; border-radius: 10px; }
.post-row__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.post-row__cat { align-self: flex-start; font: 700 11.5px/1 var(--font-heading); text-transform: uppercase; letter-spacing: .03em; color: var(--c-brand); }
.post-row__cat:hover { text-decoration: underline; }
.post-row__title { font-size: 19px; line-height: 1.35; -webkit-line-clamp: 3; }
.post-row__excerpt { font-size: 14px; line-height: 1.6; color: var(--c-text-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* tìm kiếm rỗng + 404 */
.empty-state, .notfound { text-align: center; max-width: 620px; margin: 10px auto 34px; padding: 30px 20px; }
.empty-state__ico { width: 84px; height: 84px; border-radius: 50%; background: var(--c-bg-blue); color: var(--c-blue); display: grid; place-items: center; margin: 0 auto 18px; }
.empty-state__ico .ico { width: 40px; height: 40px; }
.empty-state h2 { font-size: 22px; margin-bottom: 10px; color: var(--c-royal); }
.empty-state p { color: var(--c-text-soft); margin-bottom: 18px; }
.notfound { display: grid; gap: 16px; justify-items: center; padding: 40px 20px 20px; }
.notfound__code { font: 800 clamp(96px, 16vw, 160px)/1 var(--font-heading); background: linear-gradient(135deg, #0a66c6, #1a2ea6); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.03em; }
.notfound__title { font-size: 28px; color: var(--c-royal); }
.notfound p { color: var(--c-text-soft); }
.notfound .inline-search { width: 100%; margin: 8px 0 0; }

/* tác giả */
.author-card { display: flex; align-items: center; gap: 18px; padding: 22px; margin: 4px 0 24px; background: linear-gradient(90deg, #e3eeff, #f6f9ff); border-radius: 14px; border: 1px solid #dbe6f8; }
.author-card__avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #0a66c6, #1a2ea6); color: #fff; font: 700 32px/1 var(--font-heading); box-shadow: var(--shadow-md); }
.author-card__name { font-size: 24px; color: var(--c-royal); }
.author-card__sub { color: var(--c-muted); font-size: 14px; margin-top: 4px; }

/* trang tĩnh */
.page-single { background: #fff; border-radius: 14px; box-shadow: var(--shadow-md); border: 1px solid #edf1f9; padding: 30px 34px 34px; }
.page-single__title { font-size: 30px; color: var(--c-royal); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 2px solid var(--c-line); }
