/**
 * Wagtail LMS - Course Page Styles
 *
 * Minimal, functional styling for course pages.
 * Override these styles in your project or replace entirely with your CSS framework.
 */

/* Layout */
.lms-course {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.lms-course__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .lms-course__layout {
        grid-template-columns: 2fr 1fr;
    }
}

.lms-course__main {
    min-width: 0; /* Prevents grid overflow */
}

.lms-course__sidebar {
    min-width: 0;
}

/* Course content */
.lms-course__description {
    margin: 1.5rem 0;
    line-height: 1.6;
}

.lms-course__info {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-left: 4px solid #ddd;
}

.lms-course__info h3 {
    margin-top: 0;
}

/* Enrollment section */
.lms-enrollment {
    margin: 2rem 0;
}

/* Notices (info, warning, success) */
.lms-notice {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    border-radius: 4px;
    line-height: 1.5;
}

.lms-notice--info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.lms-notice--warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.lms-notice--success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Buttons */
.lms-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.lms-button--primary {
    background-color: #007bff;
    color: white;
}

.lms-button--primary:hover {
    background-color: #0056b3;
    color: white;
}

.lms-button--success {
    background-color: #28a745;
    color: white;
}

.lms-button--success:hover {
    background-color: #218838;
    color: white;
}

/* Sidebar */
.lms-sidebar-section {
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.lms-sidebar-section h4 {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Info list */
.lms-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lms-info-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.lms-info-list li:last-child {
    border-bottom: none;
}
