/* ==========================================================================
   Blog landing + archive
   Figma: 670:6171 (Get Involved - Blog)
   ========================================================================== */

.jl-blog {
	background: #fff;
	color: #171717;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.jl-blog-hero {
	position: relative;
	min-height: 600px;
	display: flex;
	align-items: center;
	background-color: var(--e-global-color-slate, #4b667c);
	background-size: cover;
	background-position: center;
	color: #fff;
	padding: 120px 80px 80px;
}
.jl-blog-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.3);
	pointer-events: none;
}
.jl-blog-hero--plain::before {
	background: linear-gradient(135deg, rgba(0,0,0,0.15), rgba(0,0,0,0.4));
}
.jl-blog-hero__inner {
	position: relative;
	max-width: 1352px;
	margin-inline: auto;
	width: 100%;
}
.jl-blog-hero__title,
.jl-blog-hero__subtitle {
	max-width: 929px;
}
.jl-blog-hero__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85) !important;
	text-decoration: none;
	margin: 0 0 20px;
	transition: color 0.2s ease;
}
.jl-blog-hero__back:hover,
.jl-blog-hero__back:focus {
	color: #fff !important;
}
.jl-blog-hero__title {
	font-family: 'Gotham Office', sans-serif;
	font-size: 64px;
	line-height: 1.15;
	letter-spacing: 2px;
	color: #fff;
	margin: 0 0 10px;
}
.jl-blog-hero__subtitle {
	font-family: 'Gotham Office', sans-serif;
	font-size: 28px;
	line-height: 36px;
	color: #e5e5e5;
	margin: 0;
}

/* ── Main body grid ─────────────────────────────────────────────────────── */
.jl-blog__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 316px;
	gap: 80px;
	padding: 80px;
	max-width: 1512px;
	margin: 0 auto;
}
.jl-blog__main {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

/* ── Featured card ───────────────────────────────────────────────────────── */
.jl-blog-featured {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.jl-blog-featured__media {
	display: block;
	height: 320px;
	overflow: hidden;
}
.jl-blog-featured__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.jl-blog-featured__body {
	padding: 32px;
}
.jl-blog-featured__title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 300;
	font-size: 30px;
	line-height: 38px;
	letter-spacing: 3px;
	color: #000;
	margin: 16px 0 24px;
}
.jl-blog-featured__title a {
	color: inherit !important;
	text-decoration: none;
}
.jl-blog-featured__excerpt {
	font-family: 'Montserrat', sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 26px;
	color: #525252;
	margin: 0 0 24px;
}

/* ── Grid of cards ───────────────────────────────────────────────────────── */
.jl-blog-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
}
.jl-blog-grid__empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 40px 0;
	color: #737373;
}

.jl-blog-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.jl-blog-card__media {
	display: block;
	height: 192px;
	overflow: hidden;
}
.jl-blog-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.jl-blog-card__body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex: 1;
}
.jl-blog-card__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.jl-blog-card__pill {
	display: inline-block;
	background: #f5f5f5;
	color: #404040 !important;
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	font-size: 12px;
	line-height: 1;
	letter-spacing: 1.8px;
	padding: 6px 12px;
	text-decoration: none;
}
.jl-blog-card__pill--featured {
	background: #000;
	color: #fff !important;
}
.jl-blog-card__date {
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 1.2px;
	color: #737373;
}
.jl-blog-card__title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 300;
	font-size: 18px;
	line-height: 28px;
	letter-spacing: 1.8px;
	color: #000;
	margin: 0;
}
.jl-blog-card__title a {
	color: inherit !important;
	text-decoration: none;
}
.jl-blog-card__excerpt {
	font-family: 'Montserrat', sans-serif;
	font-weight: 300;
	font-size: 14px;
	line-height: 23px;
	color: #525252;
	margin: 0;
	flex: 1;
}
.jl-blog-card__cta {
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 1.8px;
	color: #000 !important;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
}
.jl-blog-card__cta:hover {
	color: var(--e-global-color-slate, #4b667c) !important;
}

/* Featured card CTA is bigger per design */
.jl-blog-featured .jl-blog-card__cta {
	font-size: 14px;
	letter-spacing: 2.1px;
}

/* ── Load more / pagination ──────────────────────────────────────────────── */
.jl-blog__load-more-wrap {
	display: flex;
	justify-content: center;
	gap: 12px;
	padding: 12px;
	flex-wrap: wrap;
}
.jl-blog__load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--e-global-color-slate, #4b667c);
	color: #fff !important;
	font-family: 'Gotham Office', sans-serif;
	font-size: 16px;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 12px 24px;
	border-radius: 8px !important;
	text-decoration: none;
	transition: background-color 0.2s ease;
}
.jl-blog__load-more:hover {
	background: var(--e-global-color-dark-navy, #1a2d3d);
	color: #fff !important;
}
.jl-blog__pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 24px 0;
}
.jl-blog__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 6px;
	border: 1px solid #e5e5e5;
	color: #404040 !important;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	text-decoration: none;
}
.jl-blog__pagination .page-numbers.current {
	background: var(--e-global-color-slate, #4b667c);
	color: #fff !important;
	border-color: transparent;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.jl-blog-sidebar {
	display: flex;
	flex-direction: column;
	gap: 30px;
	padding: 24px;
}
/* Mobile category <select> fallback — hidden on desktop. */
.jl-blog-sidebar__mobile-select {
	display: none;
	width: 100%;
	height: 46px;
	padding: 0 40px 0 15px;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b667c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 12px center / 18px;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	color: #171717;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}
.jl-blog-sidebar__title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 28px;
	letter-spacing: 1.8px;
	color: var(--e-global-color-slate, #4b667c);
	margin: 0 0 16px;
}

/* Search */
.jl-blog-search {
	position: relative;
}
.jl-blog-search__input {
	width: 100%;
	height: 46px;
	padding: 10px 44px 10px 15px;
	border: 1px solid #e5e5e5 !important;
	border-radius: 8px !important;
	background: #fff !important;
	font-family: 'Montserrat', sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	color: #171717;
	box-sizing: border-box;
	box-shadow: none !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.jl-blog-search__input::placeholder {
	color: #adaebc;
	font-family: 'Montserrat', sans-serif;
	font-weight: 400;
	opacity: 1;
}
.jl-blog-search__submit {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	background: none !important;
	border: 0 !important;
	padding: 0 !important;
	color: var(--e-global-color-slate, #4b667c) !important;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: none !important;
}
.jl-blog-search__submit:hover,
.jl-blog-search__submit:focus-visible {
	color: var(--e-global-color-dark-navy, #1a2d3d) !important;
	background: none !important;
}
.jl-blog-search__input:focus {
	outline: none;
	border-color: var(--e-global-color-slate, #4b667c) !important;
	box-shadow: 0 0 0 3px rgba(75, 102, 124, 0.15) !important;
}

/* Lists (categories, archives) */
.jl-blog-sidebar__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.jl-blog-sidebar__list li {
	border-bottom: 1px solid #f5f5f5;
}
.jl-blog-sidebar__list li:last-child {
	border-bottom: 0;
}
.jl-blog-sidebar__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	line-height: 20px;
	color: #525252 !important;
	text-decoration: none;
}
.jl-blog-sidebar__list a:hover {
	color: var(--e-global-color-slate, #4b667c) !important;
}
.jl-blog-sidebar__list a.is-active {
	color: var(--e-global-color-slate, #4b667c) !important;
	font-weight: 600;
}
.jl-blog-sidebar__list a.is-active .jl-blog-sidebar__count {
	color: var(--e-global-color-slate, #4b667c);
}

/* Active filter indicator above the grid (archive pages only). */
.jl-blog__active-filter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	padding: 12px 16px;
	background: #f5f5f5;
	border-radius: 8px;
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	color: #525252;
	align-self: flex-start;
}
.jl-blog__active-filter-label {
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: #737373;
}
.jl-blog__active-filter-value {
	font-weight: 600;
	color: var(--e-global-color-slate, #4b667c);
}
.jl-blog__active-filter-clear {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid #e5e5e5;
	font-size: 12px;
	letter-spacing: 0.5px;
	color: var(--e-global-color-slate, #4b667c) !important;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.jl-blog__active-filter-clear:hover,
.jl-blog__active-filter-clear:focus {
	background: var(--e-global-color-slate, #4b667c);
	color: #fff !important;
	border-color: var(--e-global-color-slate, #4b667c);
}
.jl-blog-sidebar__count {
	font-size: 12px;
	color: #a3a3a3;
}

/* Tags */
.jl-blog-sidebar__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.jl-blog-tag {
	display: inline-block;
	background: var(--e-global-color-slate, #4b667c);
	color: #fff !important;
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	line-height: 1;
	letter-spacing: 1.2px;
	padding: 6px 14px;
	border-radius: 16px;
	text-decoration: none;
}
.jl-blog-tag:hover {
	background: var(--e-global-color-dark-navy, #1a2d3d);
	color: #fff !important;
}

/* Recent posts */
.jl-blog-recent {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.jl-blog-recent__link {
	display: flex;
	gap: 16px;
	align-items: center;
	text-decoration: none;
}
.jl-blog-recent__media {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border-radius: 4px;
}
.jl-blog-recent__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.jl-blog-recent__meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}
.jl-blog-recent__title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 18px;
	color: var(--e-global-color-slate, #4b667c);
}
.jl-blog-recent__date {
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	line-height: 16px;
	color: #737373;
}

/* ── Newsletter band ─────────────────────────────────────────────────────── */
.jl-blog-newsletter {
	background: #dbe0e5;
	padding: 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 26px;
	text-align: center;
}
.jl-blog-newsletter__title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 300;
	font-size: 30px;
	line-height: 36px;
	letter-spacing: 4.5px;
	color: #5f5f5f;
	margin: 0;
}
.jl-blog-newsletter__divider {
	display: block;
	width: 128px;
	height: 1px;
	background: linear-gradient(to right, transparent, #fff, transparent);
}
.jl-blog-newsletter__text {
	font-family: 'Montserrat', sans-serif;
	font-weight: 300;
	font-size: 18px;
	line-height: 28px;
	color: #5d5d5d;
	max-width: 640px;
	margin: 0;
}
.jl-blog-newsletter__form {
	display: flex;
	width: 100%;
	max-width: 560px;
}
.jl-blog-newsletter__input {
	flex: 1;
	min-width: 0;
	height: 52px;
	padding: 0 24px;
	border: 0 !important;
	border-radius: 8px 0 0 8px !important;
	background: #fff !important;
	font-family: 'Montserrat', sans-serif;
	font-weight: 400;
	font-size: 14px;
	color: #171717;
	box-shadow: none !important;
}
.jl-blog-newsletter__input:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(75, 102, 124, 0.2) !important;
}
.jl-blog-newsletter__input::placeholder {
	color: #adaebc;
}
.jl-blog-newsletter__submit {
	height: 52px;
	padding: 0 32px;
	min-width: 166px;
	border: 0 !important;
	border-radius: 0 8px 8px 0 !important;
	background: var(--e-global-color-slate, #4b667c) !important;
	color: #ccc !important;
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 2.1px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
	box-shadow: none !important;
}
.jl-blog-newsletter__submit:hover,
.jl-blog-newsletter__submit:focus {
	background: var(--e-global-color-dark-navy, #1a2d3d) !important;
	color: #fff !important;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
	.jl-blog__body {
		grid-template-columns: 1fr;
		gap: 48px;
		padding: 48px;
	}
	/* On tablet/mobile, sidebar comes BEFORE the grid so search is reachable. */
	.jl-blog__sidebar { order: -1; padding: 0; }
	.jl-blog-sidebar { padding: 0; gap: 24px; }
	.jl-blog-hero {
		padding: 100px 48px 64px;
		min-height: 480px;
	}
	.jl-blog-hero__title { font-size: 48px; }
	.jl-blog-hero__subtitle { font-size: 22px; line-height: 30px; }
	.jl-blog-newsletter { padding: 64px 32px; }

	/* Swap verbose lists for compact dropdowns on tablet/mobile. */
	.jl-blog-sidebar__block--categories .jl-blog-sidebar__list { display: none; }
	.jl-blog-sidebar__block--categories .jl-blog-sidebar__mobile-select { display: block; }
	/* Archives + Recent Posts de-prioritized on smaller screens. */
	.jl-blog-sidebar__block:has(.jl-blog-sidebar__list--archives),
	.jl-blog-sidebar__block:has(.jl-blog-recent) {
		display: none;
	}
}
@media (max-width: 700px) {
	.jl-blog-grid {
		grid-template-columns: 1fr;
	}
	.jl-blog__body { padding: 32px 20px; gap: 28px; }
	.jl-blog-hero { padding: 80px 20px 40px; min-height: auto; }
	.jl-blog-hero__title { font-size: 32px; line-height: 1.15; letter-spacing: 0.5px; }
	.jl-blog-hero__subtitle { font-size: 16px; line-height: 24px; }
	.jl-blog-hero__back { font-size: 12px; margin-bottom: 12px; }
	.jl-blog-featured__media { height: 220px; }
	.jl-blog-featured__body { padding: 20px; }
	.jl-blog-featured__title { font-size: 20px; line-height: 28px; letter-spacing: 1.5px; margin: 12px 0 16px; }
	.jl-blog-featured__excerpt { font-size: 14px; line-height: 22px; margin-bottom: 16px; }
	.jl-blog-card__media { height: 180px; }
	.jl-blog-newsletter { padding: 40px 20px; }
	.jl-blog-newsletter__title { font-size: 20px; letter-spacing: 3px; }
	.jl-blog-newsletter__text { font-size: 15px; line-height: 24px; }
	.jl-blog-newsletter__form { flex-direction: column; gap: 10px; }
	.jl-blog-newsletter__input,
	.jl-blog-newsletter__submit { border-radius: 8px; width: 100%; min-width: 0; }
	.jl-blog__load-more,
	.jl-blog__load-more--prev { width: 100%; text-align: center; justify-content: center; }
	.jl-blog-sidebar__tags { gap: 6px; }
	.jl-blog-tag { font-size: 11px; padding: 5px 12px; letter-spacing: 1px; }
}
