/* timelineX – CSS chính */

.timelinex {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: transparent;
    padding: 20px 0;
}

.timeline-x-heading {
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    font-weight: 700;
}

/* Container */
.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline {
    position: relative;
}

/* Line */
.timeline-line {
    position: absolute;
    left: calc(100px + 1.3em);
    top: 0;
    width: 2px;
    height: 100%;
    background: #ccc;
    transform: translateX(-50%);
}

.timeline-line-inner {
    position: absolute;
    left: calc(100px + 1.3em);
    top: 0;
    width: 2px;
    background: #f5a623;
    height: 0;
    transition: height 0.3s ease;
    z-index: 5;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
}

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

/* Year */
.timeline-year {
    width: 100px;
    text-align: right;
    padding-right: 20px;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 24px;
    color: rgb(6, 29, 47);
    text-decoration: underline;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

/* Marker */
.timeline-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6em;
    min-width: 2.6em;
    line-height: 2.6em;
    background-color: #eee;
    border-radius: 999px;
    position: relative;
    z-index: 10;
    transition: all 0.2s ease-in-out;
    flex-shrink: 0;
    flex-grow: 0;
    margin-right: 10px;
}

.timeline-icon-new {
    font-size: 16px;
    line-height: 1em;
    display: inline-block;
    vertical-align: middle;
    color: #666;
    transition: color 0.2s ease-in-out;
}

.timeline-icon-new svg {
    width: 1em;
    height: 1em;
    display: block;
    fill: currentColor;
}

/* Content */
.timeline-content {
    margin-left: 14px;
    flex-grow: 1;
    background: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: background 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.timeline-title {
    font-family: 'Kufam', Arial, sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 40px;
    line-height: 48px;
    color: rgb(250, 180, 23);
    margin-bottom: 0;
}

.timeline-text {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 24px;
    color: rgb(58, 58, 58);
    margin-top: 10px;
}

.timeline-text p {
    margin-bottom: 1em;
}

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

/* States */
.timeline-item.active .timeline-marker,
.timeline-item.passed .timeline-marker {
    background: #f5a623;
}

.timeline-item.active .timeline-icon-new,
.timeline-item.passed .timeline-icon-new {
    color: #fff;
}

.timeline-item.active .timeline-content {
    background-color: #fff5e6;
    border-color: #f5a623;
}

/* End marker */
.timeline-end {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.timeline-end .timeline-year {
    width: 100px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .timeline-line {
        left: calc(60px + 1.1em);
    }

    .timeline-line-inner {
        left: calc(60px + 1.1em);
    }

    .timeline-year {
        width: 60px;
        font-size: 18px;
        line-height: 18px;
    }

    .timeline-marker {
        min-height: 2.2em;
        min-width: 2.2em;
    }

    .timeline-content {
        padding: 15px;
    }

    .timeline-title {
        font-size: 26px;
        line-height: 32px;
    }

    .timeline-end .timeline-year {
        width: 60px;
    }
}
