.oew-moodle-course {
    max-width: 1350px;
    margin: 0 auto;
    padding: 16px;
}

.oew-moodle-course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .oew-moodle-course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .oew-moodle-course-grid {
        grid-template-columns: 1fr;
    }
}

.oew-moodle-course-card {
    display: flex;
    align-items: center;
    height: 120px;
    background: var(--oew-background);
    border-left: 4px solid var(--oew-primary);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px var(--oew-shadow);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.oew-moodle-course-card:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 16px var(--oew-shadow-hover);
}

.oew-moodle-course-number {
    width: 48px;
    height: 48px;
    background: var(--oew-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin-right: 16px;
    flex-shrink: 0;
}

.oew-moodle-course-content {
    flex: 1;
    min-width: 0;
}

.oew-moodle-course-title {
    font-family: verdana;
    font-size: 18px;
    color: var(--oew-primary, #003556);
    margin: 0;
}

.oew-moodle-course-badge {
    display: inline-block;
    background: var(--oew-secondary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    margin-top: 8px;
}

.oew-moodle-course-icon {
    font-size: 32px;
    color: #999;
    margin-left: auto;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.oew-moodle-course-card:hover .oew-moodle-course-icon {
    color: var(--oew-primary);
}

.oew-moodle-course-detail {
    display: none;
    margin-top: 24px;
}

.oew-moodle-course-detail.active {
    display: block;
}

.oew-moodle-course-hero {
    background: linear-gradient(135deg, var(--oew-primary) 0%, #005078 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0 0;
}

.oew-moodle-course-hero-title {
    color: white;
    font-family: verdana;
    font-size: 32px;
    margin: 0;
    text-align: center;
    padding: 0 24px;
}

.oew-moodle-course-resources {
    padding: 24px;
    background: white;
    border-radius: 0 0 8px 8px;
    margin-top: 0;
    box-shadow: 0 2px 8px var(--oew-shadow);
}

.oew-moodle-course-resource {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.oew-moodle-course-resource:last-child {
    border-bottom: none;
}

.oew-moodle-course-resource-icon {
    font-size: 24px;
    margin-right: 16px;
    color: var(--oew-secondary);
    flex-shrink: 0;
}

.oew-moodle-course-resource-name {
    flex: 1;
    font-size: 14px;
    color: var(--oew-text);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oew-moodle-course-resource-download a {
    color: var(--oew-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.oew-moodle-course-resource-download a:hover {
    color: var(--oew-secondary);
}

.oew-moodle-course-no-resources {
    color: var(--oew-text-muted, #666666);
    text-align: center;
    padding: 24px;
    margin: 0;
}

.oew-moodle-course-error,
.oew-moodle-course-empty,
.oew-moodle-course-invalid,
.oew-moodle-course-auth {
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    margin: 16px 0;
}

.oew-moodle-course-error {
    background: #fff5f5;
    border: 1px solid #ffcccc;
    color: #cc0000;
}

.oew-moodle-course-empty {
    background: var(--oew-surface, #f5f5f5);
    border: 1px solid #ddd;
    color: var(--oew-text-muted, #666666);
}

.oew-moodle-course-invalid {
    background: #fff5f5;
    border: 1px solid #ffcccc;
    color: #cc0000;
}

.oew-moodle-course-auth {
    background: #fff5f5;
    border: 1px solid #ffcccc;
    color: #cc0000;
}

.oew-moodle-course-error p,
.oew-moodle-course-empty p,
.oew-moodle-course-invalid p,
.oew-moodle-course-auth p {
    margin: 0;
}

.oew-moodle-course-skeleton {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .oew-moodle-course-skeleton {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .oew-moodle-course-skeleton {
        grid-template-columns: 1fr;
    }
}

.oew-skeleton-card {
    height: 120px;
    background: #f0f0f0;
    border-radius: 8px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}