/* ==========================================================
   Trang Tin tức & Kiến thức (templates/blog.liquid, templates/search.news.liquid)
   Theo demo #/tin-tuc. Toàn bộ rule scoped dưới .dt-news
   ========================================================== */
.dt-news {
	--dtn-ink: #344f70;
	--dtn-navy: #163754;
	--dtn-muted: #6f8092;
	--dtn-orange: #f57839;
	--dtn-orange-text: #e96b2a;
	--dtn-pale: #eff6fa;
	--dtn-line: #dfe8ee;
	background: #ffffff;
	color: var(--dtn-ink);
	font-size: 16px;
	line-height: 1.65;
}
.dt-news *,
.dt-news *::before,
.dt-news *::after { box-sizing: border-box; }
.dt-news a { color: inherit; text-decoration: none; }
.dt-news a:hover,
.dt-news a:focus { color: var(--dtn-orange); text-decoration: none; }
.dt-news h1,
.dt-news h3,
.dt-news p { margin: 0 0 15px; }

.dt-news .dtn-wrap {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 28px 10px;
}

/* Breadcrumb */
.dt-news .dtn-crumb {
	font-size: 12px;
	color: var(--dtn-muted);
	padding: 20px 0;
	line-height: 1.5;
}
.dt-news .dtn-crumb__sep { margin: 0 5px; }
.dt-news .dtn-crumb [aria-current] { color: var(--dtn-muted); }

/* Sub-nav Trung tâm hỗ trợ */
.dt-news .dtn-subnav {
	display: flex;
	flex-wrap: wrap;
	gap: 25px;
	font-size: 14px;
	padding-bottom: 20px;
}
.dt-news .dtn-subnav a { padding-bottom: 2px; border-bottom: 2px solid transparent; }
.dt-news .dtn-subnav a.is-active { border-bottom-color: var(--dtn-orange); }

/* Tiêu đề trang */
.dt-news .dtn-title { padding: 26px 0; }
.dt-news .dtn-title h1 {
	font-size: 34px;
	line-height: 1.25;
	letter-spacing: -.7px;
	color: var(--dtn-navy);
	font-weight: 700;
	text-transform: none;
}
.dt-news .dtn-title p { margin: 0; color: var(--dtn-ink); }

/* Toolbar: tab chuyên mục + ô tìm kiếm */
.dt-news .dtn-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 25px;
}
.dt-news .dtn-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0 25px;
	border-bottom: 1px solid var(--dtn-line);
	flex: 1 1 auto;
	min-width: 0;
}
.dt-news .dtn-tab {
	display: inline-block;
	padding: 12px 3px;
	margin-bottom: -1px;
	color: var(--dtn-ink);
	border-bottom: 2px solid transparent;
	font-size: 14px;
	line-height: 1.4;
	white-space: nowrap;
}
.dt-news .dtn-tab.is-selected {
	color: var(--dtn-orange);
	border-bottom-color: var(--dtn-orange);
}
.dt-news .dtn-search {
	position: relative;
	flex: 0 0 220px;
	max-width: 220px;
	margin: 0;
}
.dt-news .dtn-search input[type=search] {
	width: 100%;
	min-width: 0;
	height: 44px;
	margin: 0;
	border: 1px solid #cbd7e1;
	border-radius: 3px;
	padding: 10px 40px 10px 12px;
	color: var(--dtn-ink);
	background: #ffffff;
	font: inherit;
	font-size: 15px;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}
.dt-news .dtn-search input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.dt-news .dtn-search input[type=search]:focus {
	outline: 2px solid #f5783933;
	border-color: var(--dtn-orange);
}
.dt-news .dtn-search button {
	position: absolute;
	top: 0;
	right: 0;
	width: 40px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--dtn-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.dt-news .dtn-search button:hover { color: var(--dtn-orange); }

/* Lưới thẻ tin */
.dt-news .dtn-results { margin-top: 24px; }
.dt-news .dtn-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.dt-news .dtn-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--dtn-line);
	border-radius: 4px;
	overflow: hidden;
	background: #ffffff;
	transition: box-shadow .25s, border-color .25s;
}
.dt-news .dtn-card:hover { box-shadow: 0 8px 24px rgba(22, 55, 84, .08); }
.dt-news .dtn-card__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 1.8;
	background: var(--dtn-pale);
}
.dt-news .dtn-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s;
}
.dt-news .dtn-card:hover .dtn-card__media img { transform: scale(1.025); }
.dt-news .dtn-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 220px;
	padding: 17px;
}
.dt-news .dtn-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	font-size: 11px;
	color: var(--dtn-muted);
	line-height: 1.5;
}
.dt-news .dtn-pill {
	display: inline-block;
	background: #edf4fa;
	color: var(--dtn-ink);
	padding: 2px 7px;
	border-radius: 3px;
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 70%;
}
.dt-news .dtn-card__meta time { white-space: nowrap; }
.dt-news .dtn-card__title {
	font-size: 17px;
	line-height: 1.4;
	font-weight: 700;
	color: var(--dtn-navy);
	margin: 0 0 9px;
	text-transform: none;
}
.dt-news .dtn-card__title a { color: var(--dtn-navy); }
.dt-news .dtn-card__title a:hover { color: var(--dtn-orange); }
.dt-news .dtn-card__excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: var(--dtn-ink);
	margin: 0 0 12px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.dt-news .dtn-textlink {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: auto;
	font-size: 14px;
	color: var(--dtn-orange-text);
	align-self: flex-start;
}
.dt-news .dtn-textlink:hover { color: var(--dtn-navy); }

.dt-news .dtn-empty {
	padding: 45px;
	text-align: center;
	background: var(--dtn-pale);
	border-radius: 4px;
	color: var(--dtn-ink);
}
.dt-news .dtn-empty[hidden] { display: none; }
.dt-news .dtn-empty--filter { margin-top: 20px; }

/* Phân trang */
.dt-news .dtn-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin: 30px 0 25px;
}
.dt-news .dtn-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 36px;
	padding: 0 12px;
	border: 1px solid var(--dtn-line);
	border-radius: 3px;
	background: #ffffff;
	color: var(--dtn-ink);
	font-size: 14px;
	line-height: 1;
}
.dt-news a.dtn-page:hover { border-color: var(--dtn-orange); color: var(--dtn-orange); }
.dt-news .dtn-page.is-current {
	background: var(--dtn-orange);
	border-color: var(--dtn-orange);
	color: #ffffff;
}
.dt-news .dtn-page--gap { border-color: transparent; padding: 0 4px; min-width: 0; }

/* CTA cuối trang */
.dt-news .dtn-cta {
	background: var(--dtn-pale);
	padding: 27px 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 25px;
	border-radius: 4px;
	margin: 40px 0 45px;
}
.dt-news .dtn-cta h3 {
	font-size: 23px;
	line-height: 1.4;
	font-weight: 700;
	color: var(--dtn-navy);
	margin: 0 0 5px;
	text-transform: none;
}
.dt-news .dtn-cta p { margin: 0; font-size: 14px; }
.dt-news .dtn-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 10px 20px;
	border: 1px solid var(--dtn-orange);
	background: var(--dtn-orange);
	color: #ffffff;
	border-radius: 3px;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	flex: 0 0 auto;
}
.dt-news .dtn-btn:hover,
.dt-news .dtn-btn:focus { background: #e3662a; border-color: #e3662a; color: #ffffff; }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
	.dt-news .dtn-toolbar { display: block; }
	.dt-news .dtn-search { max-width: 100%; margin-top: 15px; }
}
@media (max-width: 900px) {
	.dt-news .dtn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dt-news .dtn-title h1 { font-size: 32px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 650px) {
	.dt-news { font-size: 15px; }
	.dt-news .dtn-wrap { padding-left: 20px; padding-right: 20px; }
	.dt-news .dtn-crumb { padding: 16px 0; }
	.dt-news .dtn-subnav { font-size: 13px; gap: 20px; padding-bottom: 14px; }
	.dt-news .dtn-title { padding: 18px 0 20px; }
	.dt-news .dtn-title h1 { font-size: 29px; overflow-wrap: break-word; }
	.dt-news .dtn-tabs {
		flex-wrap: nowrap;
		gap: 0 18px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.dt-news .dtn-tabs::-webkit-scrollbar { display: none; }
	.dt-news .dtn-tab { min-height: 44px; display: inline-flex; align-items: center; flex: 0 0 auto; }
	.dt-news .dtn-search input[type=search] { font-size: 16px; }
	.dt-news .dtn-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.dt-news .dtn-card__body { min-height: 0; }
	.dt-news .dtn-card__title { font-size: 18px; }
	.dt-news .dtn-textlink { min-height: 32px; }
	.dt-news .dtn-cta { flex-direction: column; align-items: flex-start; padding: 20px; margin: 30px 0 25px; }
	.dt-news .dtn-cta h3 { font-size: 21px; }
	.dt-news .dtn-btn { min-height: 44px; }
}
@media (max-width: 370px) {
	.dt-news .dtn-wrap { padding-left: 16px; padding-right: 16px; }
}

/* ===== Khớp demo #/tin-tuc bản cuối: font Arial, màu ink #253c49 / muted #64727b, spacing ===== */
.dt-news { --dtn-ink:#253c49; --dtn-navy:#253c49; --dtn-muted:#64727b; --dtn-pale:#f5f8fa; --dtn-line:#e8edef; font-family: Arial, sans-serif; color:#253c49; font-size:16px; line-height:1.65; }
.dt-news *:not(i) { font-family: Arial, sans-serif; }
.dt-news p { line-height:1.85; }
.dt-news .dtn-wrap { max-width:1200px; padding:0 28px; }
.dt-news .dtn-crumb { line-height:1.65; color:#64727b; }
.dt-news .dtn-subnav { gap:25px; font-size:14px; padding-bottom:20px; }
.dt-news .dtn-subnav a { padding-bottom:0; color:#253c49; }
.dt-news .dtn-subnav a.is-active { color:#f57839; border-bottom-color:#f57839; }
.dt-news .dtn-title { padding:26px 0; }
.dt-news .dtn-title h1 { font-size:34px; line-height:1.25; letter-spacing:-.7px; font-weight:400; color:#253c49; margin:0 0 15px; }
.dt-news .dtn-title p { color:#64727b; line-height:1.85; margin:0 0 15px; }
.dt-news .dtn-toolbar { gap:25px; }
.dt-news .dtn-tabs { flex:0 1 auto; gap:25px; border-bottom:1px solid #e8edef; }
.dt-news .dtn-tab { margin-bottom:0; line-height:1.65; color:#253c49; }
.dt-news .dtn-tab.is-selected { color:#f57839; border-bottom-color:#f57839; }
.dt-news .dtn-search { flex:0 0 220px; max-width:220px; }
.dt-news .dtn-search input[type=search] { height:auto; padding:10px 12px; font-size:16px; line-height:1.65; color:#253c49; border:1px solid #cbd7e1; border-radius:3px; }
.dt-news .dtn-search input[type=search]::placeholder { color:#99a7b5; }
.dt-news .dtn-search button { display:none; }
.dt-news .dtn-results { margin-top:24px; }
.dt-news .dtn-grid { gap:20px; }
.dt-news .dtn-card { border:0; border-radius:0; box-shadow:none; background:#fff; transition:transform .25s; }
.dt-news .dtn-card:hover { box-shadow:none; transform:translateY(-3px); }
.dt-news .dtn-card__media { aspect-ratio:1.8; background:transparent; }
.dt-news .dtn-card__body { padding:22px 0; min-height:220px; }
.dt-news .dtn-card__meta { margin-bottom:14px; font-size:11px; line-height:1.65; color:#64727b; }
.dt-news .dtn-pill { color:#64727b; font-size:12px; line-height:1.65; border-radius:3px; }
.dt-news .dtn-card__title { font-size:20px; line-height:1.4; font-weight:400; color:#253c49; margin:0 0 9px; }
.dt-news .dtn-card__title a { color:#253c49; }
.dt-news .dtn-card__excerpt { font-size:14px; color:#64727b; line-height:1.85; margin:0 0 12px; -webkit-line-clamp:2; }
.dt-news .dtn-textlink { display:block; align-self:stretch; margin-top:auto; padding-top:18px; font-size:14px; line-height:1.65; color:#e96b2a; }
.dt-news .dtn-pagination { margin:30px 0 0; }
.dt-news .dtn-cta { background:#f5f8fa; padding:35px; min-height:180px; flex-wrap:wrap; gap:18px; border-radius:4px; margin:105px 0 65px; }
.dt-news .dtn-cta > div { max-width:750px; }
.dt-news .dtn-cta h3 { font-size:28px; line-height:1.4; font-weight:400; color:#253c49; margin:0 0 5px; }
.dt-news .dtn-cta p { font-size:14px; line-height:1.85; color:#64727b; margin:0; }
.dt-news .dtn-btn { border-radius:2px; line-height:1.65; font-size:14px; font-weight:600; padding:10px 20px; gap:12px; }
@media (max-width:900px) {
	.dt-news .dtn-toolbar { display:block; }
	.dt-news .dtn-search { max-width:100%; margin:15px 0; }
	.dt-news .dtn-title h1 { font-size:34px; }
	.dt-news .dtn-cta { margin-top:80px; }
}
@media (max-width:650px) {
	.dt-news { font-size:16px; line-height:1.6; }
	.dt-news .dtn-wrap { padding:0 20px; }
	.dt-news .dtn-crumb { padding:20px 0; line-height:1.6; }
	.dt-news .dtn-subnav { font-size:13px; gap:25px; padding-bottom:20px; }
	.dt-news .dtn-title { padding:26px 0; }
	.dt-news .dtn-title h1 { font-size:29px; }
	.dt-news .dtn-title p { margin-bottom:12px; }
	.dt-news .dtn-tabs { flex-wrap:wrap; gap:8px; overflow:visible; }
	.dt-news .dtn-tab { display:inline-block; min-height:44px; font-size:14px; line-height:1.6; }
	.dt-news .dtn-search input[type=search] { font-size:16px; min-height:46px; line-height:1.6; }
	.dt-news .dtn-grid { grid-template-columns:minmax(0, 1fr); gap:20px; }
	.dt-news .dtn-card__body { min-height:0; padding:19px 0; }
	.dt-news .dtn-card__meta, .dt-news .dtn-pill { line-height:1.6; }
	.dt-news .dtn-card__title { font-size:20px; }
	.dt-news .dtn-textlink { min-height:0; line-height:1.6; }
	.dt-news .dtn-cta { flex-direction:column; align-items:flex-start; padding:25px; gap:14px; min-height:0; margin:60px 0 35px; }
	.dt-news .dtn-cta > div { padding-right:0; }
	.dt-news .dtn-cta h3 { font-size:25px; }
	.dt-news .dtn-cta p { font-size:15px; }
	.dt-news .dtn-btn { min-height:44px; font-size:14px; padding:10px 14px; line-height:1.6; align-self:flex-start; }
}
@media (max-width:370px) {
	.dt-news .dtn-wrap { padding:0 16px; }
}
/* meta: demo để align mặc định (stretch) -> ngày nằm sát trên như demo */
.dt-news .dtn-card__meta { align-items:stretch; }
/* mobile: demo ô tìm là inline-block nên margin 15px dưới không collapse -> chặn collapse */
@media (max-width:900px){ .dt-news .dtn-toolbar{display:flow-root;} }
