Senior Year Grades

Hi everyone, I’m extremely worried right now since I got my report card back and it shows that in my first two periods of class I got a B and a D. The two classes were AP Comparative Government and AP Calculus AB. The issue was that my mother was diagnosed with breast cancer and I had to miss a multitude of days for the first two periods to be with her in the hospital while she received her radiation therapy. Many colleges I’m applying to are pretty selective and they require mid-year reports. However, because of the grades I got the first two periods, will my chances be extremely low now even though I have a legit reason for why I had to miss those two periods frequently? Thanks