.st-3434-container {
    width: 100%;
    position: relative;
    padding: 40px 0;
    overflow: hidden; /* Prevent horizontal scroll from line */
}

.st-3434-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2; /* Above the line */
}

/* Connecting Line */
.st-3434-line-wrapper {
    position: absolute;
    top: calc(50% - 1px);
    /* 
     * Offset = Nav btn width (40px) + Track margin (20px) + half of marker width to start from center of first marker.
     * With default settings, this is approx 40 + 20 + 20 = 80px.
     * We calculate this dynamically in PHP, but provide a default fallback here.
     */
    left: 80px; 
    /* Width = 100% minus (Left Offset + Right Nav btn offset). 
     * Right offset = Nav btn (40) + Track margin (20) + half marker width (20) = 80px 
     */
    width: calc(100% - 160px); 
    height: 2px;
    z-index: 1;
    overflow: hidden; /* For animation */
}

.st-3434-line {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    transform-origin: left center;
}

/* Nav Buttons */
.st-3434-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: 3;
    flex-shrink: 0;
    transition: all 0.3s ease;
    color: #333;
}

.st-3434-nav:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.st-3434-nav.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.st-3434-nav svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}


/* Track */
.st-3434-track-container {
    flex-grow: 1;
    overflow: hidden;
    margin: 0 20px;
}

.st-3434-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Individual Item */
.st-3434-item {
    min-width: 200px; /* Adjusted via settings */
    text-align: center;
    cursor: pointer;
    padding: 0 10px;
    position: relative;
}

/* Left Align First Event on Desktop/Tablet */
.st-3434-item:first-child {
    text-align: left;
    padding-left: 0;
}

/* Marker Wrap */
.st-3434-marker-wrap {
    display: flex;
    justify-content: center;
}

.st-3434-item:first-child .st-3434-marker-wrap {
    justify-content: flex-start;
}


/* Marker */
.st-3434-marker {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2; /* Above the line */
    /* Ensure default centering doesn't override first-child */
    margin-left: auto;
    margin-right: auto;
}

/* Force first marker to align left to match the connecting line start */
.st-3434-item:first-child .st-3434-marker {
    margin-left: 0 !important;
    margin-right: auto !important;
}

.st-3434-marker i {
    font-size: 16px;
    transition: all 0.3s ease;
}

.st-3434-marker svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: all 0.3s ease;
}

.st-3434-item:hover .st-3434-marker {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.st-3434-marker.is-active {
    background-color: #0073aa;
    border-color: #0073aa;
    color: #fff;
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Label Container */
.st-3434-label-container {
    transition: all 0.3s ease;
    opacity: 0.7;
}

.st-3434-marker.is-active + .st-3434-label-container,
.st-3434-item:hover .st-3434-label-container {
    opacity: 1;
}

.st-3434-year {
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 5px;
    font-size: 18px;
}

.st-3434-label-title {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.st-3434-label-desc {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* Details Box (Desktop/Tablet) */
.st-3434-details {
    margin-top: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 0;
    border: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    display: none; /* Hidden by default, shown via JS */
}

.st-3434-details.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.st-3434-details-inner {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.st-3434-details-text {
    flex: 1;
}

.st-3434-details-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.st-3434-details-label {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}

.st-3434-details-short-desc {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    margin-bottom: 15px;
}

.st-3434-details-desc {
    color: #666;
    line-height: 1.6;
}

.st-3434-details-desc p:last-child {
    margin-bottom: 0;
}

.st-3434-details-image-wrap {
    flex: 0 0 30%;
    max-width: 400px;
    position: relative;
}

.st-3434-details-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* Slideshow */
.st-3434-slideshow {
    position: relative;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.st-3434-slideshow img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile Details (Hidden on Desktop) */
.st-3434-mobile-details {
    display: none;
    margin-top: 15px;
    text-align: left;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 0;
    border: none;
}

.st-3434-mobile-details img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 4px;
}

.st-3434-mobile-details p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.st-3434-mobile-details p:last-child {
    margin-bottom: 0;
}

.st-3434-slideshow-mobile {
    position: relative;
    width: 100%;
    margin-top: 10px;
    border-radius: 4px;
    overflow: hidden;
}

.st-3434-slideshow-mobile img {
    margin-top: 0;
}

/* --- Responsive Adjustments --- */

/* Tablet */
@media (max-width: 1024px) {
    .st-3434-details-inner {
        flex-direction: column;
    }
    .st-3434-details-image-wrap {
        flex: 1 1 100%;
        max-width: 100%;
        margin-top: 20px;
    }
}

/* Mobile - Hardcoded Stacked Layout */
@media (max-width: 767px) {
    /* Hide the global details box on mobile */
    .st-3434-details {
        display: none !important;
    }

    /* Change layout to vertical list */
    .st-3434-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    /* Hide Navigation Buttons */
    .st-3434-nav {
        display: none;
    }

    /* Reset track for vertical stacking */
    .st-3434-track-container {
        margin: 0;
        overflow: visible; /* Need to see everything */
    }

    .st-3434-track {
        flex-direction: column;
        transform: none !important; /* Disable JS transform on mobile */
    }

    /* Hide Connecting Line entirely */
    .st-3434-line-wrapper {
        display: none !important;
    }

    /* Item Layout on Mobile - Stacked */
    .st-3434-item, .st-3434-item:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 30px; /* Spacing between items */
        min-width: auto;
        padding: 0;
        position: relative;
    }

    /* Reset marker margin and align for stacked view */
    .st-3434-marker-wrap, .st-3434-item:first-child .st-3434-marker-wrap {
        justify-content: center;
    }
    
    .st-3434-marker, .st-3434-item:first-child .st-3434-marker {
        margin: 0 auto 15px auto !important;
    }

    /* Show ALL mobile details on mobile */
    .st-3434-mobile-details {
        display: block !important;
        width: 100%;
        margin-left: 0;
    }

    /* Hide the Short Desc on mobile if space is tight */
    .st-3434-label-desc {
        display: none;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}