/* ==========================================================================
 |    PARTNER - TIMELINE & STORYTELLING SECTION
 |    ========================================================================== */

/* Partnership Journey Timeline */
.partnership-journey {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.partnership-journey::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(20, 83, 154, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(13, 58, 107, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Timeline Container */
.partnership-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Timeline Line with Animation */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #14539a, #0d3a6b);
    transform: translateX(-50%);
    border-radius: 2px;
    opacity: 0;
    animation: timeline-line-grow 2s ease 0.5s forwards;
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #14539a;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px white, 0 0 20px rgba(20, 83, 154, 0.3);
    animation: pulse 2s infinite;
}

.timeline-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #0d3a6b;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px white, 0 0 20px rgba(13, 58, 107, 0.3);
}

/* Timeline Items */
.timeline-item {
    position: relative;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(50px);
    animation: timeline-item-fade-in 0.8s ease forwards;
}

.timeline-item:nth-child(even) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(odd) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.6s;
}

.timeline-item:nth-child(5) {
    animation-delay: 0.8s;
}

/* Timeline Content */
.timeline-content {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 20px 60px rgba(20, 83, 154, 0.1);
    border: 2px solid rgba(20, 83, 154, 0.1);
    position: relative;
    margin: 0 60px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(20, 83, 154, 0.08), transparent);
    transition: left 0.8s ease;
}

.timeline-content:hover::before {
    left: 100%;
}

.timeline-content:hover {
    transform: translateY(-8px);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 25px 80px rgba(20, 83, 154, 0.2);
    border-color: rgba(20, 83, 154, 0.3);
}

/* Timeline Icon */
.timeline-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #14539a, #0d3a6b);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(20, 83, 154, 0.3);
}

.timeline-content:hover .timeline-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(20, 83, 154, 0.4);
}

.timeline-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1e293b;
    background: linear-gradient(135deg, #1e293b 0%, #14539a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-content p {
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    font-size: 1.1rem;
}

/* Timeline Date */
.timeline-date {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #14539a, #0d3a6b);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(20, 83, 154, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

.timeline-item:nth-child(even) .timeline-date {
    right: auto;
    left: -40px;
}

.timeline-date:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 12px 35px rgba(20, 83, 154, 0.4);
}

/* Animations */
@keyframes timeline-line-grow {
    from {
        opacity: 0;
        transform: translateX(-50%) scaleY(0);
        transform-origin: top;
    }
    to {
        opacity: 1;
        transform: translateX(-50%) scaleY(1);
    }
}

@keyframes timeline-item-fade-in {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .partnership-timeline {
        padding: 20px 0;
    }

    .timeline-line {
        left: 30px;
    }

    .timeline-content {
        margin: 0 0 0 60px;
        padding: 24px;
    }

    .timeline-date {
        position: static;
        display: inline-block;
        margin-bottom: 16px;
        transform: none;
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .timeline-item:nth-child(even) .timeline-date {
        left: auto;
        right: auto;
    }

    .timeline-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.5rem;
    }

    .timeline-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .partnership-journey {
        padding: 60px 0;
    }

    .timeline-content {
        margin: 0 0 0 40px;
        padding: 20px;
    }

    .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 16px;
    }

    .timeline-content h3 {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }

    .timeline-content p {
        font-size: 0.95rem;
    }
}