Adding a border around modules in a row with columns results in this problem: the bottom borders are not equally aligned.

Equalize column heights doesn’t help, because that applies to the columns, not to the modules inside the columns.
Solution 1
Remove the column borders from the modules. Then add a border to the columns on the design tab of each column.
Solution 2
Remove the column borders from the modules. Then add a border to the columns in the row settings » custom css » Column » Main element:
border: 1px dotted #004a99;
Code language: CSS (css)