If the bleeding ceases after 40 days following childbirth, but then returns intermittently during two days of fasting, what is the ruling?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
Whenever the post-natal bleeding (Nifas) ceases and the woman is certain it will not return, she has become pure; therefore, she must perform the ritual bath (Ghusl) and resume praying and fasting. However, if the blood returns within fifteen days of its cessation and before sixty days have passed since the delivery, the ruling of Nifas applies once again. Consequently, any fasting or prayer performed during that interval of purity is rendered invalid; she must make up for the missed fasts of those days, but she is not required to make up for the prayers. And Allah the Exalted knows best.
When is Istikharah (guidance prayer) Du`a offered, before Tasleem (saying asalamu alikum warahmatu allah wa barakatuh to end the prayer), or after it?
It is offered after Tasleem.
Is it a condition that a woman should untie her locks while making Ghusl (ritual bath)?
Ghusl from Janabah (ritual impurity), or menstruation obligates that water reaches the roots of the hair in order for the Ghusl to be valid, but if it doesn`t, then hair locks must be untied for water to reach them, and for Ghusl to become valid.
What is the semi-circular structure attached to the Holy Kabah?
The semi-circular structure attached to the Holy Kabah is Hijr Al-Kabah (is a low wall originally part of the Kabah) and passing behind it is an obligation while making Tawaf because it is a part of the Holy Kabah. And Allah Knows Best.