/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #FFFFFF;
    color: #e2e8f0;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.roadmap {
    max-width: 1200px;
    margin: 0 auto;
}

.level {
    margin-bottom: 50px;
}

.level h1 {
    text-align: center;
    color: #1e293b;
    margin-bottom: 30px;
    font-size: 2.2rem;
    position: relative;
}

.level h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: #1e293b;
    margin: 10px auto;
    border-radius: 3px;
}

.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
}

.card {
    background: #1D7ED6;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 20px;
    width: 200px;
    min-height: 120px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.card.highlight {
    background: #1d4ed8;
    border-color: #3b82f6;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: #1e293b;
}

.card h2, .card h3 {
    margin: 0;
    color: #ffffff;
}

.card .description {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #334155;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.card.expanded .description {
    display: block;
}

.arrow {
    font-size: 2rem;
    color: #1e293b;
    font-weight: bold;
    margin: 0 5px;
    align-self: center;
}

/* Vertical connectors between levels */
.level:not(:last-child)::after {
    content: '';
    display: block;
    height: 40px;
    width: 3px;
    background: linear-gradient(to bottom, #4a79de, #1e293b);
    margin: 10px auto;
    border-radius: 3px;
}

/* Responsive design */
@media (max-width: 768px) {
    .card-container {
        flex-direction: column;
    }

    .arrow {
        transform: rotate(90deg);
        margin: -5px 0;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.modal-content {
    background-color: #1e293b;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #334155;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #1e293b;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #1e293b;
}

#modal-description {
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 20px;
    white-space: pre-line;
    text-align: center;
}
