What is the ruling on someone who eats or drinks thinking that the sun has set, then realizes that it has not yet set?
Whoever eats or drinks believing that the sun has set, then later discovers that it has not yet set, their fast is invalid, and they must make up that day after Ramadan. It is not permissible to break the fast before confirming sunset—either by seeing it, through personal reasoning, or by relying on the statement of someone trustworthy in their religious commitment.
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.
Is a person who forgot to make up missed fasts until the next Ramadan began required to pay expiatory compensation (Fidyah) alongside the makeup fast (Qada')?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
Whoever forgets to make up missed fasts of Ramadan (Qada') until the following Ramadan begins incurs no sin, pursuant to the statement of the Messenger of Allah (peace and blessings be upon him): "Indeed, Allah has pardoned for my nation their mistakes, their forgetfulness, and that which they are coerced into doing." [Narrated by Ibn Majah, and Al-Bayhaqi in Al-Sunan Al-Kubra]
Furthermore, such an individual is not obligated to pay a expiatory compensation (Fidyah). It is stated in Bushra Al-Karim (p. 580)—one of the authoritative Shafi'i jurisprudential texts: "As for delaying it [the makeup fasts] due to a valid excuse—such as travel, breastfeeding, forgetfulness, or ignorance of the prohibition of delay (even for one living among scholars)—no Fidyah is required. This is because delaying performance during the actual month is permissible due to these excuses; hence, delaying makeup fasts is even more permissible, even if it continues for years."
And Allah Almighty knows best.
Is it valid to perform Tarawih prayer at home?
It is Sunnah for a Muslim to perform Tarawih prayer in congregation at the mosque.
However, if a person sometimes prays it at home in congregation with their family for a valid reason, there is no harm in doing so.