.stat-content {
    position: relative;
}

.front--page-stat {
    margin-top: 45px;
}

.stat-content--homepage {
    margin: 65px 0 0;
}

.stat-content__content {
    margin-bottom: 35px;
    padding: 0 22px;
    text-align: center;
}

.stats {
    padding: 35px 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 0;
}

.stats.less-multiple {
    justify-content: space-evenly;
}

.stats__item {
    width: 50%;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    position: relative;
    border-radius: 8px;
    cursor: default;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                background-color 0.3s ease;
}

.stats__item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats__item:hover {
    transform: translateY(-8px) scale(1.05);
    background-color: transparent;
}

.stats__item:hover::before {
    opacity: 0;
}

.stats__item h4 {
    margin: 0 0 4px;
    padding: 0;
    font-size: 35px;
    font-weight: normal;
    color: var(--teal);
    line-height: 1.25em;
    font-family: "Zen Dots", sans-serif;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                text-shadow 0.3s ease,
                letter-spacing 0.3s ease;
    text-transform: initial;
}

.stats__item:hover h4 {
    transform: scale(1.1);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.02em;
}

.stats__item p {
    margin: 0 0 0;
    padding: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--blue);
    line-height: 1.25em;
    text-transform: capitalize;
    transition: transform 0.3s ease 0.05s,
                opacity 0.3s ease;
}

.stats__item:hover p {
    transform: translateY(2px);
}

.stat-content__text p {
    margin-bottom: 10px;
}

/* Read More/Less Component */
.stat-read-more {
    margin-bottom: 35px;
}

.stat-read-more__content {
    position: relative;
    margin-bottom: 15px;
}

.stat-read-more__content[data-collapsed="true"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--white, #fff));
    pointer-events: none;
}

.stat-read-more__toggle {
    margin: 10px 0 0;
    padding: 0 20px 0 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--green);
    line-height: 1.20em;
    text-transform: uppercase;
    display: inline-block;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.stat-read-more__toggle::after {
    content: '\e90e';
    font-family: 'infinite-networks-icon';
    position: absolute;
    top: 50%;
    right: 0;
    font-size: 14px;
    font-weight: normal;
    line-height: 1em;
    transform: translate(0, -50%);
    color: var(--green);
}

.stat-read-more__toggle.is-expanded::after {
    content: '\e90c';
}

.stat-read-more__less {
    display: none;
}

.stat-read-more__toggle.is-expanded .stat-read-more__more {
    display: none;
}

.stat-read-more__toggle.is-expanded .stat-read-more__less {
    display: inline;
}

/* Legacy read-more styles (keeping for backwards compatibility) */
.read-more {
    margin-bottom: 35px;
}

.read-more-link {
    margin: 0 0 0;
    padding: 0 20px 0 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--green);
    line-height: 1.20em;
    text-transform: uppercase;
    display: inline-block;
    outline: none;
}

.read-more-link::after {
    content: '\e90e';
    font-family: 'infinite-networks-icon';
    position: absolute;
    top: 50%;
    right: 0;
    font-size: 14px;
    font-weight: normal;
    line-height: 1em;
    transform: translate(0, -50%);
    color: var(--green);
}

.fx-untruncated .read-more-link::after {
    content: '\e90c';
}

.bg-darkest-navy .stats__item p,
.bg-darkest-navy .stats__item h4 {
    color: var(--white);
}

.bg-linear-green .stats__item p,
.bg-linear-green .stats__item h4 {
    color: var(--white);
}

@media(min-width: 768px) {
    .stat-content--homepage {
        margin: 80px 0 0;
    }

    .stat-content__content {
        margin-bottom: 80px;
        padding: 0 52px;
    }

    .stats {
        padding: 50px 52px;
        gap: 30px 0;
    }

    .stats__item {
        width: 33.333%;
        text-align: left;
    }

    .stats__item h4 {
        margin: 0 0 6px;
        font-size: 42px;
    }

    .stats__item p {
        font-size: 21px;
    }

    .stats__item:hover {
        transform: translateY(-10px) scale(1.08);
    }

    .stats__item:hover h4 {
        text-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    }
}

@media(min-width: 1200px) {
    .stat-content--homepage {
        margin: 100px 0;
    }

    .stat-content__wrapper {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        max-width: 2000px;
    }

    .stat-content__content {
        margin-bottom: 0;
        padding: 0 15px 0 63px;
        width: calc(100% - 790px);
        text-align: left;
    }

    .stats__item {
        width: 50%;
    }

    .stats {
        width: 790px;
        margin-left: 0px;
        padding: 60px 52px 60px 123px;
        gap: 25px 0;
        clip-path: polygon(12% 0%, 100% 0, 100% 100%, 0% 100%);
    }

    .stats__item h4 {
        margin: 0;
    }

    .stats__item:hover {
        transform: translateY(-12px) scale(1.08);
    }

    .stats__item:hover h4 {
        text-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    }

    .stat-read-more {
        margin-bottom: 48px;
    }

    .stat-read-more__toggle {
        font-size: 22px;
    }

    .read-more {
        margin-bottom: 48px;
    }

    .read-more-link {
        font-size: 22px;
    }

    .stat-content--full-width .stat-content__wrapper {
        display: block;
        padding: 0 63px;
    }

    .stat-content--full-width .stats {
        width: 100%;
        margin-left: 0px;
        padding: 0;
        clip-path: none;
        gap: 0 47px;
        flex-wrap: nowrap;
        align-items: flex-start;
    }

    .stat-content--full-width .stats__item {
        width: auto;
        flex: 1;
        text-align: center;
        align-items: center;
    }

    .stat-content--full-width .stats__item h4 {
        font-size: 50px;
        margin-bottom: 12px;
    }

}


@media(min-width: 1600px) {
    .stat-content--homepage {
        margin: 32px 0;
    }

    .stat-content__wrapper {
        max-width: 2000px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        margin: 0 auto;
        position: relative;
    }

    .stat-content__wrapper:before {
        content: '';
        position: absolute;
        right: -100%;
        clip-path: polygon(0% 0%, 100% 0, 100% 100%, 0% 100%);
        background: var(--light-blue);
        z-index: 12;
        padding: 85px 100px 85px 200px;
        height: 100%;
        width: 100%;
    }

    .stat-content__content {
        margin-bottom: 0;
        padding: 0 0 0 63px;
        width: calc(100% - 975px);
        text-align: left;
    }

    .stats {
        width: 975px;
        margin-left: 0px;
        padding: 85px 100px 85px 200px;
        gap: 25px 0;
        clip-path: polygon(12% 0%, 100% 0, 100% 100%, 0% 100%);
    }

    .stats__item h4 {
        margin: 0 0 12px;
    }

    .stat-content--full-width .stats {
        gap: 0 94px;
        flex-wrap: nowrap;
        align-items: flex-start;
    }

    .stat-content--full-width .stats__item {
        flex: 1;
        align-items: center;
    }

    .stat-content--full-width .stats__item h4 {
        font-size: 65px;
        margin-bottom: 12px;
    }

}