@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Poppins:wght@400&display=swap');

.elementor-widget-weight_popup_card * {
	box-sizing: border-box;
}

.services-section {
	width: 100%;
	height: 700px;
	overflow: hidden;
}

.services-slider,
.services-slider .swiper-wrapper,
.services-slider .swiper-slide {
	height: 100%;
}

.services-slider {
	width: 100%;
	position: relative;
}

.service-slide {
	position: relative;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #ffffff;
}

.transition-specialists {
	background-image: url("../BAbyD Agency Home Page (1)/people-meeting-support-group 1.png");
}

.family-support {
	background-image: url("../BAbyD Agency Home Page (1)/family-spenting-time-together-home 1.png");
}

.home-support {
	background-image: url("../BAbyD Agency Home Page (1)/happy-black-mother-working-computer-while-daughter-is-sitting-her-lap-home 1.png");
}

.multiple-support {
	background-image: url("../BAbyD Agency Home Page (1)/cute-black-baby-home-with-parents 1.png");
}

.lactation-support {
	background-image: url("../BAbyD Agency Home Page (1)/portrait-mother-with-newborn-baby 2.png");
}

.service-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(0, 0, 0, .45);
	transition: background 400ms ease;
}

.service-slide:hover .service-overlay,
.service-slide:focus-within .service-overlay {
	background: rgba(25, 215, 217, .82);
}

.service-content {
	position: relative;
	z-index: 2;
	width: min(86%, 390px);
	height: 100%;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	pointer-events: none;
}

.service-icon {
	width: 70px;
	height: 70px;
	margin-bottom: 23px;
	display: flex;
	justify-content: center;
	align-items: center;
	color: #ffffff;
	transform: scale(1);
	transition: transform 400ms ease;
}

.service-icon img {
	display: block;
	width: 70px;
	height: 70px;
	object-fit: contain;
}

.service-slide:hover .service-icon,
.service-slide:focus-within .service-icon {
	transform: scale(1.06);
}

.service-title {
	font-family: "Playfair Display", serif;
	font-size: 42px;
	font-weight: 600;
	line-height: 45px;
	letter-spacing: 0;
	text-align: center;
	color: #ffffff;
	margin: 0;
	text-wrap: balance;
}

.service-description {
	width: 100%;
	max-width: 360px;
	margin-top: 24px;
	font-family: "Poppins", sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 28px;
	letter-spacing: 0;
	text-align: center;
	color: #ffffff;
	opacity: 0;
	visibility: hidden;
	max-height: 0;
	overflow: hidden;
	transform: translateY(14px);
	transition: opacity 400ms ease, transform 400ms ease, visibility 400ms ease, max-height 400ms ease;
}

.service-slide:hover .service-description,
.service-slide:focus-within .service-description {
	opacity: 1;
	visibility: visible;
	max-height: 220px;
	transform: translateY(0);
}

.services-nav {
	width: 80px;
	height: 80px;
	border: 0;
	border-radius: 0;
	background: transparent !important;
	box-shadow: none !important;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: transparent !important;
	transition: opacity 300ms ease;
}

.services-nav img {
	display: block;
	width: 80px;
	height: 80px;
	pointer-events: none;
}

.swiper-button-prev.services-nav::after,
.swiper-button-next.services-nav::after {
	content: "" !important;
	display: none !important;
	font-size: 0 !important;
	color: transparent !important;
}

.services-nav:hover,
.services-nav:focus-visible {
	background: transparent !important;
	box-shadow: none !important;
	color: transparent !important;
	opacity: .65;
	outline: none;
}

.swiper-button-prev.services-nav {
	left: 24px;
}

.swiper-button-next.services-nav {
	right: 24px;
}

@media (max-width: 1024px) {
	.services-section {
		height: 600px;
	}
}

@media (max-width: 767px) {
	.services-section {
		height: 500px;
	}

	.service-content {
		width: min(86%, 330px);
	}

	.service-title {
		font-size: 36px;
		line-height: 39px;
	}

	.service-description {
		font-size: 16px;
		line-height: 26px;
	}

	.services-nav {
		width: 80px;
		height: 80px;
	}

	.swiper-button-prev.services-nav {
		left: 14px;
	}

	.swiper-button-next.services-nav {
		right: 14px;
	}
}
