/* ==============================================
   ABOUT JOURNEY ZIGZAG TIMELINE
   ============================================== */

.about-journey {
    padding: var(--section-padding);
    background: var(--color-surface);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: var(--space-10) auto 0;
}

/* SVG overlay for drawing the connecting zigzag line */
.timeline-zigzag-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.zigzag-path {
    stroke: var(--color-primary);
    stroke-width: 2.5px;
    opacity: 0.6;
}

/* Timeline Rows Layout */
.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + var(--space-8));
    margin-bottom: var(--space-10);
    position: relative;
    z-index: 1;
}

.timeline-item.timeline-right {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + var(--space-8));
}

.timeline-content {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    max-width: 380px;
    width: 100%;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.timeline-year {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-extrabold);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-3);
    letter-spacing: 0.04em;
}

.timeline-content h3 {
    font-size: var(--font-size-base);
    color: var(--color-navy);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-2);
}

.timeline-content p {
    font-size: var(--font-size-sm);
    color: var(--color-muted);
    line-height: var(--line-height-relaxed);
    margin: 0;
}

.timeline-dot {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: var(--color-primary);
    border-radius: 50%;
    border: 3px solid var(--color-white);
    box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.25);
    z-index: 2;
}

/* ── Mobile Responsive Fallback (Straight Line on Mobile) ── */
@media (max-width: 760px) {
    .timeline-zigzag-svg { display: none; }

    .timeline::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 20px;
        width: 2px;
        background: var(--color-primary);
        opacity: 0.3;
    }

    .timeline-item,
    .timeline-item.timeline-right {
        justify-content: flex-start;
        padding-left: var(--space-12);
        padding-right: 0;
    }

    .timeline-dot { left: 20px; }
    .timeline-content { max-width: 100%; }
}