.eha-accordion {
	--eha-cols: 3;
	--eha-gap: 16px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: start;
	gap: var(--eha-gap);
}

.eha-accordion > .eha-card {
	flex: 0 1 calc((100% - (var(--eha-cols) - 1) * var(--eha-gap)) / var(--eha-cols));
	max-width: calc((100% - (var(--eha-cols) - 1) * var(--eha-gap)) / var(--eha-cols));
}

.eha-card {
	position: relative;
	min-width: 0;
	border-radius: 12px;
	overflow: hidden;
	background: #1d1d1d;
	color: #fff;
	transition: background-color .35s ease, border-color .35s ease, border-width .35s ease;
}

.eha-card__trigger,
.eha-card__trigger:hover,
.eha-card__trigger:focus,
.eha-card__trigger:focus-visible,
.eha-card__trigger:active {
	position: relative;
	display: block;
	width: 100%;
	min-height: 280px;
	padding: 0;
	border: 0;
	appearance: none;
	text-align: left;
	white-space: normal;
	color: inherit;
	background: transparent;
	background-color: transparent;
	background-image: none;
	cursor: pointer;
}

.eha-card__media {
	position: relative;
	display: block;
	overflow: hidden;
}

.eha-card__image {
	display: block;
	width: 100%;
	height: 280px;
	object-fit: cover;
	transition: transform .35s ease, filter .35s ease, opacity .35s ease;
}

.eha-accordion[data-image-effect="zoom"] .eha-card:hover .eha-card__image,
.eha-accordion[data-image-effect="zoom"] .eha-card.is-open .eha-card__image {
	transform: scale(1.05);
}

.eha-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.82) 100%);
	pointer-events: none;
	transition: opacity .35s ease, background .35s ease;
}

.eha-accordion[data-overlay="false"] .eha-card__overlay {
	display: none;
}

.eha-card__summary,
.eha-card__summary:hover,
.eha-card__summary:focus,
.eha-card__summary:focus-visible,
.eha-card__summary:active {
	position: absolute;
	z-index: 1;
	inset: 0;
	box-sizing: border-box;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: stretch;
	gap: 6px;
	padding: 20px;
	background: transparent;
	background-color: transparent;
	background-image: none;
	transition: background .35s ease;
}

.eha-card__summary .eha-card__subtitle,
.eha-card__summary .eha-card__title,
.eha-card__summary .eha-card__short_text {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	overflow-wrap: break-word;
}

.eha-card__subtitle,
.eha-card__short_text,
.eha-card__large_text {
	font-size: 14px;
	line-height: 1.5;
}

.eha-card__subtitle {
	order: 1;
	opacity: .78;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.eha-card__title {
	order: 2;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.15;
}

.eha-card__short_text {
	order: 3;
	opacity: .9;
}

.eha-accordion[data-order="title"] .eha-card__title {
	order: 1;
}

.eha-accordion[data-order="title"] .eha-card__subtitle {
	order: 2;
}

.eha-accordion[data-text="outside"] .eha-card__trigger {
	min-height: 0;
}

.eha-accordion[data-text="outside"] .eha-card__summary {
	position: static;
	inset: auto;
}

.eha-card__panel {
	max-height: 0;
	padding: 0 20px;
	overflow: hidden;
	background: #1d1d1d;
	transition: max-height .35s ease, padding .35s ease;
}

.eha-card.is-open .eha-card__panel {
	max-height: 500px;
	padding-top: 20px;
	padding-bottom: 20px;
}

.eha-card__large_text p:first-child {
	margin-top: 0;
}

.eha-card__large_text p:last-child {
	margin-bottom: 0;
}

.eha-card__link {
	display: inline-block;
	margin-top: 16px;
	color: inherit;
	font-weight: 700;
}

.eha-card__view-more {
	display: none;
	box-sizing: border-box;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	color: inherit;
}

@media (max-width: 767px) {
	.eha-accordion,
	.eha-accordion.eha-is-slider {
		--eha-cols: 1;
		--eha-gap: 0px;
		display: flex;
		flex-wrap: nowrap;
		justify-content: flex-start;
		align-items: stretch;
		gap: 0 !important;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
	}

	.eha-accordion::-webkit-scrollbar {
		display: none;
	}

	.eha-accordion > .eha-card {
		flex: 0 0 100%;
		width: 100%;
		min-width: 100%;
		max-width: 100%;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}

	.eha-card__trigger {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		cursor: default;
		pointer-events: none;
	}

	.eha-card__view-more {
		display: none;
	}

	/* Always show full card content on mobile — no accordion toggle. */
	.eha-card__panel,
	.eha-card.is-open .eha-card__panel,
	.eha-card__panel[hidden] {
		display: block;
		max-height: none;
		overflow: visible;
		padding: 20px;
	}

	.eha-dots {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 8px;
		margin-top: 16px;
	}

	.eha-dots:empty,
	.eha-dots[hidden] {
		display: none;
	}

	.eha-dots__dot {
		width: 8px;
		height: 8px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		appearance: none;
		background-color: rgba(0, 0, 0, 0.35);
		cursor: pointer;
	}

	.eha-dots__dot.is-active {
		background-color: #000;
	}
}

@media (min-width: 768px) {
	.eha-dots {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.eha-card,
	.eha-card__image,
	.eha-card__overlay,
	.eha-card__summary,
	.eha-card__panel {
		transition: none;
	}
}
