/**
 * News - Latest Posts (hash f2c8b5).
 *
 * Layers (back to front): bg slides, overlay, frame (label, content, side).
 * JS only toggles .is-active on slides and sets --nlp-f2c8b5-slot on rail cards. All motion is CSS.
 * Control values arrive as custom properties on the root; every property has a fallback here.
 */

/* ------------------------------------------------------------------
 * Fill the parent container. Works for a flex container with a fixed height (100vh) and for one
 * that only has a min-height, because the widget grows with flex instead of a percentage height.
 * ------------------------------------------------------------------ */
.elementor-widget-news_latest_posts_f2c8b5 {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.e-con > .elementor-widget.elementor-widget-news_latest_posts_f2c8b5 {
	flex: 1 1 auto;
	align-self: stretch;
	width: 100%;
}

.elementor-widget-news_latest_posts_f2c8b5 > .elementor-widget-container {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
}

/* ------------------------------------------------------------------
 * Root
 * ------------------------------------------------------------------ */
.nlp-f2c8b5 {
	--nlp-stage-dur: 900ms;
	--nlp-stage-ease: ease-in-out;
	--nlp-zoom: 1.06;
	--nlp-blur: 6px;
	--nlp-text-shift: 12px;
	--nlp-rail-dur: 900ms;
	--nlp-rail-ease: ease-in-out;
	--nlp-behind: 0.45;
	--nlp-behind-scale: 0.9;
	--nlp-enter-delay: 300ms;
	--nlp-card-w: 370px;
	--nlp-gap: 20px;
	--nlp-delay: 5000ms;
	--nlp-n: 4;

	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	box-sizing: border-box;
	width: 100%;
	overflow: hidden;
	/* clip, unlike hidden, cannot be scrolled by focus or scrollIntoView (the rail bleeds off the edge). */
	overflow: clip;
	isolation: isolate;
	background-color: #14181f;
	color: #fff;
	touch-action: pan-y;
}

.nlp-f2c8b5 *,
.nlp-f2c8b5 *::before,
.nlp-f2c8b5 *::after {
	box-sizing: border-box;
}

.nlp-f2c8b5__empty {
	margin: 0;
	padding: 48px 24px;
	text-align: center;
}

/* ------------------------------------------------------------------
 * Background stage
 * ------------------------------------------------------------------ */
.nlp-f2c8b5__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.nlp-f2c8b5__bgslide {
	position: absolute;
	inset: 0;
	z-index: 0;
	visibility: hidden;
	opacity: 0;
	filter: blur(var(--nlp-blur));
	transform: scale(var(--nlp-zoom));
	transition:
		opacity var(--nlp-stage-dur) var(--nlp-stage-ease),
		transform var(--nlp-stage-dur) var(--nlp-stage-ease),
		filter var(--nlp-stage-dur) var(--nlp-stage-ease),
		visibility 0s linear var(--nlp-stage-dur);
	will-change: opacity, transform, filter;
}

.nlp-f2c8b5__bgslide.is-active {
	z-index: 1;
	visibility: visible;
	opacity: 1;
	filter: blur(0);
	transform: scale(1);
	transition:
		opacity var(--nlp-stage-dur) var(--nlp-stage-ease),
		transform var(--nlp-stage-dur) var(--nlp-stage-ease),
		filter var(--nlp-stage-dur) var(--nlp-stage-ease),
		visibility 0s linear 0s;
}

/* Same theme rule as the thumbnails ("img { height: auto }"): pin the image to the slide box so it always covers the full stage height. */
.nlp-f2c8b5 .nlp-f2c8b5__bgslide img.nlp-f2c8b5__bgimg {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0;
	object-fit: cover;
	object-position: var(--nlp-img-pos, center center);
	filter: grayscale(var(--nlp-gray, 0%));
	-webkit-user-drag: none;
	user-select: none;
}

.nlp-f2c8b5__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	opacity: var(--nlp-overlay-o, 1);
	background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 65%);
	pointer-events: none;
}

/* ------------------------------------------------------------------
 * Frame: label top left, content bottom left, side (counter + rail) bottom right
 * ------------------------------------------------------------------ */
.nlp-f2c8b5__frame {
	position: relative;
	z-index: 2;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 80px 40px 44px 89px;
}

.nlp-f2c8b5__label {
	margin: 0;
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
}

.nlp-f2c8b5__content {
	display: grid;
	width: 100%;
	max-width: var(--nlp-content-max, 560px);
	margin-top: auto;
}

/* Every slide sits in the same grid cell. Inactive slides fade and drift, then leave the a11y tree. */
.nlp-f2c8b5__slide {
	grid-area: 1 / 1;
	align-self: end;
	min-width: 0;
	visibility: hidden;
	opacity: 0;
	transform: translateY(var(--nlp-text-shift));
	transition:
		opacity var(--nlp-stage-dur) var(--nlp-stage-ease),
		transform var(--nlp-stage-dur) var(--nlp-stage-ease),
		visibility 0s linear var(--nlp-stage-dur);
}

.nlp-f2c8b5__slide.is-active {
	visibility: visible;
	opacity: 1;
	transform: none;
	transition:
		opacity var(--nlp-stage-dur) var(--nlp-stage-ease),
		transform var(--nlp-stage-dur) var(--nlp-stage-ease),
		visibility 0s linear 0s;
}

.nlp-f2c8b5__date {
	display: block;
	margin: 0 0 var(--nlp-date-gap, 28px);
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
}

.nlp-f2c8b5__title {
	margin: 0 0 var(--nlp-title-gap, 22px);
	color: #fff;
	font-family: 'Bellefair', serif;
	font-size: 49px;
	font-weight: 400;
	line-height: 1.1;
	text-transform: uppercase;
}

.nlp-f2c8b5__excerpt {
	display: -webkit-box;
	margin: 0 0 var(--nlp-excerpt-gap, 36px);
	overflow: hidden;
	color: #fff;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.2;
	-webkit-line-clamp: var(--nlp-excerpt-lines, 2);
	-webkit-box-orient: vertical;
}

/* ------------------------------------------------------------------
 * Read Article controls (main button and card link share the same behaviour):
 * hollow circle at rest, circle fills and the label moves right on hover or focus.
 * Space for the shift is reserved on the right at rest, so the pill never changes width.
 * ------------------------------------------------------------------ */
.nlp-f2c8b5 a.nlp-f2c8b5__btn {
	display: inline-flex;
	align-items: center;
	padding: 14px 24px;
	border-radius: 999px;
	background-color: #fbf8f3;
	color: #21304d;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.nlp-f2c8b5__btn-dot {
	flex: 0 0 auto;
	width: var(--nlp-btn-dot, 8px);
	height: var(--nlp-btn-dot, 8px);
	border: var(--nlp-btn-dot-b, 1.5px) solid var(--nlp-btn-dot-c, #21304d);
	border-radius: 50%;
	background-color: transparent;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nlp-f2c8b5__btn-label {
	margin-left: var(--nlp-btn-gap, 10px);
	margin-right: max(0px, calc(var(--nlp-btn-gap-h, 20px) - var(--nlp-btn-gap, 10px)));
	white-space: nowrap;
	transition: margin 0.3s ease;
}

.nlp-f2c8b5 a.nlp-f2c8b5__btn:hover .nlp-f2c8b5__btn-dot,
.nlp-f2c8b5 a.nlp-f2c8b5__btn:focus-visible .nlp-f2c8b5__btn-dot {
	background-color: var(--nlp-btn-dot-fill, #21304d);
}

.nlp-f2c8b5 a.nlp-f2c8b5__btn:hover .nlp-f2c8b5__btn-label,
.nlp-f2c8b5 a.nlp-f2c8b5__btn:focus-visible .nlp-f2c8b5__btn-label {
	margin-left: var(--nlp-btn-gap-h, 20px);
	margin-right: 0;
}

.nlp-f2c8b5 a.nlp-f2c8b5__btn:focus-visible,
.nlp-f2c8b5 a.nlp-f2c8b5__card-link:focus-visible,
.nlp-f2c8b5 button.nlp-f2c8b5__card-title:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* ------------------------------------------------------------------
 * Side block: counter and ring above the rail. Positioned by the Rail Position control:
 * beside the content (absolute, bottom right, bleeds off the right edge) or below it.
 * ------------------------------------------------------------------ */
.nlp-f2c8b5__side {
	position: absolute;
	right: 0;
	bottom: var(--nlp-side-bottom, 44px);
	left: var(--nlp-side-left, 56%);
	z-index: 3;
}

.nlp-f2c8b5__meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--nlp-ring-gap, 12px);
	padding-right: var(--nlp-counter-right, 37px);
	margin-bottom: var(--nlp-meta-gap, 24px);
}

.nlp-f2c8b5__counter {
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.nlp-f2c8b5__ring {
	display: none;
	flex: 0 0 auto;
	width: var(--nlp-ring, 20px);
	height: var(--nlp-ring, 20px);
}

.nlp-f2c8b5.nlp--ring .nlp-f2c8b5__ring {
	display: block;
}

.nlp-f2c8b5__ring svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
	transform: rotate(-90deg);
}

.nlp-f2c8b5__ring circle {
	cx: 50%;
	cy: 50%;
	r: calc(50% - var(--nlp-ring-th, 2px) / 2);
	fill: none;
	stroke-width: var(--nlp-ring-th, 2px);
}

.nlp-f2c8b5__ring-track {
	stroke: var(--nlp-ring-track, rgba(255, 255, 255, 0.35));
}

.nlp-f2c8b5__ring-progress {
	stroke: var(--nlp-ring-fill, #fff);
	stroke-dasharray: 100;
	stroke-dashoffset: 0;
}

/* The timer is an invisible element. Its animation end advances the slider, so pausing the
   animation (hover, focus, touch, hidden tab) pauses autoplay exactly where it was. */
.nlp-f2c8b5__timer {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.nlp-f2c8b5.is-running .nlp-f2c8b5__ring-progress {
	animation: nlp-f2c8b5-ring var(--nlp-delay) linear forwards;
}

.nlp-f2c8b5.is-running .nlp-f2c8b5__timer {
	animation: nlp-f2c8b5-timer var(--nlp-delay) linear forwards;
}

.nlp-f2c8b5.is-paused .nlp-f2c8b5__ring-progress,
.nlp-f2c8b5.is-paused .nlp-f2c8b5__timer {
	animation-play-state: paused;
}

@keyframes nlp-f2c8b5-ring {
	from {
		stroke-dashoffset: 100;
	}

	to {
		stroke-dashoffset: 0;
	}
}

@keyframes nlp-f2c8b5-timer {
	from {
		opacity: 0;
	}

	to {
		opacity: 0.01;
	}
}

/* ------------------------------------------------------------------
 * Rail. Cards share one grid cell and are placed by slot:
 * translateX = slot * (card width + gap). The rail is only one card wide, the rest bleeds right.
 * ------------------------------------------------------------------ */
.nlp-f2c8b5__rail {
	display: grid;
	grid-template-columns: var(--nlp-card-w);
}

.nlp-f2c8b5__card {
	--nlp-f2c8b5-slot: 0;

	grid-area: 1 / 1;
	z-index: calc(var(--nlp-n) - var(--nlp-f2c8b5-slot));
	display: flex;
	align-items: center;
	gap: var(--nlp-thumb-gap, 16px);
	width: var(--nlp-card-w);
	padding: 10px;
	border-radius: 8px;
	visibility: visible;
	opacity: 1;
	background-color: rgba(255, 255, 255, 0.28);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	transform: translate3d(calc(var(--nlp-f2c8b5-slot) * (var(--nlp-card-w) + var(--nlp-gap))), 0, 0);
	transition:
		transform var(--nlp-rail-dur) var(--nlp-rail-ease),
		opacity var(--nlp-rail-dur) var(--nlp-rail-ease) var(--nlp-enter-delay),
		background-color 0.3s ease,
		visibility 0s linear 0s;
	cursor: pointer;
}

/* The card whose item is on stage: slides a little to the right, shrinks, fades, stays behind. */
.nlp-f2c8b5__card.is-active {
	z-index: 0;
	visibility: hidden;
	opacity: 0;
	transform: translate3d(calc((var(--nlp-f2c8b5-slot) + var(--nlp-behind)) * (var(--nlp-card-w) + var(--nlp-gap))), 0, 0) scale(var(--nlp-behind-scale));
	transition:
		transform var(--nlp-rail-dur) var(--nlp-rail-ease),
		opacity var(--nlp-rail-dur) var(--nlp-rail-ease),
		visibility 0s linear var(--nlp-rail-dur);
	pointer-events: none;
}

/* JS adds this for one frame so a card re-entering the rail starts hidden at its start position. */
.nlp-f2c8b5__card.is-entering {
	opacity: 0;
	transition: none;
}

/* The thumb is as wide as the Thumbnail Size control and as tall as the card body (never shorter than
 * a square). The image is absolutely positioned inside it, so it always fills the box. */
.nlp-f2c8b5 .nlp-f2c8b5__thumb {
	position: relative;
	flex: 0 0 auto;
	align-self: stretch;
	width: var(--nlp-thumb, 115px);
	min-height: var(--nlp-thumb, 115px);
	overflow: hidden;
	border-radius: 4px;
}

/* Higher specificity plus !important on the sizes: Elementor and TheGem both ship "img { height: auto }" rules. */
.nlp-f2c8b5 .nlp-f2c8b5__thumb img.nlp-f2c8b5__thumbimg {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0;
	object-fit: cover;
	-webkit-user-drag: none;
}

.nlp-f2c8b5__card-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
}

/* The title is a real button (keyboard and screen reader access). The whole card is also clickable. */
.nlp-f2c8b5 button.nlp-f2c8b5__card-title,
.nlp-f2c8b5 button.nlp-f2c8b5__card-title:hover,
.nlp-f2c8b5 button.nlp-f2c8b5__card-title:focus {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: #fff;
	font-size: 17px;
	font-weight: 400;
	letter-spacing: normal;
	line-height: 1.3;
	text-align: left;
	text-transform: none;
	cursor: pointer;
	appearance: none;
}

.nlp-f2c8b5 a.nlp-f2c8b5__card-link {
	display: inline-flex;
	align-items: center;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
}

.nlp-f2c8b5__card-dot {
	flex: 0 0 auto;
	width: var(--nlp-clink-dot, 7px);
	height: var(--nlp-clink-dot, 7px);
	border: var(--nlp-clink-dot-b, 1.5px) solid var(--nlp-clink-dot-c, #fff);
	border-radius: 50%;
	background-color: transparent;
	transition: background-color 0.3s ease;
}

.nlp-f2c8b5__card-label {
	margin-left: var(--nlp-clink-gap, 10px);
	margin-right: max(0px, calc(var(--nlp-clink-gap-h, 20px) - var(--nlp-clink-gap, 10px)));
	white-space: nowrap;
	transition: margin 0.3s ease;
}

.nlp-f2c8b5 a.nlp-f2c8b5__card-link:hover .nlp-f2c8b5__card-dot,
.nlp-f2c8b5 a.nlp-f2c8b5__card-link:focus-visible .nlp-f2c8b5__card-dot {
	background-color: var(--nlp-clink-dot-fill, #fff);
}

.nlp-f2c8b5 a.nlp-f2c8b5__card-link:hover .nlp-f2c8b5__card-label,
.nlp-f2c8b5 a.nlp-f2c8b5__card-link:focus-visible .nlp-f2c8b5__card-label {
	margin-left: var(--nlp-clink-gap-h, 20px);
	margin-right: 0;
}

/* ------------------------------------------------------------------
 * Reduced motion: instant swaps, no drifting or blurring.
 * ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	.nlp-f2c8b5__bgslide,
	.nlp-f2c8b5__slide,
	.nlp-f2c8b5__card,
	.nlp-f2c8b5__card.is-active,
	.nlp-f2c8b5__btn,
	.nlp-f2c8b5__btn-dot,
	.nlp-f2c8b5__btn-label,
	.nlp-f2c8b5__card-dot,
	.nlp-f2c8b5__card-label {
		transition: none;
	}

	.nlp-f2c8b5__bgslide,
	.nlp-f2c8b5__slide {
		filter: none;
		transform: none;
	}
}
