/**
 * SA — Blog: the /blog/ listing page (template-blog.php). Same black +
 * bright yellow palette and card-grid pattern as the Case Studies archive
 * (assets/css/case-studies.css), so the two read as part of one site.
 */

:root {
	--blog-black: #191919;
	--blog-yellow: #fdd201;
	--blog-ink: #17233d;
	--blog-bg-alt: #f6f7f9;
	--blog-border: #e2e8f0;
	--blog-muted: #5b6b82;
}

/* ==========================================================================
   Hero band — matches the other archive pages' black bookend sections.
   ========================================================================== */

.blog-hero {
	background: var(--blog-black);
	color: #fff;
	padding-block: clamp(3rem, 6vw, 5rem);
	text-align: center;
}
.blog-hero__heading {
	color: #fff;
	font-weight: 700;
	margin-bottom: 0.75rem;
}
.blog-hero__text {
	color: rgba(255, 255, 255, 0.75);
	max-width: 38rem;
	margin: 0 auto;
	font-size: 1.05rem;
	line-height: 1.7;
}

/* ==========================================================================
   Card grid
   ========================================================================== */

.blog-cards {
	margin-top: 0;
}

.blog-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--blog-border);
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 14px 32px -20px rgba(23, 35, 61, 0.3);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 42px -18px rgba(23, 35, 61, 0.32);
}

.blog-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--blog-bg-alt);
}
.blog-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.blog-card:hover .blog-card__media img {
	transform: scale(1.05);
}
.blog-card__media-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--blog-muted);
	background: linear-gradient(135deg, var(--blog-bg-alt), #eef1f5);
}

.blog-card__body {
	padding: 1.5rem 1.5rem 1.75rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.blog-card__badge {
	display: inline-block;
	align-self: flex-start;
	margin-bottom: 0.5rem;
	background: var(--blog-yellow);
	color: var(--blog-black);
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	padding: 0.28rem 0.6rem;
	border-radius: 0.4rem;
}

.blog-card__title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--blog-ink);
	margin-bottom: 0.5rem;
}
.blog-card__title a {
	color: inherit;
	text-decoration: none;
}
.blog-card__title a:hover {
	text-decoration: underline;
}

.blog-card__excerpt {
	font-size: 0.92rem;
	line-height: 1.6;
	color: var(--blog-muted);
	margin-bottom: 1.25rem;
	flex-grow: 1;
}

.blog-card__meta {
	margin-top: auto;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--blog-border);
	font-size: 0.85rem;
	color: var(--blog-muted);
}
.blog-card__avatar {
	border-radius: 50%;
	width: 28px;
	height: 28px;
	flex-shrink: 0;
}
.blog-card__author {
	font-weight: 700;
	color: var(--blog-ink);
}
.blog-card__dot {
	color: var(--blog-border);
}

/* ==========================================================================
   Empty state + pagination
   ========================================================================== */

.blog-empty {
	text-align: center;
	color: var(--blog-muted);
	font-size: 1.05rem;
	padding-block: 3rem;
}

.blog-page .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.blog-page .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border: 1px solid var(--blog-border);
	border-radius: 0.5rem;
	color: var(--blog-ink);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.blog-page .page-numbers:hover {
	border-color: var(--blog-black);
}
.blog-page .page-numbers.current {
	background: var(--blog-black);
	border-color: var(--blog-black);
	color: var(--blog-yellow);
}
