/* Parent alignment should position the widget box, never collapse its cards to
   their min-content width. Elementor's per-widget width selectors are more
   specific and can still override this full-width default. */
.elementor-widget-noise-timeline {
	inline-size: 100%;
	min-inline-size: 0;
	max-inline-size: 100%;
}

.elementor-widget-noise-timeline > .elementor-widget-container,
.elementor-widget-noise-timeline .ndw-timeline {
	inline-size: 100%;
	min-inline-size: 0;
}

.ndw-timeline {
	--ndw-timeline-marker-size: 48px;
	--ndw-timeline-line-width: 2px;
	--ndw-timeline-item-gap: 32px;
	--ndw-timeline-content-gap: 22px;
	--ndw-timeline-line-opacity: 0.3;
	width: 100%;
}

.ndw-timeline__inner {
	width: 100%;
	max-width: 1120px;
	margin-inline: auto;
}

.ndw-timeline__list {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ndw-timeline__list::before {
	display: none;
}

.ndw-timeline--vertical .ndw-timeline__list {
	display: grid;
	gap: var(--ndw-timeline-item-gap);
}

.ndw-timeline__item {
	position: relative;
	isolation: isolate;
	display: flex;
	min-width: 0;
	gap: var(--ndw-timeline-content-gap);
}

.ndw-timeline__item::after {
	position: absolute;
	z-index: 0;
	background: #1f7667;
	content: "";
	opacity: var(--ndw-timeline-line-opacity);
	pointer-events: none;
}

.ndw-timeline__item:last-child::after {
	display: none;
}

.ndw-timeline--vertical .ndw-timeline__item::after {
	top: calc(var(--ndw-timeline-marker-size) / 2);
	left: calc((var(--ndw-timeline-marker-size) - var(--ndw-timeline-line-width)) / 2);
	width: var(--ndw-timeline-line-width);
	height: calc(100% + var(--ndw-timeline-item-gap));
}

.ndw-timeline--horizontal .ndw-timeline__item::after {
	top: calc((var(--ndw-timeline-marker-size) - var(--ndw-timeline-line-width)) / 2);
	left: calc(var(--ndw-timeline-marker-size) / 2);
	width: calc(100% + var(--ndw-timeline-item-gap));
	height: var(--ndw-timeline-line-width);
}

.ndw-timeline__marker {
	position: relative;
	z-index: 1;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: var(--ndw-timeline-marker-size);
	height: var(--ndw-timeline-marker-size);
	border: 4px solid #fff;
	border-radius: 50%;
	background: var(--e-global-color-accent, #1f7667);
	box-shadow: 0 0 0 1px rgb(20 28 38 / 10%);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	transform-origin: center;
	transition: color 280ms ease, background-color 280ms ease, border-color 280ms ease, box-shadow 280ms ease, scale 280ms ease;
}

/* An inline font-icon SVG carries no width or height of its own, so in the icon
   marker mode it stretched to fill the whole circle instead of sitting inside
   it as a glyph. Sizing in `em` ties it to the marker's own font size, which is
   what the number and date modes already use. See services-grid.css. */
.ndw-timeline__marker i,
.ndw-timeline__marker svg {
	flex: 0 0 auto;
	width: 1em;
	height: 1em;
	font-size: 1em;
	line-height: 1;
	fill: currentColor;
}

.ndw-timeline__item:hover .ndw-timeline__marker {
	scale: 1.05;
}

.ndw-timeline--marker-dot .ndw-timeline__marker::before {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: currentColor;
	content: "";
}

.ndw-timeline__content {
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	min-width: 0;
}

.ndw-timeline--surface .ndw-timeline__content {
	border: 1px solid rgb(20 28 38 / 12%);
	border-radius: 8px;
	background: #fff;
	padding: 24px;
	transition: background-color 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.ndw-timeline__date {
	margin-bottom: 10px;
	color: #1f7667;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}

:where(.ndw-timeline__title) {
	margin: 0;
	color: #15191e;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}

:where(.ndw-timeline__description) {
	margin-top: 12px;
	color: #4b5563;
	font-size: 15px;
	line-height: 1.6;
}

.ndw-timeline__description > :first-child {
	margin-top: 0;
}

.ndw-timeline__description > :last-child {
	margin-bottom: 0;
}

.ndw-timeline__image {
	width: 100%;
	height: 180px;
	margin-bottom: 20px;
	overflow: hidden;
	border-radius: 6px;
	background: #e6ecea;
}

.ndw-timeline__image.ndw-timeline__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ndw-timeline--horizontal {
	overflow: hidden;
}

.ndw-timeline--horizontal .ndw-timeline__inner {
	overflow-x: auto;
	padding-bottom: 12px;
	scrollbar-width: thin;
}

.ndw-timeline--horizontal .ndw-timeline__list {
	display: flex;
	width: max-content;
	min-width: 100%;
	gap: var(--ndw-timeline-item-gap);
}

.ndw-timeline--horizontal .ndw-timeline__item {
	flex: 0 0 340px;
	flex-direction: column;
	gap: 18px;
}

@media (prefers-reduced-motion: reduce) {
	.ndw-timeline__inner {
		scroll-behavior: auto;
	}

	.ndw-timeline__marker,
	.ndw-timeline__content {
		transition: none;
	}
}
