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.
Is "Bismillāhir-Raḥmānir-Raḥīm" a verse (āyah) of Sūrat al-Fātiḥah?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
The basmalah ("Bismillāhir-Raḥmānir-Raḥīm") is, without question, a verse (āyah) of the Noble Qur'an, and according to the Shāfi‘ī school, it constitutes a verse of Sūrat al-Fātiḥah itself. Al-Fātiḥah is a pillar of the prayer, and it consists of seven verses, of which the basmalah is one. The prayer is not valid without reciting it, nor if any of the Fātiḥah's verses, letters, or shaddahs (consonant doublings) are omitted or altered.
It is stated in Bushrā al-Karīm (Vol.1/p.202), from the books of the Shāfi‘ī school: "The basmalah is a complete verse of it [i.e., of al-Fātiḥah] in practice — and it suffices, for this to be established, that there be strong probability (ẓann), especially given that this has come very close to certainty (yaqīn), due to the consensus (ijmā‘) of the Companions on its inclusion in the muṣ-ḥaf [the written text of the Qur'an] in its script, despite their extreme diligence in excluding from it anything that did not genuinely belong to it — to the point that they even [carefully regulated] its diacritical dots and vowel markings." And Allah, the Exalted, knows best.
How is night prayer offered?
Night prayer is offering voluntary prayer after Maghrib and before Fajr (Dawn). As for Tahajjud, it is offering voluntary prayer at night after waking up voluntarily, and for Allah`s sake as He Says (What means): "And pray in the small watches of the morning: (it would be) an additional prayer (or spiritual profit) for thee: soon will thy Lord raise thee to a Station of Praise and Glory!" [Al-Isra`/79]. Offering Tahajjud is better than offering voluntary prayer before going to bed.
What is the ruling on wiping the white area behind the ears instead of wiping the head?
The obligation in ablution is to wipe some of the head; it is not a condition to wipe all of it. Wiping the white area behind the ears suffices for that. And Allah the almighty knows best.