/* ===== Student Test Platform – Clean UI ===== */

.stp-card {
    background: #07152b; /* deep navy */
    border-radius: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(7, 15, 30, 0.9);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
    color: #f5f7fb;
    margin-bottom: 22px;
}

.stp-form-card {
    max-width: 520px;
    margin: 0 auto;
}

.stp-section-title {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin: 0 0 12px;
    color: #ffffff;
}

/* ---- Common text ---- */

.stp-test-desc,
.stp-test-note {
    font-size: 13px;
    line-height: 1.5;
    color: #cbd5f5;
}

/* ---- Grid ---- */

.stp-test-list-wrapper {
    max-width: 1160px;
    margin: 0 auto;
}

.stp-test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

/* ---- Cards (categories / subcategories / tests) ---- */

.stp-test-card {
    position: relative;
    overflow: hidden;
}

/* IMPORTANT: yahi font size control karega (ab bada nahi hoga) */
.stp-test-title,
.stp-test-card h3 {
    font-size: 17px;
    line-height: 1.35;
    font-weight: 600;
    margin: 0 0 8px;
    color: #f9fafb;
    word-break: break-word;
}

/* Price / meta */
.stp-test-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 6px;
}

.stp-test-price {
    font-weight: 600;
    color: #8fb6ff;
}

/* ---- Buttons ---- */

.stp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.stp-btn-primary {
    background: linear-gradient(135deg, #ffc107, #ffe277);
    color: #081224;
    border-color: transparent;
}

.stp-btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.stp-btn-outline {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.6);
    color: #e5e7eb;
}

.stp-btn-outline:hover {
    border-color: #ffc107;
    color: #ffe9a8;
}

.stp-btn-secondary {
    background: rgba(7, 15, 30, 0.9);
    border-color: rgba(148, 163, 184, 0.6);
    color: #e5e7eb;
}

.stp-btn-secondary:hover {
    border-color: #ffc107;
}

/* ---- Forms ---- */

.stp-form-group {
    margin-bottom: 12px;
}

.stp-form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #cbd5f5;
}

.stp-form-group input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(7, 15, 30, 0.95);
    color: #e5e7eb;
    font-size: 13px;
}

.stp-form-group input:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.5);
}

/* ---- Written answer text area ---- */

.stp-answer-wrapper textarea.stp-answer-text {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(7, 15, 30, 0.96);
    color: #e5e7eb;
    font-size: 13px;
    resize: vertical;
    min-height: 80px;
}

.stp-answer-wrapper textarea.stp-answer-text:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.5);
}

/* ---- Question layout ---- */

.stp-question {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
}

.stp-question:last-of-type {
    border-bottom: none;
}

.stp-question-title {
    display: flex;
    gap: 6px;
    font-size: 14px;
    margin-bottom: 8px;
}

.stp-question-number {
    font-weight: 600;
    color: #ffe277;
}

/* ---- Alerts ---- */

.stp-alert {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 12px;
}

.stp-alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.7);
    color: #bbf7d0;
}

/* ---- Actions Row ---- */

.stp-test-actions-row {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 10px;
}

.stp-test-note {
    margin-top: 8px;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    .stp-card {
        padding: 14px 14px;
        border-radius: 14px;
    }

    .stp-section-title {
        font-size: 16px;
    }

    .stp-test-title,
    .stp-test-card h3 {
        font-size: 15px;
    }

    .stp-test-grid {
        grid-template-columns: 1fr;
    }
}


/* ---- MCQ options ---- */
.stp-mcq-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 4px;
}

.stp-mcq-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #e5e7eb;
}

.stp-mcq-option input[type="radio"] {
    accent-color: #ffc107;
}
