/* Container bao ngoài */
.custom-tieude {
	display: block;
	width: 100%;
}

/* Tiêu đề H2 */
.custom-tieude h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	color: var(--color-main); 
	font-size: 38px; 
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
}

/* Thanh gạch đứng gradient */
.custom-tieude h2::before {
	content: "";
	display: inline-block;
	width: 5px; 
	height: 1.15em;
	border-radius: 10px; 
	background: linear-gradient(
		180deg, 
		var(--color-accent-light) 0%, 
		var(--color-brand-green) 100%
	);

	flex-shrink: 0; 
}

/* Tối ưu thêm cho màn hình điện thoại nhỏ */
@media (max-width: 480px) {
	.custom-tieude h2 {
		font-size: 19px;
		gap: 8px;
	}

	.custom-tieude h2::before {
		width: 4px;
	}
}

/* KHUNG BAO NGOÀI RIÊNG BIỆT */
.dm-cha-wrapper {
	width: 100%;
	position: relative;
	padding: 10px 0;
	box-sizing: border-box;
}

/* LƯỚI TRÊN PC (4 CỘT) & TABLET (2 CỘT) */
.dm-cha-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	width: 100%;
	box-sizing: border-box;
}

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

/* THẺ DANH MỤC */
.dm-cha-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	background-color: #f0f0ee;
	border-radius: 28px;
	border: 4px solid var(--card-border-default);
	padding: 16px;
	text-decoration: none !important;
	overflow: hidden;
	transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	aspect-ratio: 1 / 1.15;
	box-sizing: border-box;
}

/* ẢNH FULL TOÀN VIỀN */
.dm-cha-thumb {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	overflow: hidden;
}

.dm-cha-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.5s ease;
	display: block;
}

/* THANH TIÊU ĐỀ NẰM ĐÈ TRÊN ẢNH */
.dm-cha-bar {
	position: relative;
	z-index: 2;
	background-color: var(--color-white);
	border-radius: 50px;
	padding: 8px 14px 8px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	height: 50px;
	box-sizing: border-box;
	width: 100%;
}

.dm-cha-title {
	color: var(--color-main);
	font-size: 13.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-right: 8px;
	transition: color 0.3s ease;
}

.dm-cha-btn {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background-color: #EBF7EE;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: all 0.3s ease;
}

.dm-cha-btn svg {
	width: 15px;
	height: 15px;
	stroke: var(--color-brand-green);
	transition: all 0.3s ease;
}

/* HOVER EFFECT */
.dm-cha-card:hover {
	border-color: var(--color-accent-light);
	box-shadow: 0 10px 25px rgba(34, 197, 94, 0.2);
}

.dm-cha-card:hover .dm-cha-thumb img {
	transform: scale(1.05);
}

.dm-cha-card:hover .dm-cha-title {
	color: var(--color-brand-green);
}

.dm-cha-card:hover .dm-cha-btn {
	background-color: var(--color-brand-green);
}

.dm-cha-card:hover .dm-cha-btn svg {
	stroke: var(--color-white);
}

/* CÁC CHẤM DOTS (ẨN Ở PC & TABLET) */
.dm-cha-dots {
	display: none;
	justify-content: center;
	align-items: center;
	gap: 7px;
	margin-top: 16px;
}

.dm-cha-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #d1d5db;
	transition: all 0.3s ease;
	cursor: pointer;
}

.dm-cha-dot.active {
	width: 26px;
	border-radius: 10px;
	background-color: var(--color-brand-green);
}

/* GIAO DIỆN TRÊN MOBILE (< 768px): VUỐT 1 THẺ & HIỆN DOTS */
@media (max-width: 767px) {
	.dm-cha-grid {
		display: flex !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch;
		gap: 16px;
		scrollbar-width: none;
	}

	.dm-cha-grid::-webkit-scrollbar {
		display: none;
	}

	.dm-cha-card {
		flex: 0 0 100%;
		max-width: 100%;
		scroll-snap-align: center;
		scroll-snap-stop: always;
	}

	.dm-cha-dots {
		display: flex;
	}
}