/* =========================================================
   HOW ADMISSION & TRADE TESTING WORKS (admission-process.css)
   Winding Road Visual Roadmap + Mobile Vertical Timeline
========================================================= */
html {                      
    scroll-behavior: smooth;
}                           

.process-roadmap-section,
.process-roadmap-section * {
    box-sizing: border-box;
}

.process-roadmap-section {
    width: 100%;
    padding: 72px 20px;
    background-color: #f8fafc;
    background-image:
        linear-gradient(to right, rgba(40, 91, 64, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(40, 91, 64, 0.045) 1px, transparent 1px);
    background-size: 28px 28px;
    border-top: 1px solid #e5ede4;
    border-bottom: 1px solid #e5ede4;
    overflow: hidden;
}

.process-roadmap-container {
    max-width: 1020px;
    margin: 0 auto;
}

/* =========================================
   HEADER & TOP STATUS PILL
========================================= */

.process-header {
    text-align: center;
    margin-bottom: 44px;
}

.process-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 8px;
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid rgba(40, 91, 64, 0.14);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(23, 53, 45, 0.07);
    max-width: 100%;
}

.pill-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #17352d;
    color: #f3d586;
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pill-step-label {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #17352d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pill-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 2px;
}

.p-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.25s ease;
}

.p-dot.active {
    width: 16px;
    border-radius: 999px;
    background: #285b40;
}

.process-title {
    margin: 0 0 10px;
    font-size: clamp(1.75rem, 2.7vw, 2.3rem);
    font-weight: 800;
    color: #17352d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    line-height: 1.2;
}

.process-title i {
    color: #a47a22;
    font-size: 0.9em;
}

.process-subtitle {
    margin: 0 auto;
    max-width: 640px;
    font-size: 0.98rem;
    color: #4b5563;
    line-height: 1.6;
}

/* =========================================
   WINDING S-CURVE ROADMAP STAGE (DESKTOP)
========================================= */

.roadmap-stage {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.roadmap-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1180px;
    pointer-events: none;
    z-index: 1;
}

.road-casing {
    fill: none;
    stroke: #cfd8e3;
    stroke-width: 34;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.road-surface {
    fill: none;
    stroke: #dfe6ee;
    stroke-width: 28;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.road-dashes {
    fill: none;
    stroke: #ffffff;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 12 14;
}

/* Steps List Positioned Along Winding Road */
.roadmap-steps {
    position: relative;
    z-index: 2;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 1180px;
}

.roadmap-step {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.roadmap-step:hover,
.roadmap-step.is-active {
    transform: translateY(-3px);
}

/* Left-side nodes (Icon on left, Pill card to right) */
.step-left {
    left: 11%;
    flex-direction: row;
}

/* Right-side nodes (Pill card on left, Icon on right) */
.step-right {
    right: 11%;
    flex-direction: row-reverse;
    text-align: right;
}

/* Exact Vertical Coordinates Matching SVG Curves */
.roadmap-step[data-step="1"] { top: 28px; }
.roadmap-step[data-step="2"] { top: 178px; }
.roadmap-step[data-step="3"] { top: 328px; }
.roadmap-step[data-step="4"] { top: 478px; }
.roadmap-step[data-step="5"] { top: 628px; }
.roadmap-step[data-step="6"] { top: 778px; }
.roadmap-step[data-step="7"] { top: 928px; }
.roadmap-step[data-step="8"] { top: 1068px; }

/* Circular Colored Icon Node */
.step-node {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    color: #ffffff;
    font-size: 1.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 22px rgba(23, 53, 45, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.roadmap-step.is-active .step-node,
.roadmap-step:hover .step-node {
    transform: scale(1.08);
    box-shadow: 0 12px 26px rgba(164, 122, 34, 0.34);
}

.node-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #17352d;
    color: #f3d586;
    border: 2px solid #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Node Color Variants */
.node-emerald   { background: linear-gradient(135deg, #087f5b, #285b40); }
.node-gold      { background: linear-gradient(135deg, #c9972c, #a47a22); }
.node-forest    { background: linear-gradient(135deg, #1f4f3b, #17352d); }
.node-teal      { background: linear-gradient(135deg, #0d9488, #0f766e); }
.node-amber     { background: linear-gradient(135deg, #d97706, #b45309); }
.node-indigo    { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.node-gold-dark { background: linear-gradient(135deg, #a47a22, #7c5812); }

/* White Pill Label Card */
.step-pill-card {
    background: #ffffff;
    border: 1.5px solid rgba(40, 91, 64, 0.16);
    border-radius: 16px;
    padding: 12px 18px;
    max-width: 340px;
    box-shadow: 0 8px 22px rgba(23, 53, 45, 0.06);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.roadmap-step.is-active .step-pill-card,
.roadmap-step:hover .step-pill-card {
    border-color: #a47a22;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(23, 53, 45, 0.11);
}

.step-pill-title {
    display: block;
    font-size: 1.02rem;
    font-weight: 800;
    color: #285b40;
    margin-bottom: 3px;
    line-height: 1.25;
}

.step-pill-desc {
    margin: 0;
    font-size: 0.82rem;
    color: #4b5563;
    line-height: 1.4;
}

/* =========================================
   BOTTOM CTA BUTTONS
========================================= */

.roadmap-footer-cta {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.roadmap-btn-primary,
.roadmap-btn-secondary {
    min-height: 44px;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.roadmap-btn-primary {
    background: linear-gradient(135deg, #285b40 0%, #17352d 100%);
    color: #ffffff;
    border: 1.5px solid #285b40;
    box-shadow: 0 8px 18px rgba(23, 53, 45, 0.16);
}

.roadmap-btn-primary:hover {
    transform: translateY(-2px);
    background: #087f5b;
    border-color: #087f5b;
}

.roadmap-btn-secondary {
    background: #ffffff;
    color: #17352d;
    border: 1.5px solid #a47a22;
}

.roadmap-btn-secondary:hover {
    transform: translateY(-2px);
    background: #fdf9ef;
}

/* =========================================
   TABLET & MOBILE VERTICAL ROAD TIMELINE (<= 820px)
========================================= */

@media (max-width: 820px) {
    .process-roadmap-section {
        padding: 48px 14px;
    }

    .process-header {
        margin-bottom: 28px;
    }

    .process-status-pill {
        padding: 6px 12px 6px 7px;
        gap: 8px;
    }

    .pill-dots {
        display: none;
    }

    .process-title {
        font-size: 1.55rem;
        flex-wrap: wrap;
        gap: 8px;
    }

    .process-subtitle {
        font-size: 0.88rem;
    }

    /* Hide wide S-curve SVG and use vertical road line */
    .roadmap-svg {
        display: none;
    }

    .roadmap-steps {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding-left: 8px;
    }

    /* Vertical road line connecting circular nodes */
    .roadmap-steps::before {
        content: "";
        position: absolute;
        top: 26px;
        bottom: 26px;
        left: 33px;
        width: 14px;
        background: #dfe6ee;
        border-left: 2px solid #cfd8e3;
        border-right: 2px solid #cfd8e3;
        border-radius: 999px;
        z-index: 1;
    }

    .roadmap-steps::after {
        content: "";
        position: absolute;
        top: 28px;
        bottom: 28px;
        left: 39px;
        width: 2px;
        background-image: repeating-linear-gradient(
            to bottom,
            #ffffff 0px,
            #ffffff 8px,
            transparent 8px,
            transparent 16px
        );
        z-index: 1;
    }

    .roadmap-step,
    .step-left,
    .step-right {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 12px;
        z-index: 2;
    }

    .step-node {
        width: 52px;
        height: 52px;
        font-size: 1.1rem;
        border-width: 3px;
    }

    .node-badge {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }

    .step-pill-card {
        flex: 1;
        max-width: none;
        padding: 12px 14px;
        border-radius: 13px;
    }

    .step-pill-title {
        font-size: 0.95rem;
    }

    .step-pill-desc {
        font-size: 0.8rem;
    }

    .roadmap-footer-cta {
        margin-top: 24px;
        flex-direction: column;
        align-items: stretch;
    }

    .roadmap-btn-primary,
    .roadmap-btn-secondary {
        width: 100%;
    }
}