.my-courses-container {
    display: grid;
    grid-gap: 40px 2%;
}

@media only screen and (max-width: 600px) {
    .my-courses-container {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)) !important;
    }
}

.course-box {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.course-image {
    position: relative;
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
    background-size: cover; /* Resize the background image to cover the entire container */
}

.course-status {
    position: absolute;
    padding: 4px 8px;
    top: 5px;
    left: 5px;
    z-index: 1;
}

.course-title {
    text-align: center;
}

.course-title, .course-description, .course-action, .course-meta {
    padding: 8px;
    text-align: center;
}

.course-meta {
    text-align: center;
}

.course-action {
    margin-top: auto;
}

.course-navigation-box {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-box progress {
    position: absolute;
    bottom: 0;
}

.progress-bar {
    position: relative; /* Add this to make the .progress element a positioning context */
    background-color: #808080;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    height: 20px;
    max-width: 100%;
}

.progress {
    position: relative; /* Add this to make the .progress-text element positioned relative to .progress */
    background: #4CAF50;
    height: 20px;
    width: 0;
    transition: width 0.5s ease-in;
}

.progress-text {
    z-index: 10;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1em;
    font-weight: 500;
}