/* Timeline Widget Main Container */
.timeline-widget {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #ffffff;
}

/* Timeline Header Section */
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    gap: 16px;
}

/* Timeline Title */
.timeline-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    color: #000;
}


.timeline-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 90px;
    height: 30px;
    background-image: url('https://stage.vswt.umc.utah.edu/wp-content/uploads/sites/60/2025/09/Slash.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;

}

/* Timeline Navigation Container */
.timeline-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Navigation Buttons */
.timeline-nav-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
}

/* Navigation Button Hover State */
.timeline-nav-btn:hover {
    background: #007cba;
    border-color: #007cba;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Navigation Button Disabled State */
.timeline-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Timeline Navigation Container */
.timeline-nav-container {
    position: relative;
    margin-bottom: 80px;
    padding: 20px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Hide Webkit Scrollbars */
.timeline-nav-container::-webkit-scrollbar {
    display: none;
}

/* Timeline Years Container */
.timeline-years {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    min-width: 100%;
    gap: 0;
    padding: 0;
}

/* Timeline Track (Background Line) */
.timeline-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    background: #707271;
    border-radius: 2px;
    transform: translateY(-50%);
    z-index: 1;
}

/* Timeline Progress Indicator */
.timeline-progress {
    height: 100%;
    background: #007cba;
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Individual Year Item */
.timeline-year {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 8px;
    user-select: none;
    position: relative;
    z-index: 2;
}

/* Year Item Hover Effect */
.timeline-year:hover {
    transform: translateY(-3px);
}

/* Year Item Active Press State */
.timeline-year:active {
    transform: translateY(-1px);
}

/* Year Text Styling */
.year-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: #707271;
}

/* Active Year Text Styling */
.timeline-year.active .year-text {
    font-weight: 700;
    font-size: 1.8rem;
    color: #007cba;
}

/* Year Dot Indicator */
.year-dot {
    width: 12px;
    height: 12px;
    border: 2px solid #707271;
    border-radius: 50%;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Active Year Dot Styling */
.timeline-year.active .year-dot {
    background: #007cba;
    border-color: #007cba;
    transform: scale(1.5);
    width: 16px;
    height: 16px;
}

/* Timeline Content Container */
.timeline-content {
    position: relative;
    min-height: 150px;
}

/* Individual Timeline Item */
.timeline-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active Timeline Item */
.timeline-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: fadeInUp 0.5s ease-out;
}

/* Timeline Item Content */
.timeline-item-content {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 800px;
    color: #333333;
}

/* Timeline Item Headings */
.timeline-item-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: inherit;
}

/* Timeline Item Paragraphs */
.timeline-item-content p {
    margin-bottom: 20px;
}

/* Timeline Item Lists */
.timeline-item-content ul,
.timeline-item-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

/* Timeline Item List Items */
.timeline-item-content li {
    margin-bottom: 10px;
}

/* Tablet Responsive Styles */
@media (max-width: 1024px) {
    .timeline-widget {
        padding: 40px 30px;
    }

    .timeline-title {
        font-size: 2.5rem;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .timeline-widget {
        padding: 30px 20px;
    }

    .timeline-header {
        margin-bottom: 40px;
    }

    .timeline-years {
        justify-content: flex-start;
        gap: 40px;
        padding: 0 20px;
        min-width: max-content;
    }

    .year-text {
        font-size: 1.3rem;
    }

    .timeline-year.active .year-text {
        font-size: 1.5rem;
    }

    .timeline-content {
        min-height: 75px!important;
    }

    .timeline-item-content {
        font-size: 1rem;
    }

    .timeline-item-content h3 {
        font-size: 1.5rem;
    }
}

/* Small Mobile Responsive Styles */
@media (max-width: 480px) {
    .timeline-widget {
        padding: 20px 15px;
    }

    .timeline-title {
        font-size: 2rem;
    }

    .timeline-nav-btn {
        width: 42px;
        height: 42px;
    }

    .timeline-item-content h3 {
        font-size: 1.3rem;
    }

    .timeline-item-content {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    .timeline-title::after {
        bottom: -10px!important;
        width: 75px!important;
    }
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus Styles for Accessibility */
.timeline-year:focus {
    outline: 2px solid #007cba;
    outline-offset: 4px;
}

.timeline-nav-btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Loading State */
.timeline-widget.loading .timeline-item {
    opacity: 0.5;
    pointer-events: none;
}

/* No Items State */
.timeline-no-items {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-size: 1.1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}