/* =======================================================================
 * ax-latest-posts — latest articles strip
 * The cards, grid and container are styled ENTIRELY by ax-collection.css
 * (same wrapper + markup as [ax_collection_grid]). This file only adds the
 * optional heading/more link and the mobile carousel bits.
 * #top-prefixed to beat Enfold.
 * ==================================================================== */

#top .ax-latest__title {
	font-size: 30px;
	font-weight: 700;
	color: var(--ax-purple, #444192);
	margin: 0 0 30px;
}

#top .ax-latest__more {
	display: flex;
	justify-content: center;
	margin: 44px 0 0;
}

#top .ax-latest__more a {
	display: inline-flex;
	align-items: center;
	height: 51px;
	padding: 0 34px;
	border-radius: 77px;
	background: var(--ax-purple, #444192);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	text-decoration: none;
}

/* ---------------------------------------------------------------------
 * Mobile carousel (<=767px) — the JS wraps the same cards into a Splide.
 * ------------------------------------------------------------------- */
@media only screen and (max-width: 767px) {
	#top .ax-latest .ax-latest__splide {
		visibility: visible;
	}

	#top .ax-latest .ax-latest__splide .splide__slide {
		list-style: none;
	}

	#top .ax-latest .ax-latest__splide .ax-collection__card {
		width: 100%;
		display: block;
	}

	/* zoom-pill pagination, same as the site's other carousels */
	#top .ax-latest .splide__pagination {
		position: relative;
		display: flex;
		justify-content: center;
		gap: 12px;
		padding: 0;
		margin: 30px 0 0;
	}

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

	#top .ax-latest .splide__pagination__page {
		width: 12px;
		height: 12px;
		margin: 0;
		border-radius: 16px;
		background: #d9d9d9;
		opacity: 1;
		transform: none;
		transition: width .3s ease-in-out, background .3s ease-in-out;
	}

	#top .ax-latest .splide__pagination__page.is-active {
		width: 31px;
		background: var(--ax-purple, #444192);
	}
}