/* HCMUNRE – Đối tác, Nhà tài trợ. Dùng biến màu của theme nếu có. */
.hcm-dt {
	--hcm-dt-nhan: var(--wp--preset--color--primary, #0a6b3d);
	--hcm-dt-nen: var(--wp--preset--color--base-2, #f4f7f5);
	--hcm-dt-vien: #e2e8e4;
	background: var(--hcm-dt-nen);
	border-top: 1px solid var(--hcm-dt-vien);
	padding: clamp(1.5rem, 4vw, 2.5rem) 1rem;
	color: #1d2b24;
}
.hcm-dt__wrap { max-width: var(--wp--style--global--wide-size, 1200px); margin: 0 auto; }

.hcm-dt__tieu-de {
	display: flex; align-items: center; gap: .75rem;
	margin: 0 0 1.25rem; font-size: clamp(.95rem, 1.6vw, 1.1rem);
	font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hcm-dt-nhan);
}
.hcm-dt__tieu-de::after { content: ""; flex: 1; height: 1px; background: var(--hcm-dt-vien); }
.hcm-dt__hang { margin: 2rem 0 .9rem; font-size: 1rem; font-weight: 600; color: #3c4a43; }
.hcm-dt__hang:first-of-type { margin-top: .5rem; }

.hcm-dt__ds {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: clamp(.6rem, 1.5vw, 1rem);
	grid-template-columns: repeat(auto-fit, minmax(min(140px, 42vw), 1fr));
}
.hcm-dt--dai .hcm-dt__ds { grid-template-columns: repeat(auto-fit, minmax(min(140px, 42vw), 200px)); justify-content: center; }
.hcm-dt__ds--chien-luoc { grid-template-columns: repeat(auto-fit, minmax(min(200px, 80vw), 260px)); }

.hcm-dt__item { margin: 0; }
.hcm-dt__the {
	display: flex; align-items: center; justify-content: center;
	aspect-ratio: 2 / 1; padding: .6rem .9rem;
	background: #fff; border: 1px solid var(--hcm-dt-vien); border-radius: 10px;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
a.hcm-dt__the:hover { border-color: var(--hcm-dt-nhan); box-shadow: 0 6px 18px rgb(0 0 0 / .08); transform: translateY(-2px); }
a.hcm-dt__the:focus-visible { outline: 3px solid var(--hcm-dt-nhan); outline-offset: 2px; }
.hcm-dt__img { display: block; width: 100%; height: 100%; object-fit: contain; }

.hcm-dt__xem { margin: 1rem 0 0; text-align: center; font-size: .9rem; }
.hcm-dt__xem a { color: var(--hcm-dt-nhan); text-decoration: none; font-weight: 600; }
.hcm-dt__xem a:hover { text-decoration: underline; }

/* Điện thoại: 2 cột */
@media (max-width: 600px) { .hcm-dt .hcm-dt__ds, .hcm-dt .hcm-dt__ds--chien-luoc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Thanh bên: 1 cột */
.hcm-dt--thanh-ben .hcm-dt__ds, .wp-block-column .hcm-dt--dai .hcm-dt__ds { grid-template-columns: 1fr; }

@media (prefers-reduced-motion: reduce) { .hcm-dt__the { transition: none; } a.hcm-dt__the:hover { transform: none; } }
@media print { .hcm-dt--chen-tu-dong { display: none; } }
