/* ============================================================
   Trang Tin tức (archive.php → template-parts/news-archive.php)
   Chỉ phần nội dung giữa — header/footer dùng của website.
   Màu: #1854b5 (xanh chính) · #00a0e2 (cyan) · #333 chữ · #666 chữ phụ · #d2d2d2 viền
   Gutter/khung theo trang chủ: 9.84375vw · tối đa 1542px
   ============================================================ */

.dnm-nl-page {
	--news-blue: #1854b5;
	--news-cyan: #00a0e2;
	--news-gutter: max(9.84375vw, calc((100vw - 1542px) / 2));
	position: relative;
	font-family: 'Wix Madefor Display', 'Segoe UI', Roboto, Arial, sans-serif;
	color: #333;
	background: #fff;
}

.dnm-nl-page *,
.dnm-nl-page *::before,
.dnm-nl-page *::after {
	box-sizing: border-box;
}

.dnm-nl-page a {
	text-decoration: none;
	color: inherit;
}

/* ---------- Banner tiêu đề (ảnh nền 1920×445) ---------- */
.dnm-nl__banner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(240px, 23.2vw, 445px);
	padding: clamp(90px, 8vw, 150px) 16px 0;
	background-color: #cfe6f7;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.dnm-nl__banner-title {
	margin: 0;
	text-align: center;
	font-size: clamp(28px, 2.5vw, 48px);
	line-height: 1.2;
	font-weight: 700;
	color: var(--news-blue);
}

.dnm-nl__wrap {
	position: relative;
	z-index: 1;
	max-width: 1542px;
	margin: 0 auto;
	padding: 0 9.84375vw;
}

@media (min-width: 2100px) {
	.dnm-nl__wrap {
		padding: 0;
	}
}

/* ---------- Breadcrumb (nằm cuối banner) ---------- */
.dnm-nl__crumb {
	position: absolute;
	left: var(--news-gutter);
	right: var(--news-gutter);
	bottom: 18px;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	line-height: 20px;
	color: #444;
}

.dnm-nl__crumb a:hover {
	color: var(--news-blue);
}

.dnm-nl__crumb .is-current {
	color: var(--news-blue);
	font-weight: 600;
}

/* ---------- Thẻ bài viết dùng chung ---------- */
.dnm-nl__img {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	aspect-ratio: 335 / 208;
	background: #e9f2ff;
}

.dnm-nl__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease-in-out;
}

.dnm-nl__item:hover .dnm-nl__img img {
	transform: scale(1.1);
}

.dnm-nl__noimg {
	display: block;
	width: 100%;
	height: 100%;
}

.dnm-nl__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	font-size: 12px;
	line-height: 20px;
	font-weight: 400;
	color: #666;
}

.dnm-nl__term {
	color: var(--news-cyan);
	text-transform: uppercase;
}

.dnm-nl__sep {
	width: 1px;
	height: 10px;
	background: #dcdcdc;
}

.dnm-nl__title {
	margin: 0;
	font-size: 18px;
	line-height: 25px;
	font-weight: 600;
	color: #333;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dnm-nl__title a {
	color: inherit;
	transition: color 0.2s;
}

.dnm-nl__item:hover .dnm-nl__title a {
	color: var(--news-blue);
}

.dnm-nl__excerpt {
	margin: 15px 0 0;
	font-size: 16px;
	line-height: 24px;
	color: #666;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

/* ---------- Bài nổi bật ---------- */
.dnm-nl__featured {
	position: relative;
	z-index: 1;
	padding-top: clamp(40px, 4.2vw, 80px);
}

.dnm-nl__featured-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
}

.dnm-nl__featured-main {
	width: 58.3333%;
	padding-right: 45px;
}

.dnm-nl__featured-side {
	width: 41.6667%;
	padding-left: 10px;
}

.dnm-nl__item--big .dnm-nl__img {
	border-radius: 20px;
	margin-bottom: 14px;
}

.dnm-nl__item--big .dnm-nl__title {
	font-size: 28px;
	line-height: 34px;
}

.dnm-nl__item--side {
	display: flex;
	gap: 20px;
}

.dnm-nl__item--side + .dnm-nl__item--side {
	margin-top: 45px;
}

.dnm-nl__item--side .dnm-nl__img {
	width: 218px;
	min-width: 218px;
	border-radius: 15px;
}

.dnm-nl__item--side .dnm-nl__body {
	min-width: 0;
}

/* ---------- Tab danh mục + lưới ---------- */
.dnm-nl__list {
	position: relative;
	z-index: 1;
	padding: clamp(50px, 5vw, 96px) 0 clamp(50px, 4.2vw, 80px);
}

.dnm-nl__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dnm-nl__tabs a {
	display: block;
	padding: 8px 20px;
	border: 1px solid #d2d2d2;
	border-radius: 50px;
	font-size: 16px;
	line-height: 28px;
	font-weight: 600;
	color: #666;
	background: #fff;
	transition: all 0.4s;
}

.dnm-nl__tabs a:hover,
.dnm-nl__tabs a.is-active {
	color: var(--news-blue);
	border-color: var(--news-blue);
}

.dnm-nl__heading {
	margin: 40px 0 0;
	text-align: center;
	font-size: clamp(26px, 2.1vw, 40px);
	line-height: 1.25;
	font-weight: 700;
	color: var(--news-blue);
}

.dnm-nl__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 52px 24px;
	margin-top: 40px;
}

.dnm-nl__grid:empty {
	display: none;
}

.dnm-nl__empty {
	margin: 40px 0 0;
	text-align: center;
	color: #666;
}

/* ---------- Nút "Xem thêm" (AJAX) ---------- */
.dnm-nl__more {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 52px auto 0;
	padding: 12px 32px;
	border: 0;
	border-radius: 50px;
	background: linear-gradient(260.42deg, #1854b5 11.806%, #1284d2 65.339%, #09cfff 107.21%);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	color: #fff;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.2s;
}

.dnm-nl__more:hover {
	opacity: 0.9;
	transform: translateY(-2px);
}

.dnm-nl__more.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.dnm-nl__featured-main {
		width: 100%;
		padding-right: 0;
		padding-bottom: 32px;
	}

	.dnm-nl__featured-side {
		width: 100%;
		padding-left: 0;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}

	.dnm-nl__item--side + .dnm-nl__item--side {
		margin-top: 0;
	}

	.dnm-nl__item--side .dnm-nl__img {
		width: 45%;
		min-width: 45%;
	}

	.dnm-nl__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.dnm-nl__wrap {
		padding-left: 16px;
		padding-right: 16px;
	}

	.dnm-nl__crumb {
		left: 16px;
		right: 16px;
		bottom: 12px;
	}

	.dnm-nl__featured {
		padding-top: 32px;
	}

	.dnm-nl__featured-side {
		grid-template-columns: 1fr;
	}

	.dnm-nl__item--big .dnm-nl__title {
		font-size: 22px;
		line-height: 28px;
	}

	.dnm-nl__item--side .dnm-nl__img {
		width: 40%;
		min-width: 40%;
	}

	.dnm-nl__tabs {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		padding-bottom: 6px;
	}

	.dnm-nl__tabs a {
		white-space: nowrap;
		font-size: 14px;
		padding: 6px 16px;
	}

	.dnm-nl__heading {
		margin-top: 24px;
	}

	.dnm-nl__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px 16px;
		margin-top: 24px;
	}

	.dnm-nl__title {
		font-size: 15px;
		line-height: 21px;
	}
}

/* ============================================================
   Chi tiết bài viết (single.php) — theo Figma "Trang chi tiết tin tức"
   ============================================================ */
.dnm-nd {
	padding: clamp(110px, 10.3vw, 198px) 0 clamp(50px, 4.2vw, 80px);
}

.dnm-nd__crumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 10px;
	font-size: 18px;
	line-height: 35px;
	letter-spacing: 0.36px;
	color: #8e8e8e;
}

.dnm-nd__crumb a:hover {
	color: var(--news-blue);
}

.dnm-nd__crumb .is-current {
	color: var(--news-blue);
}

.dnm-nd__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-top: clamp(8px, 1vw, 20px);
}

.dnm-nl-page .dnm-nd__cat {
	font-size: 18px;
	line-height: 35px;
	letter-spacing: 0.36px;
	color: var(--news-blue);
}

.dnm-nd__title {
	max-width: 1000px;
	margin: 12px 0 0;
	font-size: clamp(26px, 2.5vw, 48px);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: capitalize;
	color: var(--news-blue);
}

.dnm-nd__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 12px;
	margin-top: clamp(20px, 2vw, 38px);
	font-size: 18px;
	line-height: 35px;
	letter-spacing: 0.36px;
	color: #8e8e8e;
}

.dnm-nd__share {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--news-blue);
	cursor: pointer;
	transition: opacity 0.2s;
}

.dnm-nd__share:hover {
	opacity: 0.85;
}

.dnm-nd__content {
	margin-top: clamp(24px, 2.4vw, 46px);
	font-size: 16px;
	line-height: 1.36;
	letter-spacing: 0.03em;
	text-align: justify;
	color: #000;
}

.dnm-nd__content > p:first-of-type {
	font-size: 20px;
	font-weight: 700;
}

.dnm-nd__content p {
	margin: 0 0 1.36em;
}

.dnm-nd__content h2,
.dnm-nd__content h3,
.dnm-nd__content h4 {
	margin: 0 0 1.36em;
	font-size: 16px;
	line-height: 1.36;
	font-weight: 700;
	color: #000;
}

.dnm-nd__content img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	border-radius: 25px;
}

.dnm-nd__content figure,
.dnm-nd__content .wp-caption {
	max-width: 100%;
	margin: 0 0 1.36em;
}

.dnm-nd__content figcaption,
.dnm-nd__content .wp-caption-text {
	margin-top: 12px;
	font-size: 14px;
	line-height: 1.36;
	letter-spacing: 0.03em;
	text-align: left;
	color: #000;
}

.dnm-nl-page .dnm-nd__content a {
	color: var(--news-blue);
	text-decoration: underline;
}

.dnm-nd__content ul,
.dnm-nd__content ol {
	margin: 0 0 1.36em;
	padding-left: 1.4em;
}

/* Tin tức liên quan */
.dnm-nd__related {
	padding-top: clamp(40px, 4vw, 80px);
}

.dnm-nd__related-title {
	margin: 0;
	text-align: center;
	font-size: clamp(26px, 2.1vw, 40px);
	line-height: 1;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--news-blue);
}

.dnm-nd__related .dnm-nl__img {
	border-radius: 25px;
}

.dnm-nd__related .dnm-nl__grid {
	margin-top: clamp(24px, 2.5vw, 48px);
}

@media (max-width: 767px) {
	.dnm-nd__crumb,
	.dnm-nd__cat,
	.dnm-nd__meta {
		font-size: 14px;
		line-height: 24px;
	}

	.dnm-nd__content {
		font-size: 15px;
		text-align: left;
	}

	.dnm-nd__content > p:first-of-type {
		font-size: 17px;
	}

	.dnm-nd__content img {
		border-radius: 14px;
	}
}
