/* ── Q&A List ── */
.tqa-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 24px 0;
    direction: rtl;
}

.tqa-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    transition: box-shadow .2s;
}
.tqa-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }

.tqa-question,
.tqa-answer {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
}

.tqa-question { border-bottom: 1px solid #f3f4f6; background: #f8fafc; }
.tqa-answer   { background: #fff; }

.tqa-q-icon,
.tqa-a-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}
.tqa-q-icon { background: #6366f1; color: #fff; }
.tqa-a-icon { background: #10b981; color: #fff; }

.tqa-q-body,
.tqa-a-body { flex: 1; line-height: 1.7; font-size: 15px; color: #1f2937; }

.tqa-q-text  { display: block; font-weight: 600; }
.tqa-q-asker { display: inline-block; margin-top: 4px; font-size: 12px; color: #9ca3af; }

.tqa-no-items { color: #6b7280; text-align: center; padding: 32px; font-size: 15px; }

/* ── Pagination ── */
.tqa-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
    direction: ltr;
}

.tqa-page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.tqa-page-btn:hover        { background: #f5f3ff; border-color: #6366f1; color: #6366f1; }
.tqa-page-btn--active      { background: #6366f1; border-color: #6366f1; color: #fff; font-weight: 700; }
.tqa-page-btn--active:hover { background: #4f46e5; }

.tqa-list-wrap { transition: opacity .2s; }

/* ── Submission Form ── */
.tqa-form-wrap {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px 32px;
    margin-top: 32px;
    direction: rtl;
}

.tqa-form-title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.tqa-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) { .tqa-form-row { grid-template-columns: 1fr; } }

.tqa-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.tqa-form-field label { font-size: 14px; font-weight: 600; color: #374151; }
.tqa-form-field input,
.tqa-form-field textarea {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
    direction: rtl;
}
.tqa-form-field input:focus,
.tqa-form-field textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.tqa-form-field textarea { resize: vertical; min-height: 110px; }

.tqa-required { color: #ef4444; }

.tqa-btn-submit {
    background: #6366f1;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    font-family: inherit;
}
.tqa-btn-submit:hover    { background: #4f46e5; }
.tqa-btn-submit:active   { transform: scale(.98); }
.tqa-btn-submit:disabled { background: #a5b4fc; cursor: not-allowed; }

.tqa-msg {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 14px;
}
.tqa-msg--success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.tqa-msg--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
