/* HK Post List (Tin tức / archive / tin cùng chuyên mục) */
.hk-post-list {
	--hk-thumb-w: 240px;
	--hk-item-gap: 24px;
	--hk-sep: rgba(102, 50, 14, .12);
}

.hk-post-list__heading {
	margin: 0 0 32px;
	color: var(--hk-orange);
	font-family: var(--hk-font);
	font-size: clamp(26px, 2.4vw, 32px);
	font-weight: 700;
	line-height: 1.5;
}

.hk-post-list__items {
	display: flex;
	flex-direction: column;
	gap: var(--hk-item-gap);
}

.hk-post-list__item {
	display: grid;
	grid-template-columns: var(--hk-thumb-w) minmax(0, 1fr);
	gap: 20px;
	align-items: start;
	padding-bottom: var(--hk-item-gap);
	border-bottom: 1px solid var(--hk-sep);
}

.hk-post-list__item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.hk-post-list__thumb {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	border-radius: 8px;
	background: var(--hk-beige);
}

.hk-post-list__img,
.hk-post-list__thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform .5s var(--hk-ease);
}

.hk-post-list__item:hover .hk-post-list__thumb img {
	transform: scale(1.05);
}

.hk-post-list__placeholder {
	position: absolute;
	inset: 0;
	background: var(--hk-cream-2);
}

.hk-post-list__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
}

.hk-post-list__badge {
	margin-bottom: 0;
}

.hk-post-list__title {
	margin: 0;
	color: #111;
	font-family: var(--hk-font);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
}

.hk-post-list__title a {
	color: inherit;
	text-decoration: none;
	transition: color .2s;
}

.hk-post-list__title a:hover {
	color: var(--hk-orange);
}

.hk-post-list__date {
	color: var(--hk-gray);
	font-size: 14px;
	line-height: 1.5;
}

.hk-post-list__excerpt {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: #666;
	font-size: 14px;
	line-height: 1.5;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.hk-post-list__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	color: var(--hk-orange);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
}

.hk-post-list__more .hk-icon {
	width: 24px;
	height: 24px;
	transition: transform .25s var(--hk-ease);
}

.hk-post-list__more:hover {
	color: var(--hk-brown);
}

.hk-post-list__more:hover .hk-icon {
	transform: translateX(3px);
}

/* Phân trang */
.hk-post-list__pager {
	--hk-pager-color: var(--hk-brown);
	--hk-pager-active: var(--hk-orange);

	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
}

.hk-post-list__pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 41px;
	padding: 0 10px;
	border: 1px solid var(--hk-pager-color);
	border-radius: 4px;
	color: #111;
	font-family: var(--hk-font);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	transition: background-color .2s, color .2s, border-color .2s;
}

.hk-post-list__pager a.page-numbers:hover {
	border-color: var(--hk-pager-active);
	color: var(--hk-pager-active);
}

.hk-post-list__pager .page-numbers.current {
	border-color: var(--hk-pager-active);
	background: var(--hk-pager-active);
	color: var(--hk-white);
}

.hk-post-list__pager .page-numbers.dots {
	border-color: transparent;
}

.hk-post-list__pager .hk-icon {
	width: 16px;
	height: 16px;
}

@media (max-width: 767px) {
	.hk-post-list {
		--hk-thumb-w: 120px;
	}

	.hk-post-list__item {
		gap: 14px;
	}

	.hk-post-list__thumb {
		aspect-ratio: 1;
	}

	.hk-post-list__title {
		font-size: 16px;
		line-height: 1.4;
	}

	.hk-post-list__excerpt {
		display: none;
	}
}

@media (max-width: 420px) {
	.hk-post-list__item {
		grid-template-columns: minmax(0, 1fr);
	}

	.hk-post-list__thumb {
		aspect-ratio: 3 / 2;
	}

	.hk-post-list__excerpt {
		display: -webkit-box;
	}
}
