/* ==========================================================================
   GLOBAL ROADMAP PAGE STYLES
   A unified, premium stylesheet for all course detail roadmaps.
   ========================================================================== */

/* Overrides & Effects */
.text-glow {
    color: #ff0000;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

/* Roadmap Layout */
#roadmap {
    padding: 120px 5% 150px;
    position: relative;
    z-index: 5;
    min-height: 100vh;
}

.roadmap-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 80px;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.roadmap-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* Central Glowing Line */
.line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #ff0000, #990000, #ff0000, transparent);
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
    z-index: 1;
}

/* Steps Wrapper */
.roadmap-step {
    display: flex;
    justify-content: flex-end;
    width: 50%;
    margin-bottom: 60px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.roadmap-step.right {
    align-self: flex-end;
    margin-left: 50%;
    justify-content: flex-start;
}

.roadmap-step.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Step Content Box */
.step-box {
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 0, 0, 0.15);
    padding: 30px;
    border-radius: 16px;
    width: 85%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
}

.roadmap-step.left .step-box {
    margin-right: 40px;
    text-align: right;
}

.roadmap-step.right .step-box {
    margin-left: 40px;
    text-align: left;
}

.step-box:hover {
    background: rgba(25, 20, 25, 0.8);
    border-color: rgba(255, 0, 0, 0.5);
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.15);
}

.step-box h2 {
    color: #ff0000;
    margin-bottom: 15px;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
}

.step-box p {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
}

/* Animated Dot on Line */
.dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ff0000;
    border-radius: 50%;
    top: 35px;
    box-shadow: 0 0 15px #ff0000;
    z-index: 10;
}

.dot::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 0, 0, 0.4);
    border-radius: 50%;
    top: -10px;
    left: -10px;
    animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

.roadmap-step.left .dot {
    right: -10px; /* Aligns center of 20px dot exactly to the 50% line */
}

.roadmap-step.right .dot {
    left: -10px; /* Aligns center of 20px dot exactly to the 50% line */
}

/* Checkpoints */
.checkpoint {
    display: flex;
    justify-content: center;
    margin: 90px 0;
    position: relative;
    z-index: 15;
}

.checkpoint-content {
    background: linear-gradient(135deg, #cc0000, #ff0000);
    color: #fff;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.checkpoint-content:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(255, 0, 0, 0.6);
}

/* Section Headings */
.section-heading {
    width: 100%;
    text-align: center;
    margin: 120px 0 80px;
    position: relative;
    z-index: 5;
}

.section-heading span {
    background: #0a0a0f;
    padding: 0 40px;
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    border-radius: 30px;
}

.section-heading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 0, 0, 0.5), transparent);
    z-index: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .roadmap-title {
        font-size: 2.5rem;
    }
    .line {
        left: 40px;
    }
    .roadmap-step {
        width: 100%;
        justify-content: flex-start !important;
        margin-left: 0 !important;
        padding-left: 80px;
    }
    .roadmap-step.left .step-box,
    .roadmap-step.right .step-box {
        margin: 0;
        width: 100%;
        text-align: left;
    }
    .roadmap-step.left .dot,
    .roadmap-step.right .dot {
        left: 30px !important; /* 40px line - 10px half-dot = 30px */
        right: auto !important;
    }
    .section-heading span {
        font-size: 1.6rem;
        padding: 0 20px;
    }
}



