Answer
In 2008, Borut Pahor was elected as the Prime Minister of Slovenia, serving until 2012. He later became the President of Slovenia in 2012 and held the office until 2022. Pahor's tenure as Prime Minister was marked by the global financial crisis, which led to a recession in Slovenia. He implemented austerity measures to address the economic challenges and focused on strengthening ties with the European Union.