/* 
 * PyCampus - Course Page Styles
 * v1.0
 */

/* Course page specific styles */
.course-full-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.course-full-description p {
    margin-bottom: 1rem;
}

.course-details {
    background-color: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

/* Enrollment Card */
.enrollment-card {
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    z-index: 900;
}

/* Course Header */
.course-header {
    margin-bottom: 2rem;
}

.course-header .badge {
    padding: 0.5rem 0.8rem;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-radius: 8px;
}

.course-header h1 {
    margin-bottom: 1.5rem;
}

.course-meta {
    font-size: 0.95rem;
}

.course-meta i {
    width: 20px;
    text-align: center;
    opacity: 0.9;
}

.course-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Course Tabs */
.nav-tabs {
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 2rem;
}

.nav-tabs .nav-link {
    border: none;
    padding: 0.75rem 1rem;
    color: #6c757d;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.nav-tabs .nav-link:hover {
    color: #007bff;
    background-color: transparent;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    background-color: transparent;
    border-bottom: 2px solid #007bff;
}

/* Tab Content */
.tab-pane {
    padding: 1rem 0;
}

.tab-pane h3 {
    color: #343a40;
    font-weight: 700;
}

/* Curriculum List */
.curriculum-list .lesson-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    overflow: hidden;
}

.curriculum-list .lesson-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.curriculum-list .lesson-number {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
}

/* Reviews */
.review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review-item .rating {
    font-size: 0.9rem;
}

/* Related Courses */
.related-course h6 {
    font-size: 1rem;
}

.related-course .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
}

/* Progress Bar */
.progress {
    border-radius: 10px;
    height: 8px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    background-color: #28a745;
    transition: width 1s ease;
}

/* Button Styles */
.btn-primary {
    background-color: #4361ee;
    border-color: #4361ee;
}

.btn-primary:hover {
    background-color: #3a0ca3;
    border-color: #3a0ca3;
}

.btn-outline-primary {
    color: #4361ee;
    border-color: #4361ee;
}

.btn-outline-primary:hover {
    background-color: #4361ee;
    border-color: #4361ee;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .enrollment-card {
        position: static;
        width: 100% !important;
    }
    
    .course-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .course-meta {
        flex-wrap: wrap;
    }
    
    .course-meta > div {
        margin-bottom: 0.5rem;
    }
    
    .course-header h1 {
        font-size: 1.75rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}