/* Courses Page Styles */
.courses-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.courses-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.courses-description {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Course Cards */
.course-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.course-image {
    position: relative;
    height: 200px;
    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: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover .course-overlay {
    opacity: 1;
}

.course-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.course-category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-status.active {
    background: #e8f5e8;
    color: #2e7d32;
}

.course-status.inactive {
    background: #ffebee;
    color: #c62828;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.course-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.course-title a:hover {
    color: #667eea;
}

.course-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.course-stats {
    color: #666;
    font-size: 0.9rem;
}

.course-stats .stat {
    display: flex;
    align-items: center;
}

/* No Courses State */
.no-courses {
    padding: 4rem 2rem;
}

.no-courses-icon {
    font-size: 4rem;
    color: #ddd;
}

.no-courses h3 {
    color: #666;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
}

.cta-description {
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .courses-title {
        font-size: 2rem;
    }
    
    .course-card {
        margin-bottom: 2rem;
    }
    
    .course-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .course-actions {
        text-align: center;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
