/* ========================================
	COMPANY TIMELINE
======================================== */

.ww-company-timeline {
	--ww-timeline-navy: #1B1F4B;
	--ww-timeline-red: #C00323;
	--ww-timeline-background: #fff;
	--ww-timeline-start-space: 48px;
	--ww-timeline-end-space: 48px;
	position: relative;
	width: 100%;
	padding: 30px 0 40px;
	overflow: hidden;
}

.ww-company-timeline *,
.ww-company-timeline *::before,
.ww-company-timeline *::after {
	box-sizing: border-box;
}


/* ========================================
	INNER
======================================== */

.ww-company-timeline__inner {
	position: relative;
	width: auto;
	margin-left: var(--ww-timeline-start-space);
	margin-right: var(--ww-timeline-end-space);
}


/* ========================================
	CAROUSEL
======================================== */

.ww-company-timeline__carousel {
	position: relative;
	width: 100%;
	isolation: isolate;
}


/* ========================================
	FULL-WIDTH HORIZONTAL LINE
======================================== */

.ww-company-timeline--desktop .ww-company-timeline__carousel::before {
	content: "";
	position: absolute;
	top: 20px;
	left: calc(var(--ww-timeline-start-space) * -1);
	right: calc(var(--ww-timeline-end-space) * -1);
	height: 3px;
	background: var(--ww-timeline-red);
	z-index: 0;
	pointer-events: none;
}


/* ========================================
	OWL
======================================== */

.ww-company-timeline--desktop .owl-stage-outer {
	position: relative;
	z-index: 1;
	overflow: hidden;
	padding-top: 82px;
}

.ww-company-timeline--desktop .owl-stage {
	display: flex;
	align-items: stretch;
}

.ww-company-timeline--desktop .owl-item {
	display: flex;
	float: none;
	min-height: 1px;
}

.ww-company-timeline--desktop .owl-item > .ww-company-timeline__item {
	width: 100%;
}


/* ========================================
	TIMELINE ITEM
======================================== */

.ww-company-timeline__item {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	background: transparent;
}


/* ========================================
	CARD
======================================== */

.ww-company-timeline__card {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: var(--ww-timeline-navy);
	border-radius: 4px;
}


/* ========================================
	DESKTOP MARKER
======================================== */

/*
	36px white mask containing a 28px dot.

	This creates:
	4px white gap + 28px dot + 4px white gap
*/

.ww-company-timeline--desktop .ww-company-timeline__marker {
	position: absolute;
	top: -76px;
	left: 50%;
	width: 36px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	background: var(--ww-timeline-background) !important;
	box-shadow: none !important;
	transform: translateX(-50%);
	z-index: 10;
}

.ww-company-timeline--desktop .ww-company-timeline__marker::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ww-timeline-red);
	transform: translate(-50%, -50%);
}


/* ========================================
	DESKTOP STEM
======================================== */

.ww-company-timeline--desktop .ww-company-timeline__stem {
	position: absolute;
	top: -44px;
	left: 50%;
	width: 3px;
	height: 44px;
	background: var(--ww-timeline-red);
	transform: translateX(-50%);
	z-index: 3;
}


/* ========================================
	IMAGE
======================================== */

.ww-company-timeline__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f3f3f3;
}

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


/* ========================================
	CONTENT
======================================== */

.ww-company-timeline__copy {
	flex: 1 1 auto;
	min-height: 410px;
	padding: 76px 34px 44px;
	background: var(--ww-timeline-navy);
	color: #fff;
}

.ww-company-timeline__title {
	margin: 0 0 20px !important;
	padding: 0 !important;
	color: #fff !important;
	font-size: 28px;
	line-height: 1.15;
	font-weight: 700;
}

.ww-company-timeline__content {
	color: #fff;
	font-size: 16px;
	line-height: 1.5;
}

.ww-company-timeline__content p {
	margin: 0 0 14px;
	color: inherit;
}

.ww-company-timeline__content p:last-child {
	margin-bottom: 0;
}

.ww-company-timeline__content ul,
.ww-company-timeline__content ol {
	margin: 0 0 14px;
	padding-left: 22px;
}

.ww-company-timeline__content ul:last-child,
.ww-company-timeline__content ol:last-child {
	margin-bottom: 0;
}

.ww-company-timeline__content li {
	margin: 0 0 8px;
	color: inherit;
}

.ww-company-timeline__content li:last-child {
	margin-bottom: 0;
}

.ww-company-timeline__content strong,
.ww-company-timeline__content b {
	color: inherit;
	font-weight: 700;
}

.ww-company-timeline__content em,
.ww-company-timeline__content i {
	color: inherit;
}

.ww-company-timeline__content a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ww-company-timeline__content a:hover,
.ww-company-timeline__content a:focus {
	color: #fff;
}


/* ========================================
	OWL NAVIGATION
======================================== */

.ww-company-timeline--desktop .owl-nav {
	display: block !important;
	margin: 0 !important;
}

.ww-company-timeline--desktop .owl-nav .owl-prev,
.ww-company-timeline--desktop .owl-nav .owl-next {
	position: absolute !important;
	top: calc(50% + 41px) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 32px !important;
	height: 48px !important;
	min-width: 32px !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	color: var(--ww-timeline-red) !important;
	font-size: 0 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	transform: translateY(-50%) !important;
	z-index: 30 !important;
	cursor: pointer;
	opacity: 1;
}


/* ========================================
	PREVIOUS ARROW POSITION
======================================== */

.ww-company-timeline--desktop .owl-nav .owl-prev {
	left: calc(
		(var(--ww-timeline-start-space) * -1) + 8px
	) !important;
}


/* ========================================
	NEXT ARROW POSITION
======================================== */

.ww-company-timeline--desktop .owl-nav .owl-next {
	right: calc(
		(var(--ww-timeline-end-space) * -1) + 8px
	) !important;
}


/* ========================================
	ARROW HOVER
======================================== */

.ww-company-timeline--desktop .owl-nav .owl-prev:hover,
.ww-company-timeline--desktop .owl-nav .owl-next:hover,
.ww-company-timeline--desktop .owl-nav .owl-prev:focus,
.ww-company-timeline--desktop .owl-nav .owl-next:focus {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--ww-timeline-red) !important;
	opacity: 0.7;
}


/* ========================================
	DISABLED ARROWS
======================================== */

.ww-company-timeline--desktop .owl-nav .owl-prev.disabled,
.ww-company-timeline--desktop .owl-nav .owl-next.disabled {
	display: flex !important;
	visibility: visible !important;
	background: transparent !important;
	background-color: transparent !important;
	color: var(--ww-timeline-red) !important;
	opacity: 0.3 !important;
	cursor: default;
	pointer-events: none;
}


/* ========================================
	ARROW FOCUS
======================================== */

.ww-company-timeline--desktop .owl-nav .owl-prev:focus-visible,
.ww-company-timeline--desktop .owl-nav .owl-next:focus-visible {
	outline: 2px solid var(--ww-timeline-red);
	outline-offset: 2px;
}


/* ========================================
	ARROW ICONS
======================================== */

.ww-company-timeline__arrow {
	display: block !important;
	width: 16px !important;
	height: 16px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-top: 3px solid var(--ww-timeline-red) !important;
	border-right: 3px solid var(--ww-timeline-red) !important;
	background: transparent !important;
	box-shadow: none !important;
}

.ww-company-timeline__arrow--prev {
	transform: rotate(-135deg);
}

.ww-company-timeline__arrow--next {
	transform: rotate(45deg);
}


/* ========================================
	TABLET
======================================== */

@media (max-width: 999px) and (min-width: 550px) {

	.ww-company-timeline {
		--ww-timeline-start-space: 32px;
		--ww-timeline-end-space: 32px;
		padding-top: 30px;
		padding-bottom: 35px;
	}

	.ww-company-timeline__copy {
		min-height: 360px;
		padding: 64px 30px 40px;
	}

	.ww-company-timeline__title {
		font-size: 25px;
	}

	.ww-company-timeline--desktop .owl-nav .owl-prev,
	.ww-company-timeline--desktop .owl-nav .owl-next {
		width: 28px !important;
		height: 44px !important;
		min-width: 28px !important;
		min-height: 44px !important;
	}

	.ww-company-timeline--desktop .owl-nav .owl-prev {
		left: -28px !important;
	}

	.ww-company-timeline--desktop .owl-nav .owl-next {
		right: -28px !important;
	}

	.ww-company-timeline__arrow {
		width: 14px !important;
		height: 14px !important;
		border-top-width: 3px !important;
		border-right-width: 3px !important;
	}

}


/* ========================================
	MOBILE - VERTICAL TIMELINE
======================================== */

@media (max-width: 549px) {

	.ww-company-timeline {
		--ww-timeline-start-space: 0;
		--ww-timeline-end-space: 0;
		padding: 25px 0 35px;
		overflow: visible;
	}

	.ww-company-timeline__inner {
		width: 100%;
		margin: 0;
	}

	.ww-company-timeline__carousel {
		display: block;
		position: relative;
		width: 100%;
		padding: 0 36px 0 62px;
	}

	.ww-company-timeline__carousel::before {
		display: none;
	}


	/* ========================================
		MOBILE ITEM
	======================================== */

	.ww-company-timeline__item {
		position: relative;
		display: block;
		width: 100%;
		height: auto;
		margin: 0 0 56px;
		background: transparent;
	}

	.ww-company-timeline__item:last-child {
		margin-bottom: 0;
	}


	/* ========================================
		MOBILE CARD
	======================================== */

	.ww-company-timeline__card {
		display: flex;
		flex-direction: column;
		width: 100%;
		height: auto;
		overflow: hidden;
		background: var(--ww-timeline-navy);
		border-radius: 4px;
	}


	/* ========================================
		MOBILE VERTICAL LINE
	======================================== */

	.ww-company-timeline__item::before {
		content: "";
		position: absolute;
		top: 70px;
		bottom: -88px;
		left: -38px;
		width: 3px;
		background: var(--ww-timeline-red);
		z-index: 1;
	}

	.ww-company-timeline__item:last-child::before {
		display: none;
	}


	/* ========================================
		MOBILE MARKER
	======================================== */

	.ww-company-timeline__marker {
		position: absolute;
		top: 32px;
		left: -38px;
		width: 26px;
		height: 34px;
		margin: 0;
		padding: 0;
		border: 0 !important;
		border-radius: 0;
		background: var(--ww-timeline-background) !important;
		box-shadow: none !important;
		transform: translateX(-50%);
		z-index: 5;
	}

	.ww-company-timeline__marker::after {
		content: "";
		position: absolute;
		top: 50%;
		left: 50%;
		width: 26px;
		height: 26px;
		border-radius: 50%;
		background: var(--ww-timeline-red);
		transform: translate(-50%, -50%);
	}


	/* ========================================
		MOBILE BRANCH
	======================================== */

	.ww-company-timeline__stem {
		position: absolute;
		top: 48px;
		left: -20px;
		width: 20px;
		height: 3px;
		background: var(--ww-timeline-red);
		transform: none;
		z-index: 3;
	}


	/* ========================================
		MOBILE IMAGE
	======================================== */

	.ww-company-timeline__image {
		aspect-ratio: 16 / 9;
	}


	/* ========================================
		MOBILE CONTENT
	======================================== */

	.ww-company-timeline__copy {
		width: 100%;
		min-height: 0;
		padding: 50px 24px 36px;
	}

	.ww-company-timeline__title {
		margin-bottom: 16px !important;
		font-size: 24px;
	}

	.ww-company-timeline__content {
		font-size: 15px;
		line-height: 1.55;
	}


	/* ========================================
		NO OWL NAV ON MOBILE
	======================================== */

	.ww-company-timeline .owl-nav {
		display: none !important;
	}

}