Course recommender systems (CRSs) play an important role in helping students navigate large-scale online course platforms. However, effective course recommendation remains challenging due to sparse interaction data and the lack of explicit, learning-oriented representations on both the student and course sides. In this paper, we propose SORARec, a Student prOfile and couRse Attribute–aware Recommendation model that leverages large language models (LLMs) to enrich educational recommendations with learning-aware semantic information. Specifically, SORARec employs an LLM to infer structured student profiles and learning-relevant course attributes from historical enrollments and course metadata. These inferred semantics are encoded into dense embeddings and integrated with collaborative representations through a lightweight graph-based fusion mechanism. Unlike approaches that rely on LLMs for direct recommendation, SORARec uses LLMs only in an offline inference stage, preserving efficiency and scalability. Experiments on the real-world MOOC dataset demonstrate that SORARec consistently outperforms baselines under both general and cold-start settings. Ablation studies further confirm the complementary contributions of student profile and course attributes. The results indicate that jointly modeling student profiles and course attributes provides an effective and practical way to improve course recommendation performance in educational scenarios.