/* ================================
   ENHANCED COURSE DETAILS STYLES
================================ */

/* Hero Section Enhancements */
.course-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.course-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,138.7C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.course-stats-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.course-stats-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Enhanced Cards */
.enhanced-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.enhanced-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.enhanced-card .card-header-custom {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #667eea;
    padding: 1.25rem 1.5rem;
}

.enhanced-card .card-header-custom h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.enhanced-card .card-header-custom .icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.icon-wrapper.green {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #27ae60;
}

.icon-wrapper.blue {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #3498db;
}

.icon-wrapper.orange {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #f39c12;
}

.icon-wrapper.purple {
    background: linear-gradient(135deg, #e7d6f7 0%, #dac3ed 100%);
    color: #764ba2;
}

/* Learning Goals Grid */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.goal-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #27ae60;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.goal-item:hover {
    background: #e9f7ef;
    transform: translateX(4px);
}

.goal-item i {
    color: #27ae60;
    font-size: 1.2rem;
    margin-top: 2px;
}

/* Curriculum Section */
.curriculum-accordion .card {
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.curriculum-accordion .card-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: none;
    padding: 0;
}

.curriculum-accordion .section-header-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.curriculum-accordion .section-header-btn:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.curriculum-accordion .section-header-btn .section-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

.curriculum-accordion .section-header-btn .expand-icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    color: #667eea;
}

.curriculum-accordion .section-header-btn[aria-expanded="true"] .expand-icon {
    transform: rotate(90deg);
}

.curriculum-accordion .lecture-item {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.curriculum-accordion .lecture-item:hover {
    background: #f8f9fa;
    padding-left: 2rem;
}

.curriculum-accordion .lecture-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #27ae60;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.curriculum-accordion .lecture-badge {
    background: #e7f3ff;
    color: #3498db;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Sidebar Enhancements */
.sidebar-sticky {
    position: sticky;
    top: 20px;
}

.enrollment-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.enrollment-card .course-thumbnail {
    position: relative;
    overflow: hidden;
}

.enrollment-card .course-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.enrollment-card:hover .course-thumbnail img {
    transform: scale(1.05);
}

.enrollment-card .price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.enroll-btn {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.enroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
    color: white;
}

.continue-btn {
    background: linear-gradient(135deg, #3498db 0%, #2874a6 100%);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.continue-btn:hover {
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.course-includes-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.course-includes-list li:last-child {
    border-bottom: none;
}

.course-includes-list li:hover {
    padding-left: 0.5rem;
    background: #f8f9fa;
}

.course-includes-list li i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #f39c12;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Instructor Card */
.instructor-mini-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.instructor-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #667eea;
    object-fit: cover;
}

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

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

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .goals-grid {
        grid-template-columns: 1fr;
    }
    
    .course-stats-badge {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .enrollment-card .course-thumbnail img {
        height: 180px;
    }
}
