/* Timeline Widget */
.tl-wrapper {
    position: relative;
    padding: 40px 0;
    max-width: 1100px;
    margin: 0 auto;
}

.tl-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #c8ccd0;
    transform: translateX(-50%);
    z-index: 0;
}

/* Single timeline item */
.tl-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
    width: 100%;
}

.tl-item:last-child {
    margin-bottom: 0;
}

/* Dot on the line */
.tl-dot {
    position: absolute;
    left: 50%;
    top: 24px;
    width: 18px;
    height: 18px;
    background-color: #1a2a4a;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    flex-shrink: 0;
}

/* Year label */
.tl-year {
    font-size: 28px;
    font-weight: 700;
    color: #8b4513;
    white-space: nowrap;
    line-height: 1.2;
    flex-shrink: 0;
}

/* Card */
.tl-card {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.tl-card-image {
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.tl-card-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.tl-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a2a4a;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.tl-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

/* Right layout: year left, card right */
.tl-item.tl-right {
    flex-direction: row;
}

.tl-item.tl-right .tl-year {
    width: calc(50% - 40px);
    text-align: right;
    padding-right: 40px;
}

.tl-item.tl-right .tl-card {
    width: calc(50% - 40px);
    margin-left: auto;
    margin-right: 0;
    position: relative;
    left: 40px;
}

/* Left layout: card left, year right */
.tl-item.tl-left {
    flex-direction: row-reverse;
}

.tl-item.tl-left .tl-year {
    width: calc(50% - 40px);
    text-align: left;
    padding-left: 40px;
}

.tl-item.tl-left .tl-card {
    width: calc(50% - 40px);
    margin-right: auto;
    margin-left: 0;
    position: relative;
    right: 40px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .tl-line {
        left: 20px;
    }

    .tl-dot {
        left: 20px;
        width: 14px;
        height: 14px;
        top: 4px;
    }

    .tl-item.tl-right,
    .tl-item.tl-left {
        flex-direction: column;
        padding-left: 50px;
    }

    .tl-item.tl-right .tl-year,
    .tl-item.tl-left .tl-year {
        width: auto;
        text-align: left;
        padding: 0;
        margin-bottom: 12px;
    }

    .tl-item.tl-right .tl-card,
    .tl-item.tl-left .tl-card {
        width: 100%;
        left: 0;
        right: 0;
        margin: 0;
    }

    .tl-year {
        font-size: 22px;
    }

    .tl-title {
        font-size: 18px;
    }

    .tl-desc {
        font-size: 14px;
    }
}
