Due to is a phrase that many people misuse. We could tell you to use due to in front of adjective phrases. But let’s keep it simple. Use due to if you could also use caused by.
The rising gas prices were caused by low inventories.
The rising gas prices were due to low inventories.
Due to does not mean the same as because of.
She declined the invitation due to her workload. ?(You wouldn’t say that she declined the invitation caused by her workload.)
She declined the invitation because of her workload.
Due to her workload, she declined the invitation.
Because of her workload, she declined the invitation.
Also watch out for due to the fact that. This is a wordy phrase. You can replace it with because or since.