/* Course Detail Page Styles */

.course-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
}

/* Short Description Section */
.course-intro {
    text-align: center;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(255, 248, 240, 0.6) 0%, rgba(255, 240, 230, 0.4) 100%);
    border-radius: 16px;
}

.course-intro p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-0);
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Class Details Section (Rich Text) */
.course-details {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.course-details .rich-text-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Upcoming Classes Section */
.course-classes {
    margin-top: 3rem;
}

.course-classes h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-0);
    font-size: 1.5rem;
    font-weight: 500;
}

.course-classes .classes-list {
    background-color: transparent;
    padding: 0;
}

.course-classes .no-classes {
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
}

.course-classes .no-classes p {
    margin: 0.5rem 0;
    color: var(--color-0); /* dark enough on the patterned background (R-114) */
}

/* Underlined, so it is recognisable as a link without relying on colour (R-114) */
.course-classes .no-classes a {
    color: var(--color-2); /* dark brown: terracotta drops below 4.5:1 on this block's tint */
    text-decoration: underline;
}

.course-classes .no-classes p:first-child {
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .course-container {
        padding: 0 1rem 1.5rem;
    }

    .course-intro {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }

    .course-intro p {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .course-details {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }

    .course-details .rich-text-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .course-classes {
        margin-top: 2rem;
    }

    .course-classes h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .course-container {
        padding: 0 0.75rem 1rem;
    }

    .course-intro {
        padding: 1rem 0.75rem;
    }

    .course-intro p {
        font-size: 1rem;
    }

    .course-details .rich-text-content {
        font-size: 0.95rem;
    }

    .course-classes h2 {
        font-size: 1.2rem;
    }
}
