.stats-showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    position: relative;
    overflow: hidden;
}
/* Grid Layout */
.stats-showcase-grid {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 40px;
    align-items: start; /* was center — both columns now share the same top edge */
}
/* Columns */
.stats-showcase-left {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* was center — vertical position is now handled in JS */
    min-height: 180px;
}
.stats-showcase-scroller-left {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); /* smooth reposition when the gap moves */
}
.stats-showcase-right {
    display: flex;
    align-items: flex-start; /* was center */
    min-height: 180px;
}
.stats-showcase-scroller-right {
    position: relative;
    width: 100%;
}
/* Stat styling */
.stats-showcase-stat-val {
    font-size: var(--stat-font-size, clamp(48px, 6vw, 90px));
    font-weight: 800;
    line-height: 1.1;
    position: absolute;
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    text-align: center;
    width: 100%;
    white-space: nowrap;
}
.stats-showcase-stat-val.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}
/* Right Content Item */
.stats-showcase-text-pair {
    position: absolute;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.08s,
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
    pointer-events: none;
    width: 100%;
}
.stats-showcase-text-pair.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.stats-showcase-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}
.stats-showcase-desc {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    max-width: 500px;
}
/* Indicators */
.stats-showcase-footer {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.stats-showcase-progress-bar {
    width: 100%;
    max-width: 250px;
    height: 3px;
    background-color: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}
.stats-showcase-progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: #111111;
    transition: width 0.1s linear;
}
.stats-showcase-dots {
    display: flex;
    gap: 8px;
}
.stats-showcase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e0e0e0;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.stats-showcase-dot.active {
    background-color: #111111;
    transform: scale(1.2);
}


/* Tablet & Mobile Layout */
@media (max-width: 768px) {
    .stats-showcase-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .stats-showcase-left,
    .stats-showcase-right {
        min-height: auto;
    }
    .stats-showcase-desc {
        margin: 0 auto;
    }
}
