/* Professional Courses Section Styles */

.courses-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.course-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.course-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover .course-overlay {
    opacity: 1;
}

.course-level {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.course-content {
    padding: 32px;
}

.course-title {
    font-size: 24px;
    font-weight: 900;
    color: #1e40af;
    margin-bottom: 12px;
    line-height: 1.3;
}

.course-description {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 48px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.course-duration {
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
}

.course-price {
    color: #dc2626;
    font-size: 18px;
    font-weight: 900;
}

.course-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.feature-tag {
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.feature-tag::before {
    content: '✓';
    color: #10b981;
    font-size: 10px;
}

.btn-outline {
    background: transparent;
    color: #1e40af;
    border: 2px solid #1e40af;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-outline:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .courses-section {
        padding: 40px 0;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 32px;
    }
    
    .course-card {
        border-radius: 16px;
    }
    
    .course-image {
        height: 200px;
    }
    
    .course-content {
        padding: 24px;
    }
    
    .course-title {
        font-size: 20px;
    }
    
    .course-description {
        font-size: 14px;
        min-height: 40px;
    }
    
    .course-meta {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 12px 0;
    }
    
    .course-features {
        justify-content: center;
    }
    
    .btn-outline {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .course-card {
        border-radius: 12px;
    }
    
    .course-image {
        height: 180px;
    }
    
    .course-content {
        padding: 20px;
    }
    
    .course-title {
        font-size: 18px;
    }
    
    .course-description {
        font-size: 13px;
        min-height: 36px;
    }
}

/* Dark Mode */
.dark-mode .courses-section {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.dark-mode .course-card {
    background: #1f2937;
    border-color: #374151;
}

.dark-mode .course-title {
    color: #f3f4f6;
}

.dark-mode .course-description {
    color: #9ca3af;
}

.dark-mode .course-meta {
    border-top-color: #374151;
    border-bottom-color: #374151;
}

.dark-mode .course-duration {
    color: #9ca3af;
}

.dark-mode .course-price {
    color: #f87171;
}

.dark-mode .feature-tag {
    background: #374151;
    color: #f3f4f6;
}

.dark-mode .btn-outline {
    color: #60a5fa;
    border-color: #3b82f6;
}

.dark-mode .btn-outline:hover {
    background: #3b82f6;
    color: white;
}

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

.course-card {
    animation: fadeInUp 0.6s ease-out;
}

.course-card:nth-child(1) { animation-delay: 0.1s; }
.course-card:nth-child(2) { animation-delay: 0.2s; }
.course-card:nth-child(3) { animation-delay: 0.3s; }
.course-card:nth-child(4) { animation-delay: 0.4s; }
.course-card:nth-child(5) { animation-delay: 0.5s; }
.course-card:nth-child(6) { animation-delay: 0.6s; }

/* Loading Skeleton */
.course-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Course Badge */
.course-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #dc2626;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
}

.course-badge.popular {
    background: #f59e0b;
}

.course-badge.new {
    background: #10b981;
}

/* Course Rating */
.course-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.star {
    color: #fbbf24;
    font-size: 16px;
}

.star.filled {
    color: #f59e0b;
}

/* Course Instructor */
.course-instructor {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.instructor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.instructor-info {
    flex: 1;
}

.instructor-name {
    font-weight: 700;
    color: #1f2937;
    font-size: 14px;
}

.instructor-title {
    color: #6b7280;
    font-size: 12px;
}

/* Course Schedule */
.course-schedule {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.schedule-item {
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #374151;
    font-weight: 600;
}

/* Course Progress */
.course-progress {
    margin-bottom: 16px;
}

.progress-bar {
    background: #e5e7eb;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Course Stats */
.course-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.stat-value {
    font-size: 20px;
    font-weight: 900;
    color: #1e40af;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}
