If a woman becomes pure from menstruation before the Fajr Adhan in Ramadan, is she required to fast?
If a woman becomes pure (from menstrual period) before the Fajr Adhan, she must fast, as the impediment preventing her from fasting has been removed. The Sharia maxim in this regard states: "When the impediment is removed, the obligation returns."
She should then make the intention to fast before Fajr and perform ghusl (ritual purification) for prayer, whether before or after Fajr.
What type of illness that permits breaking the fast in Ramadan?
It is an illness that, if one fasts, there is a fear it may lead to their death or cause unbearable hardship.
What is the ruling on brown discharge before the menstrual period? Is it considered part of menstruation (Hayd)?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
Dusky discharge (Kudrah), reddish discharge (Humrah), and yellowish discharge (Sufrah) are all considered menstruation (Hayd) if they occur during the time of the menstrual cycle. If their duration exceeds a day and a night, and the period persists from the first sight of the discharge until the cessation of the menstrual blood—provided the total duration does not exceed fifteen days—then all of it is menstruation. However, if the duration exceeds fifteen days, then the discharge is not considered menstruation, but rather chronic irregular bleeding (Istihadah). And Allah the Exalted knows best.
What is the ruling on the cessation of blood after (40) days from delivery, but later continued sporadically during two days of Ramadan?
Once postpartum bleeding (Nifas) ceases, and the woman is certain that it won`t reoccur, then she becomes ritually pure and so she is free to make Ghusl (purificatory bath), pray, and fast. If the bleeding reoccurs before fifteen days from its cessation, and before the end of (60) days after delivery, then the ruling on postpartum bleeding is effective, and her fasting and prayer are null and void, thus she must make up the fasting that she missed and not the prayer during those particular days.