/* LearnDash Course Grid Widget Styles */
.learndash-course-grid {
    margin-bottom: 30px;
}

.learndash-course-grid .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.learndash-course-grid .course-column {
    padding: 15px;
    margin-bottom: 30px;
}

.learndash-course-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.learndash-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.course-image {
    position: relative;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.learndash-course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-price-wrapper {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.course-price {
    display: inline-block;
    background-color: #10b981;
    color: #ffffff;
    font-weight: 600;
    padding: 3px 15px;
    border-radius: 100px;
    font-size: 14px;
}

.course-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.course-title a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.course-title a:hover {
    color: #10b981;
}

.course-excerpt {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1; /* This will make the excerpt take up available space */
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    color: #6b7280;
    font-size: 13px;
    margin-top: auto; /* Push to the bottom */
    border-top: 1px solid #f3f4f6;
    padding-top: 15px;
    width: 100%;
}

.course-meta span {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.course-meta i {
    margin-right: 5px;
    font-size: 14px;
}


/* Column Classes */
.col-md-12 {
    width: 100%;
}

.col-md-6 {
    width: 50%;
}

.col-md-4 {
    width: 33.333333%;
}

.col-md-3 {
    width: 25%;
} 

/* Responsive Styles */
@media (max-width: 992px) {
    .col-md-3 {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .col-md-3, .col-md-4, .col-md-6 {
        width: 100%;
    }

    .course-title {
        font-size: 16px;
    }

    .course-excerpt {
        font-size: 13px;
    }
}