/* General Styling */
.course-item {
    align-items: center;
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.course-item:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.course-image img {
    width: 190px;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 8px;
}

.course-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.enrollment-status {
    width:100px;
    margin-left: auto;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-align: center;
}

.course-info h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.course-category {
    font-size: 14px;
    color: #777;
    margin: 5px 0;
}

.chimpvine-course-excerpt {
    font-size: 14px;
    color: #555;
    margin: 5px 0;
}

.course-duration {
    font-size: 14px;
    color: #555;
    margin: 5px 0;
}

.dashicons-book-alt {
    font-size: 18px;
    color: #0073aa;
    margin-right: 8px;
}

.cv-course-button {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
        max-width: 200px;
    transition: background-color 0.3s ease;
}

.cv-course-button:hover {
    background-color: #005177;
}

.enroll-now {
    background-color: #28A745;
}

.enroll-now:hover {
    background-color: #218838;
}

.continue-course {
    background-color: #ffc107;
}

.continue-course:hover {
    background-color: #e0a800;
}

.completed {
    background-color: #6c757d;
    color: #fff;
    text-align: center;
    padding: 10px;
}

/* Responsive Styling */
@media (max-width: 768px) {
    .course-item {
        flex-direction: column;
        align-items: center;
    }

    .course-image img {
        width: 100%;
        height: auto;
    }

    .enrollment-status {
        top: 10px;
        right: 10px;
        font-size: 12px;
    }
}
