/* ==========================================================================
   PSG Timeline
   ========================================================================== */

.psg-timeline {
    position: relative;
    margin: 40px 0;
    padding: 20px 0;
}

/* Center vertical line */
.psg-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(
            to bottom,
            var(--secondary),
            rgba(0, 0, 0, 0.1)
    );
    transform: translateX(-50%);
    z-index: 1;
}

/* Timeline start marker */
.psg-timeline-start {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    background: #fff;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    z-index: 3;
}

/* Timeline item */
.psg-timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0;
    position: relative;
}

/* Content */
.psg-timeline-content {
    width: 45%;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
}

/* Image */
.psg-timeline-image {
    width: 45%;
}

.psg-timeline-image img {
    display: block;
    width: 100%;
    border-radius: 8px;
    height: auto;

}

/* Number marker */
.psg-timeline-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 38px;
    background: #fff;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 0 0 4px #fff;
    z-index: 2;
}

/* Alternating layout */
.psg-left .psg-timeline-content {
    order: 1;
}

.psg-left .psg-timeline-image {
    order: 2;
}

.psg-right .psg-timeline-content {
    order: 2;
}

.psg-right .psg-timeline-image {
    order: 1;
}

/* Responsive */
@media (max-width: 768px) {

    .psg-timeline-item {
        flex-direction: column;
    }

    .psg-timeline-content,
    .psg-timeline-image {
        width: 100%;
    }

    .psg-timeline::before {
        left: 20px;
    }

    .psg-timeline-number {
        left: 20px;
        transform: none;
    }
}