:root {
    --bg: #f5f7fa;
    --text: #1e1e1e;
    --muted: #6b7280;
}

/* Container */
.timeline-container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 20px;
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.timeline-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(var(--main-color));
    border-radius: 999px;
    background: #fff;
    color: rgba(var(--main-color));
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.timeline-back-btn:hover {
    background: rgba(var(--main-color));
    color: #fff;
}

.timeline-container h1 {
    margin: 0;
    font-size: 28px;
}

.timeline {
    position: relative;
}

.timeline a {
    text-decoration: underline;
}

.timeline a:hover {
    text-decoration: underline;
    text-decoration-style: dotted;
}

/* verticale lijn */
.timeline::before {
    content: "";
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(var(--main-color));
}

/* item */
.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

/* datum */
.timeline-date {
    position: absolute;
    left: 0;
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    top: -11px;
    font-size: 14px;
    color: var(--muted);
}

.timeline-date-label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
    margin-right: 10px;
}

.timeline-date-value {
    font-weight: 700;
    color: #111827;
    font-size: 1rem;
    margin-right: 10px;
}

.timeline-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.timeline-status-active {
    background: #ecfdf3;
    color: #166534;
}

.timeline-status-ended {
    background: #fef2f2;
    color: #b91c1c;
}

/* bolletje */
.timeline-item::before {
    content: "";
    position: absolute;
    left: 122px;
    top: 14px;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #fff;
    border: 4px solid rgba(var(--main-color));
    border-radius: 50%;
    z-index: 5;
}

/* content - 🔥 NU EXPLICIET GEZET */
.timeline-content {
    position: relative;
    margin-left: 160px;
    background: rgba(255, 255, 255, 0.95);

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);

    padding: 22px 24px;
    border-radius: 14px;
    transition: all 0.25s ease;
}

.timeline-content h3 {
    margin-top: 0;
    color: #111827;
    font-size: 1.4rem;
    line-height: 1.2;
}

.timeline-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
    margin-top: 18px;
    color: #4b5563;
    font-size: 0.94rem;
}

.timeline-meta-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
}

.timeline-meta-label {
    display: block;
    color: #374151;
    font-weight: 600;
    margin-bottom: 6px;
}


/* connector */
.timeline-content::before {
    content: "";
    position: absolute;
    left: -40px;
    width: 40px;
    top: 21px;
    height: 2px;
    background: rgba(var(--main-color));
}

/* fix latest */
.timeline-item.latest .timeline-content {
    box-shadow:
        inset 6px 0 0 rgba(var(--main-color)),  /* ✅ paarse rand */
        0 12px 30px rgba(0, 0, 0, 0.08);       /* ✅ shadow */
}



/* ✅ Responsive */
@media (max-width: 900px) {
    .timeline {
        padding-left: 140px;
    }

    .timeline::before,
    .timeline-item::before {
        left: 70px;
    }

    .timeline-content {
        margin-left: 110px;
    }

    .timeline-content::before {
        left: -50px;
        width: 50px;
    }

    .timeline-date {
        left: -140px;
        width: 100px;
    }
}

@media (max-width: 650px) {
    .timeline {
        padding-left: 40px;
    }

    .timeline::before,
    .timeline-item::before {
        left: 10px;
    }

    .timeline-content {
        margin-left: 0;
    }

    .timeline-content::before {
        display: none;
    }

    .timeline-date {
        position: relative;
        left: 0;
        width: auto;
        align-items: flex-start;
        text-align: left;
        margin-bottom: 8px;
    }
}