table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

th {
    text-align: left;
    padding: 10px;
    color: #555;
    font-weight: normal;
    border-bottom: 1px solid #eee;
}

td {
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.section-header {
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    padding: 8px 15px;
}

.cardiac-header {
    background-color: #e98a94;
}

.cns-header {
    background-color: #7ab3e0;
}

.program-tag {
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

/* Progress Bar Styling */
.pipeline-container {
    display: flex;
    gap: 5px;
    align-items: center;
}

.stage {
    height: 20px;
    background-color: #fceef0;
    /* Default light fill */
    flex-grow: 1;
    position: relative;
}

.cns-stage {
    background-color: #e6f0f8;
}

.filled {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
}

/* Specific Colors from Image */
.lx2006 {
    background-color: #c4265a;
}

.lx2020 {
    background-color: #9b4d9d;
}

.lx2021 {
    background-color: #d197c4;
}

.lx2022 {
    background-color: #f1989e;
}

.lx1001 {
    background-color: #1d4e96;
}

.lx1021 {
    background-color: #72addf;
}

.lx1020 {
    background-color: #6a89b9;
}

.timeline-item {
    --timeline-delay: 0ms;
    opacity: 0;
    transform: translateY(24px);
}

.timeline-item:nth-child(1) {
    --timeline-delay: 240ms;
}

.timeline-item:nth-child(2) {
    --timeline-delay: 360ms;
}

.timeline-item:nth-child(3) {
    --timeline-delay: 480ms;
}

.timeline-card {
    opacity: 0;
    transform: translateX(16px);
}

.timeline-dot {
    opacity: 0;
    transform: scale(0.6);
}

#timeline.is-visible .timeline-item {
    animation: timelineItem 700ms ease forwards;
    animation-delay: var(--timeline-delay);
}

#timeline.is-visible .timeline-card {
    animation: timelineCard 700ms ease forwards;
    animation-delay: calc(var(--timeline-delay) + 120ms);
}

#timeline.is-visible .timeline-dot {
    animation: timelineDot 600ms ease forwards;
    animation-delay: calc(var(--timeline-delay) + 80ms);
}

.pipeline-card {
    --pipeline-delay: 0ms;
    opacity: 0;
    transform: translateY(18px);
}

.pipeline-card:nth-child(1) {
    --pipeline-delay: 240ms;
}

.pipeline-card:nth-child(2) {
    --pipeline-delay: 360ms;
}

.pipeline-card:nth-child(3) {
    --pipeline-delay: 480ms;
}

#pipeline.is-visible .pipeline-card {
    animation: timelineItem 700ms ease forwards;
    animation-delay: var(--pipeline-delay);
}

.hero-section {
    animation: heroBackgroundPan 22s ease-in-out infinite;
}

@keyframes timelineItem {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroBackgroundPan {
    0% {
        background-position: 50% 50%;
    }

    50% {
        background-position: 58% 42%;
    }

    100% {
        background-position: 50% 50%;
    }
}

@keyframes timelineCard {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes timelineDot {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.timeline-background {
    background-image: url('../images/timeline_1.png');
}

@media (prefers-reduced-motion: reduce) {

    .timeline-item,
    .timeline-card,
    .timeline-dot,
    .pipeline-card,
    .hero-section {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
