Yes using FIR is good idea, but if you want to go IIR way a simple biquad structure implements all kinds of filters (LP, HP, BP, BR, halving, etc), you can use calculator here to find out coefficients needed
https://www.earlevel.com/main/2021/09/02/biquad-calculator-v3/
And C++ source code...