CBT operates by helping individuals identify and alter negative thought patterns, offering practical tools to cultivate a positive mindset.