/* Course Header */
.course-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.course-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.course-meta .meta-item {
    display: flex;
    align-items: center;
}

.instructor-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

/* Course Detail Card */
.course-detail-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.course-detail-card .card-img-top {
    height: 250px;
    object-fit: cover;
}

.price-section {
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

/* Tabs */
.nav-pills .nav-link {
    color: #666;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s;
}

.nav-pills .nav-link:hover {
    background-color: #f8f9fa;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #667eea;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(102, 126, 234, 0.5);
}

.accordion-body ul li {
    transition: all 0.3s;
}

.accordion-body ul li:hover {
    background-color: #f8f9fa;
    padding-left: 10px;
    border-radius: 5px;
}

/* Rating Summary */
.rating-summary {
    border: 2px solid #f0f0f0;
}

.progress {
    background-color: #f0f0f0;
}

/* Review Item */
.review-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Related Courses */
.related-course-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.related-course-item:hover {
    background-color: #f8f9fa;
    padding: 10px;
    margin: -10px;
    border-radius: 10px;
    transition: all 0.3s;
}

/* Sticky Card */
@media (min-width: 992px) {
    .sticky-top {
        position: sticky;
        top: 100px;
        z-index: 1020;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .course-header h1 {
        font-size: 1.75rem;
    }

    .course-meta {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    .nav-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-pills .nav-link {
        white-space: nowrap;
        padding: 0.5rem 1rem;
    }

    .sticky-top {
        position: relative !important;
        top: 0 !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane {
    animation: fadeIn 0.3s ease-in-out;
}

/* Cursor */
.cursor-pointer {
    cursor: pointer;
}


.course-content .rating-summary .rating {
  display: flex;
  justify-content: center;
  gap: 4px; /* tùy chọn */
}