/* Timeline Container */
.timeline {
    position: relative;
    max-width: 100%;
    /* Respect parent container width (1350px) */
    /* Maximize width to force "Wide Rectangle" shape */
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

/* Central Line */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(37, 99, 235, 0.3);
    top: 0;
    bottom: 0;
    left: 50%;
    /* Center line */
    margin-left: -1px;
}

/* Timeline Item Container */
.timeline-item {
    padding: 30px 40px;
    /* Reduced vertical padding for "wide" look */
    position: relative;
    background-color: inherit;
    width: 50%;
    /* Half width */
    box-sizing: border-box;
}

/* Left/Right Positioning */
.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

/* The Dot */
.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    /* Default for odd (left side) */
    left: auto;
    background: var(--accent);
    border: 4px solid var(--bg);
    border-radius: 50%;
    top: 45px;
    /* Aligned with new 30px padding + 15px offset */
    z-index: 10;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
    /* For even (right side) */
    right: auto;
}

/* Content Box (Card) overrides */
.timeline-content {
    padding: 20px 25px;
    position: relative;
    border-radius: 12px;
    transition: transform 0.3s ease;
    text-align: left !important;
    /* Always left aligned text */
}

.timeline-content .timeline-date {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Media Queries */
@media screen and (max-width: 768px) {

    /* Line moves to left */
    .timeline::after {
        left: 31px;
    }

    /* Full width items */
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    /* Reset even/odd positioning */
    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .timeline-item:nth-child(odd) {
        left: 0%;
    }

    /* Fix dots position */
    .timeline-dot {
        left: 23px !important;
        /* Force left position */
        right: auto !important;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: 23px !important;
    }
}