/* By The Numbers */
.by-the-numbers {
    background-color: rgba(0, 20, 137, 0.03);
    overflow: hidden;
}

.by-the-numbers__inner {
    display: flex;
    min-height: 894px;
}

.by-the-numbers__image {
    flex: 0 0 50%;
    max-width: 50%;
}

.by-the-numbers__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.by-the-numbers__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-3xl) var(--space-2xl);
}

.by-the-numbers__headline {
    font-size: var(--fs-5xl);
    font-weight: var(--fw-semibold);
    color: var(--color-black);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.by-the-numbers__cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    width: 403px;
}

@media (max-width: 1023px) {
    .by-the-numbers__inner {
        flex-direction: column;
        min-height: auto;
    }

    .by-the-numbers__image {
        flex: none;
        max-width: 100%;
        width: 100%;
        height: 300px;
    }

    .by-the-numbers__content {
        padding: 40px 20px;
    }

    .by-the-numbers__cards {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .by-the-numbers__inner {
        padding: 0 40px;
    }
    .by-the-numbers__cards {
        flex-direction: row;
        width: 100%;
    }
    .stat-card {
        flex: 1;
    }
}
