/*
 * The Author Central — premium shared review statistics.
 * Applies to every page that includes reusable-section/reviews-showcase.php.
 * Keeps existing metric values and count-up behavior unchanged.
 */

.home-light-version #tacxTestimonialsShowcase .tacx-review-stats {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100%;
    max-width: 1240px;
    margin: 22px auto 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.home-light-version #tacxTestimonialsShowcase .tacx-review-stats .tacx-review-stat {
    position: relative;
    isolation: isolate;
    display: flex;
    min-width: 0;
    min-height: 142px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 14px 18px;
    border: 1px solid rgba(201, 168, 76, .30) !important;
    border-radius: 12px;
    background: linear-gradient(155deg, #ffffff 0%, #fcfaf5 100%);
    box-shadow: 0 10px 28px rgba(35, 27, 13, .055);
    text-align: center;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.home-light-version #tacxTestimonialsShowcase .tacx-review-stats .tacx-review-stat::before {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 50%;
    width: 42px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: #c9a84c;
    content: "";
    transform: translateX(-50%);
    transition: width .24s ease;
}

.home-light-version #tacxTestimonialsShowcase .tacx-review-stat__icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    margin: 0 0 11px;
    border: 1px solid rgba(201, 168, 76, .38);
    border-radius: 50%;
    background: #fbf7ec;
    color: #b58b2e;
    font-size: 15px;
    line-height: 1;
}

.home-light-version #tacxTestimonialsShowcase .tacx-review-stats .tacx-review-stat strong {
    display: block;
    margin: 0;
    color: #c58a24 !important;
    font-family: "Fira Sans", sans-serif;
    font-size: clamp(25px, 2.1vw, 31px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.7px;
    font-variant-numeric: tabular-nums;
}

.home-light-version #tacxTestimonialsShowcase .tacx-review-stats .tacx-review-stat__label {
    display: block;
    margin: 8px 0 0;
    color: #55545a !important;
    font-family: "Fira Sans", sans-serif;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: 1.15px;
    text-align: center;
    text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) {
    .home-light-version #tacxTestimonialsShowcase .tacx-review-stats .tacx-review-stat:hover {
        transform: translateY(-4px);
        border-color: rgba(201, 168, 76, .72);
        box-shadow: 0 16px 34px rgba(35, 27, 13, .10);
    }

    .home-light-version #tacxTestimonialsShowcase .tacx-review-stats .tacx-review-stat:hover::before {
        width: 68px;
    }
}

@media (max-width: 991.98px) {
    .home-light-version #tacxTestimonialsShowcase .tacx-review-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        margin-top: 18px !important;
    }

    .home-light-version #tacxTestimonialsShowcase .tacx-review-stats .tacx-review-stat {
        min-height: 134px;
    }
}

@media (max-width: 575.98px) {
    .home-light-version #tacxTestimonialsShowcase .tacx-review-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .home-light-version #tacxTestimonialsShowcase .tacx-review-stats .tacx-review-stat {
        min-height: 126px;
        padding: 16px 8px 14px;
        border-radius: 10px;
    }

    .home-light-version #tacxTestimonialsShowcase .tacx-review-stat__icon {
        width: 32px;
        height: 32px;
        margin-bottom: 9px;
        font-size: 13px;
    }

    .home-light-version #tacxTestimonialsShowcase .tacx-review-stats .tacx-review-stat strong {
        font-size: 24px;
    }

    .home-light-version #tacxTestimonialsShowcase .tacx-review-stats .tacx-review-stat__label {
        margin-top: 7px;
        font-size: 9px;
        letter-spacing: .8px;
    }
}

@media (max-width: 359.98px) {
    .home-light-version #tacxTestimonialsShowcase .tacx-review-stats {
        grid-template-columns: 1fr !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-light-version #tacxTestimonialsShowcase .tacx-review-stats .tacx-review-stat,
    .home-light-version #tacxTestimonialsShowcase .tacx-review-stats .tacx-review-stat::before {
        transition: none !important;
    }
}
