/* Course Details Page - Professional Design */

.course-details-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.course-details-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.course-details-container {
    position: relative;
    z-index: 1;
}

/* Course Header Card */
.course-header-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
}

.course-thumbnail-wrapper {
    position: relative;
    overflow: hidden;
    height: 450px;
}

.course-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-thumbnail-wrapper:hover .course-thumbnail {
    transform: scale(1.05);
}

.course-thumbnail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem;
    color: #fff;
}

.course-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.course-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #fff;
}

.course-play-button i {
    font-size: 2rem;
    color: #667eea;
    margin-left: 5px;
}

/* Course Info Section */
.course-info-section {
    padding: 2rem;
}

.course-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.course-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.badge-custom {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.badge-access {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: #fff;
}

.badge-level {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

/* Course Meta */
.course-meta-bar {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.meta-item-custom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    font-size: 0.95rem;
}

.meta-item-custom i {
    color: #667eea;
    font-size: 1.2rem;
}

.meta-item-custom strong {
    color: #2d3748;
}

/* Course Description */
.course-description {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.course-description h4 {
    color: #2d3748;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.course-description h4 i {
    color: #667eea;
}

.course-description p {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Course Content Accordion */
.course-content-section {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.content-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.content-section-header h4 {
    color: #2d3748;
    font-weight: 700;
    margin: 0;
}

.content-section-header i {
    color: #667eea;
    font-size: 1.5rem;
}

.custom-accordion .accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.custom-accordion .accordion-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    border: none;
    font-size: 1.05rem;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: none;
}

.custom-accordion .accordion-button:focus {
    box-shadow: none;
    border: none;
}

.custom-accordion .accordion-button::after {
    filter: brightness(0) invert(1);
}

.custom-accordion .accordion-body {
    padding: 0;
}

/* Video/Exam List Items */
.content-list-item {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #2d3748;
}

.content-list-item:last-child {
    border-bottom: none;
}

.content-list-item:hover {
    background: #f7fafc;
    padding-left: 2rem;
}

.content-item-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.content-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.icon-video {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.icon-exam {
    background: rgba(72, 187, 120, 0.1);
    color: #48bb78;
}

.content-item-title {
    font-weight: 500;
    color: #2d3748;
}

.content-item-duration {
    color: #718096;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-item-number {
    background: #e2e8f0;
    color: #4a5568;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Sidebar Card */
.course-sidebar-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.sidebar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 1.5rem;
    text-align: center;
}

.sidebar-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1.3rem;
}

.sidebar-content {
    padding: 2rem;
}

.sidebar-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.sidebar-stat:hover {
    background: #edf2f7;
    transform: translateX(5px);
}

.sidebar-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon-primary {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.stat-icon-info {
    background: rgba(49, 130, 206, 0.1);
    color: #3182ce;
}

.stat-icon-success {
    background: rgba(72, 187, 120, 0.1);
    color: #48bb78;
}

.sidebar-stat-content strong {
    display: block;
    font-size: 1.2rem;
    color: #2d3748;
}

.sidebar-stat-content small {
    color: #718096;
}

/* Action Buttons */
.sidebar-actions {
    margin-top: 1.5rem;
}

.btn-course-action {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: none;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    color: #fff;
}

.btn-gradient-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: #fff;
}

.btn-gradient-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(72, 187, 120, 0.3);
    color: #fff;
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-outline-custom:hover {
    background: #667eea;
    color: #fff;
}

/* Access Alert */
.access-alert {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.access-alert strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.access-alert ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

/* Instructor Card */
.instructor-card {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.instructor-card h6 {
    color: #2d3748;
    font-weight: 700;
    margin-bottom: 1rem;
}

.instructor-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.instructor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

.instructor-details strong {
    display: block;
    color: #2d3748;
    font-size: 1.05rem;
}

.instructor-details small {
    color: #718096;
}

/* Breadcrumb Custom */
.custom-breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

.custom-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.custom-breadcrumb .breadcrumb-item a:hover {
    color: #fff;
}

.custom-breadcrumb .breadcrumb-item.active {
    color: #fff;
}

.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* Progress Stats */
.progress-stats {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.progress-stat-item {
    margin-bottom: 1rem;
}

.progress-stat-item:last-child {
    margin-bottom: 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.progress-bar-custom {
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

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

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in {
    animation: slideInRight 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 991px) {
    .course-sidebar-card {
        position: static;
        margin-top: 2rem;
    }
    
    .course-title {
        font-size: 2rem;
    }
    
    .course-thumbnail-wrapper {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .course-details-hero {
        padding: 2rem 0;
    }
    
    .course-title {
        font-size: 1.75rem;
    }
    
    .course-meta-bar {
        gap: 1rem;
    }
    
    .course-info-section {
        padding: 1.5rem;
    }
    
    .sidebar-content {
        padding: 1.5rem;
    }
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
