﻿.campusbook-courses {
   /* background: #f8fbff;*/
}

/* Section heading */

.section-heading h2 {
    color: #17365d;
    font-size: 2.2rem;
    font-weight: 700;
}

.section-heading p {
    color: #667085;
    font-size: 1rem;
}

.title-line {
    width: 42px;
    height: 3px;
    background: #1977cc;
    border-radius: 20px;
}

/* Filters — material floating fields via material.ui.css */

.course-filter-bar {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}

.course-filter-bar .btn-material {
    min-height: 3.75rem;
}

/* Cards */

.campus-course-card {
    background: #fff;
    border: 1px solid #edf1f5;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(31, 65, 114, 0.08);
    transition: all 0.25s ease;
}

    .campus-course-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 36px rgba(31, 65, 114, 0.13);
    }

.course-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.institution-details {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.institution-logo {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border: 1px solid #dce5ef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #1977cc;
    font-weight: 700;
    font-size: 0.95rem;
}

    .institution-logo img {
        width: 42px;
        height: 42px;
        object-fit: contain;
    }

.institution-name {
    color: #53657d;
    font-size: 0.95rem;
    line-height: 1.35;
}

.course-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-open {
    background: #e7f8ec;
    color: #16a34a;
}

.status-closing {
    background: #fff3d6;
    color: #d97706;
}

.status-closed {
    background: #edf1f5;
    color: #667085;
}

/* Course title */

.course-title {
    color: #16345c;
    font-size: 1.35rem;
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 18px;
    min-height: 58px;
}

/* Course metadata */

.course-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.course-type {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border-radius: 18px;
    background: #eaf3ff;
    color: #1977cc;
    font-size: 0.85rem;
    font-weight: 600;
}

.course-duration {
    color: #5f7088;
    font-size: 0.9rem;
}

/* Footer */

.course-card-footer {
    border-top: 1px solid #edf1f5;
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.course-location {
    color: #667085;
    font-size: 0.88rem;
}

.view-course-link {
    color: #0866d9;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

    .view-course-link:hover {
        color: #064fa8;
    }

.btn-view-all {
    min-width: 220px;
    border: 2px solid #1977cc;
    color: #1977cc;
    background: #fff;
    border-radius: 30px;
    padding: 11px 28px;
    font-weight: 600;
}

    .btn-view-all:hover {
        background: #1977cc;
        color: #fff;
    }

/* Responsive */

@media (max-width: 991.98px) {
    .section-heading h2 {
        font-size: 1.9rem;
    }

    .course-title {
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .campus-course-card {
        padding: 20px;
    }

    .course-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .title-line {
        width: 26px;
    }

    .section-heading h2 {
        font-size: 1.65rem;
    }
}
