/*
 * DogeIt Roadmap Phases - native horizontal scroll
 * No JavaScript and no Swiper required for this section.
 *
 * The timeline node belongs to the same <article> as its phase card, so
 * the node and card always move together during horizontal scrolling.
 */

.di_roadmap_phase_scroll {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-top: 48px;
    padding-bottom: 18px;
}

.di_roadmap_phase_scroll::-webkit-scrollbar {
    height: 0;
    background: transparent;
}

.di_roadmap_phase_track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

/* Continuous timeline behind the six phase nodes. */
.di_roadmap_phase_track::before {
    content: "";
    position: absolute;
    top: -32px;
    right: 0;
    left: 0;
    z-index: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(
        to right,
        #2de370 0%,
        #2de370 25%,
        #ff9d00 40%,
        #00a2ff 60%,
        #0066ff 75%,
        #9d3eff 90%
    );
    pointer-events: none;
}

.di_roadmap_phase {
    position: relative;
    min-width: 0;
    scroll-snap-align: center;
    z-index: 1;
}

/* The node is now inside the same article as the card. */
.di_roadmap_phase_node {
    position: absolute;
    top: -48px;
    right: 0;
    left: 50%;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 48px;
    pointer-events: none;
}

.di_roadmap_phase_node .node-circle {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50%;
    background: #050814;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.di_roadmap_phase_node .node-stem {
    width: 2px;
    height: 15px;
    flex: 0 0 15px;
    margin-top: 0;
}

/*.di_roadmap_phase_node .node-terminal-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    margin-top: -2px;
    border-radius: 50%;
}*/

/* Preserve the reference node colours. */
.di_roadmap_phase_node.node-green .node-circle {
    border: 2px solid #2de370;
    box-shadow: 0 0 15px #2de370;
}

.di_roadmap_phase_node.node-green .node-stem {
    background: linear-gradient(to bottom, #2de370, rgba(45, 227, 112, 0.3));
}

/*.di_roadmap_phase_node.node-green .node-terminal-dot {
    background: #2de370;
    box-shadow: 0 0 8px #2de370;
}*/

.di_roadmap_phase_node.node-orange .node-circle {
    border: 2px solid #ff9d00;
    box-shadow: 0 0 20px #ff9d00;
}

.di_roadmap_phase_node.node-orange .node-stem {
    background: linear-gradient(to bottom, #ff9d00, rgba(255, 157, 0, 0.4));
}

.di_roadmap_phase_node.node-orange .node-terminal-dot {
    background: #ff9d00;
    box-shadow: 0 0 12px #ff9d00;
}

.di_roadmap_phase_node.node-cyan .node-circle {
    border: 2px solid #00a2ff;
    box-shadow: 0 0 15px #00a2ff;
}

.di_roadmap_phase_node.node-cyan .node-stem {
    background: linear-gradient(to bottom, #00a2ff, rgba(0, 162, 255, 0.3));
}

.di_roadmap_phase_node.node-cyan .node-terminal-dot {
    background: #00a2ff;
    box-shadow: 0 0 8px #00a2ff;
}

.di_roadmap_phase_node.node-blue .node-circle {
    border: 2px solid #0066ff;
    box-shadow: 0 0 15px #0066ff;
}

.di_roadmap_phase_node.node-blue .node-stem {
    background: linear-gradient(to bottom, #0066ff, rgba(0, 102, 255, 0.3));
}

.di_roadmap_phase_node.node-blue .node-terminal-dot {
    background: #0066ff;
    box-shadow: 0 0 8px #0066ff;
}

.di_roadmap_phase_node.node-purple .node-circle {
    border: 2px solid #9d3eff;
    box-shadow: 0 0 15px #9d3eff;
}

.di_roadmap_phase_node.node-purple .node-stem {
    background: linear-gradient(to bottom, #9d3eff, rgba(157, 62, 255, 0.3));
}

.di_roadmap_phase_node.node-purple .node-terminal-dot {
    background: #9d3eff;
    box-shadow: 0 0 8px #9d3eff;
}

/* Keep the existing DogeIt phase-card styling responsible for the card itself. */
/*.di_roadmap_phase_card {
    position: relative;
    z-index: 2;
    height: 100%;
}*/

/* Tablet/mobile: the entire track scrolls natively. */
@media (max-width: 991px) {
    .di_roadmap_phase_scroll {
        width: 100%;
        padding-top: 48px;
        padding-bottom: 20px;
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: #ff9d00 rgba(255,255,255,0.05);
    }

    .di_roadmap_phase_track {
        grid-template-columns: repeat(6, minmax(280px, 1fr));
        gap: 16px;
        min-width: 1776px;
    }

    .di_roadmap_phase_scroll::-webkit-scrollbar {
        height: 5px;
    }

    .di_roadmap_phase_scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    .di_roadmap_phase_scroll::-webkit-scrollbar-thumb {
        background: transparent;
        border-radius: 999px;
    }

    .di_roadmap_phase_scroll:hover::-webkit-scrollbar-thumb,
    .di_roadmap_phase_scroll:active::-webkit-scrollbar-thumb {
        background: linear-gradient(
            to right,
            #2de370,
            #ff9d00,
            #00a2ff,
            #9d3eff
        );
    }

    .di_roadmap_phase {
        min-width: 280px;
    }

    .di_roadmap_phase_card {
        min-height: 500px;
    }
}

@media (max-width: 767px) {
    .di_roadmap_phase_scroll {
        /*margin-right: -20px;
        margin-left: -20px;
        padding-right: 20px;
        padding-left: 20px;*/
    }

    .di_roadmap_phase_track {
        /*grid-template-columns: repeat(6, 82vw);*/
        min-width: max-content;
        gap: 16px;
    }

    .di_roadmap_phase {
        /*width: 82vw;
        min-width: 0;
        max-width: 320px;*/
    }

    .di_roadmap_phase_card {
        min-height: 500px;
    }
}

@media (max-width: 420px) {
    .di_roadmap_phase_scroll {
        /*margin-right: -16px;
        margin-left: -16px;
        padding-right: 16px;
        padding-left: 16px;*/
    }

    .di_roadmap_phase_track {
        grid-template-columns: repeat(6, 82vw);
        gap: 14px;
    }

    .di_roadmap_phase {
        width: 82vw;
    }

    .di_roadmap_phase_card {
        min-height: 480px;
    }
}


/* Horizontal accent line behind each phase icon. The line uses the same
 * colour as the corresponding node/card theme. */
.di_roadmap_phase_icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    margin-top: 14px;
}

.di_roadmap_phase_icon_line {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    z-index: 0;
    height: 2px;
    transform: translateY(-50%);
    opacity: .9;
}

.di_roadmap_phase_icon_image {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 50%;
    /*background: #050814;*/
}

.di_roadmap_phase_icon_image img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

/*.di_roadmap_phase_icon_image i {
    display: block;
    font-size: 50px;
    color: #73fa88;
    text-shadow: 0 0 45px #2de370;
    /*width: 64px;
    height: 64px;*/
    /*object-fit: contain;*/
}*/

.di_roadmap_phase_1 .di_roadmap_phase_icon_line,
.di_roadmap_phase_2 .di_roadmap_phase_icon_line {
    background: #2de370;
    box-shadow: 0 0 8px rgba(45, 227, 112, .45);
}

.di_roadmap_phase_3 .di_roadmap_phase_icon_line {
    background: #ff9d00;
    box-shadow: 0 0 8px rgba(255, 157, 0, .45);
}

.di_roadmap_phase_4 .di_roadmap_phase_icon_line {
    background: #00a2ff;
    box-shadow: 0 0 8px rgba(0, 162, 255, .45);
}

.di_roadmap_phase_5 .di_roadmap_phase_icon_line {
    background: #0066ff;
    box-shadow: 0 0 8px rgba(0, 102, 255, .45);
}

.di_roadmap_phase_6 .di_roadmap_phase_icon_line {
    background: #9d3eff;
    box-shadow: 0 0 8px rgba(157, 62, 255, .45);
}




.di_roadmap_phase_icon {
    position: relative;
    width: 100%;
    min-height: 58px;
    margin-top: 14px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/*
 * Icon wrapper
 *
 * No background color.
 * The horizontal line is created by ::before and ::after.
 */
.di_roadmap_phase_icon_image {
    position: relative;

    width: 100%;
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/*
 * Left and right horizontal lines.
 *
 * They stop before reaching the icon so the icon
 * remains completely clean and transparent.
 */
.di_roadmap_phase_icon_image::before,
.di_roadmap_phase_icon_image::after {
    content: "";

    position: absolute;
    top: 50%;

    width: calc(50% - 25px);
    height: 2px;

    transform: translateY(-50%);

    z-index: 0;

    pointer-events: none;

    box-shadow: 0 0 8px rgba(45, 227, 112, 0.45);
}


/* Left side of the line */
.di_roadmap_phase_icon_image::before {
    left: 0;
}


/* Right side of the line */
.di_roadmap_phase_icon_image::after {
    right: 0;
}


/*
 * Actual icon.
 *
 * Completely transparent.
 * The phase color is inherited through color.
 */
.di_roadmap_phase_icon_image i {
    position: relative;

    z-index: 2;

    width: 68px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 0;

    color: currentColor;

    font-size: 50px;
    line-height: 1;
    font-style: normal;

    text-align: center;

    filter: drop-shadow(0 0 2px currentColor);
}


/*
 * Make sure Font Awesome / icon-library pseudo elements
 * inherit the phase color.
 */
.di_roadmap_phase_icon_image i::before {
    color: currentColor;
}


/* =========================================================
   PHASE 1 — GREEN
   ========================================================= */

.di_roadmap_phase_1 .di_roadmap_phase_icon_image {
    color: #2de370;
}

.di_roadmap_phase_1 .di_roadmap_phase_icon_image::before {
    background: linear-gradient(to right, #2de370, transparent); /*#2de370*/
    /*box-shadow: 0 0 8px rgba(45, 227, 112, 0.45);*/
    /*box-shadow:
    0 0 3px currentColor,
    0 0 7px currentColor,
    0 0 14px currentColor,
    0 0 24px rgba(255, 255, 255, 0.15);*/
}

.di_roadmap_phase_1 .di_roadmap_phase_icon_image::after {
    background: linear-gradient(to left, #2de370, transparent); /*#2de370*/
    /*box-shadow: 0 0 8px rgba(45, 227, 112, 0.45);*/
    /*box-shadow:
    0 0 3px currentColor,
    0 0 7px currentColor,
    0 0 14px currentColor,
    0 0 24px rgba(255, 255, 255, 0.15);*/
}


/* =========================================================
   PHASE 2 — GREEN
   ========================================================= */

.di_roadmap_phase_2 .di_roadmap_phase_icon_image {
    color: #2de370;
}

.di_roadmap_phase_2 .di_roadmap_phase_icon_image::before {
    background: linear-gradient(to right, #2de370, transparent);
    /*box-shadow: 0 0 8px rgba(45, 227, 112, 0.45);*/
    /*box-shadow:
    0 0 3px currentColor,
    0 0 7px currentColor,
    0 0 14px currentColor,
    0 0 24px rgba(255, 255, 255, 0.15);*/
}

.di_roadmap_phase_2 .di_roadmap_phase_icon_image::after {
    background: linear-gradient(to left, #2de370, transparent);

}

/* =========================================================
   PHASE 3 — ORANGE
   ========================================================= */

.di_roadmap_phase_3 .di_roadmap_phase_icon_image {
    color: #fedc7b;
}

.di_roadmap_phase_3 .di_roadmap_phase_icon_image::before {
    background: linear-gradient(to right, #ff9d00, transparent);
    /*background: #ff9d00;*/
    /*box-shadow: 0 0 8px rgba(255, 157, 0, 0.45);*/
    /*box-shadow:
    0 0 3px currentColor,
    0 0 7px currentColor,
    0 0 14px currentColor,
    0 0 24px rgba(255, 255, 255, 0.15);*/
}

.di_roadmap_phase_3 .di_roadmap_phase_icon_image::after {
    background: linear-gradient(to left, #ff9d00, transparent);
}

/* =========================================================
   PHASE 4 — CYAN
   ========================================================= */

.di_roadmap_phase_4 .di_roadmap_phase_icon_image {
    color: #80dbfd;
}

.di_roadmap_phase_4 .di_roadmap_phase_icon_image::before {
    background: linear-gradient(to right, #00a2ff, transparent);
    /*background: #00a2ff;
    box-shadow:
    0 0 3px currentColor,
    0 0 7px currentColor,
    0 0 14px currentColor,
    0 0 24px rgba(255, 255, 255, 0.15);*/
}

.di_roadmap_phase_4 .di_roadmap_phase_icon_image::after {
    background: linear-gradient(to left, #00a2ff, transparent);
}

/* =========================================================
   PHASE 5 — BLUE
   ========================================================= */

.di_roadmap_phase_5 .di_roadmap_phase_icon_image {
    color: #8bedfd;
}

.di_roadmap_phase_5 .di_roadmap_phase_icon_image::before {
    background: linear-gradient(to right, #05dcff, transparent);
    /*background: #00a2ff;
    box-shadow:
    0 0 3px currentColor,
    0 0 7px currentColor,
    0 0 14px currentColor,
    0 0 24px rgba(205, 205, 205, 0.15);*/
}

.di_roadmap_phase_5 .di_roadmap_phase_icon_image::after {
    background: linear-gradient(to left, #05dcff, transparent);
}


/* =========================================================
   PHASE 6 — PURPLE
   ========================================================= */

.di_roadmap_phase_6 .di_roadmap_phase_icon_image {
    color: #c29afb;
}

.di_roadmap_phase_6 .di_roadmap_phase_icon_image::before {
    background: linear-gradient(to right, #9d3eff, transparent);
    /*background: #9d3eff;
    box-shadow:
    0 0 3px currentColor,
    0 0 7px currentColor,
    0 0 14px currentColor,
    0 0 24px rgba(255, 255, 255, 0.15);*/
}

.di_roadmap_phase_6 .di_roadmap_phase_icon_image::after {
    background: linear-gradient(to left, #9d3eff, transparent);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .di_roadmap_phase_icon {
        min-height: 56px;
        margin-top: 14px;
    }

    .di_roadmap_phase_icon_image {
        min-height: 56px;
    }

    .di_roadmap_phase_icon_image::before,
    .di_roadmap_phase_icon_image::after {
        width: calc(50% - 34px);
        height: 2px;
    }

    .di_roadmap_phase_icon_image i {
        width: 62px;
        height: 56px;
        font-size: 50px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .di_roadmap_phase_icon {
        min-height: 54px;
        margin-top: 14px;
    }

    .di_roadmap_phase_icon_image {
        min-height: 54px;
    }

    .di_roadmap_phase_icon_image::before,
    .di_roadmap_phase_icon_image::after {
        width: calc(50% - 31px);
        height: 2px;
    }

    .di_roadmap_phase_icon_image i {
        width: 58px;
        height: 54px;
        font-size: 50px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .di_roadmap_phase_icon {
        min-height: 52px;
        margin-top: 12px;
    }

    .di_roadmap_phase_icon_image {
        min-height: 52px;
    }

    .di_roadmap_phase_icon_image::before,
    .di_roadmap_phase_icon_image::after {
        width: calc(50% - 29px);
        height: 2px;
    }

    .di_roadmap_phase_icon_image i {
        width: 54px;
        height: 52px;
        font-size: 50px;
    }
}