Bad things do happen to good people and good answers are difficult. "Bad" has two basic sources: people and nature. People create offenses. Nature creates catastrophes. God gets blamed for both sources. Pride or humility determine our personal conclusions.
People may be earnestly trying through good intentions to pressure others to do the right things. These words or actions may be viewed as offenses by others because the people being pressed may feel that they are the objects of some tyranny. Even though it is a person doing the pressing, because they may be speaking of God as being the authority by which they do these things, God may ultimately be blamed for what people do. After all, God allowed this to happen.
People may be doing the opposite. They may be doing obvious evil. They may be causing murder, theft, adultery that breaks families apart; they may be causing wars, writing oppressive laws, making dishonest business deals, and so on. But, because this is a world which God is credited with creating, God may be blamed, again, for allowing this to happen.
Pride is an attitude that lifts oneself in its own estimation in comparison to the worth of God. If a person takes this attitude, then no explanation that respects God will be acceptible to that person.
There is, however, an expanation as to why God would allow bad people to carry out evil, or good people to do things that have bad results. God allows people to have free will. God allowed Adam and Eve to fall from relationship with Him at the very beginning of human existence. Ever since that time, humans have had the ability to receive natural strength even as they have committed the most horrible sins. God has chosen to not overrule human free will. In that way, the decisions and their results now fall on the heads of those who have chosen to do thus. This fact is the basis of the judgement that will send evil people to hell.
"What a horrible thing!" Someone may say this. However, consider that God also provided the remedy for both evil deeds and evil results in Jesus Christ, His death on the cross, His resurrection from the grave, His authority for good at the right hand of God.
Humility would lead a person to accept the explanation of free will and God's grace. Such humility before God would change a person's life and tend to lead them in a continuous growth in wisdom, compassion, and faithfulness with good results overcoming evil ones.
Nature provides both the provision for life and the catastrophes that cause deformities and death. Nature is the source of both wonders and of suffering that are much harder to explain.
The proud person exalts himself or herself against faith in God by saying that they have a superior way of thinking and believing (even though that explaination is shallow and easily discarded). They claim that no loving God could ever allow such a thing. Therefore, they choose to either be an agnostic, an athiest, or the creator of their own "designer" god. (idolatry)
The humble person is awestruck at the power of the Creator and seeks God's strength to endure the difficult and the unexplainable circumstances that come. Even though the catasrophe may result in death, they reach by faith and place their hand into the hand of their Savior and the lover of their soul.
Our conclusions are the basic result, then, of our reactions to those things over which we may have no control. We do not choose our parents, our original health, our earliest education, our childhood environment and many things that others may do to us. And, so on it goes.
However, God has given us the same thing that He gave Adam and Eve: free will. With that free will we can choose pride or humility before God. Pride will put us on our own. Humility will bring us honor before both people and before God. "Blessed are the poor in spirit, for theirs is the kingdom of heaven." Matthew 5:3.