/* ==========================================================================
   Home: Latest blog posts
   ========================================================================== */
.oqa-blog {
	padding: 44px 0 60px;
	background: #fdfcf9;
}

.oqa-blog .oqa-section-head {
	margin-bottom: 22px;
}

.oqa-blog .oqa-section-title {
	margin-bottom: 4px;
	font-size: clamp(24px, 2.2vw, 30px);
}

.oqa-blog__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 18px;
}

.oqa-post {
	position: relative;
	display: grid;
	grid-template-columns: 42% minmax(0, 1fr);
	overflow: hidden;
	background: var(--oqa-white);
	border: 1px solid rgba(69, 47, 95, 0.1);
	border-radius: 10px;
	box-shadow: 0 6px 18px rgba(42, 29, 58, 0.06);
	transition: transform 0.3s var(--oqa-ease), box-shadow 0.3s var(--oqa-ease);
}

.oqa-post:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(42, 29, 58, 0.12);
}

.oqa-post:focus-within {
	outline: 2px solid var(--oqa-gold-500);
	outline-offset: 2px;
}

.oqa-post__media {
	display: block;
	min-height: 110px;
	overflow: hidden;
	background: #f3efe4;
}

.oqa-post__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--oqa-ease);
}

.oqa-post:hover .oqa-post__media img {
	transform: scale(1.06);
}

.oqa-post__body {
	display: flex;
	flex-direction: column;
	padding: 12px 12px 12px 14px;
}

.oqa-post__title {
	margin: 0 0 8px;
	font-family: var(--oqa-font-body);
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.4;
}

.oqa-post__title a,
.oqa-post__title a:visited {
	color: var(--oqa-green-900);
	text-decoration: none;
}

.oqa-post__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.oqa-post__title a:focus-visible {
	outline: none;
}

.oqa-post:hover .oqa-post__title a {
	color: var(--oqa-green-600);
}

.oqa-post__date {
	margin-top: auto;
	font-size: 12px;
	color: var(--oqa-muted);
}

@media (max-width: 1280px) {
	.oqa-blog__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

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

@media (max-width: 560px) {
	.oqa-blog__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
