Answer
Prior to his election as President of Slovenia, Borut Pahor served as the country's Prime Minister from 2008 to 2012. His tenure as Prime Minister was marked by efforts to navigate the global financial crisis and implement reforms to address economic challenges. He also played a key role in promoting Slovenia's membership in the European Union and the eurozone during his time as Prime Minister.