/* ============================================================
   Test Desk (TD) — Subject Tests Page (v2 — better spacing)
   File Path : assets/css/subject-tests.css
   ============================================================ */

body.td-subject-tests-page {
    background: #f5faff;
    padding-bottom: 40px;
}

.subject-intro {
    text-align: center;
    font-size: 13.5px;
    color: #5a7a95;
    margin: 4px 0 22px;
    line-height: 1.5;
    padding: 0 14px;
}

.subject-list {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 14px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.subject-card {
    background: #ffffff;
    border: 1px solid #dbe9f4;
    border-radius: 14px;
    padding: 18px 16px 16px;
    box-shadow: 0 2px 10px rgba(20, 80, 140, 0.05);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.subject-card:hover {
    box-shadow: 0 6px 18px rgba(20, 80, 140, 0.10);
    transform: translateY(-1px);
}

.subject-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef2f7;
    flex-wrap: nowrap;
}

.subject-card-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #0b4a85;
    margin: 0;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
}

.subject-card-badge {
    font-size: 11.5px;
    font-weight: 700;
    background: #eaf4fd;
    color: #0b5cab;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.subject-counts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.subject-count-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 6px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #22a06b 0%, #1c8c5d 100%);
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    box-shadow: 0 2px 6px rgba(34, 160, 107, 0.22);
    font-family: inherit;
    cursor: pointer;
}
.subject-count-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(34, 160, 107, 0.32);
    color: #ffffff;
    background: linear-gradient(135deg, #1f9462 0%, #17804f 100%);
}
.subject-count-btn.disabled {
    background: #f0f6fb;
    color: #b3c8dc;
    border: 1.5px solid #e3eefa;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Mobile — छोटी स्क्रीन पर */
@media (max-width: 480px) {
    .subject-count-btn {
        font-size: 14px;
        padding: 11px 4px;
    }
}

@media (min-width: 600px) {
    .subject-card { padding: 20px 20px 18px; }
    .subject-card-title { font-size: 17px; }
    .subject-count-btn { font-size: 16px; padding: 14px 8px; }
}
