/* History Slider Custom CSS */

.history-swiper {
    height: 100%;
    max-width: 1440px;
    width: 95%;
    margin: 0 auto;
    z-index: 3 !important;
}

.history-swiper-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    top: 20px;
}

/* ── All slides ── */
.history-swiper .swiper-wrapper .swiper-slide {
    text-align: start;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 0 20px;
}

/* ── Image block ── */
.history-swiper .swiper-wrapper .swiper-slide:nth-child(even) .history-image {
    height: 190px;
    width: auto;
    padding: 18px 0 12px 26px;
    border: 1px solid #CDA626;
    border-width: 0 0 1px 1px;
    position: relative;
}

.history-swiper .swiper-wrapper .swiper-slide .history-image img {
    width: auto;
    height: 100%;
}

/* Dot */
.history-swiper .swiper-wrapper .swiper-slide:nth-child(even) .history-image::before {
/*.history-swiper .swiper-wrapper .swiper-slide:nth-child(odd) .history-text::before {*/
    content: '';
    width: 24px;
    height: 24px;
    display: block;
    border-radius: 50%;
    position: absolute;
    background: #CDA626;
    z-index: 3 !important;
    top: -12px;
    left: -12px;
}

.history-swiper .swiper-wrapper .swiper-slide .history-text {
    padding: 18px 0 12px 26px;
    position: relative;
}

.history-swiper .swiper-wrapper .swiper-slide:nth-child(odd) .history-text {
    border: 1px solid #CDA626;
    border-width: 0 0 0px 1px;
    height: 100%;
}


.history-swiper .swiper-wrapper .swiper-slide:nth-child(odd) .history-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
    border: 1px solid #CDA626;
    border-width: 1px 0 0 0;
}

/* ── Text block ── */
.history-image,
.history-text .history-content {
    position: relative;
}

.history-text {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.history-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--mint-blue);
    font-family: var(--fira-sans-condensed-family);
}

.history-content * {
    font-weight: 400;
    font-size: 16px;
    font-family: var(--fira-sans-condensed-family);
}

.history-swiper .swiper-wrapper .swiper-slide:nth-child(odd) .history-image {
    border-width: 0px 0 1px 1px;
}

/* ── Desktop spacer hidden ── */
/*@media screen and (min-width: 1024px) {*/
/*    .history-swiper .swiper-wrapper .swiper-slide:first-child {*/
/*        width: 0px !important;*/
/*        opacity: 0;*/
/*        visibility: hidden;*/
/*    }*/
/*}*/

/* ── Desktop timeline: dot for every stage + step-by-step reveal ── */
@media screen and (min-width: 1024px) {

    .history-swiper .swiper-wrapper .swiper-slide {
        cursor: pointer;
    }

    /* Bottom row: image shifted half a column so its dot sits between the top-row dots */
    .history-swiper .swiper-wrapper .swiper-slide:nth-child(even) .history-image {
        margin-left: calc(50% + 20px);
        max-width: calc(50% - 20px);
    }

    .history-swiper .swiper-wrapper .swiper-slide:nth-child(even) .history-image img {
        max-width: 100%;
        object-fit: contain;
        object-position: left bottom;
    }

    /* Top row dot – at the bottom of the text line, on the timeline */
    .history-swiper .swiper-wrapper .swiper-slide:nth-child(odd) .history-text::before {
        content: '';
        width: 24px;
        height: 24px;
        display: block;
        border-radius: 50%;
        position: absolute;
        background: #CDA626;
        z-index: 3 !important;
        bottom: -12px;
        left: -12px;
    }

    /* Inactive stages – faded content, grey lines and dots */
    .history-swiper .swiper-wrapper .swiper-slide .history-image img,
    .history-swiper .swiper-wrapper .swiper-slide .history-title,
    .history-swiper .swiper-wrapper .swiper-slide .history-content {
        opacity: 0.2;
        transition: opacity .3s linear;
    }

    .history-swiper .swiper-wrapper .swiper-slide.active-slide .history-image img,
    .history-swiper .swiper-wrapper .swiper-slide.active-slide .history-title,
    .history-swiper .swiper-wrapper .swiper-slide.active-slide .history-content {
        opacity: 1;
    }

    .history-swiper .swiper-wrapper .swiper-slide .history-image,
    .history-swiper .swiper-wrapper .swiper-slide .history-text,
    .history-swiper .swiper-wrapper .swiper-slide .history-text::after,
    .history-swiper .swiper-wrapper .swiper-slide .history-image::before,
    .history-swiper .swiper-wrapper .swiper-slide .history-text::before {
        transition: border-color .3s linear, background-color .3s linear;
    }

    .history-swiper .swiper-wrapper .swiper-slide:not(.active-slide) .history-image,
    .history-swiper .swiper-wrapper .swiper-slide:not(.active-slide) .history-text,
    .history-swiper .swiper-wrapper .swiper-slide:not(.active-slide) .history-text::after {
        border-color: #aaa;
    }

    .history-swiper .swiper-wrapper .swiper-slide:not(.active-slide) .history-image::before,
    .history-swiper .swiper-wrapper .swiper-slide:not(.active-slide) .history-text::before {
        background: #aaa;
    }
}

/* ── Mobile ── */
@media screen and (max-width: 1023px) {

    .coin-minting-history .history-swiper-wrapper {
        height: auto !important;
    }

    .history-swiper {
        width: 100%;
        padding-top: 68px !important;
    }

    .history-swiper .swiper-wrapper {
        width: 100% !important;
    }

    .history-swiper .swiper-wrapper .swiper-slide {
        width: 100% !important;
        height: auto !important;
        padding: 0 30px;
    }

    .history-title {
        font-size: 18px;
    }
    
    
    .history-swiper .swiper-wrapper .swiper-slide .history-text {
        border: none !important;
    }
    
    
    .history-swiper .swiper-wrapper .swiper-slide .history-text:after {
        display: none;
    }
    
    .history-swiper .swiper-wrapper .swiper-slide:nth-child(odd) .history-image {
        height: 190px;
        width: auto;
        padding: 18px 0 12px 26px;
        border: 1px solid #CDA626;
        border-width: 0 0 1px 1px;
        position: relative;
    }
    
    /* Dot */
    .history-swiper .swiper-wrapper .swiper-slide:nth-child(odd) .history-image::before {
    /*.history-swiper .swiper-wrapper .swiper-slide:nth-child(odd) .history-text::before {*/
        content: '';
        width: 24px;
        height: 24px;
        display: block;
        border-radius: 50%;
        position: absolute;
        background: #CDA626;
        z-index: 3 !important;
        top: -12px;
        left: -12px;
    }

}

