Template-fitting meets deep learning: redshift estimation using physics-guided neural networks (Journal of Astrophysics and Astronomy, 2026)