/* .timeline-slider {
    position: relative;
    overflow-x: auto;
    white-space: nowrap;
    padding: 40px 0;
    scrollbar-width: thin;
} */

.timeline-slider {
    position: relative;
    overflow-x: auto;
    white-space: nowrap;
    padding: 40px 0;
    scrollbar-width: thin;        /* Firefox - thin scrollbar */
    scrollbar-color: #ccc #f0f0f0; /* Firefox - thumb & track color */
}

/* Chrome, Safari, Edge */
.timeline-slider::-webkit-scrollbar {
    height: 8px;                  /* scrollbar thickness */
}

.timeline-slider::-webkit-scrollbar-track {
    background: #f0f0f0;          /* track color */
    border-radius: 10px;
}

.timeline-slider::-webkit-scrollbar-thumb {
    background-color: #bbb;       /* scrollbar handle */
    border-radius: 10px;
}

/* ✅ Hide scrollbar arrows (start & end buttons) */
.timeline-slider::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.timeline-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.timeline-item {
    flex: 0 0 auto;
    width: 300px;
    text-align: center;
    margin: 0 40px;
    position: relative;
    overflow: hidden;          /* ✅ prevent content overflow */
    word-wrap: break-word;     /* ✅ wrap long text */
    word-break: break-word;    /* ✅ handle long words/URLs */
    white-space: normal;       /* ✅ allow text wrapping inside */
    box-sizing: border-box;
}

.timeline-item img {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.timeline-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
    word-break: break-word;    /* ✅ ensures heading text wraps too */
}

.timeline-item p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
    word-break: break-word;
}


.timeline-item hr {
    position: relative;
    border: none;
    height: 3px;
    background: #222 !important;
    margin: 20px auto !important;
    border-radius: 2px;
    width: 80%;
}

.timeline-item hr::before,
.timeline-item hr::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;              /* circle size */
    height: 12px;
    background: #222;         /* ✅ same color as hr line */
    border-radius: 50%;
}

.timeline-item hr::before {
    left: -6px;               /* half of circle size (positions left circle) */
}

.timeline-item hr::after {
    right: -6px;              /* half of circle size (positions right circle) */
}
