﻿.description-container {
    margin: 0 7px;
}

.year-description {
    margin-bottom: 10px;
}

.year-title {
    font-family: Helvetica-Condensed-Bold;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.year-description p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 0;
}

.instruction {
    margin: 20px 0;
    font-style: italic;
    color: #555;
}

.timeline-container {
    position: relative;
    margin: 0 0 36px 0 !important;
    overflow-x: auto;
    border-bottom: 1px solid #D6D6D6;
    padding-bottom: 56px !important;
}

.timeline {
    display: flex;
    min-width: 100%;
    position: relative;
    margin: 40px 0; /* Space for markers above and below */
    padding: 0 16px 0 0
}

.timeline-item-container {
    flex: 1;
    position: relative;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 15px 5px;
    transition: background-color 0.3s;
    min-width: 84px;
    z-index: 1;
    box-sizing: content-box;
    max-width: 92px;
}

.timeline-item {
    font-family: 'Helvetica';
    flex: 1;
    position: relative;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 6px 6px;
    background-color: #29a9e0;
    clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%, 15% 50%);
    margin-right: -20px;
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 90px;
    z-index: 1;
}
.answer-text li {
    padding: 0;
    margin: 0;
    line-height: 21px !important;
    display: block;
    font-size: 15px !important;
    font-family: "HelveticaCE", sans-serif !important;
    font-weight: 500 !important;
}



    .timeline-item.active {
        background-color: #333;
    }

    .timeline-item:hover {
        background-color: #1d8ab8;
    }

    .timeline-item.active:hover {
        background-color: #333;
    }

.marker-container {
    display: none;
}

    .marker-container.has-data {
        position: absolute;
        left: calc(50% + 8px);
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 2;
        cursor: pointer;
    }
/* Alternating top and bottom markers */
.timeline-item-container:nth-child(even) .marker-container {
    top: -22px;
}

.timeline-item-container:nth-child(odd) .marker-container {
    bottom: -22px;
    flex-direction: column-reverse;
}

.timeline-item-container:nth-child(odd) .marker-line {
    margin-top: 0;
    margin-bottom: 0;
}

.marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: white;
    border: 3px solid #D6D6D6;
    position: relative;
}

.marker-line {
    width: 2px;
    height: 9px;
    background-color: transparent;
    margin-top: 0;
    display: none; /* Hidden by default */
}

.active + .marker-line {
    background-color: #333333;
}

.marker.has-data::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #D6D6D6;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Fix this selector to properly show the line for items with data */
.marker-container.has-data .marker-line {
    display: block !important;
}

.marker.active {
    border-color: #333;
    background-color: white;
}

    .marker.active.has-data::after {
        background-color: #333;
    }

/* Show line only for items with description */
.marker-container.has-data .marker-line {
    display: block;
}
@media (max-width: 768px) {
    .timeline-container {
        margin: 0 0 30px 0 !important;
        padding-bottom: 30px !important;
    }    
}