ContexGuard: A Modular, Context-Aware Adaptive Security Framework for Dynamic Edge Environments (VFAST Transactions on Software Engineering, 2026)