/* Timeline SPMB Styles - Modern Design */
.timeline {
    position: relative;
    padding-left: 80px;
    padding-top: 10px;
}

/* Garis vertikal di kiri */
.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #0d6efd 0%, #198754 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Icon bulat di kiri */
.timeline-icon {
    position: absolute;
    left: -59px;
    top: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 3px solid white;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Garis lengkung dari icon ke content */
.timeline-icon::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    width: 30px;
    height: 2px;
    background: currentColor;
    opacity: 0.3;
    border-radius: 2px;
    transform: translateY(-50%);
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Content box dengan border lengkung */
.timeline-content {
    background: white;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    flex: 1;
    position: relative;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

/* Garis lengkung dari kiri ke content */
.timeline-content::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 20px;
    width: 30px;
    height: 30px;
    border-left: 3px solid;
    border-bottom: 3px solid;
    border-color: inherit;
    border-bottom-left-radius: 20px;
    opacity: 0.3;
}

/* Warna border per item */
.timeline-item:nth-child(1) .timeline-content {
    border-left-color: #0d6efd;
}

.timeline-item:nth-child(1) .timeline-content::before {
    border-color: #0d6efd;
}

.timeline-item:nth-child(2) .timeline-content {
    border-left-color: #ffc107;
}

.timeline-item:nth-child(2) .timeline-content::before {
    border-color: #ffc107;
}

.timeline-item:nth-child(3) .timeline-content {
    border-left-color: #0dcaf0;
}

.timeline-item:nth-child(3) .timeline-content::before {
    border-color: #0dcaf0;
}

.timeline-item:nth-child(4) .timeline-content {
    border-left-color: #198754;
}

.timeline-item:nth-child(4) .timeline-content::before {
    border-color: #198754;
}

/* Hover effect pada content */
.timeline-item:hover .timeline-content {
    transform: translateX(8px) translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.timeline-item:hover .timeline-content::before {
    opacity: 0.6;
    border-width: 4px;
}

.timeline-content h5 {
    margin-bottom: 8px;
    font-size: 1.15rem;
    color: #2c3e50;
    font-weight: 700;
}

.timeline-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline {
        padding-left: 60px;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-icon {
        left: -45px;
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .timeline-icon::after {
        width: 20px;
    }
    
    .timeline-content {
        padding: 15px 18px;
    }
    
    .timeline-content::before {
        left: -20px;
        width: 20px;
        height: 20px;
    }
    
    .timeline-content h5 {
        font-size: 1rem;
    }
    
    .timeline-content p {
        font-size: 0.9rem;
    }
}
