/* Blog Section ------------------------------------------------------------- */
/* base.css carries an older `.blog-section` block (sidebar layout, `.blog`
   rows). This section uses its own `.blog-grid` / `.blog-card` classes so none
   of it applies — only the wrapper margin needs unsetting. */
.blog-section {
	margin-bottom: 0;
	padding: 64px 0;
	/* Paging scrolls the section back into view — clear the fixed header. */
	scroll-margin-top: var(--headerHeight, 0);
}
@media (min-width: 768px) {
	.blog-section {
		padding: 96px 0;
	}
}

.blog-section-content {
	max-width: 820px;
	margin: 0 auto 56px;
	text-align: center;
}
.blog-section-content h1,
.blog-section-content h2 {
	font-family: var(--font-serif);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 300;
	margin: 0 0 1rem;
}
.blog-section-content p {
	font-size: 1.05rem;
	font-weight: 300;
	color: var(--color-muted);
}
.blog-section-content p:last-child {
	margin-bottom: 0;
}

/* Grid */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px 40px;
}
@media (max-width: 991px) {
	.blog-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 40px 32px;
	}
}
@media (max-width: 575px) {
	.blog-grid {
		grid-template-columns: 1fr;
	}
}

/* Card */
.blog-card {
	display: flex;
	flex-direction: column;
	margin: 0;
}
.blog-card-media {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.05);
	margin-bottom: 24px;
}
.blog-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.7s ease;
}
.blog-card:hover .blog-card-img {
	transform: scale(1.05);
}

.blog-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
}
.blog-card-title {
	font-family: var(--font-serif);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.25;
	margin: 0 0 0.75rem;
}
.blog-card-title a {
	color: var(--color-text);
	transition: color 0.3s ease;
}
.blog-card-title a:hover,
.blog-card-title a:focus {
	color: var(--brand);
}
.blog-card-excerpt {
	font-size: 1rem;
	font-weight: 300;
	line-height: 1.7;
	color: var(--color-muted);
	margin: 0 0 20px;
}
/* Pins the read-more to the bottom so it lines up across a row of cards. */
.blog-card-more {
	margin-top: auto;
	align-self: flex-start;
	color: var(--color-text);
}
.blog-card-more:hover,
.blog-card-more:focus {
	color: var(--brand);
}

.blog-empty {
	text-align: center;
	color: var(--color-muted);
	margin: 0;
}

/* Pagination */
.blog-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin: 64px 0 0;
}
.blog-pagination .page-numbers {
	font-family: var(--font-sans);
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--color-muted);
	min-width: 40px;
	padding: 10px 12px;
	text-align: center;
	border-radius: 999px;
	transition: all 0.3s ease;
}
.blog-pagination a.page-numbers:hover,
.blog-pagination a.page-numbers:focus {
	color: var(--color-text);
	background: rgba(0, 0, 0, 0.05);
}
.blog-pagination .page-numbers.current {
	color: #fff;
	background: var(--color-text);
}
.blog-pagination .page-numbers.dots {
	min-width: 0;
	padding: 10px 4px;
}
.blog-pagination .prev,
.blog-pagination .next {
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 11px;
}
