/* The /blog post grid (page-blog.php). */

.ht-blog {
	margin: 0 0 48px;
}

.ht-blog__heading {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	text-align: left;
	color: #0e1524;
}

.ht-blog__intro {
	max-width: 640px;
	margin: 0 auto 22px;
	font-size: 16px;
	line-height: 24px;
	text-align: center;
	color: #1f1f1f;
}

.ht-blog__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 28px;
}

.ht-blog__filter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 8px 16px;
	border: 1px solid #cfd6de;
	border-radius: 999px;
	background: #fff;
	color: #0e1524;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	cursor: pointer;
}

.ht-blog__filter:hover,
.ht-blog__filter:focus {
	border-color: #0e1524;
	background: #fff;
	color: #0e1524;
}

.ht-blog__filter.is-on,
.ht-blog__filter.is-on:hover,
.ht-blog__filter.is-on:focus {
	border-color: #0e1524;
	background: #0e1524;
	color: #fff;
}

.ht-blog__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: #eef2f5;
	color: #0e1524;
	font-size: 12px;
	line-height: 22px;
}

.ht-blog__filter.is-on .ht-blog__count {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.ht-blog__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ht-blog__card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	margin: 0;
	border: 1px solid #e6e8ec;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(14, 21, 36, 0.06);
}

.ht-blog__card.is-hidden {
	display: none;
}

.ht-blog__image {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: linear-gradient(160deg, #f7f1e8 0%, #e7efe8 100%);
}

.ht-blog__image:not(:has(img))::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	border-radius: 50%;
	background: rgba(196, 85, 42, 0.16);
}

.ht-blog__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.ht-blog__card:hover .ht-blog__image img {
	transform: scale(1.04);
}

.ht-blog__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 16px 18px 18px;
}

.ht-blog__group {
	margin: 0 0 8px;
	color: #c4552a;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 16px;
	text-transform: uppercase;
}

.ht-blog__title {
	margin: 0;
	font-family: Roboto, sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
}

.ht-blog__title a {
	color: #0e1524;
	text-decoration: none;
}

.ht-blog__title a:hover,
.ht-blog__title a:focus {
	color: #c4552a;
	text-decoration: underline;
}

.ht-blog__excerpt {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 21px;
	color: #3d3d3d;
}

.ht-blog__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 14px 0 0;
	font-size: 12px;
	font-weight: 700;
	line-height: 18px;
	color: #5c6b7a;
}

.ht-blog__meta svg {
	flex: none;
}

.ht-blog__pages {
	margin-top: 32px;
	text-align: center;
}

.ht-blog__pages ul {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ht-blog__pages a,
.ht-blog__pages span {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid #cfd6de;
	border-radius: 999px;
	background: #fff;
	color: #0e1524;
	font-size: 14px;
	line-height: 20px;
	text-decoration: none;
}

.ht-blog__pages a:hover,
.ht-blog__pages a:focus,
.ht-blog__pages .current {
	border-color: #0e1524;
	background: #0e1524;
	color: #fff;
}

.ht-blog__empty {
	color: #1f1f1f;
}

@media (max-width: 900px) {
	.ht-blog__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ht-blog__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.ht-blog__heading {
		margin-bottom: 12px;
	}

	.ht-blog__filters {
		gap: 8px;
		width: 100%;
	}

	.ht-blog__filter {
		padding: 8px 12px;
		font-size: 13px;
	}
}
