/* Assessment cards: compact learner list and thumbnail treatment. */

#exams-grid {
    align-items: start;
}

.exam-card {
    min-width: 0;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}

.exam-card--locked {
    opacity: 0.72;
}

.exam-card__media {
    width: 100%;
    aspect-ratio: 16 / 7;
    max-height: 168px;
    margin: 0;
    overflow: hidden;
    background: #F3F4F6;
    border-bottom: 1px solid #E5E7EB;
}

.exam-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exam-card__body {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.exam-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.exam-card__badge {
    display: inline-flex;
    align-items: center;
    width: max-content;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 800;
}

.exam-card__badge--required {
    color: #C62828;
    background: #FDE8E8;
}

.exam-card__badge--free {
    color: #08785B;
    background: #E7F8F1;
}

.exam-card__badge--assigned {
    color: #C9431B;
    background: #FFF0E8;
}

.exam-card__duration {
    color: var(--text-sub);
    font-size: 0.82rem;
    white-space: nowrap;
}

.exam-card__duration i,
.exam-card__action i {
    margin-right: 6px;
}

.exam-card h4 {
    margin: 0;
    color: var(--text-main);
    font-size: 1.12rem;
    line-height: 1.35;
}

.exam-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--text-sub);
    font-size: 0.88rem;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.exam-card__action {
    width: 100%;
    min-height: 44px;
    margin-top: 2px;
    padding: 10px 14px;
    background: #F45B2A;
}

.exam-card__action--legacy {
    background: #6D5BD0;
}

.exam-card__action:disabled {
    color: #FFFFFF;
    background: #9CA3AF;
    cursor: not-allowed;
}

.learning-studio__test-thumbnail {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: cover;
    border: 1px solid #E5E7EB;
    border-radius: 7px;
    background: #F3F4F6;
}

@media (max-width: 600px) {
    .exam-card__media {
        max-height: 150px;
    }

    .exam-card__body {
        gap: 10px;
        padding: 15px;
    }

    .exam-card h4 {
        font-size: 1.05rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .exam-card,
    .exam-card__action {
        transition: none;
    }
}
