#counter {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e6e6e7;
    padding: 30px 0px;
    width: 100%;
    flex-wrap: wrap; /* Ensure the items can wrap to the next line */
}

#counter .item {
    background: #fff;
    width: 220px;
    height: 200px;
    padding: 35px 40px;
    margin: 10px;
    text-align: center;
    border-radius: 20px;
    -webkit-box-shadow: 0px 0px 38px -8px rgba(0,0,0,0.34);
    -moz-box-shadow: 0px 0px 38px -8px rgba(0,0,0,0.34);
    box-shadow: 0px 0px 38px -8px rgba(0,0,0,0.34);
}

#counter .item .count {
    color: #e8b12d;
    margin-bottom: 5px;
    font-size: 40px;
}

#counter .item h3 {
    color: #4f4e28;
    text-transform: capitalize;
}

@media (max-width: 400px) {
    #counter {
        flex-direction: column; /* Stack items vertically */
    }

    #counter .item {
        width: 100%; /* Make items take full width */
        margin: 10px 0; /* Adjust margin for vertical spacing */
    }
}
