/* ==========================================================================
   Brighter Futures Hero Carousel
   Values measured from the live Elementor loop carousel (template 278,
   Hello Elementor + kit 7) at 1512px and 375px.
   ========================================================================== */

.bf-hero {
	position: relative;
	width: 100%;
	padding-bottom: 35px; /* room for the dots, as the original */
}

.bf-hero--single {
	padding-bottom: 0;
}

.bf-hero__slides {
	position: relative;
}

/* Slick: equal-height slides + 10px gap between slides */
.bf-hero__slides.slick-initialized .slick-list {
	margin: 0 -5px;
}

.bf-hero__slides.slick-initialized .slick-track {
	display: flex;
}

/* Beats Slick's .slick-initialized .slick-slide { display:block } */
.bf-hero__slides.slick-initialized .slick-slide {
	display: flex;
	height: auto;
	margin: 0 5px;
}

/* Before Slick initialises, only show the first slide */
.bf-hero__slides:not(.slick-initialized) > .bf-hero__slide + .bf-hero__slide {
	display: none;
}

/* Slide
   The slide is the Slick slide (its containing block is the whole track), so
   percentage padding lives on .bf-hero__container, whose containing block is
   the slide — same as Elementor's slide > .e-con > .e-con-inner.
   ========================================================================== */

.bf-hero__slide {
	display: flex;
	box-sizing: border-box;
}

.bf-hero__container {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1 1 auto;
	width: 100%;
	min-height: 725px;
	padding: 0 10%;
	box-sizing: border-box;
	overflow: hidden;
}

.bf-hero__media {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 0;
}

.bf-hero__bg {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-size: cover;
}

.bf-hero__bg--mobile {
	display: none;
}

.bf-hero__overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: #81004D;
	opacity: 0.19;
	pointer-events: none;
}

/* Content
   ========================================================================== */

/* Vertical padding is 10% of the inner width, as Elementor's boxed container */
.bf-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto; /* full height of the container */
	width: 100%;
	max-width: min(100%, 1400px);
	margin: 0 auto;
	padding: 10% 0;
	box-sizing: border-box;
}

.bf-hero__content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 20px;
	text-align: center;
}

/* Text stays centred in the space above; buttons always sit at the bottom */
.bf-hero__content > :first-child {
	margin-top: auto;
}

.bf-hero__content > .bf-hero__buttons {
	margin-top: auto;
}

.bf-hero .bf-hero__subtitle {
	margin: 0;
	padding: 0;
	font-family: "Montserrat", sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1;
	color: var(--e-global-color-4b74476, #fff);
}

.bf-hero .bf-hero__title {
	margin: 0;
	padding: 3% 0;
	font-family: "Montserrat", sans-serif;
	font-size: 64px;
	font-weight: 600;
	line-height: 1;
	color: var(--e-global-color-4b74476, #fff);
}

.bf-hero .bf-hero__text {
	font-family: "Montserrat", sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--e-global-color-4b74476, #fff);
}

.bf-hero .bf-hero__text p {
	margin: 0 0 0.9rem;
}

/* Buttons
   ========================================================================== */

.bf-hero__buttons {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: 20px;
}

/* Kit 7 button values. Single-class specificity, so the kit's own
   .elementor-kit-7 .elementor-button rules still win if they change. */
.bf-hero__button {
	display: inline-block;
	padding: 12px 24px;
	font-family: "Montserrat", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	border: 0 solid;
	border-radius: 0;
	background-color: var(--e-global-color-primary, #EC008C);
	color: var(--e-global-color-4b74476, #fff);
	fill: var(--e-global-color-4b74476, #fff);
	transition: all 0.3s;
}

.bf-hero__button:hover,
.bf-hero__button:focus {
	background-color: #C00072;
	color: var(--e-global-color-4b74476, #fff);
}

.bf-hero__button:visited {
	color: var(--e-global-color-4b74476, #fff);
}

.bf-hero__button .elementor-button-content-wrapper {
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 5px;
}

.bf-hero .bf-hero__buttons .bf-hero__button--2 {
	background-color: var(--e-global-color-0aab8bf, transparent);
	color: var(--e-global-color-4b74476, #fff);
	fill: var(--e-global-color-4b74476, #fff);
	border-style: solid;
	border-width: 1px;
	border-color: var(--e-global-color-4b74476, #fff);
}

.bf-hero .bf-hero__buttons .bf-hero__button--2:hover,
.bf-hero .bf-hero__buttons .bf-hero__button--2:focus {
	background-color: var(--e-global-color-primary, #EC008C);
	color: var(--e-global-color-4b74476, #fff);
	border-color: var(--e-global-color-primary, #EC008C);
}

.bf-hero .bf-hero__buttons .bf-hero__button--2:hover svg,
.bf-hero .bf-hero__buttons .bf-hero__button--2:focus svg {
	fill: var(--e-global-color-4b74476, #fff);
}

/* Dots — 25px below the slides, 10px, #F15A29 at 0.2 / 1
   ========================================================================== */

.bf-hero__dots {
	position: absolute;
	bottom: 0;
	left: 0;
	display: flex;
	justify-content: center;
	width: 100%;
	height: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: 10px;
}

.bf-hero__dots li {
	margin: 0 6px;
	padding: 0;
}

.bf-hero__dots button {
	display: block;
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #F15A29;
	opacity: 0.2;
	font-size: 0;
	line-height: 0;
	cursor: pointer;
}

.bf-hero__dots button:hover,
.bf-hero__dots button:focus {
	background: #F15A29;
}

.bf-hero__dots .slick-active button {
	opacity: 1;
}

/* Arrows (off by default) */

.bf-hero .slick-arrow {
	position: absolute;
	top: calc(50% - 17.5px);
	z-index: 2;
	transform: translateY(-50%);
}

.bf-hero .slick-prev {
	left: 20px;
}

.bf-hero .slick-next {
	right: 20px;
}

/* Mobile
   ========================================================================== */

@media (max-width: 767px) {

	.bf-hero .bf-hero__title {
		font-size: 41px;
	}

	.bf-hero__buttons {
		flex-wrap: wrap;
	}

	.bf-hero__slide.has-mobile-image .bf-hero__bg--desktop {
		display: none;
	}

	.bf-hero__slide.has-mobile-image .bf-hero__bg--mobile {
		display: block;
	}

	/* Text over image (crops) — identical to the original */
	.bf-hero--mobile-cover .bf-hero__container {
		min-height: 598px;
	}

	/* Full image, text below (no crop) */
	.bf-hero--mobile-stack .bf-hero__container {
		display: block;
		min-height: 0;
		padding: 0;
		background-color: #81004D;
	}

	.bf-hero--mobile-stack .bf-hero__media {
		position: relative;
	}

	.bf-hero--mobile-stack .bf-hero__bg {
		position: relative;
		aspect-ratio: var(--bf-ratio, 16 / 9);
	}

	.bf-hero--mobile-stack .bf-hero__slide.no-image .bf-hero__media {
		display: none;
	}

	.bf-hero--mobile-stack .bf-hero__inner {
		padding: 30px 10%;
	}
}

/* Animation (wow.js: boxClass .anim, animateClass .animated)
   ========================================================================== */

.bf-hero .animated {
	animation-duration: 1s;
	animation-fill-mode: both;
}

.bf-hero .fadeInUp {
	animation-name: fadeInUp;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translate3d(0, 40px, 0);
	}

	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.bf-hero .animated {
		animation: none !important;
	}
}
