.my-course-grid-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    align-items: stretch;
}

.my-course-item {
    padding: 15px;
    margin-bottom: 30px;
    display: flex;
}

.my-course-item.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.my-course-item.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.my-course-item.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.my-course-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.my-course-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #ccc;
}

.my-course-ribbon {
    position: absolute;
    top: 15px;
    left: -35px;
    background: #008590;
    color: white;
    padding: 8px 45px;
    font-size: 11px;
    transform: rotate(-45deg);
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
}

.my-course-image {
    width: 100%;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.my-course-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.my-course-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.4;
    color: #333;
    flex-shrink: 0;
}

.my-course-excerpt {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    flex-grow: 1;
}

.my-course-excerpt p {
    margin: 0;
}

.my-course-progress {
    margin: 15px 0;
    flex-shrink: 0;
}

.my-progress-bar {
    background: #f5f5f5;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.my-progress-fill {
    background: #5cb85c;
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.my-progress-text {
    font-size: 12px;
    color: #999;
    text-align: right;
}

.my-course-button {
    margin-top: auto;
    flex-shrink: 0;
}

.my-course-btn {
    display: inline-block;
    padding: 12px 20px;
    background: #F5F582;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    cursor: pointer;
}

.my-course-btn:hover {
    background: #F5F582;
    color: #333;
    text-decoration: none;
}

.my-course-btn.completed {
    background: #008590;
    color: white;
}

.my-course-btn.completed:hover {
    background: #008590;
    color: white;
}

.my-course-btn.in-progress {
    background: #19325b;
    color: white;
}

.my-course-btn.in-progress:hover {
    background: #008590;
    color: white;
}

@media (max-width: 768px) {
    .my-course-item.col-4, .my-course-item.col-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 480px) {
    .my-course-item.col-4, .my-course-item.col-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}