I have a field collection 'field_test_outline' under this there are two fields given 'field_enter_module_name' and 'field_enter_module_details'.

Module 1

details......
Module 2

details.........
like

I want to enter a module name and below its details. Also this should be displayed in node like an accordion.

How can i achieve it? I need it like the image attached.

Attachement :

Please see the layout to be done