Bleeding and spotting for 2 weeks vent

For about 2 weeks ive been spotting and having light bleeding. This has happened to me last month. When i first started spotting it was like the 2nd week of ramadan. I didnt pay any attention to it, because it happened before and my period wasnt due until the following week. But one day the flow had changed so I assumed that my period was starting early. The following day it stopped and it went back to spotting. So that was two days that I had to make up. After that it was spotting and light bleeding, and I just made wudoo , prayed and fasted. That Sunday the flow changed again, it was continuous and the flow was medium. My period was due in two days. so i broke my fast and since sunday Ive been having light bleeding to somewhat medium, To light spotting. It has been irritating because now i have 10 days to make up and counting. 😩😩

When i went to the OBGYN she did some tests, and everything came back fine. She said that it could have been hormones imbalance.