/* Hover Panel Accordion for Elementor */

.hpa-accordion {
	--hpa-height: 420px;
	--hpa-speed: 600ms;
	--hpa-divider: rgba(255, 255, 255, 0.25);
	--hpa-btn-h: 68px;
	--hpa-text-bottom: 28px;
	--hpa-lines: 3;
	--hpa-m-collapsed: 84px;
	--hpa-m-expanded: 380px;

	position: relative;
	display: flex;
	width: 100%;
	height: var(--hpa-height);
	overflow: hidden;
	isolation: isolate;
	background: #1b2430;
	box-sizing: border-box;
}

.hpa-accordion *,
.hpa-accordion *::before,
.hpa-accordion *::after {
	box-sizing: border-box;
}

/* ---------- Background images (shared across the whole row) ---------- */
.hpa-bgs {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hpa-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-size: cover;
	background-position: var(--hpa-pos, center);
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity var(--hpa-speed) ease;
}

.hpa-bg.is-prev {
	z-index: 1;
	opacity: 1;
	transition: none;
}

.hpa-bg.is-active {
	z-index: 2;
	opacity: 1;
}

/* ---------- Overlay on every panel ---------- */
.hpa-shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background-color: rgba(0, 0, 0, 0.25);
}

/* ---------- Panels ---------- */
.hpa-panel {
	position: relative;
	z-index: 2;
	display: flex;
	flex: 1 1 0;
	min-width: 0;
	cursor: pointer;
	outline: none;
}

.hpa-panel + .hpa-panel {
	border-left: 1px solid var(--hpa-divider);
}

/* Dark overlay that appears on the open panel */
.hpa-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: rgba(8, 12, 18, 0.62);
	opacity: 0;
	transition: opacity var(--hpa-speed) ease;
	pointer-events: none;
}

.hpa-panel.is-active::before {
	opacity: 1;
}

.hpa-panel:focus-visible {
	box-shadow: inset 0 0 0 2px #fff;
}

.hpa-info {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: 100%;
	height: 100%;
}

/* ---------- Text ---------- */
.hpa-text {
	padding: 0 15px;
	margin-bottom: var(--hpa-text-bottom);
	transition: margin-bottom var(--hpa-speed) ease;
}

.hpa-panel.is-active .hpa-text {
	margin-bottom: 0;
}

.hpa-accordion .hpa-title {
	margin: 0;
	padding: 0;
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}

.hpa-cats {
	margin-top: 6px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 14px;
	line-height: 1.4;
}

.hpa-cats .hpa-sep {
	margin: 0 0.35em;
	color: #fff;
	font-style: normal;
}

/* Revealed when the panel is open */
.hpa-extra {
	max-height: 0;
	padding: 0 15px;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition:
		max-height var(--hpa-speed) ease,
		padding-bottom var(--hpa-speed) ease,
		opacity calc(var(--hpa-speed) * 0.8) ease,
		visibility 0s linear var(--hpa-speed);
}

.hpa-panel.is-active .hpa-extra {
	max-height: 320px;
	padding-bottom: 24px;
	opacity: 1;
	visibility: visible;
	transition:
		max-height var(--hpa-speed) ease,
		padding-bottom var(--hpa-speed) ease,
		opacity var(--hpa-speed) ease 0.1s,
		visibility 0s;
}

.hpa-line {
	display: block;
	width: 85px;
	height: 3px;
	margin: 16px 0 18px;
	background-color: #d00000;
}

.hpa-accordion .hpa-desc {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: #fff;
	font-size: 15px;
	line-height: 1.7;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--hpa-lines);
	line-clamp: var(--hpa-lines);
}

/* ---------- Button ---------- */
.hpa-btnwrap {
	max-height: 0;
	overflow: hidden;
	visibility: hidden;
	transition:
		max-height var(--hpa-speed) ease,
		visibility 0s linear var(--hpa-speed);
}

.hpa-panel.is-active .hpa-btnwrap {
	max-height: var(--hpa-btn-h);
	visibility: visible;
	transition:
		max-height var(--hpa-speed) ease,
		visibility 0s;
}

.hpa-accordion .hpa-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	height: var(--hpa-btn-h);
	padding: 0 35px 0 20px;
	background-color: #d00000;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.hpa-accordion .hpa-btn:hover,
.hpa-accordion .hpa-btn:focus-visible {
	background-color: #14105f;
	color: #fff;
	text-decoration: none;
}

.hpa-arrow {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
}

/* Button as a small button instead of a full-width bar */
.hpa-btn-inline .hpa-btnwrap {
	padding: 0 15px;
	transition:
		max-height var(--hpa-speed) ease,
		padding-bottom var(--hpa-speed) ease,
		visibility 0s linear var(--hpa-speed);
}

.hpa-btn-inline .hpa-panel.is-active .hpa-btnwrap {
	max-height: 140px;
	padding-bottom: 24px;
	transition:
		max-height var(--hpa-speed) ease,
		padding-bottom var(--hpa-speed) ease,
		visibility 0s;
}

/* Inline button: the description needs no extra gap above it */
.hpa-btn-inline .hpa-panel.is-active .hpa-extra {
	padding-bottom: 18px;
}

.hpa-accordion.hpa-btn-inline .hpa-btn {
	display: inline-flex;
	width: auto;
	height: auto;
	padding: 14px 22px;
}

/* ---------- Phones (and stacked tablets): panels sit one under another ---------- */
@media (max-width: 767px) {
	.hpa-accordion {
		display: block;
		height: auto;
	}

	.hpa-bgs,
	.hpa-shade {
		display: none;
	}

	.hpa-panel {
		display: flex;
		height: var(--hpa-m-collapsed);
		background-color: var(--hpa-fill, #1b2430);
		background-image: var(--hpa-img);
		background-position: var(--hpa-pos, center);
		background-repeat: no-repeat;
		background-size: cover;
		transition: height var(--hpa-speed) ease;
	}

	.hpa-panel + .hpa-panel {
		border-left: 0;
		border-top: 1px solid var(--hpa-divider);
	}

	.hpa-panel.is-active {
		height: var(--hpa-m-expanded);
	}

	/* Light shade on closed panels so the text stays readable */
	.hpa-panel::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 0;
		background: rgba(0, 0, 0, 0.35);
		pointer-events: none;
	}

	.hpa-text {
		margin-bottom: 16px;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.hpa-accordion.hpa-tablet-stack {
		display: block;
		height: auto;
	}

	.hpa-tablet-stack .hpa-bgs,
	.hpa-tablet-stack .hpa-shade {
		display: none;
	}

	.hpa-tablet-stack .hpa-panel {
		display: flex;
		height: var(--hpa-m-collapsed);
		background-color: var(--hpa-fill, #1b2430);
		background-image: var(--hpa-img);
		background-position: var(--hpa-pos, center);
		background-repeat: no-repeat;
		background-size: cover;
		transition: height var(--hpa-speed) ease;
	}

	.hpa-tablet-stack .hpa-panel + .hpa-panel {
		border-left: 0;
		border-top: 1px solid var(--hpa-divider);
	}

	.hpa-tablet-stack .hpa-panel.is-active {
		height: var(--hpa-m-expanded);
	}

	/* Light shade on closed panels so the text stays readable */
	.hpa-tablet-stack .hpa-panel::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 0;
		background: rgba(0, 0, 0, 0.35);
		pointer-events: none;
	}

	.hpa-tablet-stack .hpa-text {
		margin-bottom: 16px;
	}
}

/* ---------- Editor hint ---------- */
.hpa-empty {
	padding: 24px;
	border: 1px dashed #999;
	background: #f6f6f6;
	color: #444;
	font-size: 14px;
	text-align: center;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.hpa-bg,
	.hpa-panel,
	.hpa-panel::before,
	.hpa-text,
	.hpa-extra,
	.hpa-btnwrap {
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}
}
