/* styles/roadmap.css */

.roadmap-container {
    padding: 2rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.roadmap-header {
    text-align: center;
    margin-bottom: 3rem;
}

.roadmap-header h1 {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.dark-mode .roadmap-header h1 {
    color: #8db8a2;
}

.roadmap-header p {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
}

.timeline {
    list-style: none;
    padding: 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.timeline-event {
    margin-bottom: 2rem;
    position: relative;
    padding-left: 60px;
}

.timeline-event::before {
    content: attr(data-date);
    position: absolute;
    left: -25px;
    top: 0;
    transform: translateX(-100%);
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: none; /* Hidden by default, shown only for the first element */
}

.timeline-event[data-date]::before {
    display: block; /* Show for elements with data-date attribute */
}

.timeline-event::after {
    content: '';
    position: absolute;
    left: 10px;
    top: 15px;
    width: 25px;
    height: 25px;
    background-color: var(--bg-color);
    border: 4px solid var(--accent-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-event-title {
    background-color: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.timeline-event-title:hover {
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.timeline-event-title h2 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin: 0;
}

.timeline-event-title i {
    transition: transform 0.3s ease;
}

.timeline-event.active .timeline-event-title i {
    transform: rotate(180deg);
}

.timeline-event-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
    background-color: var(--card-bg);
    margin-top: -1px; /* To overlap borders */
    border: 1px solid transparent;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.timeline-event.active .timeline-event-content {
    max-height: 1000px; /* Adjust as needed */
    padding: 1.5rem;
    border-color: var(--border-color);
}

.timeline-event-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

.timeline-event-content ul ul {
    list-style-type: circle;
    margin-top: 0.5rem;
}

.timeline-event-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .roadmap-header h1 {
        font-size: 2.2rem;
    }
    .timeline::before {
        left: 10px;
    }
    .timeline-event {
        padding-left: 40px;
    }
    .timeline-event::after {
        left: -2px;
    }
    .timeline-event[data-date]::before {
        display: none; /* Hide date on smaller screens to save space */
    }
}
