.hero-carousel-container {
	position: relative;
	width: 100%;
	overflow: hidden;
	background-color: #FAFAFA;
}

.hero-slides-wrapper {
	position: relative;
	width: 100%;
	min-height: 800px;
	background-color: #ffffff;
	overflow: hidden;
	cursor: grab;
	user-select: none;
}

.hero-slides-wrapper:active {
	cursor: grabbing;
}

.hero-slides {
	position: relative;
	width: 100%;
	height: 100%;
}

.hero-slide {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	min-height: 800px;
	transform: translateX(100%);
	will-change: transform, opacity;
	opacity: 0;
	visibility: hidden;
	padding-left: 0px;
	padding-right: 0px;
	z-index: 1;
	transition: opacity 0.25s ease-out;
}

.hero-slide.active {
	transform: translateX(0);
	opacity: 1;
	visibility: visible;
	z-index: 3;
}

.hero-slide.prev-slide {
	transform: translateX(-100%);
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.hero-slide.next-slide {
	transform: translateX(100%);
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.hero-previews-container {
	background: linear-gradient(to bottom, transparent 75px, #fff 75px);
	position: relative;
	z-index: 5;
	margin-top: -145px;
	margin-bottom: 15px;
	width: 100%;
	display: flex;
	justify-content: center;
	padding-left: 24px;
	padding-right: 24px;
}

.hero-previews {
	display: flex;
	gap: 16px;
	max-width: 1200px;
	width: 100%;
	justify-content: center;
	flex-wrap: wrap;
}

.preview-card {
	background: #fff;
	border-radius: 8px;
	width: 200px;
	height: 150px;
	padding: 16px;
	cursor: pointer;
	text-align: left;
	position: relative;
	transition: all 0.3s ease;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
}

.preview-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.preview-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	height: 4px;
	width: 0%;
	background-color: #FEDF01;
	z-index: 10;
}

.preview-card.active::before {
	animation: progressBar var(--slide-duration, 5s) linear forwards;
}

.preview-card.active.paused::before {
	animation-play-state: paused;
}

.preview-card.active.stopped::before {
	width: 100%;
	animation: none;
}

@keyframes progressBar {
	from {
		width: 0%;
	}

	to {
		width: 100%;
	}
}

.preview-content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
}

.preview-title {
	font-family: 'RBCDisplay';
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
}

.hero-desktop-pause {
	display: flex;
	align-items: end;
	cursor: pointer;
	padding: 20px;
}

.hero-desktop-pause img {
	width: 32px;
	height: 32px;
}

.hero-desktop-pause.hero-resume-btn,
.hero-mobile-pause.hero-resume-btn {
	/* Initially hidden, JS controls visibility */
}

.hero-mobile-controls {
	padding: 15px 15px 64px 15px;
	position: absolute;
	bottom: 0;
	z-index: 10;
	background: none;
	left: 50%;
	transform: translateX(-50%);
}

.hero-mobile-pill {
	display: flex;
	align-items: center;
	gap: 50px;
	background: rgba(0, 0, 0, 0.50);
	border-radius: 50px;
	padding: 17px 25px;
}

.hero-mobile-nav {
	display: flex;
	align-items: center;
	gap: 25px;
}

.hero-mobile-arrow {
	font-weight: 200;
	font-size: 40px;
	color: #fff;
	cursor: pointer;
	background: none;
	border: none;
	padding-bottom: 4px;
	/* line-height: 1; */
	opacity: 0.9;
	transition: opacity 0.2s ease;
}

.hero-mobile-arrow:hover {
	opacity: 1;
}

.hero-mobile-dots {
	display: flex;
	align-items: center;
	gap: 12.8px;
}

.hero-mobile-dot {
	width: 12.8px;
	height: 12.8px;
	border-radius: 50%;
	border: 1.6px solid #fff;
	background: transparent;
	padding: 0;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.hero-mobile-dot.active {
	width: 38.4px;
	border-radius: 999px;
	border-color: #fff;
	background: transparent;
	border: none;
	box-shadow: inset 0 0 0 1.6px #fff;
}

.hero-mobile-dot::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 0%;
	background-color: #fff;
	border-radius: 999px;
	z-index: 1;
}

.hero-mobile-dot.active::before {
	animation: mobileProgressBar var(--slide-duration, 5s) linear forwards;
}

.hero-mobile-dot.active.paused::before {
	animation-play-state: paused;
}

.hero-mobile-dot.active.stopped::before {
	width: 100%;
	animation: none;
}

@keyframes mobileProgressBar {
	from {
		width: 0%;
	}

	to {
		width: 100%;
	}
}

.hero-mobile-pause img {
	width: 25px;
	height: 25px;
	filter: brightness(0) invert(1);
}

@media only screen and (max-width: 1200px) {
	.hero-slide {
		left: 0;
		width: 100%;
		border-radius: 0;
		padding-left: 0px;
		padding-right: 0px;
	}

	.hero-previews {
		display: none;
	}

	.hero-desktop-pause {
		display: none;
	}

	.preview-card {
		flex: 0 0 auto;
	}

	.hero-mobile-controls {
		display: flex;
		padding: 15px 15px 32px 15px;
	}

	.hero-previews-container {
		display: none;
	}
}

/* Carousel slides */
.hero-slide .hero-slide-section {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: lightgray;
	height: 800px;

	.carousel-title {
		font-size: max(min(calc((28px) + (72 - 28) * ((100vw - (639 * 1px))/ (1200 - 639))), 72px), 28px);
		line-height: 111.111%;

		@media screen and (max-width: 768px) {
			font-size: 2.8rem;
		}
	}

	@media screen and (max-width: 639px) {
		background-size: cover;
		background-position: top center;
		height: 635px;
	}

	&.hero-slide-1,
	&.hero-slide-2,
	&.hero-slide-3 {
		.hero-slide-section-inner {
			position: absolute;
			width: calc(710/1900 * 100%);
			max-width: 710px;
			bottom: 142px;

			@media screen and (max-width: 639px) {
				width: 100%;
				right: 0 !important;
				bottom: 0 !important;
				left: 0 !important;
				padding-left: 30px;
				padding-right: 30px;
				padding-bottom: 124px;
			}
		}
	}

	&.hero-slide-1 {
		background-image: url('/investments/_assets-custom/wis2027/images/carousel-1.webp');

		.hero-slide-section-inner {
			right: calc(183/1927 * 100%);
		}

		@media screen and (min-width: 640px) and (max-width: 768px) {
			background-position-x: calc(50% - 150px) !important;

			.hero-slide-section-inner {
				width: calc(1000/1900 * 100%);
			}
		}

		@media screen and (max-width: 639px) {
			background-image: url('/investments/_assets-custom/wis2027/images/carousel-1_mobile.webp');

			.hero-slide-section-inner {
				background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, #FFF 30%);
				padding-top: 40px;
			}
		}
	}

	&.hero-slide-2 {
		background-image: linear-gradient(333deg, rgba(70, 71, 67, 0.90) 23.99%, rgba(102, 102, 102, 0.00) 48.13%), url('/investments/_assets-custom/wis2027/images/carousel-2.webp');

		.hero-slide-section-inner {
			right: calc(47/1927 * 100%);
		}

		@media screen and (min-width: 640px) and (max-width: 768px) {
			background-image: linear-gradient(0deg, rgba(70, 71, 67, 0.90) 23.99%, rgba(102, 102, 102, 0.00) 48.13%), url('/investments/_assets-custom/wis2027/images/carousel-2.webp');

			.hero-slide-section-inner {
				width: calc(1255/1927 * 100%);
				bottom: 122px;
				right: calc(63/1927 * 100%);
			}
		}

		@media screen and (max-width: 639px) {
			background-image: url('/investments/_assets-custom/wis2027/images/carousel-2_mobile.webp');

			.hero-slide-section-inner {
				background: linear-gradient(180deg, rgba(30, 30, 30, 0.00) 0, rgba(30, 30, 30, 0.75) 30%, #282828 50%);
				padding-top: 120px;
			}
		}
	}

	&.hero-slide-3 {
		background-image: url('/investments/_assets-custom/wis2027/images/carousel-3.webp');

		.hero-slide-section-inner {
			left: calc(147/1927 * 100%);
		}

		@media screen and (max-width: 639px) {
			background-image: url('/investments/_assets-custom/wis2027/images/carousel-3_mobile.webp');

			.hero-slide-section-inner {
				background: linear-gradient(180deg, rgba(30, 30, 30, 0.00) 0, rgba(30, 30, 30, 0.75) 30%, #282828 50%);
				padding-top: 240px;
			}
		}
	}
}