<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>!!!Course Catalog!!!</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    {% load static %}
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Roboto:wght@400;500&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="{% static 'css/custom.css' %}">
</head>
<body>

    <header class="hero">
        <div class="container">
            <h1>Explore Our Courses</h1>
            <p>Find your next learning adventure.</p>
            <a href="#courses" class="btn btn-lg btn-light">Browse Catalog</a>
        </div>
    </header>

    <main id="courses" class="container my-5">
        <h2 class="text-center mb-5">Featured Courses</h2>
        <div class="course-grid">
            {% for course in courses %}
            <div class="course-card">
                <div class="course-card-content">
                    <h3>{{ course.title }}</h3>
                    <p class="course-instructor">By {{ course.instructor.name }}</p>
                    <p>{{ course.description }}</p>
                    <div class="d-flex justify-content-between align-items-center">
                        <p class="course-price">${{ course.price }}</p>
                        <a href="#" class="btn btn-primary">View Details</a>
                    </div>
                </div>
            </div>
            {% endfor %}
        </div>
    </main>

    <footer class="text-center py-4 bg-light">
        <p>&copy; 2025 Your Company. All Rights Reserved.</p>
    </footer>

</body>
</html>
