First time poster and I'm new to Bonsai's in general. I was given a Bonsai a few months ago and have been caring for by simply having it in the shade and watering it before the soil dries up. Anyway after the big heatwave we had in SA the plant is looking a little worse for wear. I'm now wondering how I should be caring for it. We judged that on hot days of over 30 degrees it is probably too hot for the plant even for a short period in the morning so on days like that we keep it in the shade. When its a bit cooler we place it in the sun for short periods of time.
A majority of the leaves have gone brown and their appears to be emerging sprouts coming. As seen in the picture the tree doesn't look overall healthy.


My questions are how long should I place the tree in the sun? How often should I water the plant? Should I trim the plant to allow the new leaves to grow? Also what type of bonsai is this? Is it native?
Thank you in advance.