Markets exhibit resilience while navigating headwinds