/* BP Blog List widget styles
 *
 * Editorial Blog article list. Transparent outer section sits
 * on the page cream background. Each preview is a 2-column
 * desktop layout:
 *
 *   LEFT  (content)
 *     - large pale-olive article number (01, 02, 03, …)
 *     - olive category pill
 *     - editorial article title (serif, uppercase)
 *     - excerpt
 *     - 3-4 editorial highlights (icon + title + description)
 *     - CTA reusing .bp-home-section-cta__btn (1:1 visual)
 *
 *   RIGHT (media)
 *     - large rounded article image
 *
 * A thin gold/olive separator is placed under each preview
 * (no separator after the last item). Numbers are generated
 * server-side from the loop index, never stored.
 *
 * All rules stay under .bp-blog-list. Logical properties
 * keep LTR/RTL aligned without an override file. Mobile rebuilds
 * to a true 1-column flow with the safe 18px gutters.
 */

.bp-blog-list {
	--bp-bl-fg:          #374F37;
	--bp-bl-muted:       #5C6A5C;
	--bp-bl-olive:       #B8B25A;
	--bp-bl-olive-pale:  rgba(184, 178, 90, 0.18);
	--bp-bl-olive-pill:  #6F6A3A;
	--bp-bl-cream:       #FBF6EC;
	--bp-bl-radius:      18px;
	--bp-bl-separator:   #E4DCCB;
	--bp-bl-number:      rgba(122, 146, 104, 0.32);

	--bp-bl-font-body:    var(--bp-font-body, 'Manrope', system-ui, sans-serif);
	--bp-bl-font-display: var(--bp-font-display, 'DM Serif Display', Georgia, serif);

	--bp-bl-inner-max:  1200px;
	--bp-bl-pad-x:      clamp(20px, 4vw, 56px);
	--bp-bl-gap:        clamp(32px, 5vw, 72px);
	--bp-bl-cols:       minmax(0, 1.05fr) minmax(0, 1fr);

	color: var(--bp-bl-fg);
	font-family: var(--bp-bl-font-body);
	background: transparent;
}

.bp-blog-list__inner {
	max-inline-size: var(--bp-bl-inner-max);
	margin-inline: auto;
	padding-inline: var(--bp-bl-pad-x);
}

.bp-blog-list__items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.bp-blog-list__item {
	padding-block: clamp(36px, 5vw, 64px);
	border-block-end: 1px solid var(--bp-bl-separator);
}
.bp-blog-list__item:last-child {
	border-block-end: 0;
}

.bp-blog-list__article {
	display: grid;
	grid-template-columns: var(--bp-bl-cols);
	gap: var(--bp-bl-gap);
	align-items: center;
}

/* ---- Content (left) ---- */
.bp-blog-list__content {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-inline-size: 0;
}

.bp-blog-list__meta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-block-end: 4px;
}

.bp-blog-list__number {
	font-family: var(--bp-bl-font-display);
	font-weight: 400;
	font-size: clamp(56px, 7vw, 92px);
	line-height: 0.9;
	letter-spacing: 0.01em;
	color: var(--bp-bl-number);
	font-feature-settings: "lnum" 1, "tnum" 1;
}

.bp-blog-list__category {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--bp-bl-olive-pale);
	color: var(--bp-bl-olive-pill);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	white-space: nowrap;
}

.bp-blog-list__title {
	margin: 0;
	font-family: var(--bp-bl-font-display);
	font-weight: 400;
	font-size: clamp(26px, 2.6vw, 34px);
	line-height: 1.18;
	letter-spacing: 0.01em;
	color: var(--bp-bl-fg);
	text-transform: none;
}

.bp-blog-list__title-link {
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1.5px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size 200ms ease;
}
.bp-blog-list__title-link:hover,
.bp-blog-list__title-link:focus-visible {
	background-size: 100% 1.5px;
}

.bp-blog-list__excerpt {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.7;
	color: var(--bp-bl-muted);
	max-inline-size: 56ch;
}

/* ---- Highlights ---- */
.bp-blog-list__highlights {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bp-blog-list__highlight {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
}

.bp-blog-list__highlight-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 36px;
	block-size: 36px;
	border-radius: 50%;
	background: var(--bp-bl-olive-pale);
	color: var(--bp-bl-olive-pill);
	flex: 0 0 auto;
}
.bp-blog-list__highlight-icon svg {
	inline-size: 18px;
	block-size: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
}

.bp-blog-list__highlight-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-inline-size: 0;
}

.bp-blog-list__highlight-title {
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.04em;
	color: var(--bp-bl-fg);
}

.bp-blog-list__highlight-desc {
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--bp-bl-muted);
}

/* ---- CTA wrapper (re-uses homepage CTA) ---- */
.bp-blog-list__cta {
	margin-block-start: 8px;
}

/* ---- Image (right) ---- */
.bp-blog-list__image-link {
	display: block;
	text-decoration: none;
	pointer-events: auto;
}

.bp-blog-list__image {
	position: relative;
	inline-size: 100%;
	aspect-ratio: 4 / 3;
	border-radius: var(--bp-bl-radius);
	overflow: hidden;
	background: #E9E2D2;
	box-shadow: 0 18px 40px rgba(31, 42, 31, 0.10);
}

.bp-blog-list__img {
	position: absolute;
	inset: 0;
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	object-position: center;
}

.bp-blog-list__image-placeholder {
	inline-size: 100%;
	block-size: 100%;
	background:
		radial-gradient(circle at 30% 35%, rgba(184, 178, 90, 0.18), transparent 60%),
		radial-gradient(circle at 70% 70%, rgba(55, 79, 55, 0.18), transparent 60%),
		#E9E2D2;
}

.bp-blog-list__empty {
	text-align: center;
	color: var(--bp-bl-muted);
	font-size: 15px;
	padding-block: 64px;
}

/* ---- Tablet ---- */
@media (max-width: 1024px) {
	.bp-blog-list {
		--bp-bl-cols: minmax(0, 1.1fr) minmax(0, 1fr);
		--bp-bl-gap: 36px;
	}
	.bp-blog-list__number {
		font-size: clamp(48px, 6vw, 72px);
	}
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
	.bp-blog-list__inner {
		inline-size: calc(100% - 36px);
		margin-inline: auto;
		padding-inline: 0;
	}
	.bp-blog-list__article {
		grid-template-columns: 1fr;
		gap: 22px;
	}
	.bp-blog-list__content {
		order: 1;
	}
	.bp-blog-list__image-link {
		order: 2;
	}
	.bp-blog-list__image {
		aspect-ratio: 16 / 11;
	}
	.bp-blog-list__number {
		font-size: 52px;
	}
	.bp-blog-list__title {
		font-size: 24px;
	}
	.bp-blog-list__excerpt {
		font-size: 14.5px;
	}
	.bp-blog-list__meta {
		gap: 12px;
	}
	.bp-blog-list__cta {
		justify-content: center;
	}
}

@media (max-width: 420px) {
	.bp-blog-list__item {
		padding-block: 32px;
	}
	.bp-blog-list__number {
		font-size: 44px;
	}
	.bp-blog-list__highlight {
		grid-template-columns: 30px minmax(0, 1fr);
	}
	.bp-blog-list__highlight-icon {
		inline-size: 30px;
		block-size: 30px;
	}
	.bp-blog-list__highlight-icon svg {
		inline-size: 16px;
		block-size: 16px;
	}
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
	.bp-blog-list__title-link {
		transition: none;
	}
}
