/* =======================================================================
 * ax-sectors — Sectors page tabbed switcher
 * Top: brand pill tabs (active = purple). Click a tab -> the title,
 * description and gallery below swap. Gallery = Splide with zoom.com-style
 * pagination (active bullet stretches to a wide pill, animated).
 * On mobile the tabs become a green dropdown ("Choose an AX sector").
 * All content is ACF-driven. #top-prefixed to beat Enfold.
 * ==================================================================== */
#top .ax-sectors {
	--ax-purple: #444192;
	--ax-green: #00bd87;
	font-family: "Montserrat", sans-serif;
	max-width: 1110px;
	margin: 0 auto;
}

/* ---------- tabs (desktop) ---------- */
#top .ax-sectors__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 72px;
	margin-bottom: 60px;
	justify-content: space-between;
}

#top .ax-sectors__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 58px;
	padding: 0 12px;
	border: 1px solid rgba(0, 0, 0, .2) !important;
	border-radius: 77px;
	background: #fff;
	cursor: pointer;
	transition: background .25s ease, border-color .25s ease;
}

#top .ax-sectors__tab-logo {
	display: block;
	height: 22px;
	width: 90%;
	transition: filter .25s ease;
}

#top .ax-sectors__tab-name {
	font-family: "Montserrat", sans-serif;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #1a1a1a;
}

#top .ax-sectors__tab.is-active {
	background: var(--ax-purple);
	border-color: var(--ax-purple);
}

#top .ax-sectors__tab.is-active .ax-sectors__tab-name {
	color: #fff;
}

/* dark monochrome logos -> white on the active (purple) pill */
#top .ax-sectors__tab.is-active .ax-sectors__tab-logo {
	filter: brightness(0) invert(1);
}

/* ---------- mobile dropdown (hidden on desktop) ---------- */
#top .ax-sectors__select {
	display: none;
	position: relative;
	margin-bottom: 40px;
}

#top .ax-sectors__select-trigger {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 100%;
	height: 60px;
	padding: 0 26px;
	background: var(--ax-green);
	border: 1px solid rgba(0,0,0,.2) !important;
	border-radius: 77px;
	cursor: pointer;
}

#top .ax-sectors__select-current img {
	display: block;
	height: 24px;
	width: auto;
	filter: brightness(0) invert(1);
}

#top .ax-sectors__select-current .ax-sectors__tab-name {
	color: #fff;
}

#top .ax-sectors__select-chev {
	position: absolute;
	right: 26px;
	width: 16px;
	height: auto;
}

#top .ax-sectors__select-chev path {
	stroke: #fff;
}

#top .ax-sectors__select.is-open .ax-sectors__select-trigger {
	display: none;
}

#top .ax-sectors__select-menu {
	display: none;
	background: #fff;
	border: 1px solid #000 !important;
	border-radius: 35px 33px 23px 23px;
	overflow: hidden;
}

#top .ax-sectors__select.is-open .ax-sectors__select-menu {
	display: block;
}

#top .ax-sectors__select-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 26px;
	font-family: "Montserrat", sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: var(--ax-purple);
	cursor: pointer;
	border-bottom: .3px solid rgba(0,0,0,.15);
}

#top .ax-sectors__select-head svg {
	width: 16px;
	height: auto;
	transform: rotate(180deg);
}

#top .ax-sectors__select-head svg path {
	stroke: var(--ax-purple);
}

#top .ax-sectors__select-list {
	list-style: none;
	margin: 0;
	padding: 8px;
}

#top .ax-sectors__opt {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 12px 18px;
	border: 0;
	background: none;
	cursor: pointer;
	border-radius: 32px;
}

#top .ax-sectors__opt img {
	display: block;
	height: 26px;
	width: auto;
}

#top .ax-sectors__opt .ax-sectors__tab-name {
	color: #1a1a1a;
}

#top .ax-sectors__opt.is-active {
	background: var(--ax-green);
	border-color: transparent;
}

#top .ax-sectors__opt.is-active img {
	filter: brightness(0) invert(1);
}

#top .ax-sectors__opt.is-active .ax-sectors__tab-name {
	color: #fff;
}

/* ---------- panels ---------- */
#top .ax-sectors__panel {
	display: none;
	grid-template-columns: minmax(0,1fr) 546px;
	gap: 56px;
	align-items: center;
}

#top .ax-sectors__panel.is-active {
	display: grid;
	animation: ax-sectors-fade .45s ease;
}

@keyframes ax-sectors-fade {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

#top .ax-sectors__title {
	margin: 0 0 28px;
	font-size: 45px;
	line-height: 1.117;
	font-weight: 700;
	color: var(--ax-purple);
	text-transform: unset;
	letter-spacing: 0px;
}

#top .ax-sectors__desc {
	font-size: 16px;
	line-height: 1.74;
	color: #000;
}

#top .ax-sectors__desc p {
	margin: 0 0 18px;
}

#top .ax-sectors__desc *:last-child {
	margin-bottom: 0px;
}

/* ---------- gallery ---------- */
#top .ax-sectors__media-col {
	min-width: 0;
}

#top .ax-sectors__gallery {
	width: 100%;
}

#top .ax-sectors__gallery .splide__track {
	border-radius: 25px;
}

#top .ax-sectors__slide {
	position: relative;
	height: 478px;
	border-radius: 25px;
	overflow: hidden;
	background: #000;
}

#top .ax-sectors__slide img,
#top .ax-sectors__slide video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- zoom.com-style pagination ---------- */
#top .ax-sectors__gallery .splide__pagination {
	position: relative;
	justify-content: center;
	gap: 12px;
	padding: 0;
	margin: 20px 0 0;
}

#top .ax-sectors__gallery .splide__pagination li {
	margin: 0 0px 0 0;
	line-height: 0;
	padding: 0px;
}

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

#top .ax-sectors__gallery .splide__pagination__page:hover {
	transform: scale(1.2);
}

#top .ax-sectors__gallery .splide__pagination__page.is-active {
	width: 33px;
	background: var(--ax-purple);
	transform: none;
}

/* ---------- mobile ---------- */
@media (max-width:980px) {
	#top .ax-sectors__tabs {
		display: none;
	}

	#top .ax-sectors__select {
		display: block;
	}

	#top .ax-sectors__panel.is-active {
		display: flex;
		flex-direction: column;
		gap: 28px;
	}

	/* let the panel order title / gallery / description individually */
	#top .ax-sectors__text-col {
		display: contents;
	}

	#top .ax-sectors__title {
		font-size: 28px;
		margin-bottom: 0;
		order: 1;
	}
	
	#top .ax-sectors__gallery .splide__pagination {
		margin: 26px 0 0;
	}

	#top .ax-sectors__media-col {
		order: 2;
		width: 100%;
	}

	#top .ax-sectors__desc {
		order: 3;
	}

	#top .ax-sectors__slide {
		height: 320px;
	}
}