Accordion menus allow users to expand and collapse content sections.
They are commonly used in FAQs, side menus, and help pages.
Only one section is usually open at a time.
Logic of this project:
- Hide all content panels
- Detect header click
- Toggle selected panel
- Close others
Each title controls its content section.
slideToggle creates smooth accordion animation.
Learning Points:
- slideUp / slideToggle
- next() traversal
- Accordion logic
- FAQ UI design