/* assets/css/about-timeline.css */

.section-timeline {
    padding: 120px 0;
    background: #F8FAFC;
    position: relative;
    overflow: hidden;
}

.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 60px 0;
}

/* The Line - Gradient Gradient */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0) 0%, rgba(37, 99, 235, 0.3) 15%, rgba(37, 99, 235, 0.3) 85%, rgba(37, 99, 235, 0) 100%);
    transform: translateX(-50%);
}

/* Node (Dot) */
.timeline-marker {
    position: absolute;
    top: 28px;
    right: -9px;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border: 3px solid #1668B2;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, filter 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    background: #1668B2;
    box-shadow: 0 0 0 6px rgba(22, 104, 178, 0.15);
    transform: scale(1.1);
}

.timeline-item:nth-child(even) .timeline-marker {
    right: auto;
    left: -9px;
}

/* Items */
.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 60px;
    position: relative;
    margin-bottom: 80px;
    width: 50%;
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 60px;
    margin-left: 50%;
}

/* Card Content */
.timeline-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    text-align: right;
    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
    width: 100%;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(22, 104, 178, 0.08);
    border-color: rgba(22, 104, 178, 0.2);
}

.timeline-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.timeline-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #1668B2;
    margin-bottom: 12px;
}

.timeline-heading {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
}

/* Year Badge */
.timeline-year {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    color: #1668B2;
    font-weight: 800;
    font-size: 2.5rem;
    /* Larger Year */
    line-height: 1;
    margin-bottom: 12px;
    opacity: 0.3;
    /* Faded effect */
    transition: 0.3s;
}

.timeline-item:hover .timeline-year {
    opacity: 1;
    transform: translateY(-2px);
}

/* Title */
.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 12px;
}

/* Desc */
.timeline-desc {
    font-size: 1.1rem;
    color: #64748B;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        margin-left: 0 !important;
        padding-right: 0;
        padding-left: 60px;
        justify-content: flex-start;
        margin-bottom: 50px;
    }

    .timeline-item:nth-child(even) {
        padding-left: 60px;
    }

    .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        left: 11px;
        right: auto;
        top: 8px;
        /* Align with top text */
    }

    .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }

    .timeline-year {
        font-size: 1.8rem;
    }
}