/* ========================================
   CHƯƠNG TRÌNH ĐÀO TẠO
   Hero → dùng chung dpa-common.css
   ======================================== */

.page-dao-tao {
	background: #fff;
}

.page-dao-tao .dt-listing {
	padding: 50px 0;
}

/* ────────── GRID ────────── */

.dtao-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

/* ────────── CARD ────────── */

.dtao-card {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 16px rgba(4, 55, 145, 0.08);
	transition: transform 0.25s, box-shadow 0.25s;
}

.dtao-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(4, 55, 145, 0.15);
}

/* Thumbnail */

.dtao-card__thumb {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.dtao-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}

.dtao-card:hover .dtao-card__thumb img {
	transform: scale(1.05);
}

.dtao-card__date {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #043791;
	color: #fff;
	padding: 6px 12px;
	border-radius: 8px;
	text-align: center;
	line-height: 1.2;
}

.dtao-card__day {
	display: block;
	font-size: 20px;
	font-weight: 800;
}

.dtao-card__month {
	display: block;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	opacity: 0.85;
}

/* Body */

.dtao-card__body {
	padding: 20px 22px 22px;
}

.dtao-card__title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 10px;
}

.dtao-card__title a {
	color: #1a1a2e;
	text-decoration: none;
	transition: color 0.2s;
}

.dtao-card__title a:hover {
	color: #043791;
}

.dtao-card__excerpt {
	font-size: 14px;
	color: #555;
	line-height: 1.6;
	margin: 0 0 14px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dtao-card__readmore {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: #043791;
	text-decoration: none;
	transition: color 0.2s;
}

.dtao-card__readmore:hover {
	color: #0a4fba;
}

/* ────────── PAGINATION ────────── */

.dtao-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 40px;
	padding-bottom: 10px;
}

.dtao-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid #dce3ed;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	text-decoration: none;
	transition: all 0.2s;
}

.dtao-pagination .page-numbers:hover {
	border-color: #043791;
	color: #043791;
}

.dtao-pagination .page-numbers.current {
	background: #043791;
	border-color: #043791;
	color: #fff;
}

/* ────────── EMPTY ────────── */

.dtao-empty {
	text-align: center;
	padding: 60px 20px;
	color: #888;
	font-size: 16px;
}

/* ========================================
   SINGLE — CHI TIẾT CHƯƠNG TRÌNH
   ======================================== */

/* Banner */

.dtao-single__banner {
	padding: 30px 0 0;
}

.dtao-single__thumb {
	border-radius: 16px;
	overflow: hidden;
	max-height: 420px;
}

.dtao-single__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Layout: main + sidebar */

.dtao-single__article {
	padding: 40px 0 60px;
}

.dtao-single__layout {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 40px;
	align-items: start;
}

/* Header */

.dtao-single__header {
	margin-bottom: 28px;
}

.dtao-single__title {
	font-size: clamp(22px, 3.5vw, 30px);
	font-weight: 800;
	color: #1a1a2e;
	line-height: 1.35;
	margin: 0 0 14px;
}

.dtao-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

.dtao-single__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #666;
}

.dtao-single__meta-item svg {
	color: #043791;
	flex-shrink: 0;
}

/* Excerpt */

.dtao-single__excerpt {
	background: #f0f4fa;
	border-left: 4px solid #043791;
	padding: 18px 22px;
	border-radius: 0 10px 10px 0;
	font-size: 15px;
	line-height: 1.7;
	color: #333;
	margin-bottom: 32px;
	font-style: italic;
}

/* Content */

.dtao-single__content {
	font-size: 15px;
	line-height: 1.8;
	color: #333;
}

.dtao-single__content h2 {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 32px 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid #f0f4fa;
}

.dtao-single__content h3 {
	font-size: 18px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 24px 0 10px;
}

.dtao-single__content p {
	margin: 0 0 16px;
}

.dtao-single__content ul,
.dtao-single__content ol {
	margin: 0 0 20px;
	padding-left: 24px;
}

.dtao-single__content li {
	margin-bottom: 8px;
	padding-left: 4px;
}

.dtao-single__content ul li::marker {
	color: #043791;
}

.dtao-single__content strong {
	color: #1a1a2e;
}

/* Back link */

.dtao-single__back {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid #e8ecf2;
}

.dtao-single__back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #043791;
	text-decoration: none;
	padding: 10px 20px;
	border: 1px solid #043791;
	border-radius: 8px;
	transition: all 0.2s;
}

.dtao-single__back-link:hover {
	background: #043791;
	color: #fff;
}

/* ── Sidebar ── */

.dtao-single__sidebar-card {
	background: #fff;
	border: 1px solid #e8ecf2;
	border-radius: 14px;
	padding: 24px;
	margin-bottom: 24px;
}

.dtao-single__sidebar-title {
	font-size: 16px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 18px;
	padding-bottom: 12px;
	border-bottom: 2px solid #f0f4fa;
}

/* Related items */

.dtao-related-item {
	display: flex;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #f0f4fa;
	text-decoration: none;
	transition: background 0.2s;
}

.dtao-related-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.dtao-related-item:first-child {
	padding-top: 0;
}

.dtao-related-item:hover .dtao-related-item__title {
	color: #043791;
}

.dtao-related-item__thumb {
	width: 70px;
	height: 50px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
}

.dtao-related-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dtao-related-item__info {
	flex: 1;
	min-width: 0;
}

.dtao-related-item__title {
	font-size: 13px;
	font-weight: 600;
	color: #1a1a2e;
	line-height: 1.4;
	margin: 0 0 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.2s;
}

.dtao-related-item__date {
	font-size: 11px;
	color: #999;
}

/* CTA Card */

.dtao-single__sidebar-cta {
	background: linear-gradient(135deg, #043791 0%, #0a4fba 100%);
	border: none;
	color: #fff;
}

.dtao-single__sidebar-cta .dtao-single__sidebar-title {
	color: #fff;
	border-bottom-color: rgba(255, 255, 255, 0.2);
}

.dtao-single__sidebar-cta p {
	font-size: 14px;
	line-height: 1.6;
	opacity: 0.9;
	margin: 0 0 16px;
}

.dtao-cta-btn {
	display: block;
	text-align: center;
	background: #fff;
	color: #043791;
	font-size: 14px;
	font-weight: 700;
	padding: 12px 20px;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.2s;
}

.dtao-cta-btn:hover {
	background: rgba(255, 255, 255, 0.9);
	transform: translateY(-1px);
}

/* ────────── RESPONSIVE ────────── */

@media (max-width: 1024px) {
	.dtao-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.dtao-single__layout {
		grid-template-columns: 1fr 280px;
		gap: 30px;
	}
}

@media (max-width: 768px) {
	.page-dao-tao .dt-listing {
		padding: 30px 0;
	}

	.dtao-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.dtao-card__body {
		padding: 16px 18px 18px;
	}

	.dtao-card__title {
		font-size: 15px;
	}

	.dtao-single__layout {
		grid-template-columns: 1fr;
	}

	.dtao-single__article {
		padding: 30px 0 40px;
	}

	.dtao-single__thumb {
		max-height: 240px;
	}

	.dtao-single__banner {
		padding: 20px 0 0;
	}
}
