Low-frequency acoustic propagation modeling in coastal waters usually relies on numerical models based on modal theory such as Kraken and Orca. These models compute the modal parameters (e.g., modal wavenumbers and depth functions) that can be used in the calculation of the acoustic field. Their repeated use in broadband applications, or for inversion purposes, comes with a notable computational cost. To mitigate this, a modular neural network (NN) was trained to approximate modal parameters for varying modes and frequencies, across diverse environments, with variable water sound speed profile and variable seabed geoacoustic parameters. The training dataset is generated using Kraken and the NN is evaluated on many environments not seen during training. Once trained, the NN can make broadband predictions without prior knowledge on the number of modes, even when the number of modes changes over the frequency-band of interest. This approach reduces computation time compared to the original forward propagation model, while maintaining high precision. The effectiveness of our method is demonstrated through transmission loss calculations and a simulated geoacoustic inversion scenario.