/* ============================================
   Avada Custom Slider – Frontend Styles
   Matches reference design exactly
   ============================================ */

/* ── Slider Container ──────────────────────── */
.acs-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
	background-color: #2EAF7D;
	box-sizing: border-box;
	min-height: 600px;
}

/* ── Track ─────────────────────────────────── */
.acs-slider__track {
	display: flex;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
	height: 100%;
}

/* ── Individual Slide ──────────────────────── */
.acs-slider__slide {
	min-width: 100%;
	width: 100%;
	flex-shrink: 0;
	box-sizing: border-box;
	padding: 0 5rem;
	height: 80%;
	display: flex;
	align-items: center;
	/* Removed top padding as it's now in the static headline area */
}

/* ── Slide Content ─────────────────────────── */
.slide-content {
	color: var(--acs-font-color, #ffffff);
	box-sizing: border-box;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.fusion-body .acs-slider__static-headline {
	margin: 0 3rem;
}

/* ── Static Headline ────────────────────────── */
.fusion-body .acs-slider__static-headline .fusion-title {
	/* Match slide's original top/side padding */
	color: var(--acs-font-color, #ffffff) !important;
	z-index: 5;
	position: relative;
	font-family: "Space Grotesk 700", sans-serif !important;
	--awb-text-color: var(--acs-font-color, #ffffff) !important;
	font-size: 1.5rem !important;
	line-height: 1.875rem !important;
}

.acs-slider__static-headline .heading.with-bg {
	border-bottom: 1px solid var(--acs-font-color, #ffffff) !important;
	padding-bottom: 1rem;
	margin-bottom: 0;
	/* Reduced to avoid double spacing with teaser */
}

/* ── Headline (legacy/unused) ───────────────── */

.slide-content .fusion-title {
	margin: 0;
	padding: 0;
}

.slide-content .fusion-title .fusion-title-heading {
	font-family: "Space Grotesk 700", sans-serif;
	font-weight: 700;
	font-size: 1.5rem !important;
	font-style: normal;
	line-height: 1.875rem !important;
	color: var(--acs-font-color, #ffffff) !important;
	margin: 0;
	padding: 0;
}

/* ── Teaser ────────────────────────────────── */
.slide-content .slider-teaser {
	font-family: "Space Grotesk 700", sans-serif;
	font-weight: 700;
	font-size: 2.5rem !important;
	font-style: normal;
	line-height: 3.125rem !important;
	color: var(--acs-font-color, #ffffff);
	margin-bottom: 0.75rem;
	padding: 1.5rem 0 0 0;
	/* Reduced top padding, removed side padding (handled by slide/track) */
}

/* ── Content text ──────────────────────────── */
.slide-content .slider-content {
	font-family: "Barlow 500", sans-serif;
	font-weight: 500;
	font-size: 2rem;
	font-style: normal;
	line-height: 2.5rem;
	color: var(--acs-font-color, #ffffff);
	padding: 0;
	/* Side padding is already on .acs-slider__slide */
}

.slide-content .slider-content p {
	margin: 0;
}

/* ── Navigation Arrows ─────────────────────── */
/* Arrows sit at left/right edges, vertically aligned with the content text */
.acs-slider__arrow {
	position: absolute;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 10;
	opacity: 0.85;
	transition: opacity 0.25s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	/* Position: horizontally at the edges, vertically at ~65% (content text area) */
	top: 65%;
	transform: translateY(-50%);
	color: var(--acs-font-color, #ffffff);
}

.acs-slider__arrow:hover {
	opacity: 1;
}

.acs-slider__arrow--prev {
	left: 2.5rem;
}

.acs-slider__arrow--next {
	right: 2.5rem;
}

/* ── Dot Indicators ────────────────────────── */
.acs-slider__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translate(-50%, -50%);
}

.acs-slider__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.4);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.3s ease;
}

.acs-slider__dot:hover {
	background-color: rgba(255, 255, 255, 0.7);
}

.acs-slider__dot.active {
	background-color: #4143C4;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 1336px) {

	.slide-content .slider-teaser {
		font-size: 2rem !important;
		line-height: 2.25rem !important;
		padding: 0rem 3rem 0 3rem;
	}

	.slide-content .slider-content {
		font-size: 1.55rem;
		line-height: 2.5rem;
		padding: 0 3rem 4rem;
	}

	.acs-slider__slide {
		padding: 0 2rem;
	}

	.acs-slider__static-headline {
		padding: 2.5rem 2rem 0;
	}

	.acs-slider {
		min-height: auto;
		padding-bottom: 1rem;
	}

}

@media (max-width: 768px) {
	.custom-seperator {
		display: none;
	}

	.fusion-body .acs-slider__static-headline {
		margin: 0;
	}

	.acs-slider__track {
		height: 70%;
		padding: 2rem 0;
	}

	.acs-slider__slide {
		padding: 0 4rem;
	}

	.acs-slider__static-headline {
		padding: 1.5rem 1rem 0;
	}

	.slide-content .fusion-title .fusion-title-heading {
		font-size: 1.25rem !important;
		line-height: 1.5rem !important;
	}

	.slide-content .slider-teaser {
		font-size: 1.75rem !important;
		line-height: 2.25rem !important;
		padding: 0rem;
	}

	.slide-content .slider-content {
		font-size: 1.25rem;
		line-height: 1.5rem;
		padding: 0;
	}

	.acs-slider__arrow--prev {
		left: -0.25rem;
	}

	.acs-slider__arrow--next {
		right: -0.25rem;
	}
}

@media (max-width: 480px) {
	.acs-slider__slide {
		padding: 1.5rem 1.5rem 0;
	}

	.slide-content .slider-teaser {
		font-size: 1.5rem !important;
		line-height: 2rem !important;
	}

	.slide-content .slider-content {
		font-size: 0.9375rem;
		line-height: 1.375rem;
		padding: 0;
	}

	.acs-slider__dots {
		padding: 1.5rem 0 1.25rem;
	}
}

.post-content .acs-slider h2.fusion-title-heading {
	line-height: 1.875rem !important;
}