/* ==========================================================================
   ROADMAP PREVIEW SECTION
   Standardized premium roadmap preview for all course pages.
   ========================================================================== */

.roadmap-preview-section {
    padding: 80px 0;
    background: rgba(10, 10, 15, 0.4);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.roadmap-preview-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Timeline Line */
.roadmap-timeline-line {
    position: absolute;
    left: 50%;
    top: 100px;
    bottom: 100px;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #ff0000, #990000, transparent);
    transform: translateX(-50%);
    opacity: 0.3;
}

.roadmap-preview-items {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 50px;
}

.roadmap-preview-item {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.roadmap-preview-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.roadmap-preview-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.roadmap-content-box {
    width: 45%;
    background: rgba(20, 20, 25, 0.6);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.roadmap-content-box:hover {
    border-color: rgba(255, 0, 0, 0.4);
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.1);
}

.roadmap-preview-item:nth-child(odd) .roadmap-content-box {
    text-align: left;
}

.roadmap-preview-item:nth-child(even) .roadmap-content-box {
    text-align: right;
}

.roadmap-content-box h3 {
    color: #ff0000;
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.roadmap-content-box p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Central Dot */
.roadmap-central-dot {
    width: 20px;
    height: 20px;
    background: #ff0000;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 15px #ff0000;
}

.roadmap-central-dot::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 50%;
    top: -10px;
    left: -10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.roadmap-cta {
    text-align: center;
    margin-top: 60px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .roadmap-timeline-line {
        left: 40px;
    }
    
    .roadmap-preview-item, .roadmap-preview-item:nth-child(odd) {
        flex-direction: row;
        justify-content: flex-start;
        padding-left: 60px;
    }
    
    .roadmap-content-box {
        width: 100%;
        text-align: left !important;
    }
    
    .roadmap-central-dot {
        left: 20px;
    }
}



