/**
 * IDN — Trang chuyên mục bài viết (kiểu Printgo).
 * Tone theo --primary-color; font kế thừa theme.
 */

.idn-blog { padding: 22px 0 56px; }
.idn-blog__container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }

.idn-blog__head { margin: 0 0 22px; }
.idn-blog__heading {
	font-size: 26px; font-weight: 800; color: #1f2a36; margin: 0 0 10px;
}
.idn-blog__desc {
	margin: 0; max-width: 880px; font-size: 14.5px; line-height: 1.65; color: #6b7480;
}

/* ---------- Bộ lọc chuyên mục (nút pill bo tròn, 1 hàng, cuộn ngang) ---------- */
.idn-blog__tabswrap {
	position: relative; display: flex; align-items: center;
	margin-bottom: 26px;
}
.idn-blog__tabs {
	display: flex; flex-wrap: nowrap; gap: 10px; flex: 1 1 auto;
	overflow-x: auto; scroll-behavior: smooth; padding: 2px 0;
	-ms-overflow-style: none; scrollbar-width: none;
}
.idn-blog__tabs::-webkit-scrollbar { display: none; }
.idn-blog__tab {
	flex: 0 0 auto; white-space: nowrap;
	padding: 9px 20px; font-size: 14.5px; font-weight: 600; color: #4a5560;
	background: #fff; border: 1px solid #e1e4e8; border-radius: 6px;
	transition: color .2s, border-color .2s, background-color .2s;
}

/* Nút cuộn (chỉ hiện khi tràn — JS bỏ thuộc tính hidden) */
.idn-blog__tabnav {
	flex: 0 0 auto; align-self: center;
	width: 32px; height: 32px; border: 1px solid #e2e6ea; background: #fff;
	border-radius: 50%; cursor: pointer; color: #4a5560; font-size: 20px; line-height: 1;
	display: flex; align-items: center; justify-content: center; transition: color .2s, border-color .2s;
}
.idn-blog__tabnav[hidden] { display: none; }
.idn-blog__tabnav:hover { color: var(--primary-color, #2496ea); border-color: var(--primary-color, #2496ea); }
.idn-blog__tabnav:disabled { opacity: .35; cursor: default; }
.idn-blog__tabnav--prev { margin-right: 8px; }
.idn-blog__tabnav--next { margin-left: 8px; }
.idn-blog__tab:hover {
	color: var(--primary-color, #2496ea); border-color: var(--primary-color, #2496ea); background: #fff;
}
.idn-blog__tab.is-active {
	color: #fff; background: var(--primary-color, #2496ea); border-color: var(--primary-color, #2496ea);
}

/* ---------- Bố cục 2 cột ---------- */
.idn-blog__layout { display: flex; gap: 32px; align-items: flex-start; }
.idn-blog__main { flex: 1 1 auto; min-width: 0; }
.idn-blog__side { flex: 0 0 320px; max-width: 320px; }

/* ---------- Lưới card 2 cột ---------- */
.idn-blog__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.idn-bcard {
	display: flex; flex-direction: column;
	background: #fff; border: 1px solid #ececec; border-radius: 12px; overflow: hidden;
	transition: box-shadow .2s, transform .2s;
}
.idn-bcard:hover { box-shadow: 0 12px 26px rgba(20, 40, 80, .1); transform: translateY(-2px); }
.idn-bcard__thumb { display: block; aspect-ratio: 16 / 9; background: #eef2f7; overflow: hidden; }
.idn-bcard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.idn-bcard:hover .idn-bcard__thumb img { transform: scale(1.05); }
.idn-bcard__noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #e9eef5, #dbe6f2); }

.idn-bcard__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1 1 auto; }
.idn-bcard__cat {
	align-self: flex-start; font-size: 11.5px; font-weight: 700; text-transform: uppercase;
	letter-spacing: .03em; color: var(--primary-color, #2496ea); margin-bottom: 10px;
	padding: 4px 11px; border-radius: 50px;
	background: #eef5fd;
	background: color-mix(in srgb, var(--primary-color, #2496ea) 12%, #fff);
}
.idn-bcard__cat:hover { color: #fff; background: var(--primary-color, #2496ea); }
.idn-bcard__title { margin: 0 0 8px; font-size: 17px; line-height: 1.4; font-weight: 700; }
.idn-bcard__title a {
	color: #1f2a36; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
	overflow: hidden;
}
.idn-bcard__title a:hover { color: var(--primary-color, #2496ea); }
.idn-bcard__excerpt {
	margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: #6b7480;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.idn-bcard__meta {
	margin-top: auto; display: flex; gap: 18px; align-items: center;
	font-size: 12.5px; color: #8a929c; padding-top: 12px; border-top: 1px solid #f1f1f1;
}
.idn-bcard__meta span { display: inline-flex; align-items: center; gap: 5px; }
.idn-bcard__meta svg { color: var(--primary-color, #2496ea); }

/* ---------- Phân trang ---------- */
.idn-blog__pagi { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 34px; }
.idn-blog__pagi .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 38px; height: 38px; padding: 0 10px; border-radius: 8px;
	border: 1px solid #e2e6ea; color: #4a5560; font-weight: 600; font-size: 14px; background: #fff;
	transition: all .2s;
}
.idn-blog__pagi a.page-numbers:hover { border-color: var(--primary-color, #2496ea); color: var(--primary-color, #2496ea); }
.idn-blog__pagi .page-numbers.current {
	background: var(--primary-color, #2496ea); border-color: var(--primary-color, #2496ea); color: #fff;
}
.idn-blog__pagi .page-numbers.dots { border: 0; background: none; }

.idn-blog__empty { padding: 40px 0; color: #6b7480; }

/* ---------- Sidebar ---------- */
.idn-blog__widget { margin-bottom: 26px; }
.idn-blog__wtitle {
	font-size: 16px; font-weight: 800; text-transform: uppercase; color: #1f2a36;
	margin: 0 0 16px; padding-left: 12px; border-left: 4px solid var(--primary-color, #2496ea);
	line-height: 1.2;
}
.idn-blog__featured { list-style: none; margin: 0; padding: 0; }
.idn-bfeat { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.idn-bfeat:first-child { padding-top: 0; }
.idn-bfeat__thumb { flex: 0 0 96px; width: 96px; aspect-ratio: 16 / 11; border-radius: 8px; overflow: hidden; background: #eef2f7; }
.idn-bfeat__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.idn-bfeat__body { flex: 1 1 auto; min-width: 0; }
.idn-bfeat__title { margin: 0 0 6px; font-size: 14px; line-height: 1.45; font-weight: 600; }
.idn-bfeat__title a {
	color: #2a3340; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.idn-bfeat__title a:hover { color: var(--primary-color, #2496ea); }
.idn-bfeat__meta { display: flex; gap: 14px; font-size: 12px; color: #9aa3ad; }
.idn-bfeat__meta span { display: inline-flex; align-items: center; gap: 4px; }
.idn-bfeat__meta svg { color: var(--primary-color, #2496ea); }

/* Widget "Chủ đề" (danh sách chuyên mục) */
.idn-blog__topics { list-style: none; margin: 0; padding: 0; }
.idn-btopic + .idn-btopic { border-top: 1px solid #f0f0f0; }
.idn-btopic a {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 10px 0; color: #3a444f; font-size: 14px; font-weight: 600; transition: color .2s;
}
.idn-btopic a:hover,
.idn-btopic.is-active a { color: var(--primary-color, #2496ea); }
.idn-btopic__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idn-btopic__count {
	flex: 0 0 auto; min-width: 26px; text-align: center;
	font-size: 12px; font-weight: 700; color: #8a929c;
	background: #f3f5f8; border-radius: 50px; padding: 2px 9px;
}
.idn-btopic.is-active .idn-btopic__count,
.idn-btopic a:hover .idn-btopic__count {
	color: #fff; background: var(--primary-color, #2496ea);
}

/* Box tư vấn */
.idn-blog__cta {
	background: var(--primary-color, #2496ea); color: #fff; border-radius: 12px;
	padding: 22px 20px; text-align: center;
}
.idn-blog__cta-title { font-size: 18px; font-weight: 800; margin: 0 0 6px; color: #fff; }
.idn-blog__cta-desc { font-size: 13.5px; line-height: 1.5; margin: 0 0 14px; color: rgba(255,255,255,.92); }
.idn-blog__cta-phone {
	display: inline-block; background: #fff; color: var(--primary-color, #2496ea);
	font-weight: 800; font-size: 18px; padding: 10px 22px; border-radius: 50px; text-decoration: none;
}
.idn-blog__cta-phone:hover { color: var(--primary-color, #2496ea); opacity: .92; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
	.idn-blog__layout { flex-direction: column; }
	.idn-blog__side { flex-basis: auto; max-width: 100%; width: 100%; }
}
@media (max-width: 620px) {
	.idn-blog__grid { grid-template-columns: 1fr; }
}
