/* Timeline Wrapper */
.jifu-fade-timeline {
    position: relative;
    padding: 00px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Slide Container */
.slide-container {
    width: 100%;
    height: 300px;
    position: relative;
}

/* Slide items */

.slide-item {
    border-radius: 30px;
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity .5s ease, transform .5s ease;
    z-index: 1;
}

.slide-item.active {
    z-index: 10;
    opacity: 1;
}

/* Circle — Figma Perfect */

.left {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #ffffff00;
    margin-right: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 6px solid #D7B856;
    position: relative;
    z-index: 9;
}

.left img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.dashicons-controls-pause:before {
    color: #000;
}

/* Right Card — Figma Perfect */
.right-card {
    position: relative;
    z-index: 99;
    background: #555;
    padding: 40px 45px;
    border-radius: 16px;
    width: 360px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    position: relative;
    text-align: center;
}

/* Arrow pointer */

.right-card::before {
    content: "";
    position: absolute;
    left: -21px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-right: 22px solid #555;
}

/* Typography */
.right-card h2 {
    font-size: 36px;
    margin: 0;
    font-weight: 800;
    color: #fff;
}

.right-card h3 {
    font-size: 15px;
    margin: 12px 0 0;
    font-weight: 400;
    color: #fff;
}

.right-card p {
    margin-top: 12px;
    line-height: 1.55;
}

/* YEAR LIST — Proper left spacing */
.years-container {
    position: absolute;
    left: auto;
    top: 50%;
    transform: translateX(-234%) translateY(-50%);
    height: 110px;
    /* shows only 3 years */
    overflow: hidden;
    z-index: 9999;
}

.year-item {
    height: 32px;
    line-height: 32px;
}

.years {
    margin-top: -15px;
    position: absolute;
    left: auto;
    transform: translateX(-114%);
    top: 50%;
    /* transform: translate(-550px, -50%); */
    display: flex;
    flex-direction: column;
    gap: 0px;
    z-index: 99999;
    right: auto;
    display: flex;
    flex-direction: column;
    transition: transform .6s ease;
}

.year-item {
    color: #555555;
    font-size: 18px;
    font-weight: 400;
    opacity: .4;
    cursor: pointer;
}

.year-item.active {
    font-size: 26px;
    color: #D7B856;
}

.slide-item::after {
    content: '';
    width: 100%;
    position: absolute;
    height: 100%;
    display: none;
    background: linear-gradient(-90deg, rgb(2 2 2 / 50%) 0%, rgb(0, 0, 0) 64%);
    z-index: 0;
}

.jifu-fade-timeline {
    min-height: 80px;
}

.year-item {
    display: inline-block;
}

.year-item:first-child,
.year-item:last-child {
    margin-left: -50px;
}

@media (max-width: 768px) {
    .years {
        margin-top: -28px !important;
        flex-direction: row !important;
    }

    .year-item:first-child,
    .year-item:last-child {
        margin-left: 0px !important;
    }

    .year-item {
        font-size: 20px !important;
        width: 120px !important;
    }
}


@media (max-width: 768px) {

    .slide-container {
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .slide-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 35px;
        padding: 0 16px;
        background-position: right top;
        background-repeat: no-repeat;
        background-size: contain;
    }

    /* YEAR ROW – clean & centered */
    .years {
        position: absolute;
        margin: 0 auto;
        padding-bottom: 5px;
        display: flex;
        justify-content: center;
        gap: 5px;
        z-index: 20;
        flex-direction: row;
        transform: translateX(-1%);
        left: auto;
        top: 240px;
        right: auto;
    }

    .revolution-view-jifu {
        align-items: start;
        padding: 10px !important;
    }

    .year-item {
        font-size: 15px;
        opacity: 0.5;
    }

    .year-item.active {
        opacity: 1;
        color: #E4C04E;
        font-size: 17px;
    }

    /* CIRCLE – centered and sized like Figma mobile */
    .left {
        width: 210px;
        height: 210px;
        border-radius: 50%;
        margin: 0 auto;
        border-bottom: 4px solid #f6d86a;
        background: #00000080;
        display: flex;
        justify-content: center;
        align-items: center;
        border-right: 0px;
    }

    .left img {
        width: 100%;
        height: auto;
        margin: auto;
    }

    /* CARD – clean, readable, centered */
    .right-card {
        width: 85%;
        background: #555555;
        padding: 28px 22px;
        border-radius: 18px;
        margin: 0 auto;
        text-align: center;
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
    }

    .right-card::before {
        display: none;
    }

    .right-card h2 {
        font-size: 24px;
        margin-bottom: 8px;
        font-weight: 800;
        color: #fff;
    }

    .right-card h3,
    .right-card p {
        text-align: center;
        font-size: 15px;
        line-height: 1.55;
    }

    /* SOFT background fade — nicer for mobile */
    .slide-item::after {
        background: linear-gradient(-90deg, rgba(0, 0, 0, 0.1) 20%, rgba(0, 0, 0, 1) 60%);
    }

    .jifu-fade-timeline {
        padding-top: 20px;
        padding-bottom: 20px;
        position: relative;
    }
}

.years {
    transition: transform 0.6s ease;
}

.slide-item {
    transform: translateY(30px);
    background: transparent !important;
}

.slide-item.active {
    transform: translateY(0);
}

.years {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform .6s ease;
}

.year-item {
    opacity: .4;
    transition: all .3s ease;
}

.year-item.active {
    transform: scale(1.18);
    opacity: 1;
}

.years-wrapper {
    height: 120px;
    overflow: hidden;
    position: absolute;
}

.years {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform .6s ease;
}

.year-item {
    font-size: 22px;
    font-weight: 600;
    opacity: .5;
    cursor: pointer;
    transition: all .3s ease;
}

.years {
    transition: transform 0.12s ease;
}

.year-item {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .4s ease;
}

.year-item.active {
    font-weight: bold;
    transform: scale(1.15);
}

.slide-item {
    transition: all .5s ease;
}

.years {
    transition: transform .55s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
    margin-top: -108px;
}

.year-item {
    font-size: 28px;
    cursor: pointer;
    margin: 5px 0;
}

/* last digit animation */
.last-digit {
    display: inline-block;
    transition: transform 0.25s ease;
}

.spin-up {
    transform: translateY(-6px);
}

.spin-down {
    transform: translateY(6px);
}