Text this: Secure THz Communication in 6G: A Two-Stage DRL Approach for IRS-Assisted NOMA