/**
 * IDN — Trang Tin tức (dựng lại printgo.vn/tin-tuc).
 * Tone theo --primary-color; font kế thừa (Lexend). Tái dùng .idn-bcard của idn-blog.css.
 */

.idn-news-page { --idn-news-accent: var(--primary-color, #2496ea); }

/* H1 trang (template-blog.php) — 1 H1 duy nhất, SEO + hiển thị rõ */
.idn-news-page__header {
	max-width: 1200px;
	margin: 0 auto;
	padding: 28px 15px 8px;
}
.idn-news-page__h1 {
	margin: 0;
	padding: 0;
	font-size: 28px;
	line-height: 1.25;
	font-weight: 800;
	color: #14213d;
	text-transform: none;
}
@media (max-width: 767px) {
	.idn-news-page__header { padding: 20px 15px 4px; }
	.idn-news-page__h1 { font-size: 22px; }
}

.idn-news__sec { padding: 40px 0; }
.idn-news__sec--gray { background: #f5f7fa; }
.idn-news__container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* --- Tiêu đề khối --- */
.idn-news__head {
	display: flex; align-items: flex-end; justify-content: space-between;
	gap: 16px; margin-bottom: 24px;
}
.idn-news__title {
	margin: 0; font-size: 26px; line-height: 1.25; font-weight: 800;
	padding-left: 14px; border-left: 5px solid var(--idn-news-accent); color: #14213d;
}
.idn-news__subtitle { margin: 8px 0 0; color: #5a6b85; font-size: 15px; }
.idn-news__more {
	flex: none; font-weight: 600; font-size: 14px; color: var(--idn-news-accent);
	white-space: nowrap; transition: opacity .2s;
}
.idn-news__more:hover { opacity: .75; }

/* --- Lưới card chung (tái dùng .idn-bcard) --- */
.idn-news__grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 24px; }

/* =======================================================================
 * Tin nổi bật — 1 banner lớn (trái) + lưới 2×2 (phải), tiêu đề đè lên ảnh.
 * ==================================================================== */
.idn-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
/* Cột phải giãn bằng chiều cao ô lớn, chia 2 hàng đều nhau */
.idn-hero__list { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 24px; min-height: 0; }

/* Banner = 1 thẻ <a>: ảnh phủ kín + lớp phủ tiêu đề ở đáy */
.idn-hcard {
	position: relative; display: block; border-radius: 10px; overflow: hidden;
	background: #1c2333; box-shadow: 0 8px 22px rgba(20, 40, 80, .10);
	min-height: 0;
}
/* Ảnh phủ kín tuyệt đối -> luôn cover dù chiều cao thẻ lấy từ grid/aspect-ratio */
.idn-hcard__img,
.idn-hcard .idn-bcard__noimg {
	position: absolute; inset: 0; z-index: 0;
	width: 100%; height: 100%; object-fit: cover; display: block;
	transition: transform .45s ease;
}
.idn-hcard:hover .idn-hcard__img { transform: scale(1.05); }

/* Lớp gradient + tiêu đề đè lên (chiếm ~55% chiều cao đáy) */
.idn-hcard__overlay {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
	padding: 16px 20px; min-height: 55%;
	display: flex; flex-direction: column; justify-content: flex-end;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .78) 100%);
}
.idn-hcard__badge {
	align-self: flex-start;
	background: var(--idn-news-accent); color: #fff;
	font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 5px;
	margin-bottom: 8px; letter-spacing: .02em;
}
.idn-hcard__title {
	margin: 0; color: #fff; font-weight: 700; line-height: 1.35;
	overflow: hidden; text-overflow: ellipsis;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
/* Meta ngày + lượt xem dưới tiêu đề (đè trên ảnh) */
.idn-hcard__meta {
	display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px;
	color: rgba(255, 255, 255, .9); font-size: 12px; font-weight: 500;
}
.idn-hcard__meta span { display: inline-flex; align-items: center; gap: 5px; }
.idn-hcard__meta svg { flex: none; opacity: .9; }

/* Banner lớn: quyết định chiều cao cả hàng (4 ô phải bằng đúng chiều cao này).
   Muốn 4 ô phải CAO HƠN -> giảm số aspect-ratio (vd 1.0); thấp hơn -> tăng (vd 1.3). */
.idn-hcard--big { aspect-ratio: 1.1; }
.idn-hcard--big .idn-hcard__title { font-size: 20px; }

/* Banner nhỏ: KHÔNG khóa tỉ lệ — giãn lấp đầy hàng để tổng = ô lớn */
.idn-hcard--sm { height: 100%; }
.idn-hcard--sm .idn-hcard__overlay { padding: 12px 18px; }
.idn-hcard--sm .idn-hcard__title { font-size: 14px; }

/* =======================================================================
 * Video clip — dùng lại layout Tin nổi bật (1 lớn + 2×2), thêm lớp phủ tối + nút play.
 * (.idn-vhcard đi kèm .idn-hcard nên thừa hưởng grid/aspect/overlay/responsive.)
 * ==================================================================== */
.idn-vhcard { cursor: pointer; }
/* Lớp phủ tối toàn ảnh để nổi nút play (như printgo opacity .6) */
.idn-vhcard::before {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: rgba(0, 0, 0, .45); transition: background .25s;
}
.idn-vhcard:hover::before { background: rgba(0, 0, 0, .3); }
/* Nút play tròn ở giữa, màu theo primary */
.idn-vhcard__play {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3;
	width: 54px; height: 54px; border-radius: 50%;
	background: var(--idn-news-accent, var(--primary-color, #2496ea));
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .35); transition: transform .2s, background .2s;
}
.idn-vhcard:hover .idn-vhcard__play { transform: translate(-50%, -50%) scale(1.08); }
.idn-vhcard__play::after {
	content: ""; border-style: solid; border-width: 10px 0 10px 17px;
	border-color: transparent transparent transparent #fff; margin-left: 4px;
}
.idn-vhcard__play--big { width: 84px; height: 84px; }
.idn-vhcard__play--big::after { border-width: 15px 0 15px 25px; margin-left: 6px; }

/* Lightbox video */
.idn-vlb { position: fixed; inset: 0; z-index: 100000; background: rgba(8, 14, 28, .9); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .2s; }
.idn-vlb.is-open { opacity: 1; }
.idn-vlb__inner { position: relative; width: min(960px, 100%); aspect-ratio: 16 / 9; }
.idn-vlb__inner iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; }
.idn-vlb__close { position: absolute; top: -42px; right: 0; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #14213d; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.idn-vlb__close:hover { background: #ffe3e3; }

/* =======================================================================
 * Đối tác chiến lược
 * ==================================================================== */
.idn-pgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.idn-pcard {
	display: flex; align-items: center; justify-content: center;
	background: #fff; border: 1px solid #eef1f6; border-radius: 12px; padding: 18px;
	aspect-ratio: 3 / 2; transition: box-shadow .2s, border-color .2s;
}
.idn-pcard:hover { box-shadow: 0 8px 20px rgba(20, 40, 80, .1); border-color: #dde4ee; }
.idn-pcard img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.idn-pcard:hover img { filter: grayscale(0); opacity: 1; }

/* =======================================================================
 * Builder hints + empty
 * ==================================================================== */
.idn-news__empty,
.idn-news__builderhint {
	background: #fff7e6; border: 1px dashed #f0b429; color: #8a6d1c;
	padding: 12px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; margin: 8px 0;
}
.idn-news__builderchips { display: flex; flex-wrap: wrap; gap: 10px; }
.idn-vchip { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; background: #fff; border-radius: 6px; }
.idn-vchip__img { width: 56px; height: 40px; object-fit: cover; border-radius: 4px; background: #eef2f7; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #94a3b8; }
.idn-vchip__meta { display: flex; flex-direction: column; line-height: 1.3; }
.idn-vchip__meta strong { font-size: 13px; color: #14213d; }
.idn-vchip__hint { font-size: 11px; color: #94a3b8; }

/* =======================================================================
 * Responsive
 * ==================================================================== */
@media (max-width: 1024px) {
	.idn-pgrid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 850px) {
	/* Tablet trở xuống: DỒN HẾT về 1 cột — ô lớn + 4 ô nhỏ đều full-width, xếp dọc */
	.idn-hero__grid { grid-template-columns: 1fr; }
	.idn-hero__list { grid-template-columns: 1fr; grid-template-rows: auto; }
	.idn-hcard--big { aspect-ratio: 1 / 1; }
	.idn-hcard--sm { height: auto; aspect-ratio: 1 / 1; }
	.idn-news__grid { grid-template-columns: repeat(2, 1fr) !important; }
	.idn-news__title { font-size: 22px; }
	.idn-pgrid { grid-template-columns: repeat(3, 1fr); }
	.idn-hcard__overlay { padding: 14px 16px; }
}
@media (max-width: 560px) {
	.idn-news__grid { grid-template-columns: 1fr !important; }
	.idn-news__head { flex-direction: column; align-items: flex-start; }
	.idn-pgrid { grid-template-columns: repeat(2, 1fr); }
}

/* =======================================================================
 * Khối bài viết — kiểu "Banner màu" (dựng lại printgo.vn/tin-tuc)
 * Header: eyebrow nhỏ in hoa → tiêu đề lớn → gạch chân + "Xem nhiều hơn ►".
 * Card  : ảnh phủ kín bo góc + lớp gradient màu + tiêu đề đè đáy.
 * ==================================================================== */
.idn-news__sec--banner { padding: 40px 0; }

.idn-bsec__head {
	display: flex; align-items: flex-end; justify-content: space-between;
	gap: 16px; margin-bottom: 20px;
}
.idn-bsec__eyebrow {
	display: block; text-transform: uppercase; letter-spacing: .02em;
	font-size: 13px; color: #5a6b85; margin-bottom: 4px;
}
.idn-bsec__title {
	margin: 0; text-transform: uppercase; font-size: 24px; font-weight: 600;
	line-height: 1.25; color: rgba(0, 0, 0, .85);
}
.idn-bsec__rule {
	display: block; width: 120px; height: 2px; background: #000;
	margin-top: 6px;
}
.idn-bsec__more {
	flex: none; display: inline-flex; align-items: center; gap: 4px;
	font-weight: 600; font-size: 15px; color: #000; white-space: nowrap;
	transition: color .2s;
}
.idn-bsec__more:hover { color: var(--idn-news-accent); }
.idn-bsec__caret { font-size: 12px; line-height: 1; }

.idn-bgrid {
	display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr);
	gap: 24px;
}

.idn-bbanner {
	position: relative; display: block; overflow: hidden; border-radius: 10px;
	aspect-ratio: 1 / 1; background: #1c2333;
}
.idn-bbanner__img,
.idn-bbanner__noimg {
	width: 100%; height: 100%; object-fit: cover; display: block;
	border-radius: 10px; transition: transform .45s ease;
}
.idn-bbanner__noimg { background: #2a3142; }
.idn-bbanner:hover .idn-bbanner__img { transform: scale(1.05); }

/* Lớp gradient màu phủ ~55% đáy */
.idn-bbanner::before {
	content: ""; position: absolute; left: 0; bottom: 0; z-index: 1;
	display: block; width: 100%; height: 55%; border-radius: 10px;
	opacity: .95; box-sizing: border-box; transition: all .25s ease-in-out;
}
.idn-bbanner__wrap {
	position: absolute; left: 0; right: 0; bottom: 5px; z-index: 2;
	padding: 6px 20px;
}
.idn-bbanner__title {
	margin: 8px 32px 0 0; font-size: 14px; font-weight: 700; color: #fff;
	line-height: 1.4; transition: all .4s ease-in-out;
	overflow: hidden; text-overflow: ellipsis;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
button.idn-vlb__close {
    /* margin: 0px; */
    padding: 0px;
    min-height: 45px !important;
    /* display: block !important; */
    width: 45px;
}
.idn-bbanner img {
    width: 100%;
}
/* 6 tông màu luân phiên (theo printgo) */
.idn-bbanner--1::before { background: linear-gradient(180deg, rgba(0, 0, 0, .01) 0, #3dbeb3); }
.idn-bbanner--2::before { background: linear-gradient(180deg, rgba(0, 0, 0, .01) 0, #60b7ea); }
.idn-bbanner--3::before { background: linear-gradient(180deg, rgba(0, 0, 0, .01) 0, #e97d3d); }
.idn-bbanner--4::before { background: linear-gradient(180deg, rgba(0, 0, 0, .01) 0, #e4587f); }
.idn-bbanner--5::before { background: linear-gradient(180deg, rgba(0, 0, 0, .01) 0, #623a93); }
.idn-bbanner--6::before { background: linear-gradient(180deg, rgba(0, 0, 0, .01) 0, #49ca92); }

@media (max-width: 850px) {
	a.idn-hcard.idn-hcard--sm img {
    width: 100%;
}
	/* Tablet trở xuống: dồn 1 cột, mỗi banner 1 hàng, tỉ lệ 1:1 */
	.idn-bgrid { grid-template-columns: 1fr !important; }
	.idn-bbanner { aspect-ratio: 1 / 1; }
	.idn-bsec__title { font-size: 20px; }
}
@media (max-width: 560px) {
	.idn-bsec__head { flex-direction: column; align-items: flex-start; }
}

/* =======================================================================
 * Câu chuyện đồ hoạ — header + 4 card lớn + danh sách nhỏ (printgo style)
 * Màu theo --idn-news-accent (primary), font kế thừa theme.
 * ==================================================================== */
.idn-story { background: #f6f9fe; }

/* Header */
.idn-story__head {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; margin-bottom: 24px;
}
.idn-story__eyebrow {
	display: block; text-transform: uppercase; letter-spacing: .02em;
	font-size: 13px; color: #5a6b85; margin-bottom: 4px;
}
.idn-story__title {
	margin: 0; text-transform: uppercase; font-size: 24px; font-weight: 700;
	line-height: 1.25; color: #14213d;
}
.idn-story__rule { display: block; width: 120px; height: 2px; background: #000; margin-top: 8px; }
.idn-story__more {
	flex: none; display: inline-flex; align-items: center; gap: 4px;
	font-weight: 600; font-size: 15px; color: #000; white-space: nowrap;
	transition: color .2s;
}
.idn-story__more:hover { color: var(--idn-news-accent, var(--primary-color, #2496ea)); }
.idn-story__caret { flex: none; }

/* 4 card lớn */
.idn-story__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.idn-story__card {
	display: flex; flex-direction: column;
	background: #fff; border-radius: 10px; overflow: hidden;
	box-shadow: 0 4px 16px rgba(20, 40, 80, .06);
}
.idn-story__cardthumb { display: block; aspect-ratio: 284 / 200; overflow: hidden; }
.idn-story__cardthumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.idn-story__card:hover .idn-story__cardthumb img { transform: scale(1.05); }

.idn-story__cardbody { flex: 1 1 auto; padding: 0 20px 20px; }
.idn-story__divider { display: block; border-top: 1px solid #dbdbdb; }
.idn-story__cardbody .idn-story__divider { margin: 15px 0; }
.idn-story__cardtitlelink { display: block; }
.idn-story__cardtitle {
	margin: 0 0 8px; font-size: 14px; font-weight: 600; line-height: 1.5; color: #14213d;
	overflow: hidden; text-overflow: ellipsis;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.idn-story__cardtitlelink:hover .idn-story__cardtitle { color: var(--idn-news-accent, var(--primary-color, #2496ea)); }
.idn-story__cardexcerpt {
	margin: 0; font-size: 13px; line-height: 1.5; color: #5a6b85;
	overflow: hidden; text-overflow: ellipsis;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.idn-story__cardmore { text-align: center; padding: 15px; }
.idn-story__cardmore a {
	display: inline-flex; align-items: center; gap: 4px;
	color: #14213d; font-weight: 600; font-size: 13px; text-transform: uppercase;
	transition: color .2s;
}
.idn-story__cardmore a:hover { color: var(--idn-news-accent, var(--primary-color, #2496ea)); }

/* Danh sách nhỏ (3 cột: ảnh trái + tiêu đề phải) */
.idn-story__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 45px; }
.idn-story__itemrow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.idn-story__itemthumb { display: block; aspect-ratio: 117 / 100; overflow: hidden; border-radius: 6px; }
.idn-story__itemthumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.idn-story__item:hover .idn-story__itemthumb img { transform: scale(1.05); }
.idn-story__itemtitle {
	margin: 0; font-size: 13px; font-weight: 600; line-height: 1.5; color: #14213d;
	overflow: hidden; text-overflow: ellipsis;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.idn-story__itemtitlelink:hover .idn-story__itemtitle { color: var(--idn-news-accent, var(--primary-color, #2496ea)); }
.idn-story__item .idn-story__divider { margin-top: 20px; }

@media (max-width: 1024px) {
	.idn-story__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 850px) {
	.idn-story__list { grid-template-columns: repeat(2, 1fr); }
	.idn-story__title { font-size: 20px; }
}
@media (max-width: 560px) {
	.idn-story__grid { grid-template-columns: 1fr; }
	.idn-story__list { grid-template-columns: 1fr; }
	.idn-story__head { flex-direction: column; align-items: flex-start; }
}
