Num = 2; // Intermediate
            else levelNum = 3;                           // Advanced

            // Prepare level badges
            let levelsHTML = "";
            for (let key in c.levelCounts) {
                let cls = key === "Level1" ? "level-L1" :
                    key === "Level2" ? "level-L2" :
                        key === "Level3" ? "level-L3" :
                            key === "Easy" ? "level-Easy" :
                                key === "Intermediate" ? "level-Intermediate"