.ht-wrapper {
	--ht-line-color: #cccccc;
	--ht-dot-color: #cccccc;
	--ht-content-bg: #f9f9f9;
	--ht-dot-size: 20px;
	--ht-line-thickness: 4px;
	--ht-line-gap: 10px;
	position: relative;
	width: 100%;
}

.ht-items {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: stretch;
	position: relative;
	width: 100%;
}

.ht-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	padding: 0 10px;
	z-index: 2;
}

.ht-image {
	margin-bottom: 20px;
	width: 100%;
	display: flex;
	justify-content: center;
}

.ht-image img {
	max-width: 100%;
	height: auto;
	display: block;
}

.ht-dot-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: var(--ht-dot-size);
	margin-bottom: 20px;
	position: relative;
}

.ht-dot {
	width: var(--ht-dot-size);
	height: var(--ht-dot-size);
	background-color: var(--ht-dot-color);
	border-radius: 50%;
	z-index: 2;
	position: relative;
	flex-shrink: 0;
}

/* Desktop Line Connector */
.ht-line-connector {
	position: absolute;
	top: 50%;
	left: calc(50% + (var(--ht-dot-size) / 2) + var(--ht-line-gap));
	width: calc(100% - var(--ht-dot-size) - (var(--ht-line-gap) * 2));
	height: var(--ht-line-thickness);
	background-color: var(--ht-line-color);
	z-index: 1;
	transform: translateY(-50%);
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

/* Right Arrow on line end (Desktop) */
.ht-line-arrow {
	width: 0; 
	height: 0; 
	border-top: calc(var(--ht-line-thickness) + 2px) solid transparent;
	border-bottom: calc(var(--ht-line-thickness) + 2px) solid transparent;
	border-left: calc(var(--ht-line-thickness) + 4px) solid var(--ht-line-color);
	transform: translateX(100%); /* push it right outside the line width */
}

/* Down Arrow is hidden on desktop */
.ht-line-arrow-down {
	display: none;
}

.ht-content {
	text-align: center;
	position: relative;
	width: 100%;
	flex: 1;
}

.ht-content-inner {
	background-color: var(--ht-content-bg);
	padding: 15px;
	border-radius: 8px;
	position: relative;
	margin-top: 15px;
	height: calc(100% - 15px);
}

/* Top Arrow pointing to dot (Desktop) */
.ht-content-inner::before {
	content: '';
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	border-width: 0 10px 10px 10px;
	border-style: solid;
	border-color: transparent transparent var(--ht-content-bg) transparent;
}

.ht-heading {
	margin-top: 0;
	margin-bottom: 10px;
}

.ht-description {
	margin: 0;
}

/* Responsive Tablet & Mobile */
@media (max-width: 768px) {
	.ht-items {
		flex-direction: column;
	}
	
	.ht-item {
		flex-direction: row;
		text-align: left;
		margin-bottom: 0;
		align-items: stretch;
		padding: 0;
	}

	.ht-image {
		margin-bottom: 0;
		margin-right: 20px;
		flex-shrink: 0;
		width: 80px;
		align-items: flex-start;
		padding-top: 15px;
	}

	.ht-dot-wrapper {
		width: auto;
		height: auto;
		margin-bottom: 0;
		margin-right: 20px;
		flex-direction: column;
		justify-content: flex-start;
		padding-top: 15px;
		min-width: var(--ht-dot-size);
	}

	/* Vertical Line Connector */
	.ht-line-connector {
		top: calc(15px + var(--ht-dot-size) + var(--ht-line-gap));
		left: 50%;
		width: var(--ht-line-thickness);
		height: calc(100% - var(--ht-dot-size) - (var(--ht-line-gap) * 2));
		background-color: var(--ht-line-color);
		transform: translateX(-50%);
		display: flex;
		justify-content: center;
		align-items: flex-end;
	}

	/* Hide right arrow */
	.ht-line-arrow {
		display: none;
	}

	/* Show down arrow */
	.ht-line-arrow-down {
		display: block;
		width: 0; 
		height: 0; 
		border-left: calc(var(--ht-line-thickness) + 2px) solid transparent;
		border-right: calc(var(--ht-line-thickness) + 2px) solid transparent;
		border-top: calc(var(--ht-line-thickness) + 4px) solid var(--ht-line-color);
		transform: translateY(100%);
	}

	.ht-content {
		text-align: left;
		flex: 1;
		padding-bottom: 30px;
	}
	
	.ht-content-inner {
		margin-top: 0;
		margin-left: 15px;
		height: 100%;
	}

	/* Fix text box arrow: Left Arrow pointing to dot (Tablet/Mobile) */
	.ht-content-inner::before {
		top: 15px; /* Adjust to align with the dot center based on padding/size */
		left: -10px;
		transform: translateY(0);
		border-width: 10px 10px 10px 0;
		border-color: transparent var(--ht-content-bg) transparent transparent;
	}
}

@media (max-width: 480px) {
	.ht-image {
		width: 60px;
		margin-right: 15px;
	}
	.ht-dot-wrapper {
		margin-right: 10px;
	}
	.ht-content-inner {
		margin-left: 10px;
	}
}