.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 12px;
    background: rgba(0, 255, 255, 0.3);
    border: 2px solid rgba(0, 255, 255, 0.7);
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0,255,255,0.8),
                0 0 40px rgba(0,255,255,1),
                inset 0 0 20px rgba(0,255,255,0.6);
}

/* 🎯 Glowing Yellow Nodes */
.timeline-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: radial-gradient(circle, #fff, #ffcc00);
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, 0 0 20px #ffcc00;
    animation: pulseNode 1.5s infinite;
}

@keyframes pulseNode {
    0%, 100% { transform: translateY(-50%) scale(1); box-shadow: 0 0 10px #fff, 0 0 20px #ffcc00; }
    50% { transform: translateY(-50%) scale(1.3); box-shadow: 0 0 20px #fff, 0 0 40px #ffcc00; }
}

/* 📦 Boxes */
.timeline-item {
    position: relative;
    width: calc(50% - 70px);
    margin: 50px 0;
}

/* Right-side stacked layout */
.timeline-item.right {
    left: 50%;
}
.timeline-item.right + .timeline-item.right {
    margin-top: 0; /* This ensures one box directly below the other */
}

/* Left side */
.timeline-item.left {
    left: 0;
}

/* Icon positions */
.timeline-item.right .timeline-icon {
    left: -35px;
}
.timeline-item.left .timeline-icon {
    right: -35px;
}

/* 🎨 Attractive Gradient Boxes — NO glow */
.timeline-content {
    padding: 25px 30px;
    border-radius: 18px;
    color: #fff;
    font-weight: bold;
    background-size: 250% 250%;
}

.timeline-item:nth-child(1) .timeline-content { background: linear-gradient(135deg, #5a5c27, #ae0e4b); }
.timeline-item:nth-child(2) .timeline-content { background: linear-gradient(135deg, #a0297a, #514a9d); }
.timeline-item:nth-child(3) .timeline-content { background: linear-gradient(135deg, #291c74, #c95107); }
.timeline-item:nth-child(4) .timeline-content { background: linear-gradient(135deg, #30981e, #861a23); }
.timeline-item:nth-child(5) .timeline-content { background: linear-gradient(135deg, #33397b, #1c7586); }
.timeline-item:nth-child(6) .timeline-content { background: linear-gradient(135deg, #7f1ab2, #dc2430); }

/* 📍 Text Styling */
.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    text-shadow: 0 0 8px rgba(0,0,0,0.6);
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.5;
}

/* 📱 Responsive */
@media (max-width: 900px) {
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 60px;
    }
    .timeline-item .timeline-icon {
        left: -10px !important;
        right: auto !important;
    }
}
