/* =============================================================================
   Blog Posts by Category — Widget Styles
   ============================================================================= */

/* --- Hero ------------------------------------------------------------------ */
.bpbc-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	align-items: stretch;   /* both columns fill the same height */
	margin-bottom: 2.5rem;
}

.bpbc-hero-content {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	background: #eae9e0;
	padding: 48px;
	border-radius: 24px 0 0 24px;
}

.bpbc-hero-title {
	margin: 0;
	font-size: 1.75rem;
	line-height: 1.25;
}

.bpbc-hero-title a,
.bpbc-card-title a {
	color: inherit;
	text-decoration: none;
}

.bpbc-hero-title a:hover,
.bpbc-card-title a:hover {
	text-decoration: underline;
}

.bpbc-hero-excerpt {
	margin: 0;
}

/* Image side fills the full height of the content panel */
.bpbc-hero-image {
	overflow: hidden;
	border-radius: 0 24px 24px 0;
}

.bpbc-hero-image a {
	display: block;
	height: 100%;
}

.bpbc-hero-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* --- Hero CTA button ------------------------------------------------------- */
.bpbc-cta--hero {
	background: #1E0FCC;
	color: #fff !important;
	padding: 14px 26px;
	border-radius: 32px;
	width: auto;
	max-width: fit-content;
	margin-top: .5rem;
	text-decoration: none !important;
}

.bpbc-cta--hero:hover {
	opacity: .88;
	text-decoration: none !important;
}

/* --- Secondary grid -------------------------------------------------------- */
.bpbc-grid {
	display: grid;
	gap: 1.5rem;
}

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

/* --- Card ------------------------------------------------------------------ */
.bpbc-card {
	display: flex;
	flex-direction: column;
	gap: .5rem;
}

.bpbc-card-title {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.3;
}

.bpbc-card-excerpt {
	margin: 0;
	flex: 1;
}

.bpbc-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: auto;
	padding-top: .25rem;
}

/* --- Shared ---------------------------------------------------------------- */
.bpbc-category {
	margin: 0;
	font-size: .8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.bpbc-cta {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	color: inherit;
}

.bpbc-cta:hover {
	text-decoration: underline;
}

.bpbc-cta svg {
	flex-shrink: 0;
}

.bpbc-divider {
	border: none;
	border-top: 1px solid currentColor;
	margin: .75rem 0 .5rem;
	opacity: .2;
}

.bpbc-date {
	font-size: .85rem;
}

.bpbc-no-posts {
	opacity: .6;
}

/* --- Responsive: tablet ---------------------------------------------------- */
@media (max-width: 1024px) {
	.bpbc-columns-3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.bpbc-hero-content {
		padding: 32px;
	}
}

/* --- Responsive: mobile ---------------------------------------------------- */
@media (max-width: 767px) {
	.bpbc-hero {
		grid-template-columns: 1fr;
		gap: 0;                    /* no gap — image butts up to card below */
	}

	/* Image renders above the content panel on mobile */
	.bpbc-hero-image {
		order: -1;
		border-radius: 24px 24px 0 0;
	}

	.bpbc-hero-image a,
	.bpbc-hero-image img {
		height: 260px;
	}

	/* Content panel gets matching bottom radius, top corners squared off */
	.bpbc-hero-content {
		border-radius: 0 0 24px 24px;
		padding: 28px 24px;
	}

	.bpbc-hero-title {
		font-size: 1.4rem;
	}

	.bpbc-cta--hero {
		width: 100%;
		max-width: 100%;
		text-align: center;
		justify-content: center;
	}

	.bpbc-columns-2,
	.bpbc-columns-3 {
		grid-template-columns: 1fr;
	}
}
