/* Container styling */
.horizontal-timeline-container {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    font-family: 'Outfit', sans-serif;
}

/* Nav Track Base Wrapper */
.timeline-nav-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 45px;
    padding: 10px 0;
}

/* Custom Dotted Connector Asset */
.timeline-dotted-line {
    position: absolute;
    top: 50%;
    left: 15px;
    right: 15px;
    height: 0px;
    border-top: 3px dotted #ccc;
    transform: translateY(-50%);
    z-index: 1;
}

/* Rounded Pill Styling for Buttons */
.timeline-nav-pill {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    outline: none;
}

/* Dynamically color distinct pills via their specific data tags */
.timeline-nav-pill[data-year="2026"] { background-color: #D96432; }
.timeline-nav-pill[data-year="2025"] { background-color: #DCA10D; }
.timeline-nav-pill[data-year="2024"] { background-color: #1F701B; }
.timeline-nav-pill[data-year="2023"] { background-color: #8C471C; }
.timeline-nav-pill[data-year="2022"] { background-color: #126872; }
.timeline-nav-pill[data-year="2021"] { background-color: #0A4366; }

/* Inactive button resting state */
.timeline-nav-pill:not(.active) {
    opacity: 0.6;
    transform: scale(0.92);
}

.timeline-nav-pill.active {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* Dynamic Height Dotted Border Box Layout */
.timeline-details-display {
    border-radius: 14px;
    padding: 35px 40px;
    position: relative;
    background-color: transparent;
    border: 3px dotted var(--theme-color);
    /* Transition border color and transition height over 0.3s for smooth resizing */
    transition: border-color 0.4s ease, height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden; /* Keeps text within borders during resizing transitions */
}

/* Visibility Rules for Panel Selection */
.timeline-panel {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.timeline-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Milestone Custom Bullet Configuration */
.milestone-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.milestone-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 18px;
    font-size: 17px;
    line-height: 1.6;
    color: #333333;
    text-align: left;
}

.milestone-list li:last-child {
    margin-bottom: 0;
}

/* Colored custom bullet indicator matching layout */
.milestone-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 8px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: var(--theme-color);
    transition: background-color 0.4s ease;
}

/* Responsive Mobile Viewport rules for screens under 799px */
@media (max-width: 799px) {
    .timeline-nav-track {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0;
    }
    
    .timeline-dotted-line {
        top: 0;
        bottom: 0;
        left: 50%;
        width: 0px;
        height: 100%;
        border-top: none;
        border-left: 3px dotted #ccc;
        transform: translateX(-50%);
    }

    .timeline-nav-pill {
        width: 160px;
        text-align: center;
    }
    
    .timeline-details-display {
        padding: 25px 20px;
        margin-top: 20px;
    }
}