/* ==========================================================================
   Exams page — frontend design only (see ExamPageController docblock).
   Scoped under .exam-catalog-* so nothing here touches any other page.
   Reuses the same brand gradient as the rest of the site.
   ========================================================================== */

:root {
    --exam-catalog-primary: var(--mentor-primary, #9E2963);
    --exam-catalog-grad: var(--mentor-grad, linear-gradient(90deg, #9E2963 0%, #C6265F 55%, #E8447F 100%));
}

.exam-catalog-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.exam-catalog-row {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border: 1px solid #EEEFF3;
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 4px 14px rgba(20, 20, 43, 0.04);
    flex-wrap: nowrap;
}

.exam-catalog-progress {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 3px solid rgba(158, 41, 99, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--exam-catalog-primary);
}

.exam-catalog-info {
    flex: 1 1 240px;
    min-width: 0;
}

.exam-catalog-title {
    font-size: 16px;
    font-weight: 700;
    color: #192335;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exam-catalog-title span {
    font-weight: 500;
    color: #6B7385;
    font-size: 14px;
}

.exam-catalog-meta {
    font-size: 13px;
    color: #9096A8;
    margin: 0;
}

.exam-catalog-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.exam-catalog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.exam-catalog-btn-start {
    background: var(--exam-catalog-grad);
    color: #fff;
}

.exam-catalog-btn-practice {
    background: var(--exam-catalog-primary);
    color: #fff;
}

.exam-catalog-btn-answer {
    background: #1BA35A;
    color: #fff;
}

.exam-catalog-btn:hover {
    opacity: .9;
    color: #fff;
}

@media (max-width: 575px) {
    .exam-catalog-row {
        padding: 10px 12px;
        gap: 10px;
        border-radius: 12px;
    }

    .exam-catalog-progress {
        width: 40px;
        height: 40px;
        font-size: 11px;
        border-width: 2px;
        flex: 0 0 40px;
    }

    .exam-catalog-info {
        flex: 1 1 auto;
        min-width: 0;
    }

    .exam-catalog-title {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .exam-catalog-title span {
        font-size: 11px;
    }

    .exam-catalog-meta {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .exam-catalog-actions {
        flex: 0 0 auto;
        gap: 6px;
        margin-left: 0;
    }

    .exam-catalog-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .exam-catalog-btn {
        padding: 7px 9px;
        font-size: 11px;
    }
}
