.col-md-4:nth-child(4n + 1) {
    clear: both;
}

.col-md-4:nth-child(3n + 1) {
    clear: both !important;
}