Portugal’s economy has shifted significantly since its colonial empire peak, now dominated by services and facing challenges in education funding.