/* Container for multiple cards */
.um-course-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    width: 100%;
    margin-bottom: 30px;
}

/* Single Card styling */
.umcc-card {
    background: #f8fafc;
    /* Very light subtle background matching standard card body */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.umcc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Image header area */
.umcc-card-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #cbd5e1;
    /* Fallback placeholder */
    position: relative;
    padding: 16px;
    box-sizing: border-box;
    /* Optional slight darkening overlay for contrast */
    /* box-shadow: inset 0 0 40px rgba(0,0,0,0.2); */
}

/* Badge (e.g. Bestseller) inside image */
.umcc-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Card Content Area */
.umcc-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Category logic */
.umcc-card-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #c2410c;
    /* High contrast orange/red inspired by design */
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.umcc-card-category-icon {
    font-size: 12px;
}

/* Title */
.umcc-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    margin: 0 0 12px 0;
}

/* Description */
.umcc-card-description {
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 24px 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Metadata (Duration / Rating) */
.umcc-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.umcc-meta-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.umcc-meta-right {
    text-align: right;
    align-items: flex-end;
}

.umcc-meta-value {
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
}

.umcc-meta-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.umcc-meta-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #d97706;
    /* Star rating overall color combo */
}

.umcc-star {
    color: #d97706;
    /* Golden star */
}

/* Button */
.umcc-card-button {
    display: block;
    width: 100%;
    text-align: center;
    background: #ffffff;
    color: #0f172a;
    font-weight: 600;
    font-size: 14px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #cbd5e1;
    box-sizing: border-box;
}

.umcc-card-button:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #000;
    text-decoration: none;
}