/* ============================================================
   Principles Accordion for Elementor
   All sizing runs off CSS variables so the Elementor controls
   can override them from the Style tab.
   ============================================================ */

.pa-section{
	--pa-height: 480px;
	--pa-gap: 12px;
	--pa-grow: 2.4;
	--pa-min: 90px;
	--pa-speed: 550ms;
	--pa-ease: cubic-bezier(.22,1,.36,1);
	--pa-body-width: 320px;
	--pa-title-gap: 14px;
	--pa-stack-open: 240px;

	position: relative;
}

.pa-section *,
.pa-section *::before,
.pa-section *::after{ box-sizing: border-box; }

/* ---------------- track ---------------- */
.pa-track{
	display: flex;
	gap: var(--pa-gap);
	height: var(--pa-height);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ---------------- panel ---------------- */
.pa-panel{
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 1 1 0%;
	min-width: var(--pa-min);
	overflow: hidden;
	margin: 0;
	padding: 26px 28px;
	border-radius: 10px;
	cursor: pointer;
	list-style: none;
	background-image: linear-gradient(160deg, #0D1A2E, #0A1524);
	transition:
		flex-grow var(--pa-speed) var(--pa-ease),
		background-color .4s ease,
		box-shadow .4s ease;
	-webkit-tap-highlight-color: transparent;
}

.pa-panel::marker{ content: none; }

.pa-panel.is-open{
	flex-grow: var(--pa-grow);
	background-image: linear-gradient(150deg, #1668FF, #0D54E0);
}

.pa-panel:focus{ outline: none; }
.pa-panel:focus-visible{
	outline: 2px solid #1668FF;
	outline-offset: 3px;
}

/* ---------------- number ---------------- */
.pa-num{
	display: block;
	flex: none;
	line-height: 1;
	color: #6D94D8;
	font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
	font-size: 46px;
	transition: color var(--pa-speed) var(--pa-ease);
}
.pa-panel.is-open .pa-num{ color: rgba(255,255,255,.55); }

/* ---------------- content wrapper ----------------
   A zero height box pinned to the bottom of the panel. The closed
   label and the open body are both absolutely positioned inside it,
   so they cross-fade in the same spot and the panel padding is what
   controls their offset.
------------------------------------------------- */
.pa-content{
	position: relative;
	flex: none;
	width: 100%;
}

/* ---------------- closed label ---------------- */
.pa-label{
	position: absolute;
	left: 0;
	bottom: 0;
	margin: 0;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	white-space: nowrap;
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	opacity: 1;
	transition: opacity .3s ease .15s;
}
.pa--label-down .pa-label{ transform: none; }
.pa-panel.is-open .pa-label{
	opacity: 0;
	transition-delay: 0s;
}

/* ---------------- open body ---------------- */
.pa-body{
	position: absolute;
	left: 0;
	bottom: 0;
	width: var(--pa-body-width);
	opacity: 0;
	transform: translateY(14px);
	pointer-events: none;
	transition: opacity .4s ease, transform .5s var(--pa-ease);
}
.pa-panel.is-open .pa-body{
	opacity: 1;
	transform: none;
	pointer-events: auto;
	transition-delay: .18s;
}

.pa-title{
	margin: 0 0 var(--pa-title-gap);
	color: #fff;
	font-size: 27px;
	font-weight: 700;
	line-height: 1.18;
}
.pa-copy{
	margin: 0;
	color: rgba(255,255,255,.8);
	font-size: 15px;
	line-height: 1.65;
}

/* ---------------- hint ---------------- */
.pa-hint{
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 18px 0 0;
	color: #9AA3AD;
	font-size: 13px;
}
.pa-hint__icon{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	color: #9AA3AD;
}
.pa-hint__icon svg{
	width: 14px;
	height: 14px;
	fill: currentColor;
}

/* ============================================================
   STACKED MODE
   Turns into a normal vertical accordion. The real heading stays
   visible and the duplicate vertical label is dropped, so the
   markup keeps its semantics on small screens.
   ============================================================ */
@media (max-width: 1024px){
	.pa--stack-tablet .pa-track{ flex-direction: column; height: auto; }

	.pa--stack-tablet .pa-panel{
		flex: 0 0 auto;
		flex-direction: row;
		align-items: flex-start;
		gap: 16px;
		min-width: 0;
	}
	.pa--stack-tablet .pa-content{ position: static; flex: 1 1 auto; }
	.pa--stack-tablet .pa-label{ display: none; }

	.pa--stack-tablet .pa-body{
		position: static;
		width: auto;
		opacity: 1;
		transform: none;
		pointer-events: auto;
		transition: none;
	}
	.pa--stack-tablet .pa-title{ margin-bottom: 0; max-width: none; }

	.pa--stack-tablet .pa-copy{
		max-width: none;
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		transition:
			max-height var(--pa-speed) var(--pa-ease),
			opacity .3s ease,
			margin-top var(--pa-speed) var(--pa-ease);
	}
	.pa--stack-tablet .pa-panel.is-open .pa-copy{
		max-height: var(--pa-stack-open);
		opacity: 1;
		margin-top: var(--pa-title-gap);
	}
}

@media (max-width: 767px){
	.pa--stack-mobile .pa-track{ flex-direction: column; height: auto; }

	.pa--stack-mobile .pa-panel{
		flex: 0 0 auto;
		flex-direction: row;
		align-items: flex-start;
		gap: 16px;
		min-width: 0;
	}
	.pa--stack-mobile .pa-content{ position: static; flex: 1 1 auto; }
	.pa--stack-mobile .pa-label{ display: none; }

	.pa--stack-mobile .pa-body{
		position: static;
		width: auto;
		opacity: 1;
		transform: none;
		pointer-events: auto;
		transition: none;
	}
	.pa--stack-mobile .pa-title{ margin-bottom: 0; max-width: none; }

	.pa--stack-mobile .pa-copy{
		max-width: none;
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		transition:
			max-height var(--pa-speed) var(--pa-ease),
			opacity .3s ease,
			margin-top var(--pa-speed) var(--pa-ease);
	}
	.pa--stack-mobile .pa-panel.is-open .pa-copy{
		max-height: var(--pa-stack-open);
		opacity: 1;
		margin-top: var(--pa-title-gap);
	}
}

/* ---------------- accessibility ---------------- */
@media (prefers-reduced-motion: reduce){
	.pa-panel,
	.pa-label,
	.pa-body,
	.pa-copy,
	.pa-num{
		transition-duration: .01ms !important;
		transition-delay: 0ms !important;
	}
}
