/* DIGIS – trang /tin-tuc/: shortcode [digis_tin_tuc] (inc/digis-tin-tuc.php).
 * 25/11/2026 thiết kế lại: khối nổi bật + lưới thẻ + phân trang. Chỉ nạp trên trang Tin tức.
 * Màu lấy theo bảng màu chung trong style.css (--pmh-*). */

.elementor-1471 .elementor-element-e777547 {
	--padding-top: 56px;
	--padding-bottom: 80px;
}

.dtt {
	--dtt-red: var(--pmh-red, #A50D20);
	--dtt-brown: var(--pmh-brown, #602314);
	--dtt-gold: var(--pmh-gold, #FBB612);
	--dtt-text: var(--pmh-text, #4B4E53);
	--dtt-muted: #8a8580;
	--dtt-line: #ece6dc;
	--dtt-radius: var(--pmh-radius, 8px);
	--dtt-ease: cubic-bezier(.22, .61, .36, 1);
	width: 100%;
	color: var(--dtt-text);
}

/* ---------- Thẻ bài (dùng chung) ---------- */
.dtt-the {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--dtt-line);
	border-radius: var(--dtt-radius);
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(30, 26, 23, .04);
	transition: transform .35s var(--dtt-ease), box-shadow .35s var(--dtt-ease), border-color .35s;
}
.dtt-the__anh {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--pmh-beige, #F1EDE8);
}
.dtt-the__anh img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s var(--dtt-ease);
}
.dtt-the__chu {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 20px 22px 22px;
}
.dtt-the__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin-bottom: 10px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--dtt-muted);
}
.dtt-the__meta span {
	display: inline-flex;
	align-items: center;
	gap: 14px;
}
.dtt-the__meta span::before {
	content: "";
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--dtt-gold);
}
.dtt-the__ten {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -.005em;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.dtt-the__ten a {
	color: #2b2522;
	text-decoration: none;
	transition: color .25s;
}
/* Cả thẻ bấm được */
.dtt-the__ten a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.dtt-the__ten a:focus-visible {
	outline: none;
}
.dtt-the:focus-within {
	outline: 2px solid var(--dtt-gold);
	outline-offset: 2px;
}
.dtt-the__tom {
	margin: 0 0 18px;
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--dtt-text);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.dtt-the__doc {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--dtt-red);
}
.dtt-the__doc svg {
	transition: transform .3s var(--dtt-ease);
}

@media (hover: hover) {
	.dtt-the:hover {
		transform: translateY(-4px);
		border-color: #e2d6bf;
		box-shadow: 0 14px 32px rgba(30, 26, 23, .10);
	}
	.dtt-the:hover .dtt-the__anh img { transform: scale(1.05); }
	.dtt-the:hover .dtt-the__ten a { color: var(--dtt-red); }
	.dtt-the:hover .dtt-the__doc svg { transform: translateX(4px); }
}

/* ---------- Khối nổi bật (trang 1) ---------- */
.dtt-noibat {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
	gap: 24px;
	margin-bottom: 64px;
}
.dtt-noibat__phu {
	display: grid;
	grid-template-rows: 1fr 1fr;
	gap: 24px;
}

/* Bài lớn: ảnh phủ kín, chữ nằm trên lớp tối */
.dtt-the--lon {
	min-height: 480px;
	border: 0;
	color: #fff;
}
.dtt-the--lon .dtt-the__anh {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
}
.dtt-the--lon .dtt-the__anh::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 16, 14, 0) 30%, rgba(20, 16, 14, .55) 60%, rgba(20, 16, 14, .9) 100%);
}
.dtt-the--lon .dtt-the__chu {
	position: relative;
	justify-content: flex-end;
	padding: 32px 36px 34px;
}
.dtt-the--lon .dtt-the__meta {
	color: rgba(255, 255, 255, .8);
}
.dtt-the--lon .dtt-the__meta::before {
	content: "Nổi bật";
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--dtt-gold);
	color: #2b2522;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.dtt-the--lon .dtt-the__ten {
	max-width: 640px;
	font-size: clamp(22px, 2.4vw, 30px);
	line-height: 1.3;
	font-weight: 600;
}
.dtt-the--lon .dtt-the__ten a { color: #fff; }
.dtt-the--lon .dtt-the__tom {
	max-width: 620px;
	color: rgba(255, 255, 255, .85);
	-webkit-line-clamp: 2;
}
.dtt-the--lon .dtt-the__doc { color: var(--dtt-gold); }
@media (hover: hover) {
	.dtt-the--lon:hover .dtt-the__ten a { color: #fff; }
}

/* Bài phụ: ảnh nhỏ bên trái, chữ bên phải */
.dtt-the--phu {
	flex-direction: row;
}
.dtt-the--phu .dtt-the__anh {
	flex: 0 0 44%;
	min-height: 130px;
	aspect-ratio: auto;
}
.dtt-the--phu .dtt-the__anh img {
	position: absolute;
	inset: 0;
}
.dtt-the--phu .dtt-the__chu {
	padding: 18px 20px;
	justify-content: center;
}
.dtt-the--phu .dtt-the__ten {
	font-size: 16.5px;
	margin-bottom: 12px;
}
.dtt-the--phu .dtt-the__doc { margin-top: 0; }

/* ---------- Tiêu đề nhóm ---------- */
.dtt-dau {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0 0 28px;
}
.dtt-dau__ten {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--dtt-red);
	white-space: nowrap;
}
.dtt-dau__gach {
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--dtt-gold) 0, var(--dtt-gold) 64px, var(--dtt-line) 64px);
}

/* ---------- Lưới thẻ ---------- */
.dtt-luoi {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 28px;
}

/* ---------- Phân trang ---------- */
.dtt-trang {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 56px;
}
.dtt-trang__so,
.dtt-trang__nut {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--dtt-line);
	border-radius: 999px;
	background: #fff;
	color: var(--dtt-text);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background-color .25s, color .25s, border-color .25s;
}
.dtt-trang__nut--toi svg { transform: rotate(180deg); }
.dtt-trang .is-dang {
	background: var(--dtt-red);
	border-color: var(--dtt-red);
	color: #fff;
}
.dtt-trang .is-tat {
	opacity: .4;
	pointer-events: none;
}
.dtt-trang a:hover,
.dtt-trang a:focus-visible {
	border-color: var(--dtt-gold);
	color: var(--dtt-red);
	background: var(--pmh-gold-pale, #FFF7E5);
}

.dtt-trong {
	text-align: center;
	padding: 40px 0;
}

/* ---------- Màn hình vừa ---------- */
@media (max-width: 1024px) {
	.dtt-noibat {
		grid-template-columns: 1fr;
	}
	.dtt-noibat__phu {
		grid-template-rows: none;
		grid-template-columns: 1fr 1fr;
	}
	.dtt-the--lon { min-height: 420px; }
	.dtt-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Điện thoại ---------- */
@media (max-width: 767px) {
	.elementor-1471 .elementor-element-e777547 {
		--padding-top: 32px;
		--padding-bottom: 56px;
	}
	.dtt-noibat { gap: 16px; margin-bottom: 44px; }
	.dtt-noibat__phu { grid-template-columns: 1fr; gap: 16px; }
	.dtt-the--lon { min-height: 380px; }
	.dtt-the--lon .dtt-the__chu { padding: 22px 20px 24px; }
	.dtt-the--lon .dtt-the__tom { display: none; }
	.dtt-the--phu .dtt-the__anh { flex-basis: 38%; }
	.dtt-the--phu .dtt-the__chu { padding: 14px 16px; }
	.dtt-the--phu .dtt-the__ten { font-size: 15.5px; margin-bottom: 8px; }
	.dtt-the--phu .dtt-the__meta span { display: none; }
	.dtt-the--phu .dtt-the__doc { display: none; }
	.dtt-luoi { grid-template-columns: 1fr; gap: 20px; }
	.dtt-dau__ten { font-size: 21px; }
	.dtt-trang { margin-top: 40px; gap: 6px; }
	.dtt-trang__nut span { display: none; }
	.dtt-trang__nut { padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.dtt-the, .dtt-the__anh img, .dtt-the__doc svg { transition: none !important; }
	.dtt-the:hover, .dtt-the:hover .dtt-the__anh img { transform: none !important; }
}
