.course-section {
    display: flex;
    justify-content: center;
    background-color: #ffffff;
    font-family: Inter;
}

.course-wrapper {
    max-width: 1224px;
    width: 100%;
    padding: 50px 35px;
}

.course-heading {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.course-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-card a{
    text-decoration: none;
}

.course-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    transition: height 0.4s ease;
    overflow: hidden;
    text-align: center;
    padding: 0 15px;
}

.course-card:hover .course-title-overlay {
    height: 100px;
}

.no-courses {
    text-align: center;
    color: #c00;
    margin-top: 50px;
}
