/*
 * Khối page-links/cards ("Khám phá thêm"): 2–4 thẻ dẫn sang trang con khác.
 * Tên thẻ là link duy nhất, phủ cả thẻ bằng ::after (một điểm dừng Tab cho mỗi thẻ).
 */

.vh-pl {
	display: grid;
	gap: var(--vh-card-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
	.vh-pl {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.vh-pl--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.vh-pl--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.vh-pl__item {
	display: flex;
	min-width: 0;
}

.vh-pl__card {
	width: 100%;
	overflow: hidden;
	transition: box-shadow 0.15s, transform 0.15s;
}

.vh-pl__card:hover {
	transform: translateY(-2px);
}

.vh-pl__media {
	overflow: hidden;
	background: var(--vh-color-surface);
}

.vh-pl__media > .vh-img,
.vh-pl__media > img,
.vh-pl__media > .vh-ph {
	width: 100%;
	border-radius: 0;
	object-fit: cover;
	filter: var(--vh-media-filter, none);
	transition: transform 0.3s;
}

.vh-pl__card:hover .vh-pl__media > .vh-img {
	transform: scale(1.03);
}

.vh-pl__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: var(--vh-card-pad);
}

.vh-pl__title {
	margin: 0;
}

.vh-pl__link {
	color: var(--vh-color-text);
	text-decoration: none;
}

.vh-pl__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.vh-pl__card:hover .vh-pl__link {
	color: var(--vh-color-primary);
}

/* Vòng focus vẽ quanh cả thẻ (link phủ thẻ), phía trong vì thẻ cắt phần tràn. */
.vh-pl__link:focus-visible {
	outline: none;
}

.vh-pl__link:focus-visible::after {
	outline: 3px solid var(--vh-color-focus);
	outline-offset: -3px;
	border-radius: var(--vh-radius-card);
}

.vh-pl__text {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.vh-pl__go {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 8px;
	color: var(--vh-color-accent-ink);
	font-size: var(--vh-fs-small);
	font-weight: var(--vh-fw-bold);
}

.vh-pl__card:hover .vh-pl__go .vh-i {
	transform: translateX(3px);
}

.vh-pl__go .vh-i {
	transition: transform 0.15s;
}

/* Thẻ không ảnh: viền nhạt thay bóng, đỡ trống. */
.vh-pl--text .vh-pl__card {
	border-top: 4px solid var(--vh-color-primary);
}

@media (prefers-reduced-motion: reduce) {
	.vh-pl__card,
	.vh-pl__card:hover,
	.vh-pl__media > .vh-img,
	.vh-pl__card:hover .vh-pl__media > .vh-img,
	.vh-pl__go .vh-i {
		transition: none;
		transform: none;
	}
}
