/* Basic structure and layout */

.uc-course-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 20px 0px 30px;
    text-align: center;
    /* Align content to the left */
}

.uc-course-column {
    width: 22%;
    /* Four cards per row */
    margin: 0px 10px 20px 10px;
    box-sizing: border-box;
}

.uc-course-card {
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 10px;
    background-color: #fff;
    text-align: left;
    /* Align content to the left */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.uc-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.uc-course-image {
    width: 100%;
    max-height: 150px;
    border-radius: 10px !important;
    transition: transform 0.3s ease;
}

.uc-course-image:hover {
    transform: scale(1.05);
    /* Slight zoom on hover */
}


/* Font size control with !important */

.uc-course-name {
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    color: #1d1922 !important;
}

.uc-course-code {
    font-size: 0.8rem !important;
    color: #666 !important;
    margin-bottom: 2px !important;
}

.uc-course-dates {
    font-size: 0.8rem !important;
    color: #666 !important;
    margin-bottom: 2px !important;
}

.uc-course-location {
    font-size: 0.8rem !important;
    color: #666 !important;
    margin-bottom: 2px !important;
}

.uc-course-link {
    display: inline-block !important;
    padding: 10px 20px !important;
    background-color: #0073aa !important;
    color: #fff !important;
    font-size: 16px !important;
    text-decoration: none !important;
    border-radius: 5px !important;
    transition: background-color 0.3s ease !important;
}

.uc-course-link:hover {
    background-color: #005177 !important;
}


/* Section titles */

.uc-section {
    text-align: center !important;
}

.uc-section-title {
    text-align: center !important;
    font-size: 1.6em;
    line-height: 1.1em;
    font-weight: 500 !important;
    color: #1d1922 !important;
}

.uc-section-desc {
    text-align: center !important;
    font-size: 1em;
    line-height: 1.1em;
    font-weight: 500 !important;
    color: #1d1922 !important;
}


/* Responsive design */

@media (max-width: 768px) {
    .uc-course-column {
        width: 43% !important;
        /* One card per row on smaller devices */
    }
}