.bst-timeline-container {
    position: relative;
    padding: 20px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.bst-timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 150px;
    width: 2px;
    background-color: #8CC63F;
    z-index: 1;
}

.bst-timeline-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.bst-timeline-item {
    display: flex;
    align-items: flex-start;
    position: relative;
    width: 100%;
}

.bst-timeline-left-meta {
    width: 130px;
    padding-right: 35px; /* Adjust spacing to node */
    text-align: right;
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 20px;
}

.bst-timeline-year {
    font-size: 24px;
    font-weight: 700;
    color: #8CC63F;
    line-height: 1;
    margin-bottom: 5px;
}

.bst-timeline-date-left {
    font-size: 12px;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Perfect alignment on the line */
.bst-timeline-node {
    position: absolute;
    right: -26px; /* 150px (line left) - 130px (left-meta width) = 20px gap. We need to center the node on the line. */
    top: 28px; /* Align vertically with the year */
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #1A1C20;
    border: 2px solid #8CC63F;
    z-index: 2;
}

.bst-timeline-card {
    background-color: #1A1C20;
    border-radius: 8px;
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-left: 45px;
    border: 1px solid rgba(255,255,255,0.05);
}

.bst-timeline-card-content {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.bst-timeline-title {
    color: #fff;
    font-size: 22px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.bst-timeline-date-right {
    color: #8CC63F;
    font-size: 13px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bst-timeline-description {
    color: #aaa;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Horizontal thumbnails layout */
.bst-timeline-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.bst-timeline-thumb {
    width: calc(25% - 7.5px);
    max-width: 100px;
}

.bst-timeline-thumb img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.bst-timeline-link-wrapper {
    margin-top: auto;
}

.bst-timeline-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.bst-timeline-link:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #fff;
}

.bst-timeline-card-image {
    width: 250px;
    flex-shrink: 0;
}

.bst-timeline-card-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

@media (max-width: 767px) {
    .bst-timeline-line {
        left: 20px;
    }
    .bst-timeline-left-meta {
        width: 100%;
        text-align: left;
        align-items: flex-start;
        padding-left: 50px;
        padding-right: 0;
        margin-bottom: 10px;
    }
    .bst-timeline-node {
        right: auto;
        left: -37px;
    }
    .bst-timeline-item {
        flex-direction: column;
    }
    .bst-timeline-card {
        margin-left: 20px;
        width: calc(100% - 20px);
    }
    .bst-timeline-card-image {
        width: 100%;
    }
    .bst-timeline-thumb {
        width: calc(33.33% - 6.66px);
    }
}
