/* =========================
   Section container
========================= */
.previous-symposia-section {
    width: 100%;
    padding: 3rem 2rem 4rem;
    box-sizing: border-box;
}

/* WebKit browsers */
.timeline-wrapper::-webkit-scrollbar {
    width: 10px;
}

.timeline-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.timeline-wrapper::-webkit-scrollbar-thumb {
    background: rgba(225, 235, 200, 0.6);
    border-radius: 10px;
}

.timeline-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.85);
}


/* =========================
   Intro text
========================= */
.previous-symposia-intro {
    max-width: 900px;
    margin: 0 auto 0rem auto;
    padding-right: 0.25rem;
    padding-left: 0.25rem;
    text-align: justify;
    text-justify: inter-word;
    color: #6c757d;
    line-height: 1.6;
    /*background: rgba(255, 255, 255, 0.6);
    border-radius: 0.75rem;*/
}

/* =========================
   Wrapper (scroll area)
========================= */
.timeline-wrapper {
    position: relative;
    overflow-x: auto;
    overflow-y: visible; /* allow items to extend vertically */
    padding: 6rem 0;     /* reserve vertical space for top/bottom items */
    min-height: 520px;   /* prevent clipping of logos and years */
}


/* =========================
   Timeline items (HORIZONTAL)
========================= */
.timeline-items {
    position: relative;
    display: flex;
    gap: 8rem;
    padding: 4rem 6rem;
    min-width: max-content;
}

/* =========================
   Horizontal line (FULL width of items)
========================= */
.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    width: 100%;            /* fallback */
    background: #dee2e6;
    transform: translateY(-50%);
    z-index: 1;
}
/* Make the timeline line span the full scrollable width */
.timeline-items {
    position: relative;
}

.timeline-items::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    width: 100%;
    background: #dee2e6;
    transform: translateY(-50%);
    z-index: 1;
}



/* =========================
   Item base
========================= */
.timeline-item {
    position: relative;
    /*width: 200px;*/
    text-align: center;
    z-index: 2;
}

/* =========================
   Alternating (DESKTOP)
========================= */
.timeline-top {
    transform: translateY(-140px);
}

.timeline-bottom {
    transform: translateY(140px);
}


/* =========================
   Year
========================= */
.timeline-year {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #495057;
}


/* =========================
   Logo circle
========================= */
.timeline-logo-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform .2s ease, box-shadow .2s ease;
}

.timeline-logo-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.timeline-logo {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

/* =========================
   MOBILE (VERTICAL)
========================= */
@media (max-width: 768px) {

    .timeline-line {
        display: none;
    }

    .previous-symposia-intro {
        padding: 0.5rem 1rem;
        margin-bottom: 3.5rem;
        text-align: justify;
    }

    .timeline-wrapper {
        overflow-x: hidden;
        min-height: 100%; /* Ensure vertical line has a reference height*/
        padding-top: 2px;
        padding-bottom: 2px;
    }

    .timeline-items {
        flex-direction: column;
        align-items: center;
        /*padding-right: 50px;*/
    }


    .timeline-item {
        position: relative;
    }


    .timeline-items::before {
    width: 4px;              /* Vertical line thickness */
    height: 100%;            /* Full column height */
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    }

    /* Alternating LEFT / RIGHT */
    .timeline-top {
        transform: translateX(-50%);
        text-align: right;
    }

    .timeline-bottom {
        transform: translateX(50%);
        text-align: left;
    }

    .timeline-logo-wrapper {
        width: 140px;
        height: 140px;
    }

    .timeline-top .timeline-year {
        text-align: left; /* Align year with right-positioned item */
        transform: translateX(50%);
    }

    .timeline-bottom .timeline-year {
        text-align: right; /* Align year with left-positioned item */
        transform: translateX(-50%);
    }


}
