/* ── Q&A card ─────────────────────────────────────────── */
.qa-card {
    background: #fdf6e3;
    border: 1px solid rgba(201,168,76,0.25);
    border-top: 4px solid #c9a84c;
    border-radius: 14px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-top-color 0.22s ease;
    cursor: pointer;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit !important;
}
.qa-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(13,92,58,0.18);
    border-top-color: #0d5c3a;
}
.qa-card-featured {
    border-top: 4px solid #0d5c3a;
    background: linear-gradient(160deg, #fdf6e3 80%, rgba(13,92,58,0.04) 100%);
}
.qa-card-body {
    padding: 20px 22px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.qa-card-question {
    font-size: 1.0rem;
    font-weight: 700;
    color: #0d5c3a;
    margin-bottom: 10px;
    line-height: 1.45;
    /* two-line clamp */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.qa-card-answer {
    font-size: 0.875rem;
    color: #5a5a5a;
    line-height: 1.6;
    flex: 1;
    /* three-line clamp */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}
.qa-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 22px 14px;
    border-top: 1px solid rgba(201,168,76,0.18);
    background: rgba(253,246,227,0.6);
}
.qa-verse-pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(13,92,58,0.12);
    color: #0d5c3a;
    border: 1px solid rgba(13,92,58,0.2);
    white-space: nowrap;
    font-family: 'Amiri', serif;
}
.qa-featured-badge {
    font-size: 0.68rem;
    padding: 3px 9px;
    border-radius: 20px;
    background: linear-gradient(135deg, #c9a84c, #e8c96d);
    color: #2c2c2c;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 6px rgba(201,168,76,0.4);
}
.qa-meta {
    margin-left: auto;
    font-size: 0.73rem;
    color: #888;
    white-space: nowrap;
}

/* ── Search bar ─────────────────────────────────────────── */
.qa-search-wrap {
    position: relative;
    max-width: 560px;
    margin: 0 auto 28px;
}
.qa-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #0d5c3a;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
}
#qa-search-input {
    padding-left: 42px;
    border: 2px solid rgba(13,92,58,0.35);
    border-radius: 30px;
    font-size: 0.95rem;
    background: #fdf6e3;
    color: #2c2c2c;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    height: 46px;
}
#qa-search-input:focus {
    border-color: #0d5c3a;
    box-shadow: 0 0 0 3px rgba(13,92,58,0.12);
    outline: none;
    background: #fff;
}
#qa-search-input::placeholder {
    color: #aaa;
}

/* ── Stats strip ─────────────────────────────────────────── */
.qa-stats-strip {
    display: flex;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(201,168,76,0.22);
    margin-bottom: 28px;
    background: #fdf6e3;
}
.qa-stat-item {
    flex: 1;
    text-align: center;
    padding: 14px 8px;
    border-right: 1px solid rgba(201,168,76,0.18);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.qa-stat-item:last-child { border-right: none; }
.qa-stat-num {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0d5c3a;
    line-height: 1;
}
.qa-stat-label {
    font-size: 0.72rem;
    color: #777;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Skeleton placeholders ───────────────────────────────── */
.qa-skeleton {
    background: linear-gradient(90deg, #f0e8cc 25%, #fdf6e3 50%, #f0e8cc 75%);
    background-size: 200% 100%;
    animation: qa-shimmer 1.5s infinite;
    border-radius: 6px;
}
@keyframes qa-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.qa-skeleton-card {
    border: 1px solid rgba(201,168,76,0.18);
    border-top: 4px solid rgba(201,168,76,0.3);
    border-radius: 14px;
    padding: 20px;
    background: #fdf6e3;
    height: 210px;
}

/* ── Section label ───────────────────────────────────────── */
.qa-section-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0d5c3a;
    border-bottom: 2px solid rgba(13,92,58,0.2);
    padding-bottom: 8px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── No results ──────────────────────────────────────────── */
.qa-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}
.qa-empty-icon {
    font-size: 3rem;
    color: rgba(13,92,58,0.25);
    margin-bottom: 16px;
}

/* ── Load more button ────────────────────────────────────── */
.qa-load-more-btn {
    background: transparent;
    border: 2px solid #0d5c3a;
    color: #0d5c3a;
    border-radius: 30px;
    padding: 10px 36px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.qa-load-more-btn:hover:not(:disabled) {
    background: #0d5c3a;
    color: #fdf6e3;
    box-shadow: 0 4px 14px rgba(13,92,58,0.3);
}
.qa-load-more-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ── Footer disclaimer ───────────────────────────────────── */
.qa-footer-note {
    text-align: center;
    font-size: 0.78rem;
    color: #999;
    padding: 20px 10px;
    border-top: 1px solid rgba(201,168,76,0.15);
    margin-top: 40px;
    line-height: 1.6;
}

/* ── Dark mode overrides ─────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    .qa-card            { background: #1a1a1a; border-color: rgba(201,168,76,0.18); }
    .qa-card-featured   { background: linear-gradient(160deg, #1e2218 80%, rgba(13,92,58,0.12) 100%); }
    .qa-card:hover      { box-shadow: 0 12px 36px rgba(13,92,58,0.35); }
    .qa-card-question   { color: #5dd9a0; }
    .qa-card-answer     { color: #b0b0b0; }
    .qa-card-footer     { background: rgba(30,30,30,0.8); border-top-color: rgba(201,168,76,0.12); }
    .qa-verse-pill      { background: rgba(13,92,58,0.25); color: #5dd9a0; border-color: rgba(13,92,58,0.3); }
    .qa-stats-strip     { background: #1a1a1a; border-color: rgba(201,168,76,0.15); }
    .qa-stat-item       { border-right-color: rgba(201,168,76,0.12); }
    #qa-search-input    { background: #1a1a1a; color: #e0e0e0; border-color: rgba(13,92,58,0.4); }
    #qa-search-input:focus { background: #222; }
    .qa-skeleton-card   { background: #1a1a1a; }
    .qa-skeleton        { background: linear-gradient(90deg, #222 25%, #2a2a2a 50%, #222 75%); background-size: 200% 100%; }
    .qa-section-label   { color: #5dd9a0; border-bottom-color: rgba(93,217,160,0.2); }
    .qa-load-more-btn   { border-color: #5dd9a0; color: #5dd9a0; }
    .qa-load-more-btn:hover:not(:disabled) { background: #0d5c3a; color: #fdf6e3; }
}
