/* Courses Page Layout */
.courses-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    max-width: 800px;
    margin: auto;
}

.course-section {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    padding: 16px;
}

.course-section h1 {
    font-size: 24px;
    font-weight: bold;
    color: #222;
    border-bottom: 2px solid #0073b1;
    padding-bottom: 6px;
    margin-bottom: 16px;
}

.course-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #0073b1;
    padding-bottom: 6px;
    margin-bottom: 12px;
    margin-top: 24px;
}

.course-section h3 {
    font-size: 18px;
    font-weight: 500;
    color: #444;
    margin-top: 20px;
    margin-bottom: 10px;
}

.course-section h4 {
    font-size: 16px;
    font-weight: 500;
    color: #555;
    margin-top: 18px;
    margin-bottom: 8px;
}

.chapter-list li {
    margin-bottom: 8px;
    font-size: 15px;
    color: #333;
}

.chapter-list li::marker {
    color: #0073b1;
}

/* Form Styling */
.course-form {
    background: #f9f9f9;
    padding: 16px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.course-form button {
    margin-top: 10px;
}

/* Topic View Extensions */
.topic-headline {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
}

.topic-body {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

.topic-tip {
    margin-top: 16px;
    padding: 12px;
    background: #e9f5ff;
    border-left: 4px solid #0073b1;
    font-style: italic;
    color: #333;
}

/* Code Block Styling */
pre,
code {
    font-family: Consolas, "Courier New", monospace;
    background-color: #f4f4f4;
    color: #222;
}

pre {
    padding: 12px;
    overflow-x: auto;
    border-left: 4px solid #0073b1;
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.5;
}

code {
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 14px;
}

/* Course Link Style */
.course-link {
    font-weight: 600;
    font-size: 16px;
    color: black;
    text-decoration: none;
}

.course-link:hover,
.course-link:focus {
    text-decoration: none;
    color: #005580;
}

.course-link:visited {
    color: #0073b1;
    text-decoration: none;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .courses-container {
        padding: 12px;
    }

    .course-section h1 {
        font-size: 22px;
    }

    .course-section h2 {
        font-size: 18px;
    }

    .course-section h3 {
        font-size: 16px;
    }

    .chapter-list li {
        font-size: 14px;
    }

    .topic-body {
        font-size: 15px;
    }
}
