/* ============================================================
   Horizontal Accordion – Core Styles
   ============================================================ */

/* Container */
.ha-accordion {
	display: flex;
	width: 100%;
	height: 520px; /* overridden by Elementor control */
	overflow: hidden;
	margin: 0;
	padding: 0;
}

/* Panel base */
.ha-panel {
	flex: 1;
	position: relative;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	background-color: #1a1a2e;
	overflow: hidden;
	cursor: pointer;
	transition: flex 0.5s ease; /* overridden by Elementor transition control */
}

/* Active panel — CSS fallback width (Elementor selector overrides this) */
.ha-panel.is-active {
	flex: 0 0 60%;
	cursor: default;
}

/* Dim overlay */
.ha-panel::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 1;
	pointer-events: none;
}

.ha-panel.is-active::before {
	background: rgba(0, 0, 0, 0.55);
}

/* ---- Inner layout ---- */
.ha-panel-inner {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	padding: 32px;
	box-sizing: border-box;
}

/* Header: icon + title */
.ha-panel-header {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.ha-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #ffffff;
}

.ha-icon i {
	font-size: 20px;
	line-height: 1;
}

.ha-icon svg {
	width: 20px;
	height: 20px;
	fill: #ffffff;
}

.ha-panel-title {
	color: #ffffff;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-decoration: none;
}

a.ha-panel-title:hover {
	text-decoration: underline;
}

/* ---- Body: visible only when active ---- */
.ha-panel-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease;
	margin-top: 20px;
}

.ha-panel.is-active .ha-panel-body {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0.3s ease 0.2s;
}

/* Divider line */
.ha-panel-divider {
	width: 100%;
	height: 1px;
	background-color: rgba(255, 255, 255, 0.35);
	flex-shrink: 0;
	margin: 16px 0;
}

/* Menu */
.ha-panel-menu {
	overflow: hidden;
	overflow-y: auto;
}

.ha-panel-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ha-panel-menu li {
	margin: 0;
}

.ha-panel-menu li + li {
	margin-top: 10px;
}

.ha-panel-menu a {
	display: inline-block;
	color: #ffffff;
	text-decoration: none;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.4;
	transition: color 0.2s ease;
}

.ha-panel-menu a:hover {
	color: rgba(255, 255, 255, 0.65);
}

/* Two-column menu layout on the expanded panel */
.ha-panel.is-active .ha-panel-menu ul {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 32px;
}

/* Hide sub-menu items (depth > 1) */
.ha-panel-menu .sub-menu {
	display: none;
}

/* ============================================================
   Responsive – vertical stack on mobile
   ============================================================ */

@media (max-width: 768px) {
	.ha-accordion {
		flex-direction: column;
		height: auto !important;
	}

	.ha-panel {
		flex: none !important;
		width: 100%;
		height: 180px;
		transition: height 0.45s ease !important;
		cursor: pointer;
	}

	.ha-panel.is-active {
		flex: none !important;
		height: 420px;
	}

	.ha-panel-inner {
		position: relative;
		min-height: 100%;
	}

	.ha-panel-body {
		margin-top: 12px;
	}

	/* Single column on mobile */
	.ha-panel.is-active .ha-panel-menu ul {
		grid-template-columns: 1fr;
	}
}
