/* /assets/css/course_details.css */

:root {
    --primary-blue: #1a237e;
    --accent-gold: #d8b704;
    --light-bg: #f8f9fa;
    --card-bg-light: #ffffff;
    --border-light: #e9ecef;
    --text-dark: #212529;
    --text-muted: #6c757d;

    --card-bg-dark: #343a40;
    --border-dark: #495057;
    --text-light: #f8f9fa;
    --text-muted-dark: #adb5bd;
}

/* 1. Main Layout & Image ============================================ */
.course-image-wrapper {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.course-image {
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
}

/* 2. Course Info Column ============================================== */
.course-info .course-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
}

.course-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1rem 0 1.5rem 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.meta-item i {
    color: var(--primary-blue);
}

.course-description {
    font-size: 1.05rem;
    line-height: 1.7;
}

/* 3. Enrollment Action Box ========================================== */
.enrollment-box {
    background-color: var(--card-bg-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.price-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.price-display .free {
    color: #28a745;
}
.price-display .paid {
    color: var(--primary-blue);
}

.enrollment-box p {
    color: var(--text-muted);
}

.btn-enroll-now {
    width: 100%;
    background-color: var(--accent-gold);
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 15px;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-enroll-now:hover {
    background-color: #c9a803;
    box-shadow: 0 5px 20px rgba(216, 183, 4, 0.4);
    transform: translateY(-3px);
    color: var(--text-dark);
}


/* 4. Dark Mode & Responsive ========================================= */
body.dark-mode .course-info .course-title {
    color: var(--text-light);
}
body.dark-mode .course-meta-info {
    color: var(--text-muted-dark);
}
body.dark-mode .enrollment-box {
    background-color: var(--card-bg-dark);
    border-color: var(--border-dark);
}
body.dark-mode .price-display .paid {
    color: var(--text-light);
}

@media (max-width: 767px) {
    .course-info .course-title {
        font-size: 2.2rem;
    }
}