/* Container */
.mwl-courses-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Grid Layout */
.mwl-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Course Card */
.mwl-course-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

/* Card Header */
.mwl-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mwl-course-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2e7d32;
}

.mwl-course-icon.mwl-type-video {
    background: #e3f2fd;
    color: #1976d2;
}

.mwl-course-icon.mwl-type-lettura {
    background: #e8f5e9;
    color: #2e7d32;
}

.mwl-course-icon.mwl-type-guida {
    background: #fff3e0;
    color: #f57c00;
}

.mwl-course-icon.mwl-type-default {
    background: #f5f5f5;
    color: #757575;
}

.mwl-course-duration {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Card Content */
.mwl-course-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.mwl-course-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

/* Card Footer */
.mwl-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #eeeeee;
    margin-top: auto;
}

.mwl-course-type {
    font-size: 13px;
    color: #2e7d32;
    font-weight: 500;
}

.mwl-course-link {
    color: #1976d2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.mwl-course-link:hover {
    color: #1565c0;
}

/* View All Button */
.mwl-view-all {
    text-align: center;
    margin-top: 40px;
}

.mwl-btn-view-all {
    display: inline-block;
    padding: 14px 32px;
    background: #ffffff;
    color: #1976d2;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid #1976d2;
    transition: all 0.3s ease;
}

.mwl-btn-view-all:hover {
    background: #1976d2;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

/* No Courses Message */
.mwl-no-courses {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .mwl-course-grid {
        grid-template-columns: 1fr;
    }
    
    .mwl-courses-container {
        padding: 20px 15px;
    }
}