.interactive-timeline-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
}

.timeline-line {
    position: absolute;
    left: 50%;
    width: 4px;
    background-color: #3B4047;
    transform: translateX(-50%);
    z-index: 1;
    top: 0;
    bottom: auto;
    height: 0; /* Dynamic inline styling by JS */
}

.timeline-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: #CBAA5D;
    transition: height 0.1s ease-out;
}

.timeline-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.timeline-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    width: 100%;
    position: relative;
}

.timeline-row:last-child {
    margin-bottom: 0;
}

.timeline-content-wrapper {
    width: 46%;
}

.timeline-row.left .timeline-content-wrapper {
    margin-right: auto;
    margin-left: 0;
    text-align: left;
}

.timeline-row.right .timeline-content-wrapper {
    margin-left: auto;
    margin-right: 0;
    text-align: left;
}

.timeline-marker {
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.node-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #3B4047;
    border: 3px solid #3B4047;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, border-color 0.3s;
    flex-shrink: 0;
}

.node-circle .checkmark,
.node-circle .custom-icon {
    color: #FFFFFF;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.node-circle svg,
.node-circle i {
    width: 14px;
    height: 14px;
    font-size: 14px;
    fill: #FFFFFF;
    color: #FFFFFF;
}

.node-label {
    position: absolute;
    white-space: nowrap;
    font-family: inherit;
    font-size: 14px;
    color: #939598;
    font-weight: 500;
    transition: color 0.3s;
}

.timeline-row.left .node-label {
    left: calc(100% + 15px);
}

.timeline-row.right .node-label {
    right: calc(100% + 15px);
}

.timeline-card {
    background-color: #FFFFFF;
    color: #1C1E21;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.timeline-card h3 {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 700;
    font-family: inherit;
}

.timeline-card-desc ul {
    margin: 0;
    padding-left: 20px;
}

.timeline-card-desc li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.timeline-card-desc li:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .timeline-line {
        left: 20px !important;
        transform: none !important;
    }
    
    .timeline-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding-left: 70px !important; /* Complete clearance for the timeline line & node circle */
        box-sizing: border-box !important;
        margin-bottom: 45px !important;
    }
    
    .timeline-content-wrapper {
        width: 100% !important;
    }
    
    .timeline-marker {
        left: 20px !important;
        transform: translateX(-50%) !important;
        top: 50px !important; /* Vertically centered to align beautifully with the card content layout */
    }
    
    .timeline-card {
        margin-top: 65px !important; /* Pushes the card down more to make ample space for the label above */
    }
    
    .timeline-row.left .node-label,
    .timeline-row.right .node-label {
        position: absolute !important;
        left: 50px !important; /* Places label at 70px relative to row (20px marker offset + 50px) to align exactly with the card left edge */
        top: -38px !important; /* Positions label beautifully higher up above the card, leaving clear breathing room */
        right: auto !important;
        font-size: 13px !important;
    }
}
