.ht-2cfff5cd-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.ht-2cfff5cd-container {
    position: relative;
    flex-grow: 1;
    overflow: hidden;
    padding: 20px 0;
}

.ht-2cfff5cd-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    transform: translateY(-50%);
    z-index: 1;
}

.ht-2cfff5cd-track {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 150px 20px; /* Space for top/bottom content */
}

.ht-2cfff5cd-track::-webkit-scrollbar {
    display: none;
}

.ht-2cfff5cd-item {
    position: relative;
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    transition: transform 0.3s ease;
}

.ht-2cfff5cd-item:hover {
    transform: scale(1.02);
}

.ht-2cfff5cd-marker {
    width: 40px;
    height: 40px;
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 3;
}

.ht-2cfff5cd-marker svg {
    width: 1em;
    height: 1em;
    fill: #fff;
}

.ht-2cfff5cd-content {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    width: 100%;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.ht-2cfff5cd-item.position-top .ht-2cfff5cd-content {
    bottom: calc(50% + 40px);
}

.ht-2cfff5cd-item.position-top .ht-2cfff5cd-content::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.ht-2cfff5cd-item.position-bottom .ht-2cfff5cd-content {
    top: calc(50% + 40px);
}

.ht-2cfff5cd-item.position-bottom .ht-2cfff5cd-content::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}

.ht-2cfff5cd-date {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 5px;
    font-weight: 600;
}

.ht-2cfff5cd-title {
    margin: 0 0 10px;
    font-size: 1.1em;
}

.ht-2cfff5cd-desc {
    font-size: 0.9em;
    color: #666;
}

.ht-2cfff5cd-nav {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 5;
    flex-shrink: 0;
    margin: 0 10px;
    transition: background 0.2s;
}

.ht-2cfff5cd-nav:hover {
    background: #f0f0f0;
}

/* Vertical Layout overrides */
.ht-layout-vertical .ht-2cfff5cd-container {
    padding: 0 20px;
}

.ht-layout-vertical .ht-2cfff5cd-line {
    width: 4px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.ht-layout-vertical .ht-2cfff5cd-track {
    flex-direction: column;
    overflow-y: visible;
    overflow-x: visible;
    padding: 40px 0;
    gap: 0;
}

.ht-layout-vertical .ht-2cfff5cd-item {
    width: 100%;
    flex: none;
    margin-bottom: 60px;
}

.ht-layout-vertical .ht-2cfff5cd-item:last-child {
    margin-bottom: 0;
}

.ht-layout-vertical .ht-2cfff5cd-marker {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.ht-layout-vertical .ht-2cfff5cd-content {
    position: relative;
    width: calc(50% - 40px);
    transform: none;
    left: auto;
    top: 0;
}

.ht-layout-vertical .ht-2cfff5cd-item.v-position-left .ht-2cfff5cd-content {
    margin-right: auto;
    margin-left: 0;
}

.ht-layout-vertical .ht-2cfff5cd-item.v-position-left .ht-2cfff5cd-content::after {
    content: '';
    position: absolute;
    top: 15px;
    right: -8px;
    left: auto;
    transform: none;
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

.ht-layout-vertical .ht-2cfff5cd-item.v-position-right .ht-2cfff5cd-content {
    margin-left: auto;
    margin-right: 0;
}

.ht-layout-vertical .ht-2cfff5cd-item.v-position-right .ht-2cfff5cd-content::after {
    content: '';
    position: absolute;
    top: 15px;
    left: -8px;
    transform: none;
    border-width: 8px 8px 8px 0;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
}


@media (max-width: 768px) {
    .ht-layout-horizontal .ht-2cfff5cd-item {
        flex: 0 0 200px;
    }
    
    .ht-layout-vertical .ht-2cfff5cd-line {
        left: 20px;
    }
    
    .ht-layout-vertical .ht-2cfff5cd-marker {
        left: 20px;
    }
    
    .ht-layout-vertical .ht-2cfff5cd-content {
        width: calc(100% - 60px);
        margin-left: auto !important;
        margin-right: 0 !important;
    }
    
    .ht-layout-vertical .ht-2cfff5cd-item.v-position-left .ht-2cfff5cd-content::after,
    .ht-layout-vertical .ht-2cfff5cd-item.v-position-right .ht-2cfff5cd-content::after {
        left: -8px;
        right: auto;
        border-width: 8px 8px 8px 0;
        border-color: transparent #fff transparent transparent;
    }
}
