/* =======================================================================
 * ax-academy-approach — Academy "approach" carousel
 * Desktop (Figma 2389-68): active slide = 766x389 purple #444192 card
 * (204px icon left, 33px title + 20px bullets right); neighbours collapse
 * to 263x263 #312e7b squares with a 136px icon, vertically centred,
 * 20px from the active card.
 * Mobile (Figma 2389-70): 301-wide vertical cards, neighbours at .85.
 * Zoom pagination: 12px #d9d9d9 dots, active = 31px #444192 pill, r16.
 * The morph lives on the inner .ax-appr__card — the slide's layout box
 * never changes, so Splide's measurements stay correct.
 * #top-prefixed to beat Enfold.
 * ==================================================================== */

#top .ax-appr {
	font-family: "Montserrat", sans-serif;
}

#top .ax-appr * {
	box-sizing: border-box;
}

#top .ax-appr .splide__slide {
	display: flex;
	align-items: center;
	height: 389px;
}

/* ---- card (active state = desktop wide card) ---- */
#top .ax-appr__card {
	position: relative;
	display: flex;
	align-items: center;
	width: 766px;
	height: 389px;
	padding: 0 40px 0 64px;
	background: #444192;
	border-radius: 24px;
	box-shadow: -2px 3px 10px 0 rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition: height 0.4s ease, background 0.4s ease, padding 0.4s ease;
	background-image: url(/wp-content/uploads/2026/07/9-17.png);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	cursor: pointer;
}

#top .ax-appr__icon {
	flex: 0 0 auto;
	width: 204px;
	height: 204px;
	/*transition: width 0.4s ease, height 0.4s ease;*/
}

#top .ax-appr__icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

#top .ax-appr__text {
	margin-left: 60px;
	min-width: 0;
}

#top .ax-appr__title {
	margin: 0 0 26px !important;
	padding: 0;
	font-family: "Montserrat", sans-serif !important;
	font-weight: 700 !important;
	font-size: 33px !important;
	line-height: 1.18 !important;
	color: #ffffff !important;
}

#top .ax-appr__body,
#top .ax-appr__body p,
#top .ax-appr__body li {
	font-family: "Montserrat", sans-serif;
	font-weight: 400;
	font-size: 18px;
	line-height: 1.55;
	color: #ffffff;
}

#top .ax-appr__body ul {
	margin: 0;
	padding-left: 26px;
	list-style: disc;
}

#top .ax-appr__body li {
    margin: 0 0 6px;
    padding: 0px;
}

#top .ax-appr__body li:last-child {
	margin-bottom: 0;
}

/* ---- inactive slides -> compact icon squares (desktop) ---- */
#top .ax-appr .splide__slide:not(.is-active) .ax-appr__card {
	width: 263px;
	height: 263px;
	padding: 0 63px;
	background: #312e7b;
	border-radius: 25px;
	box-shadow: none;
	justify-content: center;
}

#top .ax-appr .splide__slide:not(.is-active) .ax-appr__icon {
	width: 136px;
	height: 136px;
}

#top .ax-appr .splide__slide:not(.is-active) .ax-appr__text {
	opacity: 0;
	position: absolute;
	pointer-events: none;
}

/* hug the active card: prev square sits right, next square sits left */
#top .ax-appr .splide__slide.is-prev .ax-appr__card {
	margin-left: auto;
}

#top .ax-appr .splide__slide.is-next .ax-appr__card {
	margin-right: auto;
}

/* ---- zoom-style pagination ---- */
#top .ax-appr .splide__pagination {
	position: static;
	margin-top: 58px;
	padding: 0;
	gap: 15px;
}

#top .ax-appr .splide__pagination li {
	line-height: 0;
}

#top .ax-appr .splide__pagination__page {
	width: 12px;
	height: 12px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 16px;
	background: #d9d9d9;
	opacity: 1;
	transform: none;
	/*transition: width 0.3s ease, background 0.3s ease;*/
}

#top .ax-appr .splide__pagination__page.is-active {
	width: 31px;
	background: #444192;
	transform: none;
}

/* ---- mobile (Figma 2389-70) ---- */
@media only screen and (max-width: 767px) {
	#top .ax-appr .splide__slide {
		height: 427px;
	}

	#top .ax-appr__card {
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		width: 301px;
		height: 427px;
		padding: 40px 24px 32px 28px;
		border-radius: 25px;
		transform: scale(0.90);
		transition: transform 0.35s ease, background 0.35s ease;
	}
	
	#top .ax-appr {
		margin-top: 20px;
	}

	#top .ax-appr .splide__slide.is-active .ax-appr__card {
		transform: scale(1);
	}

	#top .ax-appr__icon {
		width: 69px;
		height: 69px;
	}

	#top .ax-appr__text {
		margin-left: 0;
		margin-top: 48px;
	}

	#top .ax-appr__title {
        position: absolute;
        top: 18%;
        left: 119px;
        margin: 0 !important;
        font-size: 24px !important;
        line-height: 28px !important;
        transform: translateY(-50%);
    }

	#top .ax-appr__body,
	#top .ax-appr__body p,
	#top .ax-appr__body li {
		font-size: 16px;
		line-height: 1.35;
	}

	#top .ax-appr__body ul {
		padding-left: 22px;
	}

	/* mobile inactive slides keep the full card, just scaled */
	#top .ax-appr .splide__slide:not(.is-active) .ax-appr__card {
		width: 301px;
		height: 427px;
		padding: 40px 24px 32px 28px;
		background: #444192;
		border-radius: 25px;
		justify-content: flex-start;
	}

	#top .ax-appr .splide__slide:not(.is-active) .ax-appr__icon {
		width: 69px;
		height: 69px;
	}

	#top .ax-appr .splide__slide:not(.is-active) .ax-appr__text {
		opacity: 1;
		position: static;
		pointer-events: auto;
	}

	#top .ax-appr .splide__slide.is-prev .ax-appr__card,
	#top .ax-appr .splide__slide.is-next .ax-appr__card {
		margin: 0;
	}

	#top .ax-appr .splide__pagination {
		margin-top: 28px;
	}
}
