/* ===== COURSES PAGE STYLES ===== */
/* Matching kaylapadilla.org/courses style */

.courses-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 50px 40px;
    background-color: white;
    border-radius: 10px;
}

/* Courses page nav override */
body:has(.courses-page) nav {
    background-color: #2874a6;
    border-bottom: none;
}

body:has(.courses-page) nav a {
    color: rgba(255, 255, 255, 0.9);
}

body:has(.courses-page) nav a:hover {
    color: #ffffff;
}

body:has(.courses-page) .nav-brand {
    color: #ffffff !important;
}

.courses-page > h1 {
    font-size: 40px;
    color: #222;
    margin-bottom: 40px;
    text-align: left;
}

/* Institution heading */
.courses-institution h2 {
    font-size: 18px;
    color: #222;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 25px;
    padding-bottom: 0;
    text-align: left;
}

.courses-institution h2::after {
    display: none;
}

/* Course section group */
.courses-section {
    margin-bottom: 30px;
}

.courses-section h3 {
    font-size: 15px;
    color: #222;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Individual course items */
.course-item {
    font-size: 15px;
    color: #555;
    margin: 0;
    padding: 4px 0;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 600px) {
    .courses-page {
        padding: 30px 20px;
    }

    .courses-page > h1 {
        font-size: 28px;
    }
}
