A good
case study should do more than describe a situation. It should identify a specific problem, examine its root causes, analyse reliable evidence and recommend practical solutions.

For students preparing academic assignments, a structured approach can make the writing process easier.
Some important steps include:
Selecting a focused topic.
Identifying the main problem using methods such as the 5 Whys.
Collecting evidence from multiple sources.
Analysing findings with an appropriate framework.
Comparing possible solutions.
Writing a clear report with references.
The exact structure can vary depending on the assignment, but a typical case study includes an introduction, background, problem statement, methodology, findings, recommendations and conclusion.
I found this detailed guide useful for understanding the process:
https://thecampusreview.com/careers/how-to-write-a-case-study/What do you find most challenging when writing a case study: research, identifying the root cause, analysing data or presenting recommendations?