.bg-custom {
    background-color: #f8f9fa;
    color: #343a40;
    padding: 0px 0;
    text-align: center;
}

.stats {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

.img-text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease forwards;
}

.img-text-container img {
    max-width: 216px;
    height: auto;
    margin-right: 52px;
    animation: fadeIn 1.5s ease forwards;
}

.text-content {
    text-align: left;
    opacity: 0;
    animation: fadeInText 2s ease forwards;
}

/* Fade-in and slide-up animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* For responsiveness on small devices */
@media (max-width: 768px) {
    .img-text-container {
        flex-direction: column;
        text-align: center;
        animation: fadeInUpMobile 1.5s ease forwards;
    }

    .img-text-container img {
        margin-right: 0;
        margin-bottom: 10px;
        animation: fadeIn 1.5s ease forwards;
    }

    .stats {
        font-size: 2rem;
    }


    /* Different animation for mobile */
    @keyframes fadeInUpMobile {
        0% {
            opacity: 0;
            transform: translateY(100px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
}