/* Timeline Design for Formal Education */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

/* The vertical line */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--neon-yellow);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    box-shadow: 0 0 15px var(--neon-yellow);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* Left side */
.left {
    left: 0;
}

/* Right side */
.right {
    left: 50%;
}

/* The dots */
.timeline-dot {
    width: 25px;
    height: 25px;
    background-color: #000;
    border: 4px solid var(--neon-yellow);
    position: absolute;
    border-radius: 50%;
    top: 25px;
    z-index: 1;
    box-shadow: 0 0 10px var(--neon-yellow);
}

.left .timeline-dot {
    right: -12.5px;
}

.right .timeline-dot {
    left: -12.5px;
}

/* Content Box */
.timeline-content {
    padding: 20px 30px;
    background: linear-gradient(135deg, #0e0e0e 0%, #080808 100%);
    position: relative;
    border: 1px solid #333;
    border-left: 3px solid var(--neon-yellow);
    border-radius: 6px;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: -5px 5px 20px rgba(255, 215, 0, 0.15);
    border-left-color: var(--accent-color);
}

.timeline-date {
    color: var(--neon-yellow);
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    font-family: var(--font-gaming);
}

/* Mobile Responsiveness for Timeline */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.right {
        left: 0%;
    }

    .left,
    .right {
        left: 0;
    }

    .left .timeline-dot,
    .right .timeline-dot {
        left: 18px;
        right: auto;
    }

    .timeline-content {
        padding: 15px 20px;
    }
}