.ht-3039-container {
    width: 100%;
}

.ht-3039-wrapper {
	position: relative;
	width: 100%;
	padding: 40px 0;
	display: flex;
	align-items: center;
}

.ht-3039-nav {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
	flex-shrink: 0;
	transition: all 0.3s ease;
	color: #333;
}

.ht-3039-nav:hover {
	background: #f5f5f5;
	border-color: #ccc;
}

.ht-3039-nav:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.ht-3039-nav i {
	font-size: 16px;
}

.ht-3039-nav svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.ht-3039-track-container {
	flex-grow: 1;
	overflow: hidden;
	margin: 0 20px;
	position: relative;
    /* Hide scrollbar for cleaner look, handled by JS */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.ht-3039-track-container::-webkit-scrollbar {
  display: none;
}

.ht-3039-line-wrapper {
	position: absolute;
	top: 30px; /* Aligned with center of the 60px marker */
	left: 30px; /* Starts exactly where the first marker center is */
	right: 30px;
	height: 2px;
	z-index: 0;
}

.ht-3039-line {
	width: 100%;
	height: 100%;
	background-color: #ddd;
}

.ht-3039-track {
	display: flex;
	align-items: flex-start; /* Align items to the top so markers line up */
	position: relative;
	transition: transform 0.5s ease;
	padding: 0; /* Removed padding so first marker is at left edge */
    width: max-content; /* Ensure track spans full content */
}

.ht-3039-item {
	position: relative;
	z-index: 1;
	min-width: 200px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
    cursor: pointer;
	text-align: center;
}

/* Align the first item left */
.ht-3039-item:first-child {
    align-items: flex-start;
    text-align: left;
}

.ht-3039-marker {
	width: 60px;
	height: 60px;
	background-color: #fff;
	border: 2px solid #333;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	transition: all 0.3s ease;
    color: #333;
    font-size: 14px;
	margin-bottom: 15px; /* Space between marker and labels */
}

.ht-3039-item:first-child .ht-3039-marker {
    transform-origin: left center;
}

.ht-3039-item:hover .ht-3039-marker {
	transform: scale(1.1);
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.ht-3039-marker.is-active {
	background-color: #333;
	color: #fff;
    transform: scale(1.1);
}

.ht-3039-label-container {
	padding: 0 10px;
}

.ht-3039-item:first-child .ht-3039-label-container {
    padding-left: 0;
}

.ht-3039-label-title {
	font-weight: 600;
	font-size: 16px;
	color: #333;
	margin-bottom: 5px;
}

.ht-3039-label-desc {
	font-size: 13px;
	color: #777;
	line-height: 1.4;
}

/* Details Area Styles (Replaces Popup) */
.ht-3039-details {
    width: 100%;
    margin-top: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(10px);
}

.ht-3039-details.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ht-3039-details-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 30px;
    gap: 30px;
}

.ht-3039-details-text {
    flex: 1;
    min-width: 250px;
}

.ht-3039-details-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.ht-3039-details-desc {
    margin: 0;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.ht-3039-details-image-wrap {
    width: 300px;
    border-radius: 6px;
    overflow: hidden;
    display: none;
    flex-shrink: 0;
}

.ht-3039-details-image-wrap.has-image {
    display: block;
}

.ht-3039-details-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.ht-3039-mobile-details {
    display: none;
}

/* Mobile Vertical Layout */
@media (max-width: 767px) {
    .ht-3039-wrapper {
        flex-direction: column;
        padding: 20px 0;
    }

    .ht-3039-nav {
        display: none; /* Hide horizontal nav on mobile */
    }

    .ht-3039-track-container {
        width: 100%;
        margin: 0;
        overflow: visible; /* Allow vertical scrolling normally */
    }

    .ht-3039-track {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 0 0 40px; /* Space for the vertical line on the left */
        width: 100%;
    }

    .ht-3039-line-wrapper {
        top: 0;
        bottom: 0;
        left: 30px; /* Align line with center of marker */
        right: auto;
        width: 2px;
        height: 100%;
    }

    .ht-3039-item {
        flex-direction: column; 
        text-align: left;
        width: 100%;
        margin-bottom: 20px;
        align-items: flex-start;
    }

    .ht-3039-item:last-child {
        margin-bottom: 0 !important;
    }
    
    .ht-3039-item:first-child {
        align-items: flex-start;
    }

    .ht-3039-marker {
        margin-bottom: 0;
        margin-right: 20px;
        position: absolute;
        left: -40px; /* Pull marker back over the line */
        z-index: 2;
    }

    .ht-3039-label-container,
    .ht-3039-item:first-child .ht-3039-label-container {
        padding-left: 50px; /* Push text away from marker */
    }

    .ht-3039-details {
        display: none !important;
    }
    
    /* Always display inline details on mobile, regardless of active state */
    .ht-3039-mobile-details {
        display: block;
        padding-left: 50px;
        padding-top: 10px;
        margin-top: 10px;
        color: #555;
        font-size: 15px;
    }
    
    .ht-3039-mobile-details img {
        max-width: 100%;
        height: auto;
        border-radius: 6px;
        margin-top: 10px;
        display: block;
    }
}