{% extends 'base.html' %}

{% block title %}{{ course.title }}{% endblock %}

{% block content %}
<div class="container mt-5">
    <div class="row">
        <div class="col-lg-8">
            <h1 class="mb-4">{{ course.title }}</h1>
            <p class="lead">by {{ course.instructor.name }}</p>
            <hr>
            <p>{{ course.description }}</p>
        </div>
        <div class="col-lg-4">
            <div class="card">
                <div class="card-body">
                    <h5 class="card-title">Course Details</h5>
                    <p class="card-text"><strong>Price:</strong> ${{ course.price }}</p>
                    <a href="#" class="btn btn-success w-100">Add to Wishlist</a>
                    <a href="#" class="btn btn-primary w-100 mt-2">Enroll Now</a>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}
