/* ── Blog shared header ──────────────────────────────────── */
.blog-hdr {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	transition: background 0.35s ease, border-color 0.35s ease;
}

/* ── Hero with background image ─────────────────────────── */
.blog-hero {
	position: relative;
	background: var(--color-black);
	color: #fff;
	padding: 0;
	overflow: hidden;
	min-height: 480px;
	display: flex;
	align-items: flex-end;
}

.blog-hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.blog-hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(55%) brightness(.75);
}

.blog-hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(to bottom, rgba(0,0,0,.65) 0%, transparent 40%),
		linear-gradient(to top,    rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 55%, transparent 100%);
}

.blog-hero-content {
	position: relative;
	z-index: 2;
	padding-top: calc(var(--header-h, 76px) + 3rem);
	padding-bottom: 4rem;
}

.blog-hero-content .eyebrow {
	color: #fff;
}

.blog-hero-content h1 {
	color: #fff;
	font-family: var(--font-display);
	font-size: clamp(2.5rem, 6vw, 4.75rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.05;
	max-width: 16ch;
	margin-bottom: 1rem;
}

.blog-hero-content > p:not(.eyebrow) {
	color: rgb(255 255 255 / .78);
	max-width: 52ch;
	font-size: 1.0625rem;
	line-height: 1.65;
}

/* Single hero — taller with post thumbnail */
.single-hero {
	min-height: 560px;
	align-items: flex-end;
}

.single-hero .blog-hero-bg img {
	filter: grayscale(40%) brightness(.6);
}

.blog-hero-meta {
	display: flex;
	align-items: center;
	gap: .625rem;
	font-family: var(--font-display);
	font-size: .8125rem;
	font-weight: 500;
	color: rgb(255 255 255 / .65);
	margin-top: .75rem;
}

.blog-hero-meta time { color: var(--color-rfd-red); font-weight: 600; }
.blog-hero-meta a { color: rgb(255 255 255 / .65); }
.blog-hero-sep { opacity: .5; }

/* ── Blog post grid ──────────────────────────────────────── */
.blog-main {
	background: var(--color-white);
	min-height: 60vh;
}

.section {
	padding: 5rem 0;
}

.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
}

/* ── Post card ───────────────────────────────────────────── */
.post-card {
	background: #fff;
	border: 1px solid var(--color-grey-border, #e5e7eb);
	border-top: 3px solid var(--color-rfd-red);
	border-radius: var(--radius-card, 6px);
	box-shadow: var(--shadow-card, 0 2px 12px rgba(0,0,0,.06));
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
	display: flex;
	flex-direction: column;
}

.post-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

.post-card-media {
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--color-grey-bg, #f5f5f5);
	overflow: hidden;
}

.post-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.post-card:hover .post-card-media img {
	transform: scale(1.04);
}

.post-card-body {
	padding: 1.625rem 1.5rem 1.75rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.post-card-meta {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin-bottom: .875rem;
}

.post-card time {
	display: block;
	font-family: var(--font-display);
	font-size: .75rem;
	font-weight: 600;
	color: var(--color-rfd-red);
}

.post-card-tag {
	font-family: var(--font-display);
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: rgb(0 0 0 / .38);
	background: var(--color-grey-bg, #f5f5f5);
	padding: .2rem .55rem;
	border-radius: 3px;
}

.post-card h2 {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.25;
	margin-bottom: .75rem;
}

.post-card h2 a { color: inherit; text-decoration: none; }
.post-card h2 a:hover { color: var(--color-rfd-red); }

.post-card p {
	color: var(--color-text-muted, #6b7280);
	font-size: .9375rem;
	line-height: 1.6;
	flex: 1;
}

.post-link {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin-top: 1.25rem;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: .875rem;
	color: var(--color-rfd-red);
	text-decoration: none;
}

.post-link::after {
	content: "→";
	transition: transform .2s ease;
}

.post-link:hover::after { transform: translateX(4px); }

.blog-pagination {
	grid-column: 1 / -1;
	margin-top: 1rem;
}

/* ── Single post ─────────────────────────────────────────── */
.single-featured {
	margin-top: 3rem;
	aspect-ratio: 16 / 7;
	overflow: hidden;
	border-radius: var(--radius-img, 6px);
}

.single-featured img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog-content {
	max-width: 820px;
	padding: 4rem 0 5rem;
}

.blog-content > * + * { margin-top: 1.375rem; }

.blog-content h2 {
	font-family: var(--font-display);
	font-size: clamp(1.4rem, 3vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.2;
	color: var(--color-black);
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--color-grey-border, #e5e7eb);
}

.blog-content h3 {
	font-family: var(--font-display);
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.3;
	color: var(--color-black);
	margin-top: 2rem;
}

.blog-content p,
.blog-content li {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: #374151;
}

.blog-content ul,
.blog-content ol {
	padding-left: 1.5rem;
}

.blog-content li { margin-top: .5rem; }

.blog-content strong { color: var(--color-black); font-weight: 600; }

.blog-content a {
	color: var(--color-rfd-red);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.blog-content blockquote {
	border-left: 3px solid var(--color-rfd-red);
	padding: 1.25rem 1.5rem;
	background: #fafafa;
	border-radius: 0 6px 6px 0;
	font-style: italic;
	color: #4b5563;
}

.blog-content .wp-block-image { margin: 2rem 0; }
.blog-content .wp-block-image img { border-radius: 6px; width: 100%; height: auto; }

/* ── Featured post ───────────────────────────────────────── */
.blog-featured-section {
	background: var(--color-white, #fff);
	padding: 4rem 0;
	border-bottom: 1px solid var(--color-grey-border, #e5e7eb);
}
.blog-featured-inner {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 3.5rem;
	align-items: center;
}
.blog-featured-img {
	display: block;
	position: relative;
	border-radius: 6px;
	overflow: hidden;
	aspect-ratio: 16/10;
}
.blog-featured-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}
.blog-featured-img:hover img { transform: scale(1.03); }
.blog-featured-badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
	background: var(--color-rfd-red, #9a1616);
	color: #fff;
	font-family: var(--font-display);
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: .3rem .75rem;
	border-radius: 3px;
}
.blog-featured-meta {
	display: flex;
	align-items: center;
	gap: .625rem;
	font-family: var(--font-display);
	font-size: .8125rem;
	font-weight: 500;
	color: var(--color-text-muted, #6b7280);
	margin-bottom: 1rem;
}
.blog-featured-meta time { color: var(--color-rfd-red, #9a1616); font-weight: 600; }
.blog-dot { opacity: .4; }
.blog-cat-tag {
	font-family: var(--font-display);
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: rgba(0,0,0,.4);
	background: #f5f5f5;
	padding: .2rem .55rem;
	border-radius: 3px;
	text-decoration: none;
}
.blog-featured-title {
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1.15;
	margin-bottom: 1rem;
	color: var(--color-black, #0a0a0a);
}
.blog-featured-title a { color: inherit; text-decoration: none; }
.blog-featured-title a:hover { color: var(--color-rfd-red, #9a1616); }
.blog-featured-excerpt {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--color-text-muted, #6b7280);
	margin-bottom: 1.75rem;
}
.blog-featured-cta {
	display: inline-flex;
	align-items: center;
	gap: .625rem;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: .9375rem;
	color: var(--color-rfd-red, #9a1616);
	text-decoration: none;
	transition: gap .2s;
}
.blog-featured-cta:hover { gap: 1rem; }

/* Archive section head */
.blog-archive-head {
	text-align: center;
	margin-bottom: 3rem;
}
.blog-archive-section { background: var(--color-grey-bg, #f9f9f9); }

@media (max-width: 860px) {
	.blog-featured-inner { grid-template-columns: 1fr; gap: 2rem; }
	.blog-featured-img { aspect-ratio: 16/9; }
}

/* ── Footer footnote in blog layout ─────────────────────── */
.foot-main p {
	font-size: .875rem;
	line-height: 1.6;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
	.blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
	.blog-grid { grid-template-columns: 1fr; }
	.blog-hero { min-height: 380px; }
	.blog-hero-content { padding-bottom: 2.5rem; }
	.single-hero { min-height: 420px; }
}
