/* Thành phần dùng chung: thẻ bài, khối chuyên mục, widget, quảng cáo, phân trang... */

/* ảnh trong khung: object-fit cover + phóng nhẹ khi rê */
.thumb { position: relative; display: block; overflow: hidden; background: #dfe8f6; border-radius: var(--radius-md); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.post-card:hover .thumb img, .post-card.is-hover .thumb img, .hero:hover .hero__slide.is-active img { transform: scale(1.05); }

/* tiêu đề thẻ đổi sang xanh khi rê */
.post-card__title { font-size: 15.5px; line-height: 1.35; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__title a { transition: color var(--t-fast) ease; }
.post-card:hover .post-card__title a, .post-card.is-hover .post-card__title a, .post-card__title a:hover { color: var(--c-brand); }
.post-card__title--md { font-size: 15.5px; }
.post-card__title--sm { font-size: 13.5px; line-height: 1.4; font-weight: 600; }
.post-card__title--xs { font-size: 12px; line-height: 1.35; }
.post-card { transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
.post-card:hover, .post-card.is-hover { transform: translateY(-3px); }

/* khối chuyên mục */
.block { min-width: 0; display: flex; flex-direction: column; }
.block__head { display: flex; align-items: center; gap: 12px; height: 35px; padding-right: 14px; margin-bottom: 12px; border-radius: 10px; background: linear-gradient(90deg, #e3eeff 0%, #f1f6ff 55%, rgba(255, 255, 255, 0) 100%); }
.block__icon { width: 57px; height: 35px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, #0a66c6, #0a4aa0); color: #fff; box-shadow: 0 2px 6px rgba(10, 74, 160, .28); flex: none; }
.block__icon .ico { width: 21px; height: 21px; }
.block__icon--lg { width: 64px; height: 44px; border-radius: 10px; }
.block__icon--lg .ico { width: 26px; height: 26px; }
.block__title { font-size: var(--text-block-title); line-height: 1.2; color: var(--c-royal); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block__more { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font: 700 12px/1 var(--font-heading); color: var(--c-royal); white-space: nowrap; }
.block__more .ico { width: 13px; height: 13px; transition: transform var(--t-fast) ease; }
.block__more:hover .ico, .block__more.is-hover .ico { transform: translateX(4px); }
.block__more:hover { color: var(--c-blue); }
.block__card { background: #fff; border-radius: 12px; box-shadow: var(--shadow-md); border: 1px solid #edf1f9; padding: 9px 10px; flex: 1; }

/* bài dẫn đầu: ảnh trái, tiêu đề phải */
.lead { --lw: 250; --lh: 125; display: grid; grid-template-columns: calc(var(--lw) * 1px) minmax(0, 1fr); gap: 14px; align-items: center; }
.lead__thumb { aspect-ratio: var(--lw) / var(--lh); border-radius: 8px; }
.block--market .lead { --lw: 258; --lh: 143; }
.block--feng .lead { --lw: 256; --lh: 108; }
.block--legal .lead { --lw: 226; --lh: 90; }
.block--arch .lead { --lw: 268; --lh: 121; }
.block--social .lead { --lw: 252; --lh: 100; }
.lead__body { display: flex; flex-direction: column; gap: 14px; }
.lead .post-card__title { font-size: 16px; }

.bullet-list { margin-top: 9px; display: grid; gap: 8px; }
.bullet-list li { position: relative; padding-left: 18px; font-size: 13.5px; font-weight: 500; line-height: 1.4; }
.bullet-list li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 7px; height: 7px; border-radius: 2px; background: var(--c-blue); }
.bullet-list a { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; transition: color var(--t-fast) ease; }
.bullet-list a:hover { color: var(--c-brand); }

.compact-list { margin-top: 6px; display: grid; gap: 5px; }
.compact { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; padding-bottom: 5px; border-bottom: 1px solid var(--c-line); }
.compact:last-child { border-bottom: 0; padding-bottom: 0; }
.compact__thumb { aspect-ratio: 112 / 40; border-radius: 6px; }
.block .compact .post-card__title { -webkit-line-clamp: 1; font-size: 13px; }
.compact__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.compact .meta { line-height: 1.3; }
.compact:hover { transform: none; }

.mini-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 8px; align-items: center; }
.mini__thumb { aspect-ratio: 1 / 1; border-radius: 6px; }
.mini:hover { transform: none; }

/* thẻ ảnh phủ chữ */
.overlay-card { position: relative; display: block; border-radius: 10px; overflow: hidden; color: #fff; }
.overlay-card__thumb { height: 100%; border-radius: 10px; }
.overlay-card--wide { aspect-ratio: 453 / 157; }
.overlay-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 15, 50, 0) 35%, rgba(0, 15, 50, .82) 100%); pointer-events: none; }
.overlay-card__body { position: absolute; left: 14px; right: 56px; bottom: 12px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.overlay-card__title { font-size: 16px; line-height: 1.3; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.overlay-card__title a { color: #fff; }
.post-card:hover .overlay-card__title a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.overlay-card__go { position: absolute; right: 14px; bottom: 14px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--c-navy); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); transition: transform var(--t-fast) ease, background-color var(--t-fast) ease; }
.overlay-card__go .ico { width: 15px; height: 15px; }
.overlay-card__go:hover { transform: translateX(3px); background: var(--c-gold); }

/* widget cột bên */
.widget { background: #fff; border-radius: 12px; box-shadow: var(--shadow-md); border: 1px solid #edf1f9; overflow: hidden; }
.widget__head { display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 14px; background: linear-gradient(90deg, #005dae, #0869bd); color: #fff; font-size: 16px; font-weight: 700; }
.widget__head .ico { width: 17px; height: 17px; }
.widget__head--soft { background: linear-gradient(90deg, #0866b9, #1a79c9); }
.rank-list { padding: 4px 14px 8px; }
.rank-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed #d9e2f1; font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.rank-item:last-child { border-bottom: 0; }
.rank-item__no { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: linear-gradient(135deg, #ff5a5f, #ee2b30); color: #fff; font: 700 13px/1 var(--font-heading); transition: transform var(--t-fast) ease; }
.rank-item a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color var(--t-fast) ease; }
.rank-item a:hover { color: var(--c-brand); }
.rank-item:hover .rank-item__no { transform: scale(1.08); }

.widget__title { display: flex; align-items: center; gap: 8px; font-size: 17px; color: var(--c-royal); margin-bottom: 8px; }
.widget__title .ico { width: 24px; height: 24px; color: var(--c-blue); }

.widget--latest .compact-list { margin: 0; padding: 8px 12px 10px; gap: 8px; }
.widget--latest .compact { grid-template-columns: 82px minmax(0, 1fr); padding-bottom: 8px; }
.widget--latest .compact__thumb { aspect-ratio: 82 / 62; }
.widget--latest .post-card__title { -webkit-line-clamp: 2; }

/* vùng quảng cáo (không vẽ tên/logo thương hiệu) */
.ad-slot--leader a, .ad-slot--leader img, .ad-slot--300 a, .ad-slot--300 img { display: block; }
.ad-slot--leader { margin-left: auto; flex: none; }
.ad-slot--leader img { width: 728px; height: 90px; border-radius: 6px; }
.ad-slot--300 { border: 0; box-shadow: none; background: transparent; }
.ad-slot--300 img { width: 100%; height: auto; border-radius: 10px; box-shadow: var(--shadow-md); }
.ad-slot__inner { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; min-height: inherit; color: rgba(255, 255, 255, .82); background: linear-gradient(135deg, #0a3a86 0%, #0a5fb8 55%, #0a86d0 100%); border-radius: inherit; overflow: hidden; transition: filter var(--t-base) ease; }
.ad-slot__inner::before { content: ""; position: absolute; inset: 8px; border: 1px dashed rgba(255, 255, 255, .38); border-radius: 8px; pointer-events: none; }
.ad-slot__inner:hover { filter: brightness(1.08); }
.ad-slot__label { font: 600 11px/1 var(--font-heading); letter-spacing: .14em; text-transform: uppercase; }
.ad-slot__size { font-size: 12px; opacity: .75; }
.ad-slot--tall { min-height: 350px; border: 0; border-radius: 12px; background: none; box-shadow: var(--shadow-md); }
.ad-slot--band { min-height: 82px; border-radius: 12px; overflow: hidden; background: none; }
.ad-slot--band .ad-slot__inner { flex-direction: row; gap: 14px; min-height: inherit; }
.ad-slot--half { min-height: 115px; }
.ad-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ad-pair--mid { margin-top: 28px; }
.ad-pair--bottom { margin: 24px 0 15px; }

/* mạng xã hội */
.social { display: flex; gap: 10px; }
.social__btn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease; }
.social__btn .ico { width: 17px; height: 17px; }
.social__btn--fb { background: #1877f2; }
.social__btn--yt { background: #ff1a1a; }
.social__btn--zalo { background: #0068ff; }
.social__btn--zalo .ico { width: 24px; height: 24px; }
.social__btn:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }

/* breadcrumb + phân trang */
.breadcrumb { margin: 18px 0 14px; font-size: 13px; color: var(--c-muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumb li { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumb li + li::before { content: "›"; margin: 0 8px; opacity: .6; }
.breadcrumb a:hover { color: var(--c-brand); text-decoration: underline; }
.breadcrumb [aria-current] span { color: var(--c-text); font-weight: 500; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
.pagination { margin: 28px 0 6px; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-link { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border: 1px solid var(--c-line); border-radius: 8px; background: #fff; font-weight: 600; font-size: 14px; transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease, transform var(--t-fast) ease; }
.page-link .ico { width: 18px; height: 18px; }
a.page-link:hover, a.page-link.is-hover { background: var(--c-bg-blue); border-color: #b9cdf0; color: var(--c-royal); transform: translateY(-1px); }
.page-link.is-current { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
.page-link.is-disabled { opacity: .4; }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip-list a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--c-bg-blue); color: var(--c-royal); font-weight: 600; font-size: 13.5px; transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
.chip-list a:hover { background: var(--c-blue); color: #fff; }

.inline-search { display: flex; max-width: 560px; margin: 0 0 22px; }
.inline-search input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border: 1px solid #cdd8ee; border-right: 0; border-radius: 8px 0 0 8px; font-size: 15px; }
.inline-search input:focus-visible { outline: 0; border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(11, 94, 215, .2); }
.inline-search .btn { height: 44px; border-radius: 0 8px 8px 0; }
