#block-tzoli-steps {
    margin: 3rem 0;
}

#block-tzoli-steps .field--name-body {
    position: relative;
}

ol.tzoli-timeline {
    display: flex;
    margin-top: 4rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    /* essential for scrolling */
    overflow-y: hidden;
    counter-reset: step;
    perspective: 1000px;
    list-style: none;
    padding-left: 0;
    gap: 20px;
    scroll-behavior: smooth;
    padding-right: 50px;
    /* optional: for smooth arrow scroll */
}

/* Chrome, Safari and Opera */
.tzoli-timeline::-webkit-scrollbar {
    display: none;
}

/* Firefox */
.tzoli-timeline {
    scrollbar-width: none;
}

/* Internet Explorer 10+ */
.tzoli-timeline {
    -ms-overflow-style: none;
}

.tzoli-timeline li {
    flex: 0 0 40%;
    scroll-snap-align: start;
    position: relative;
    margin: 20px;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    width: 40%;
    height: 500px;
    color: var(--bs-black);
    font-family: sans-serif;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.5s ease-out;
    background: #EFFEFC;
}

.tzoli-timeline li.visible {
    transform: translateX(0);
    opacity: 1;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 2px 2px;
}

.tzoli-timeline li::before {
    counter-increment: step;
    content: "Step " counter(step);
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--bs-yellow-gradient), var(--bs-green-gradient-50));
    background-size: 200% auto;
    color: var(--bs-black);
    animation: gradientShift 2s linear infinite;
}

.tzoli-timeline li h3 {
    font-size: 1.2rem;
    display: inline-flex;
    width: 75%;
    font-weight: 700;
    margin-left: 1rem;
}

.tzoli-timeline li img {
    height: 400px;
    object-fit: contain;
}

@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.progress-bar-track {
    position: absolute;
    top: 4rem;
    left: 0;
    height: 6px;
    width: 100%;
    background: #ccc;
    z-index: 10;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--bs-yellow-gradient), var(--bs-green-gradient));
    transition: width 0.2s ease-out;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: #111;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(6px);
}

p a.scroll-btn:hover,
p a.scroll-btn:focus {
    color: var(--bs-turquoise-green);
}

.scroll-btn.left {
    left: 10px;
}

.scroll-btn.right {
    right: 10px;
}

.scroll-btn.disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}