/* Hover Feature Showcase */
.hfs-wrap {
	display: flex;
	align-items: flex-start;
	gap: 60px;
	width: 100%;
}

.hfs-reverse-yes .hfs-wrap {
	flex-direction: row-reverse;
}

.hfs-left {
	flex: 0 0 38%;
	max-width: 38%;
	min-width: 0;
}

.hfs-right {
	flex: 1 1 0;
	min-width: 0;
}

/* ---------- LIST ---------- */
.hfs-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hfs-item {
	--hfs-icon-size: 32px;
	position: relative;
	display: grid;
	grid-template-columns: var(--hfs-icon-size) 1fr;
	column-gap: 16px;
	align-items: center;
	padding-bottom: 30px;
	margin: 0;
	cursor: pointer;
	outline: none;
}

.hfs-item:last-child {
	padding-bottom: 0;
}

/* vertical connector line below the icon */
.hfs-item::before {
	content: "";
	position: absolute;
	left: calc(var(--hfs-icon-size) / 2);
	top: calc(var(--hfs-icon-size) + 8px);
	bottom: 8px;
	width: 1px;
	background-color: #2b2f42;
	transform: translateX(-50%);
}

/* "+" marker on the line, shown only on inactive items */
.hfs-item::after {
	content: "+";
	position: absolute;
	left: calc(var(--hfs-icon-size) / 2);
	top: calc((100% + var(--hfs-icon-size)) / 2);
	transform: translate(-50%, -50%);
	font-size: 22px;
	font-weight: 300;
	line-height: 1;
	color: #9aa3b5;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.hfs-item:not(.is-active)::after {
	opacity: 1;
}

.hfs-icon {
	grid-column: 1;
	grid-row: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	font-size: 32px;
	color: #6b7080;
	transition: color 0.3s ease;
}

.hfs-item.is-active .hfs-icon {
	color: #ff4d5a;
}

.hfs-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.hfs-title {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	font-size: 24px;
	line-height: 1.3;
	font-weight: 500;
	color: #6b7080;
	transition: color 0.3s ease;
}

.hfs-desc {
	grid-column: 2;
	grid-row: 2;
	margin: 12px 0 0;
	font-size: 20px;
	line-height: 1.7;
	color: #6b7080;
	transition: color 0.3s ease;
}

.hfs-item.is-active .hfs-title,
.hfs-item.is-active .hfs-desc {
	color: #1e2235;
}

.hfs-item:focus-visible .hfs-title {
	text-decoration: underline;
}

/* ---------- IMAGES ---------- */
.hfs-visual {
	position: relative;
	padding: 40px 0;
	isolation: isolate;
}

/* background coral shape (trapezoid) */
.hfs-shape-yes .hfs-visual::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 3%;
	right: 0;
	top: 0;
	bottom: 0;
	background: var(--hfs-shape, #ff4d5a);
	clip-path: polygon(0 4%, 100% 14%, 100% 86%, 0 96%);
	border-radius: 24px;
}

/* right tab */
.hfs-shape-yes .hfs-visual::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: -3%;
	top: 22%;
	width: 8%;
	height: 45%;
	background: var(--hfs-shape, #ff4d5a);
	border-radius: 0 18px 18px 0;
}

.hfs-images {
	display: grid;
	width: 94%;
	margin-left: 0;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hfs-img {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px) scale(0.985);
	transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0.45s;
}

.hfs-img.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s;
	z-index: 1;
}

.hfs-img img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- CTA ---------- */
.hfs-cta {
	margin-top: 24px;
}

.hfs-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 22px;
	background-color: #3b4bf2;
	color: #fff;
	border-radius: 6px;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.hfs-btn:hover,
.hfs-btn:focus {
	background-color: #2a37c9;
	color: #fff;
}

.hfs-arrow {
	flex: 0 0 auto;
	transition: transform 0.3s ease;
}

.hfs-btn:hover .hfs-arrow {
	transform: translateX(4px);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
	.hfs-left {
		flex-basis: 42%;
		max-width: 42%;
	}
	.hfs-title { font-size: 21px; }
	.hfs-desc  { font-size: 17px; }
}

@media (max-width: 767px) {
	.hfs-wrap,
	.hfs-reverse-yes .hfs-wrap {
		flex-direction: column;
	}
	.hfs-left,
	.hfs-right {
		flex-basis: 100%;
		max-width: 100%;
		width: 100%;
	}
	.hfs-title { font-size: 20px; }
	.hfs-desc  { font-size: 16px; }
	.hfs-btn   { font-size: 17px; }
	.hfs-visual { padding: 28px 0; }
}
