/* ===== Section ===== */
.stats-section {
    background: #f8fafc;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
    padding: 45px 0 25px;
    margin-top: -72px;
}

/* ===== Slider / Grid ===== */
.stats-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.stats-slider::-webkit-scrollbar {
    display: none;
}

.stat-item {
    min-width: 140px;
    scroll-snap-align: start;
    display: flex;
}

/* Desktop grid */
@media (min-width: 768px) {
    .stats-slider {
        overflow: visible;
        justify-content: space-between;
    }

    .stat-item {
        min-width: auto;
        flex: 1;
    }
}

/* ===== Stat Box ===== */
.stats-section {
    background: whitesmoke;
    border: 5px solid #efebeb;
    box-shadow: 0 12px 20px -6px rgb(22, 22, 22) !important;
}

.stat-box {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.stat-box h5 {
    font-family: "Open Sans", sans-serif;
    font-weight: 900;
    font-size: 1.25em;
    color: #3E4F5A;
    margin-bottom: 8px;
}

.stat-box p {
    /* font-size: 0.65em; */
    font-size: 11px;
    text-transform: uppercase;
    color: #3E4F5A;
    margin: 0;
}

/* ===== Activate Arrow ===== */
.arrow-text {
    position: relative;
}

.arrow-text h5 {
    font-family: "Happy Monkey", system-ui;
}

.arrow-text img {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
}

/* ===== Tooltip ===== */
.has-tooltip {
    position: relative;
    cursor: help;
    outline: none;
}

.has-tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: 120%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #3E4F5A;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
    white-space: nowrap;
    z-index: 1000;
}

.has-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 105%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #ffffff;
    opacity: 0;
    transition: 0.2s ease;
}

.has-tooltip:hover::before,
.has-tooltip:hover::after,
.has-tooltip:focus::before,
.has-tooltip:focus::after {
    opacity: 1;
}

/* Mobile tooltip below */
@media (max-width: 420px) {
    .has-tooltip::before {
        top: 120%;
        bottom: auto;
    }

    .has-tooltip::after {
        top: 105%;
        bottom: auto;
        border-top-color: transparent;
        border-bottom-color: #ffffff;
    }
}

/* ===== WhatsApp ===== */
.whatsapp-svg img {
    width: 100px;
}

/* ===== Font scaling ===== */
@media (max-width: 978px) {
    .stat-box h5 {
        font-size: 12px;
    }
}