/* ===== HCK Blog / Tin tức ===== */

/* Banner dính sát header — bỏ padding-top mặc định của Flatsome (.page-wrapper) */
body.archive #content.blog-wrapper.page-wrapper,
body.search #content.blog-wrapper.page-wrapper,
body.blog #content.blog-wrapper.page-wrapper {
	padding-top: 0 !important;
}

.hck-archive-banner {
	background: linear-gradient(135deg, #002d72 0%, #001a45 100%);
	color: #fff;
	padding: 44px 0 36px;
	margin: 0 0 8px;
}

.hck-archive-banner__inner {
	text-align: center;
}

.hck-archive-banner__eyebrow {
	margin: 0 0 8px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fs-color-secondary, #f7d322);
}

.hck-archive-banner__title {
	margin: 0 0 10px;
	font-size: clamp(1.6rem, 3.5vw, 2.2rem);
	font-weight: 800;
	line-height: 1.2;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.hck-archive-banner__desc {
	margin: 0 auto 22px;
	max-width: 680px;
	font-size: 0.98rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
}

.hck-archive-cats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 6px;
}

.hck-archive-cats__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border-radius: 999px;
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition:
		background 0.25s ease,
		border-color 0.25s ease,
		color 0.25s ease,
		transform 0.25s ease;
}

.hck-archive-cats__item:hover {
	border-color: var(--fs-color-secondary, #f7d322);
	color: var(--fs-color-secondary, #f7d322);
	transform: translateY(-1px);
}

.hck-archive-cats__item.is-active {
	background: var(--fs-color-secondary, #f7d322);
	border-color: var(--fs-color-secondary, #f7d322);
	color: var(--fs-color-primary, #002d72);
}

.hck-post-archive {
	padding: 8px 0 40px;
}

.hck-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 24px;
}

.hck-post-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hck-post-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hck-post-card {
	margin: 0;
}

.hck-post-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid rgba(0, 45, 114, 0.06);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 32px rgba(0, 45, 114, 0.08);
	text-decoration: none;
	color: inherit;
	transition:
		box-shadow 0.3s ease,
		transform 0.3s ease,
		border-color 0.3s ease;
}

.hck-post-card__link:hover {
	border-color: rgba(247, 211, 34, 0.45);
	box-shadow: 0 18px 42px rgba(0, 45, 114, 0.14);
	transform: translateY(-4px);
}

.hck-post-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	background: #eef1f5;
}

.hck-post-card__img,
.hck-post-card__placeholder {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}

.hck-post-card__placeholder {
	min-height: 180px;
	background: linear-gradient(135deg, #e8edf4 0%, #d7dee8 100%);
}

.hck-post-card__link:hover .hck-post-card__img {
	transform: scale(1.05);
}

.hck-post-card__date {
	position: absolute;
	top: 14px;
	left: 14px;
	min-width: 52px;
	padding: 8px 10px;
	border-radius: 10px;
	background: var(--fs-color-primary, #002d72);
	color: #fff;
	text-align: center;
	line-height: 1.1;
	box-shadow: 0 8px 20px rgba(0, 45, 114, 0.28);
}

.hck-post-card__date-day {
	display: block;
	font-size: 1.1rem;
	font-weight: 800;
}

.hck-post-card__date-mon {
	display: block;
	margin-top: 2px;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.92;
}

.hck-post-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	gap: 10px;
	padding: 20px 20px 22px;
	flex: 1;
}

.hck-post-card__cat {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #7a8494;
}

.hck-post-card__title {
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.45;
	color: var(--fs-color-primary, #002d72);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hck-post-card__excerpt {
	font-size: 0.92rem;
	line-height: 1.6;
	color: #5c6470;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hck-post-card__more {
	margin-top: auto;
	padding-top: 4px;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--fs-color-primary, #002d72);
}

.hck-post-card__link:hover .hck-post-card__more {
	color: var(--fs-color-secondary, #f7d322);
}

/* Card ngang — ảnh trái cố định, crop cover (tránh ảnh dọc kéo cao card) */
.hck-post-grid--horizontal {
	grid-template-columns: 1fr;
	gap: 20px;
}

.hck-post-card--horizontal .hck-post-card__link {
	flex-direction: row;
	align-items: stretch;
	min-height: 200px;
	max-height: 220px;
}

.hck-post-card--horizontal .hck-post-card__media {
	flex: 0 0 38%;
	max-width: 38%;
	min-width: 0;
	min-height: 0;
	align-self: stretch;
	position: relative;
	overflow: hidden;
}

.hck-post-card--horizontal .hck-post-card__img,
.hck-post-card--horizontal .hck-post-card__placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
	max-height: none;
	aspect-ratio: unset;
	object-fit: cover;
	object-position: center;
}

.hck-post-card--horizontal .hck-post-card__body {
	flex: 1;
	min-width: 0;
	padding: 16px 20px;
	overflow: hidden;
	justify-content: center;
}

.hck-post-card--horizontal .hck-post-card__title {
	-webkit-line-clamp: 2;
}

.hck-post-card--horizontal .hck-post-card__excerpt {
	-webkit-line-clamp: 2;
}

.hck-post-card--horizontal .hck-post-card__date {
	top: 10px;
	left: 10px;
	min-width: 46px;
	padding: 6px 8px;
}

.hck-post-card--horizontal .hck-post-card__date-day {
	font-size: 0.95rem;
}

@media (max-width: 1100px) {
	.hck-post-grid,
	.hck-post-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hck-post-grid--horizontal,
	.hck-post-grid--horizontal.hck-post-grid--2,
	.hck-post-grid--horizontal.hck-post-grid--3 {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.hck-archive-banner {
		padding: 36px 0 28px;
	}

	.hck-archive-cats__item {
		padding: 9px 14px;
		font-size: 0.76rem;
	}

	.hck-post-grid,
	.hck-post-grid--2,
	.hck-post-grid--3 {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.hck-post-card__body {
		padding: 18px 18px 20px;
	}

	.hck-post-card__title {
		font-size: 1.08rem;
	}

	.hck-post-card--horizontal .hck-post-card__link {
		flex-direction: column;
		min-height: 0;
		max-height: none;
	}

	.hck-post-card--horizontal .hck-post-card__media {
		flex: none;
		max-width: none;
		width: 100%;
		min-height: 0;
		position: relative;
		aspect-ratio: 16 / 10;
		overflow: hidden;
	}

	.hck-post-card--horizontal .hck-post-card__img,
	.hck-post-card--horizontal .hck-post-card__placeholder {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		aspect-ratio: unset;
		min-height: 0;
	}
}
