/* =============================================================
   BLOG INDEX — blog.css
   Loaded on: is_home(), is_category()
   Depends on: theme.css (design tokens defined in style.css)
   ============================================================= */

/* ── Zone 1: Blog Hero ─────────────────────────────────────── */

.blog-hero {
	background: var(--primary);
	padding: 80px 24px;
	text-align: center;
}

.blog-hero__inner {
	max-width: 640px;
	margin: 0 auto;
}

.blog-hero__breadcrumb {
	justify-content: center;
	font-size: 16px;
	margin: 24px 0 0;
}
.blog-hero__breadcrumb a:hover,
.blog-hero__breadcrumb a:focus {
	color: #ffffff;
}
.blog-hero__breadcrumb [aria-current="page"] {
	color: #ffffff;
}
.blog-hero__breadcrumb [aria-hidden="true"] {
	color: rgba(255, 255, 255, 0.60);
}

/* Archive header breadcrumb — sits on the light page background, so dark text. */
.archive-breadcrumb {
	font-family: var(--font-body);
	font-size: 16px;
	color: var(--medium-gray);
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 32px 0 8px;
}
.archive-breadcrumb a {
	color: var(--medium-gray);
	text-decoration: none;
	transition: color .15s ease;
}
.archive-breadcrumb a:hover { color: var(--primary); }
.archive-breadcrumb [aria-current="page"] { color: var(--primary); }

.blog-hero__eyebrow {
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 16px;
}

.blog-hero__title {
	font-family: var(--font-heading);
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 700;
	color: #ffffff;
	line-height: 1.2;
	margin-bottom: 20px;
}

.blog-hero__subtitle {
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.70);
	line-height: 1.65;
	max-width: 560px;
	margin: 0 auto 28px;
}

.blog-hero__rule {
	display: block;
	width: 60px;
	height: 2px;
	background: var(--accent);
	margin: 0 auto;
	border-radius: 2px;
}

/* ── Zone 2: Category Filter Tabs ─────────────────────────── */

.blog-filter {
	background: #ffffff;
	border-bottom: 1px solid #e2e8f0;
	padding: 32px 24px;
}

.blog-filter__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.blog-filter__pill {
	display: inline-block;
	padding: 8px 24px;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--primary);
	background: transparent;
	border: 1.5px solid var(--primary);
	border-radius: 30px;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}

.blog-filter__pill:hover,
.blog-filter__pill--active {
	background: var(--primary);
	color: #ffffff;
}

/* ── Zone 3: Featured Post Card ────────────────────────────── */

.blog-index {
	padding: 0 0 80px;
}

.featured-post-card {
	display: grid;
	grid-template-columns: 55fr 45fr;
	gap: 0;
	margin: 48px 0;
	background: #ffffff;
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	border-bottom: 1px solid #e2e8f0;
}

.featured-post-card__image {
	position: relative;
	overflow: hidden;
}

.featured-post-card__image a {
	display: block;
	height: 100%;
}

.featured-post-card__image img {
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.featured-post-card__image a:hover img {
	transform: scale(1.03);
}

.featured-post-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 320px;
	background: var(--off-white);
}

.featured-post-card__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 44px 40px;
	gap: 16px;
}

.featured-post-card__title {
	font-family: var(--font-heading);
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 700;
	line-height: 1.3;
	color: var(--body-text);
	margin: 0;
}

.featured-post-card__title a {
	color: var(--primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

.featured-post-card__title a:hover {
	color: var(--accent);
}

.featured-post-card__excerpt {
	font-family: var(--font-body);
	font-size: 16px;
	color: var(--medium-gray);
	line-height: 1.7;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
}

.featured-post-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-body);
	font-size: 13px;
	color: var(--medium-gray);
}

.meta-sep {
	font-size: 10px;
	opacity: 0.6;
}

.featured-post-card__meta span:last-child,
.post-card__meta span:last-child {
	color: var(--accent);
}

.featured-post-card__cta {
	display: inline-block;
	align-self: flex-start;
	padding: 12px 28px;
	background: var(--primary);
	color: #ffffff;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 700;
	border-radius: var(--border-radius);
	text-decoration: none;
	transition: background 0.2s ease;
	margin-top: 4px;
}

.featured-post-card__cta:hover {
	background: var(--accent);
}

/* ── Category Badge (shared between featured + grid cards) ── */

.post-cat-badge {
	display: inline-block;
	align-self: flex-start;
	padding: 4px 12px;
	background: var(--accent);
	color: #ffffff;
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: 30px;
	line-height: 1.4;
}

/* ── Zone 4: Blog Grid ──────────────────────────────────────── */

.blog-grid__heading {
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 600;
	color: var(--body-text);
	margin: 0 0 28px;
	padding-top: 8px;
}

.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 28px;
	row-gap: 36px;
}

/* Override theme.css .post-card defaults for blog pages */
.blog-grid .post-card {
	background: #ffffff;
	border: none;
	border-radius: var(--border-radius);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.blog-grid .post-card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-3px);
}

.post-card__thumb-link {
	display: block;
	overflow: hidden;
	line-height: 0;
}

.post-card__thumb-link img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
	border-radius: var(--border-radius) var(--border-radius) 0 0;
	transition: transform 0.35s ease;
}

.post-card__thumb-link:hover img {
	transform: scale(1.04);
}

.post-card__placeholder {
	width: 100%;
	aspect-ratio: 16 / 9;
	background: var(--off-white);
	border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Override theme.css .post-card__body */
.blog-grid .post-card__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.blog-grid .post-card__title {
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--body-text);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-grid .post-card__title a {
	color: var(--primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

.blog-grid .post-card__title a:hover {
	color: var(--accent);
}

.post-card__meta {
	font-family: var(--font-body);
	font-size: 13px;
	color: var(--medium-gray);
	line-height: 1.4;
}

.blog-grid .post-card__excerpt {
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--medium-gray);
	line-height: 1.65;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-card__read-more {
	display: inline-block;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 700;
	color: var(--accent);
	text-decoration: none;
	margin-top: auto;
	padding-top: 4px;
	transition: text-decoration 0.15s ease;
}

.post-card__read-more:hover {
	text-decoration: underline;
}

/* ── Pagination ─────────────────────────────────────────────── */

.blog-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 48px;
}

.blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--primary);
	background: #ffffff;
	border: 1.5px solid var(--primary);
	border-radius: 30px;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}

.blog-pagination .page-numbers:hover {
	background: var(--primary);
	color: #ffffff;
}

.blog-pagination .page-numbers.current {
	background: var(--primary);
	color: #ffffff;
	pointer-events: none;
}

.blog-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	pointer-events: none;
	min-width: auto;
	padding: 0 4px;
}

/* ── Responsive — Tablet (768px–1024px) ─────────────────────── */

@media (max-width: 1024px) {

	.blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.featured-post-card {
		grid-template-columns: 1fr;
	}

	.featured-post-card__image img {
		aspect-ratio: 16 / 9;
		height: auto;
	}

	.featured-post-card__content {
		padding: 32px 32px 36px;
	}

}

/* ── Responsive — Mobile (< 768px) ─────────────────────────── */

@media (max-width: 767px) {

	.blog-hero {
		padding: 56px 24px;
	}

	.blog-hero__subtitle {
		font-size: 16px;
	}

	.blog-filter {
		padding: 20px 16px;
	}

	.blog-filter__nav {
		justify-content: center;
		flex-wrap: wrap;
	}

	.blog-grid {
		grid-template-columns: 1fr;
	}

	.featured-post-card {
		margin: 32px 0 36px;
	}

	.featured-post-card__content {
		padding: 24px 20px 28px;
		gap: 12px;
	}

	.featured-post-card__cta {
		align-self: stretch;
		text-align: center;
	}

	.blog-grid__heading {
		font-size: 20px;
		margin-bottom: 20px;
	}

	.blog-pagination .page-numbers {
		min-width: 38px;
		height: 38px;
		font-size: 13px;
	}

}
