.timeline-section {
    margin-top: 40px;
}

.timeline {
    display: grid;
    grid-template-columns: 72px 1fr;
    column-gap: 40px;
    row-gap: 72px;
    align-items: start;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 33px;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #076FC6;
    z-index: 0;
}

.timeline-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-connector {
    width: 6px;
    background: #076FC6;
    position: relative;
    z-index: 1;
}

.timeline-connector--top {
    height: 40px;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
}

.timeline-connector--bottom {
    flex: 1 1 0;
    border-bottom-right-radius: 2px;
    border-bottom-left-radius: 2px;
    min-height: 40px;
}

.timeline-badge {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    background: #fff;
    border-radius: 10px;
    outline: 6px #076FC6 solid;
    outline-offset: -6px;
    position: relative;
    z-index: 1;
}

.timeline-badge__day {
    color: #434A54;
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
}

.timeline-badge__month {
    color: #434A54;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.timeline-card {
    width: 100%;
    max-width: 600px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
    border-radius: 12px;
    outline: 1px #D5D7DA solid;
    outline-offset: -1px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.timeline-card__header {
    display: flex;
    gap: 16px;
    padding: 24px;
    align-items: center;
}

.timeline-card__badge {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.timeline-card__badge svg {
    display: block;
}

.timeline-card__badge--success {
    background: #DCFAE6;
}

.timeline-card__badge--error {
    background: #FEE4E2;
}

.timeline-card__badge--warning {
    background: #FEF0C7;
}

.timeline-card__title {
    font-size: 18px;
    font-weight: 600;
    color: #181D27;
    line-height: 28px;
}

.timeline-card__subtitle {
    font-size: 14px;
    color: #414651;
    line-height: 20px;
}

.timeline-card__status {
    padding: 4px 6px;
    border-radius: 6px;
    display: inline-flex;
}

.timeline-card__status--success {
    background: #DCFAE6;
    color: #079455;
    font-weight: 600;
}

.timeline-card__status--error {
    background: #FEE4E2;
    color: #D92D20;
    font-weight: 600;
}

.timeline-card__status--warning {
    background: #FEF0C7;
    color: #DC6803;
    font-weight: 600;
}

.timeline-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 24px;
}

.timeline-card__categories {
    display: flex;
    gap: 14px;
    font-size: 16px;
    line-height: 24px;
    flex-wrap: wrap;
}

.timeline-card__category {
    font-weight: 400;
}

.timeline-card__category--green {
    color: #4CA30D;
}

.timeline-card__category--blue {
    color: #2E90FA;
}

.timeline-card__footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 24px 24px;
}

.timeline-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 14px;
    background: #076FC6;
    border-radius: 8px;
    outline: 2px #fff solid;
    outline-offset: -2px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

@media (max-width: 768px) {
    .timeline {
        column-gap: 24px;
        row-gap: 32px;
        grid-template-columns: 56px 1fr;
    }

    .timeline::before {
        left: 25px;
        width: 5px;
    }

    .timeline-connector {
        width: 4px;
    }

    .timeline-connector--top {
        height: 24px;
    }

    .timeline-connector--bottom {
        min-height: 24px;
    }

    .timeline-badge {
        width: 56px;
        height: 56px;
        outline-width: 4px;
    }

    .timeline-badge__day {
        font-size: 16px;
        line-height: 24px;
    }

    .timeline-badge__month {
        font-size: 12px;
        line-height: 16px;
    }

    .timeline-card {
        max-width: 100%;
        gap: 16px;
    }

    .timeline-card__header {
        padding: 16px;
        gap: 12px;
    }

    .timeline-card__body {
        padding: 0 16px;
    }

    .timeline-card__footer {
        padding: 0 16px 16px;
    }

    .timeline-card__badge {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .timeline-section {
        margin-top: 24px;
    }

    .timeline {
        grid-template-columns: 48px 1fr;
        column-gap: 16px;
        row-gap: 24px;
    }

    .timeline::before {
        left: 22px;
        width: 4px;
    }

    .timeline-connector {
        width: 3px;
    }

    .timeline-connector--top {
        height: 20px;
    }

    .timeline-connector--bottom {
        min-height: 20px;
    }

    .timeline-badge {
        width: 48px;
        height: 48px;
        outline-width: 3px;
    }

    .timeline-badge__day {
        font-size: 14px;
        line-height: 20px;
    }

    .timeline-badge__month {
        font-size: 11px;
        line-height: 14px;
    }

    .timeline-card {
        max-width: 100%;
        gap: 12px;
    }

    .timeline-card__header {
        padding: 12px;
        gap: 10px;
    }

    .timeline-card__title {
        font-size: 16px;
        line-height: 24px;
    }

    .timeline-card__subtitle {
        font-size: 13px;
        line-height: 18px;
    }

    .timeline-card__categories {
        font-size: 14px;
        line-height: 20px;
    }

    .timeline-card__body {
        padding: 0 12px;
    }

    .timeline-card__footer {
        padding: 0 12px 12px;
    }

    .timeline-card__badge {
        width: 36px;
        height: 36px;
    }
}

@media (min-width: 1024px) {
    .timeline {
        column-gap: 48px;
        row-gap: 80px;
    }

    .timeline-card {
        max-width: 640px;
    }
}

@media (min-width: 1280px) {
    .timeline {
        column-gap: 56px;
        row-gap: 96px;
    }

    .timeline-card {
        max-width: 720px;
    }
}

/* ============================================
   Simple Vertical Timeline (Centered)
   ============================================ */

.timeline-simple {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 40px;
    position: relative;
}

.timeline-simple::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 104px;
    bottom: 64px;
    width: 6px;
    background: #076FC6;
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-simple__header {
    background: #076FC6;
    color: #fff;
    padding: 20px 32px;
    border-radius: 12px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.timeline-simple__header::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -40px;
    width: 6px;
    height: 40px;
    background: #076FC6;
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-simple__item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.timeline-simple__item:first-of-type {
    margin-top: 40px;
}

.timeline-simple__item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-simple__item:nth-child(odd) .timeline-simple__content {
    text-align: right;
}

.timeline-simple__item:nth-child(even) .timeline-simple__content {
    text-align: left;
}

.timeline-simple__content {
    flex: 1;
    max-width: calc(50% - 44px);
}

.timeline-simple__card {
    background: #fff;
    border: 1px solid #D5D7DA;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.timeline-simple__card-text {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #181D27;
    line-height: 24px;
}

.timeline-simple__check {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #076FC6;
}

.timeline-simple__node {
    width: 48px;
    height: 48px;
    background: #fff;
    border: 6px solid #076FC6;
    border-radius: 10px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .timeline-simple {
        padding: 0 16px 32px;
        max-width: 100%;
    }

    .timeline-simple::before {
        left: auto;
        right: 36px;
        width: 4px;
        top: 84px;
        bottom: 56px;
    }

    .timeline-simple__header {
        font-size: 18px;
        padding: 16px 20px;
        border-radius: 8px;
    }

    .timeline-simple__header::after {
        left: auto;
        right: 20px;
        bottom: -32px;
        width: 4px;
        height: 32px;
    }

    .timeline-simple__item {
        flex-direction: row-reverse !important;
        margin-bottom: 24px;
        gap: 16px;
    }

    .timeline-simple__item:first-of-type {
        margin-top: 32px;
    }

    .timeline-simple__item:nth-child(odd) .timeline-simple__content,
    .timeline-simple__item:nth-child(even) .timeline-simple__content {
        text-align: left;
        order: 1;
    }

    .timeline-simple__content {
        flex: 1;
        max-width: none;
    }

    .timeline-simple__node {
        width: 48px;
        height: 48px;
        border-width: 4px;
        border-radius: 8px;
        order: 2;
        flex-shrink: 0;
    }

    .timeline-simple__card {
        padding: 16px 20px;
        gap: 12px;
    }

    .timeline-simple__card-text {
        font-size: 15px;
        line-height: 22px;
    }

    .timeline-simple__check {
        width: 22px;
        height: 22px;
    }
}
