.ht-container-611643c5 {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 60px 0;
    --timeline-item-spacing: 280px; /* Fallback, overridden by Elementor control */
}

/* Outer viewport that handles scrolling but allows vertical overflow */
.ht-scroll-area {
    flex-grow: 1;
    overflow-x: auto;
    overflow-y: visible; /* Prevents vertical clipping of cards/shadows */
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding: 60px 0; /* Extra safe area for tall cards */
}

.ht-scroll-area::-webkit-scrollbar {
    display: none;
}

.ht-track {
    display: inline-flex;
    position: relative;
    min-width: 100%;
    align-items: center;
    padding: 0 40px; 
    height: 350px; /* Increased track height to ensure cards have vertical space */
}

/* The continuous horizontal line */
.ht-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #E5E5EA;
    transform: translateY(-50%);
    z-index: 1;
}

/* Individual timeline item container using the dynamic spacing variable */
.ht-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: var(--timeline-item-spacing);
    flex-basis: var(--timeline-item-spacing);
    flex-shrink: 0;
    height: 100%;
    z-index: 2;
}

/* Base Marker */
.ht-marker {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #0071e3;
    color: #0071e3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    z-index: 4; /* Above line, above connector */
}
.ht-marker svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.ht-marker i {
    font-size: 16px;
}

/* Card */
.ht-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    width: 220px;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s;
    z-index: 5; /* Above connector */
}

.ht-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.ht-card-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

.ht-card-date {
    font-size: 13px;
    color: #86868b;
    margin-bottom: 8px;
    font-weight: 500;
}

.ht-card-desc {
    font-size: 14px;
    color: #515154;
    line-height: 1.4;
}

/* Vertical Connector Line */
.ht-connector {
    width: 2px;
    background-color: #0071e3;
    opacity: 0.3;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3; /* Above main line, below marker/card */
}

/* Positioning Logic - Top Cards */
.ht-item-pos-top .ht-card {
    bottom: calc(50% + 40px);
}
.ht-item-pos-top .ht-connector {
    bottom: 50%;
    height: 40px;
}
.ht-item-pos-top .ht-card:hover {
    transform: translate(-50%, -4px);
}

/* Positioning Logic - Bottom Cards */
.ht-item-pos-bottom .ht-card {
    top: calc(50% + 40px);
}
.ht-item-pos-bottom .ht-connector {
    top: 50%;
    height: 40px;
}
.ht-item-pos-bottom .ht-card:hover {
    transform: translate(-50%, -4px); /* Moves slightly up on hover */
}

/* Navigation Buttons */
.ht-nav {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border: 1px solid #e5e5ea;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1d1d1f;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
}

.ht-nav:hover {
    background: #ffffff;
    transform: scale(1.05);
}

.ht-prev { margin-right: 10px; }
.ht-next { margin-left: 10px; }

@media (max-width: 768px) {
    .ht-track {
        padding: 0 20px;
    }
    .ht-item {
        /* On mobile, use a smaller fixed width instead of the slider value to prevent layout breaking */
        min-width: 240px;
        flex-basis: 240px;
    }
    .ht-card {
        width: 180px;
    }
    .ht-nav {
        display: none;
    }
}