/* luxf_timeline — vertical axis with scroll-fill; cards may animate */
.luxf-timeline {
	--luxf-tl-tone: rgb(21, 146, 203);
	--luxf-tl-item-bg: rgb(227, 247, 255);
	--luxf-tl-line: color-mix(in srgb, var(--luxf-tl-tone) 22%, #e8eef2);
	--luxf-tl-marker: 40px;
	--luxf-tl-time-size: 42px;
	--luxf-tl-time-size-sm: 32px;
	position: relative;
	display: block;
	width: 100%;
}

.luxf-timeline__line {
	position: absolute;
	top: 8px;
	bottom: 32px;
	left: 50%;
	width: 4px;
	margin-left: -2px;
	background: var(--luxf-tl-line, #d7e4ed);
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.luxf-timeline__progress {
	display: block;
	width: 100%;
	height: 0;
	background: var(--luxf-tl-tone);
}

.ux-builder-luxf-timeline .luxf-timeline__progress {
	height: 42%;
}

.luxf-timeline-item {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--luxf-tl-marker) minmax(0, 1fr);
	column-gap: 28px;
	align-items: start;
	padding: 8px 0 96px;
	grid-template-areas: "card axis time";
}

.luxf-timeline-item:last-child {
	padding-bottom: 24px;
}

.luxf-timeline-item--left {
	grid-template-areas: "card axis time";
}

.luxf-timeline-item--right {
	grid-template-areas: "time axis card";
}

.luxf-timeline-item__card {
	grid-area: card;
	position: relative;
	background: var(--luxf-tl-item-bg);
	border: 1px solid color-mix(in srgb, var(--luxf-tl-tone) 32%, var(--luxf-tl-item-bg));
	padding: 20px;
}

.luxf-timeline-item__card::after {
	content: "";
	position: absolute;
	top: 14px;
	width: 0;
	height: 0;
	border: 9px solid transparent;
}

.luxf-timeline-item--left .luxf-timeline-item__card::after {
	right: -18px;
	border-left-color: var(--luxf-tl-item-bg);
}

.luxf-timeline-item--right .luxf-timeline-item__card::after {
	left: -18px;
	border-right-color: var(--luxf-tl-item-bg);
}

.luxf-timeline-item__image {
	margin: 0 0 16px;
}

.luxf-timeline-item__img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

.luxf-timeline--fixed-image .luxf-timeline-item__image {
	position: relative;
	height: 0;
	padding-top: var(--luxf-tl-image-h);
	overflow: hidden;
	background-color: #fff;
}

.luxf-timeline--fixed-image .luxf-timeline-item__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
}

.luxf-timeline-item__title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #222;
}

.luxf-timeline-item__body {
	min-height: 8px;
	font-size: 15px;
	line-height: 1.6;
	color: #4c5253;
}

.luxf-timeline-item__body > *:last-child {
	margin-bottom: 0;
}

.luxf-timeline-item__axis {
	grid-area: axis;
	display: flex;
	justify-content: center;
	padding-top: 0;
}

.luxf-timeline-item__marker {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--luxf-tl-marker);
	height: var(--luxf-tl-marker);
	flex: 0 0 var(--luxf-tl-marker);
	background: var(--luxf-tl-tone);
	overflow: hidden;
	border-radius: 0;
}

.luxf-timeline--logo-square .luxf-timeline-item__marker {
	border-radius: 0;
}

.luxf-timeline--logo-circle .luxf-timeline-item__marker {
	border-radius: 50%;
}

.luxf-timeline--logo-round .luxf-timeline-item__marker {
	border-radius: 8px;
}

.luxf-timeline-item__logo {
	display: block;
	width: 68%;
	height: 68%;
	object-fit: contain;
}

.luxf-timeline-item__time {
	grid-area: time;
	margin: 0;
	padding-top: 0;
	font-size: var(--luxf-tl-time-size);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: color-mix(in srgb, var(--luxf-tl-tone) 45%, #2a2a2a);
}

.luxf-timeline--size-xs {
	--luxf-tl-time-size: 22px;
	--luxf-tl-time-size-sm: 18px;
}

.luxf-timeline--size-s {
	--luxf-tl-time-size: 32px;
	--luxf-tl-time-size-sm: 24px;
}

.luxf-timeline--size-m {
	--luxf-tl-time-size: 42px;
	--luxf-tl-time-size-sm: 32px;
}

.luxf-timeline--size-l {
	--luxf-tl-time-size: 56px;
	--luxf-tl-time-size-sm: 40px;
}

.luxf-timeline--size-xl {
	--luxf-tl-time-size: 72px;
	--luxf-tl-time-size-sm: 52px;
}

.luxf-timeline-item--left .luxf-timeline-item__time {
	text-align: left;
}

.luxf-timeline-item--right .luxf-timeline-item__time {
	text-align: right;
}

.ux-builder-luxf_timeline_item .luxf-timeline-item__body,
.ux-builder-luxf-timeline-item .luxf-timeline-item__body {
	min-height: 56px;
}

@media (max-width: 849px) {
	.luxf-timeline__line {
		left: 20px;
		margin-left: 0;
	}

	.luxf-timeline-item,
	.luxf-timeline-item--left,
	.luxf-timeline-item--right {
		grid-template-columns: var(--luxf-tl-marker) minmax(0, 1fr);
		grid-template-areas:
			"axis time"
			"axis card";
		column-gap: 18px;
		padding-bottom: 56px;
	}

	.luxf-timeline-item__time,
	.luxf-timeline-item--left .luxf-timeline-item__time,
	.luxf-timeline-item--right .luxf-timeline-item__time {
		text-align: left;
		font-size: var(--luxf-tl-time-size-sm);
	}

	.luxf-timeline-item__card::after,
	.luxf-timeline-item--left .luxf-timeline-item__card::after,
	.luxf-timeline-item--right .luxf-timeline-item__card::after {
		left: -18px;
		right: auto;
		border-left-color: transparent;
		border-right-color: var(--luxf-tl-item-bg);
	}
}

/* Slider: one year per slide, icon on a horizontal line (Flatsome timeline). */
.luxf-timeline--slider .luxf-timeline__line {
	display: none;
}

.luxf-timeline--slider .luxf-timeline__slider {
	position: relative;
}

.luxf-timeline--slider .luxf-timeline__track:not(.flickity-enabled) {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.luxf-timeline--slider .luxf-timeline-item,
.luxf-timeline--slider .luxf-timeline-item--left,
.luxf-timeline--slider .luxf-timeline-item--right {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 8px 12% 36px;
	column-gap: 0;
	text-align: center;
	grid-template-columns: none;
	grid-template-areas: none;
}

.luxf-timeline--slider .luxf-timeline__track:not(.flickity-enabled) > .luxf-timeline-item {
	flex: 0 0 100%;
	scroll-snap-align: center;
}

.luxf-timeline--slider .luxf-timeline-item__time,
.luxf-timeline--slider .luxf-timeline-item--left .luxf-timeline-item__time,
.luxf-timeline--slider .luxf-timeline-item--right .luxf-timeline-item__time {
	order: 1;
	width: 100%;
	text-align: center;
	padding-top: 0;
}

.luxf-timeline--slider .luxf-timeline-item__axis {
	order: 2;
	position: relative;
	width: 100%;
	display: flex;
	justify-content: center;
	padding: 14px 0;
}

.luxf-timeline--slider .luxf-timeline-item__axis::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 100vw;
	height: 0;
	border-top: 2px dashed color-mix(in srgb, var(--luxf-tl-tone) 45%, #d5dde3);
	transform: translateX(-50%);
	z-index: 0;
	pointer-events: none;
}

.luxf-timeline--slider .luxf-timeline-item__marker {
	position: relative;
	z-index: 1;
	box-shadow: 0 0 0 6px #fff;
}

.luxf-timeline--slider .luxf-timeline-item__card,
.luxf-timeline--slider .luxf-timeline-item__time {
	box-sizing: border-box;
}

.luxf-timeline--slider .luxf-timeline-item__card {
	order: 3;
	align-self: center;
	width: min(100%, 640px);
	max-width: 640px;
	margin-top: 8px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.luxf-timeline--slider .luxf-timeline-item__title,
.luxf-timeline--slider .luxf-timeline-item__body,
.luxf-timeline--slider .luxf-timeline-item__body p,
.luxf-timeline--slider .luxf-timeline-item__image {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

.luxf-timeline--slider .luxf-timeline-item--left .luxf-timeline-item__card::after,
.luxf-timeline--slider .luxf-timeline-item--right .luxf-timeline-item__card::after,
.luxf-timeline--slider .luxf-timeline-item__card::after {
	display: none;
}

/* Top: year above the line, card below. */
.luxf-timeline--slider-top .luxf-timeline-item__time {
	order: 1;
	margin-bottom: 2px;
}

.luxf-timeline--slider-top .luxf-timeline-item__axis {
	order: 2;
}

.luxf-timeline--slider-top .luxf-timeline-item__card {
	order: 3;
	margin-top: 12px;
	margin-bottom: 0;
	margin-left: auto;
	margin-right: auto;
}

/* Bottom: inverted — card above the line, year below. */
.luxf-timeline--slider-bottom .luxf-timeline-item__card {
	order: 1;
	margin-top: 0;
	margin-bottom: 12px;
	margin-left: auto;
	margin-right: auto;
}

.luxf-timeline--slider-bottom .luxf-timeline-item__axis {
	order: 2;
}

.luxf-timeline--slider-bottom .luxf-timeline-item__time {
	order: 3;
	margin-top: 2px;
}

.ux-builder-luxf-timeline.luxf-timeline--slider {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
}

.ux-builder-luxf-timeline.luxf-timeline--slider > .luxf-timeline__line {
	display: none;
}

.ux-builder-luxf-timeline.luxf-timeline--slider > *:not(.luxf-timeline__line) {
	flex: 0 0 100%;
	scroll-snap-align: center;
}

/* Flatsome circle arrows. Flickity draws the live pair; the buttons are the fallback. */
.luxf-timeline--slider .luxf-timeline__slider {
	overflow: visible;
}

.luxf-timeline--slider .luxf-timeline__track.flickity-enabled {
	overflow: visible;
}

.luxf-timeline--slider .flickity-viewport {
	overflow: hidden;
}

.luxf-timeline--slider .flickity-prev-next-button {
	opacity: 0.7;
	z-index: 5;
	width: 36px;
	height: 36px;
	top: 40%;
	bottom: auto;
	background: transparent;
	border: none;
	color: #111;
	transform: none;
}

.luxf-timeline--slider .flickity-prev-next-button.next {
	right: 2%;
	left: auto;
}

.luxf-timeline--slider .flickity-prev-next-button.previous {
	left: 2%;
	right: auto;
}

.luxf-timeline--slider .flickity-prev-next-button svg,
.luxf-timeline--slider .luxf-timeline__nav svg {
	border: 2px solid currentColor;
	border-radius: 100%;
	box-sizing: border-box;
	padding: 7px;
	width: 36px;
	height: 36px;
	fill: currentColor;
	background: transparent;
}

.luxf-timeline--slider .flickity-prev-next-button:hover,
.luxf-timeline--slider .luxf-timeline__nav:hover {
	opacity: 1;
}

.luxf-timeline--slider .flickity-prev-next-button:hover svg,
.luxf-timeline--slider .luxf-timeline__nav:hover svg {
	fill: #fff;
	background-color: var(--fs-color-primary, var(--luxf-tl-tone));
	border-color: var(--fs-color-primary, var(--luxf-tl-tone));
}

.luxf-timeline__nav {
	position: absolute;
	top: 40%;
	z-index: 4;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #111;
	cursor: pointer;
	opacity: 0.7;
}

.luxf-timeline__nav--prev {
	left: 2%;
}

.luxf-timeline__nav--next {
	right: 2%;
}

.luxf-timeline__nav--next svg {
	transform: scaleX(-1);
}

.luxf-timeline--slider.is-slider-ready .luxf-timeline__nav {
	display: none;
}

@media (max-width: 849px) {
	.luxf-timeline--slider .luxf-timeline-item,
	.luxf-timeline--slider .luxf-timeline-item--left,
	.luxf-timeline--slider .luxf-timeline-item--right {
		display: flex;
		align-items: center;
		grid-template-columns: none;
		grid-template-areas: none;
		padding: 8px 16px 32px;
		column-gap: 0;
	}

	.luxf-timeline--slider .luxf-timeline-item__time,
	.luxf-timeline--slider .luxf-timeline-item--left .luxf-timeline-item__time,
	.luxf-timeline--slider .luxf-timeline-item--right .luxf-timeline-item__time {
		text-align: center;
		font-size: var(--luxf-tl-time-size);
	}

	.luxf-timeline--slider .luxf-timeline-item__card::after,
	.luxf-timeline--slider .luxf-timeline-item--left .luxf-timeline-item__card::after,
	.luxf-timeline--slider .luxf-timeline-item--right .luxf-timeline-item__card::after {
		display: none;
	}
}
