root = Card([header, progressSection, nextLesson, modulesSection, ratingSection, continueActions])
header = CardHeader("Python for Data Science", "Instructor: Dr. Maya Chen")
progressSection = Card([progressHeading, progressBar, progressText], "sunk")
progressHeading = Heading("Overall Progress", "h3")
progressBar = Progress(68, "68% complete")
progressText = TextContent("You've completed **17 of 25 lessons** across 6 modules. Keep it up!")
nextLesson = Card([nextLabel, nextTitle, nextMeta, nextButton], "sunk", "column", "s")
nextLabel = Badge("Up Next", "secondary")
nextTitle = Heading("Lesson 4.3: Pandas DataFrames — Filtering & Grouping", "h4")
nextMeta = TextContent("Module 4 · Data Wrangling · ~25 min", "small")
nextButton = Button("Continue Learning", null, "primary", "normal", "large")
modulesSection = Card([modulesHeading, modulesTable], "sunk")
modulesHeading = Heading("Modules", "h3")
modulesTable = Table([moduleCol, statusCol])
moduleCol = Col("Module", ["1 · Python Basics", "2 · NumPy Essentials", "3 · Data Visualization", "4 · Data Wrangling", "5 · Statistics & Inference", "6 · Final Project"])
statusCol = Col("Status", ["Completed", "Completed", "Completed", "In Progress", "Not Started", "Not Started"])
ratingSection = Card([ratingHeading, ratingValue, ratingDetail], "sunk")
ratingHeading = Heading("Learner Rating", "h3")
ratingValue = TextContent("**4.8 / 5.0**", "large-heavy")
ratingDetail = TextContent("Average across **2,340 reviews** from learners like you.", "small")
continueActions = Buttons([resumeBtn, reviewBtn])
resumeBtn = Button("Resume Lesson 4.3")
reviewBtn = Button("Review Module 3", null, "secondary")