/* LJI Newsletters (loop grid on /insights/newsletters/) */
.lji-nl {
	--nl-navy: #0c3970;
	--nl-ink: #1d2a3a;
	--nl-muted: #66707d;
	--nl-gold: #a99668;
	--nl-gold-dark: #8a7746;
	--nl-ease: cubic-bezier(.22, .61, .36, 1);
	height: 100%;
	overflow: hidden;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(8, 42, 84, .06), 0 8px 24px -12px rgba(8, 42, 84, .18);
	transition: transform .35s var(--nl-ease), box-shadow .35s var(--nl-ease);
}
.lji-nl:hover {
	transform: translateY(-4px);
	box-shadow: 0 2px 4px rgba(8, 42, 84, .06), 0 22px 44px -16px rgba(8, 42, 84, .3);
}

/* image */
.lji-nl .lji-nl__media { overflow: hidden; }
.lji-nl .lji-nl__img,
.lji-nl .lji-nl__img a { display: block; height: 100%; }
.lji-nl .lji-nl__img img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform .6s var(--nl-ease);
}
.lji-nl:hover .lji-nl__img img { transform: scale(1.04); }

/* body */
.lji-nl .lji-nl__body { flex: 1 1 auto; padding: 24px 26px 26px; }
.lji-nl .elementor-widget:not(:last-child) { margin-bottom: 0; }

.lji-nl .lji-nl__date .elementor-heading-title {
	margin-bottom: 8px;
	color: var(--nl-gold-dark);
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	line-height: 1.3;
	text-transform: uppercase;
}

.lji-nl .lji-nl__title .elementor-heading-title {
	margin: 0 0 10px;
	color: var(--nl-navy);
	font-family: "Abhaya Libre", Georgia, serif;
	font-size: 23px;
	font-weight: 700;
	line-height: 1.2;
}
.lji-nl .lji-nl__title a { color: inherit; transition: color .25s; }
.lji-nl .lji-nl__title a:hover { color: var(--nl-gold-dark); }

.lji-nl .lji-nl__excerpt,
.lji-nl .lji-nl__excerpt p {
	margin: 0 0 18px;
	color: var(--nl-muted);
	font-size: 15px;
	line-height: 1.6;
}

.lji-nl .lji-nl__more { margin-top: auto; }
.lji-nl .lji-nl__more .elementor-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--nl-navy);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: none;
	fill: currentColor;
}
.lji-nl .lji-nl__more .elementor-button::after {
	content: "\2192";
	transition: transform .3s var(--nl-ease);
}
.lji-nl .lji-nl__more .elementor-button:hover,
.lji-nl .lji-nl__more .elementor-button:focus {
	background: none;
	color: var(--nl-gold-dark);
}
.lji-nl:hover .lji-nl__more .elementor-button::after { transform: translateX(4px); }

/* featured (latest) */
.lji-nl--feature .lji-nl__media { flex: 0 0 52%; max-width: 52%; }
.lji-nl--feature .lji-nl__img img { aspect-ratio: auto; min-height: 340px; }
.lji-nl--feature .lji-nl__body { justify-content: center; padding: 44px 48px; }
.lji-nl--feature .lji-nl__badge .elementor-heading-title {
	display: inline-block;
	margin-bottom: 18px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--nl-navy);
	color: #fff;
	font-family: inherit;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	line-height: 1;
	text-transform: uppercase;
}
.lji-nl--feature .lji-nl__title .elementor-heading-title { font-size: 36px; line-height: 1.12; margin-bottom: 14px; }
.lji-nl--feature .lji-nl__excerpt,
.lji-nl--feature .lji-nl__excerpt p { font-size: 17px; margin-bottom: 26px; }
.lji-nl--feature .lji-nl__more .elementor-button {
	padding: 13px 24px;
	border-radius: 999px;
	background: var(--nl-navy);
	color: #fff;
	font-size: 15px;
	transition: background-color .3s var(--nl-ease);
}
.lji-nl--feature .lji-nl__more .elementor-button:hover,
.lji-nl--feature .lji-nl__more .elementor-button:focus { background: var(--nl-gold-dark); color: #fff; }
.lji-nl.lji-nl--feature:hover { transform: none; }

/* grid spacing + pagination */
.elementor-widget.lji-nl-grid--feature { margin-bottom: 56px !important; }
.lji-nl-grid--cards .elementor-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 48px;
}
.lji-nl-grid--cards .elementor-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	margin: 0 !important;
	padding: 0 14px;
	border: 1px solid #dfe3ea;
	border-radius: 999px;
	color: #0c3970;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color .25s, border-color .25s, color .25s;
}
.lji-nl-grid--cards .elementor-pagination a.page-numbers:hover { border-color: #a99668; color: #8a7746; }
.lji-nl-grid--cards .elementor-pagination .page-numbers.current { background: #0c3970; border-color: #0c3970; color: #fff; }
.lji-nl-grid--cards .elementor-pagination .page-numbers.dots { border-color: transparent; }
.lji-nl-grid--cards .elementor-pagination .page-numbers.prev,
.lji-nl-grid--cards .elementor-pagination .page-numbers.next { padding: 0 18px; }

@media (max-width: 1024px) {
	.lji-nl--feature .lji-nl__body { padding: 32px; }
	.lji-nl--feature .lji-nl__title .elementor-heading-title { font-size: 30px; }
}
@media (max-width: 767px) {
	.lji-nl--feature .lji-nl__media { flex-basis: auto; max-width: 100%; }
	.lji-nl--feature .lji-nl__img img { aspect-ratio: 16 / 9; min-height: 0; }
	.lji-nl--feature .lji-nl__body { padding: 26px 24px 28px; }
	.lji-nl--feature .lji-nl__title .elementor-heading-title { font-size: 27px; }
	.lji-nl--feature .lji-nl__excerpt, .lji-nl--feature .lji-nl__excerpt p { font-size: 16px; }
	.elementor-widget.lji-nl-grid--feature { margin-bottom: 36px !important; }
}
@media (prefers-reduced-motion: reduce) {
	.lji-nl, .lji-nl * { transition: none !important; }
}

/* clamp excerpts so they end cleanly with an ellipsis and cards stay even */
.lji-nl .lji-nl__excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	margin-bottom: 18px;
}
.lji-nl--feature .lji-nl__excerpt { -webkit-line-clamp: 5; margin-bottom: 26px; }
.lji-nl .lji-nl__excerpt.elementor-widget { margin-bottom: 18px; }
.lji-nl.lji-nl--feature .lji-nl__excerpt.elementor-widget { margin-bottom: 30px; }
