/**
 * Styling for sections this theme authors itself, as opposed to the captured
 * ones. Everything is expressed through the active palette's custom properties,
 * so these sections restyle with the site rather than pinning to one brand.
 *
 * Dimensions here follow the reference the section was modelled on: 120px
 * circular selectors with the label beneath, and a single wide rounded panel.
 */

.upq-pillars {
	padding: 110px 0;
	background: #ffffff;
}
.upq-pillars__head {
	max-width: 820px;
	margin: 0 auto 56px;
	text-align: center;
}
.upq-pillars__head h2 {
	margin: 0 0 18px;
	color: var(--c-headings, #0B1C48);
}
.upq-pillars__highlight { color: var(--c-active, #23378F); }
.upq-pillars__intro { margin: 0; color: var(--c-text, #3E3947); }

/* ---- circular selector ---- */
.upq-pillars__nav {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 64px;
	margin-bottom: 44px;
}
.upq-pillars__navitem {
	width: 120px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	font-family: inherit;
}
.upq-pillars__circle {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: var(--pillar-accent, #23378F);
	/* the halo ring that marks the active pillar, transparent until selected */
	box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
	transition: box-shadow .3s, transform .3s;
}
.upq-pillars__circle img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.upq-pillars__navitem:hover .upq-pillars__circle { transform: translateY(-3px); }
.upq-pillars__navitem.is-active .upq-pillars__circle {
	box-shadow: 0 0 0 12px var(--pillar-tint, #E7EBF6);
}
.upq-pillars__navlabel {
	font-size: 21px;
	font-weight: 600;
	line-height: 1.28;
	text-align: center;
	color: var(--c-headings, #0B1C48);
}
.upq-pillars__navitem:not(.is-active) .upq-pillars__navlabel { opacity: .72; }

/* per-pillar accent, resolved from the palette in use */
.upq-pillars [data-accent="a"] { --pillar-accent: var(--c-active, #23378F); --pillar-tint: #E7EBF6; }
.upq-pillars [data-accent="b"] { --pillar-accent: #F8C11D; --pillar-tint: #FDF3D6; }
.upq-pillars [data-accent="c"] { --pillar-accent: #EE9002; --pillar-tint: #FCEBD6; }

/* ---- panel ---- */
.upq-pillars__panel {
	display: none;
	border-radius: 16px;
	background: var(--pillar-tint, #E7EBF6);
	padding: 48px 56px 56px;
}
.upq-pillars__panel.is-active {
	display: block;
	animation: upq-pillars-in .35s ease both;
}
@keyframes upq-pillars-in {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: none; }
}
@media ( prefers-reduced-motion: reduce ) {
	.upq-pillars__panel.is-active { animation: none; }
}

.upq-pillars__pre {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 400;
	color: var(--c-text, #3E3947);
}
.upq-pillars__title {
	margin: 0 0 28px;
	font-size: 24px;
	font-weight: 800;
	color: var(--c-headings, #0B1C48);
}
.upq-pillars__list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.upq-pillars__list li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 18px;
	font-size: 18px;
	line-height: 28px;
	color: var(--c-text, #3E3947);
}
.upq-pillars__list li::before {
	content: "";
	position: absolute;
	left: 8px;
	top: 11px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--pillar-accent, #23378F);
}

/* Optional logo grid inside the panel; empty unless populated. */
.upq-pillars__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 26px 44px;
	margin: 40px 0 8px;
}
.upq-pillars__logo img {
	max-height: 34px;
	width: auto;
	display: block;
}

.upq-pillars__panel .btn-anime { margin-top: 28px; }

@media ( max-width: 900px ) {
	.upq-pillars { padding: 70px 0; }
	.upq-pillars__nav { gap: 28px; }
	.upq-pillars__navitem { width: 96px; }
	.upq-pillars__circle { width: 96px; height: 96px; }
	.upq-pillars__navlabel { font-size: 17px; }
	.upq-pillars__panel { padding: 30px 24px 34px; }
	.upq-pillars__list li { font-size: 16px; line-height: 26px; }
}
