/* =======================================================================
 * ax-academy-column — homepage AX Academy card (Figma 2523:57)
 * Card 537x701, radius 24. Image 503x287, radius 25, inset 17px.
 * ==================================================================== */

#top .ax-acad {
	--ax-purple: #444192;

	width: 100%;
	height: 100%;
}

#top .ax-acad__card {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	margin: 0 auto;
	padding: 17px;
	border-radius: 24px;
	background: #fff;
	background-image: url(/wp-content/uploads/2026/07/9-9.png);
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: 102%;
	transition: box-shadow .2s ease;
}

#top .ax-acad__card:hover {
	box-shadow: -2px 3px 10px 0 rgba(0, 0, 0, 0.1);
}

/* ---- media ---------------------------------------------------------- */

#top .ax-acad__media {
	overflow: hidden;
	border-radius: 25px;
	aspect-ratio: 503 / 287;
}

#top .ax-acad__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---- text ----------------------------------------------------------- */

#top .ax-acad__text {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 46px 28px 26px;
}

/* Headings render through Enfold's .av-special-heading wrappers, so the
   theme's .section_sub_title / .main_section_title rules own typography. */
#top .ax-acad__text .av-special-heading {
	padding-bottom: 0;
}

#top .ax-acad__text .main_section_title {
	max-width: 545px;
}

/* ---- button --------------------------------------------------------- */

#top .ax-acad__actions {
	margin-top: auto;
	padding-top: 20px;
}

/* ---- responsive ----------------------------------------------------- */

@media only screen and (max-width: 989px) {
	#top .ax-acad__card {
		max-width: none;
	}

	#top .ax-acad__text .main_section_title,
	#top .ax-acad__desc,
	#top .ax-acad__desc p {
		max-width: none;
	}
}

@media only screen and (max-width: 767px) {
	#top .ax-acad__card {
		padding: 14px;
	}

	#top .ax-acad__media {
		aspect-ratio: 4 / 3;
		height: 188px;
	}

	#top .ax-acad__text {
		padding: 32px 10px 16px;
	}

	#top .ax-acad__desc,
	#top .ax-acad__desc p {
		font-size: 16px;
	}

	#top .ax-acad__actions {
		padding-top: 28px;
	}
	
	#top .ax-acad__card {
		background-size: 700px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#top .ax-acad__btn {
		transition: none;
	}
}
