The Role of AI in Modern Education: Opportunities and Challenges