/* ============================================================
   faq.css - FAQ list / detail / topic archive (Quora-style)
   Matches fengcai-v1 design system:
   primary #0077be | hover #005a8e | navy #0b1f3a
   light bg #f5f8fc | border #e8ecf1 | muted #5a6879 / #8897aa
   ============================================================ */

/* Eyebrow label in the archive header */
.archive-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #0077be;
    background: #e6f1fa;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* ---------- List page: tag filter chips ---------- */
.faq-page {
    padding: 40px 0 50px;
    background: #fff;
}

.faq-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8ecf1;
}

.faq-chip {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid #d7dfe8;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #5a6879;
    text-decoration: none;
    background: #fff;
    transition: all 0.25s ease;
}

.faq-chip:hover {
    border-color: #0077be;
    color: #0077be;
}

.faq-chip.is-active {
    background: #0077be;
    border-color: #0077be;
    color: #fff;
}

/* ---------- Quora-style question feed ---------- */
.faq-feed {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq-card {
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    padding: 24px 26px;
    background: #fff;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.faq-card:hover {
    box-shadow: 0 8px 26px rgba(11, 31, 58, 0.08);
    border-color: #cfd9e6;
    transform: translateY(-2px);
}

.faq-q {
    font-size: 20px;
    line-height: 1.4;
    margin: 0 0 12px;
}

.faq-q a {
    color: #0b1f3a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.faq-q a:hover {
    color: #0077be;
}

.faq-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.faq-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #0077be;
    background: #eef5fb;
    padding: 3px 11px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.faq-tag:hover {
    background: #dcebf8;
}

.faq-ans {
    color: #5a6879;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 14px;
}

.faq-read {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #0077be;
    text-decoration: none;
}

.faq-read:hover {
    color: #005a8e;
}

.faq-empty {
    text-align: center;
    color: #8897aa;
    padding: 40px 0;
}

/* ---------- Pagination ---------- */
.faq-feed .page-numbers {
    display: inline-block;
    min-width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    margin: 24px 4px 0;
    padding: 0 10px;
    border: 1px solid #d7dfe8;
    border-radius: 6px;
    color: #5a6879;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.faq-feed .page-numbers:hover {
    border-color: #0077be;
    color: #0077be;
}

.faq-feed .page-numbers.current {
    background: #0077be;
    border-color: #0077be;
    color: #fff;
}

/* ---------- CTA (list pages) ---------- */
.faq-cta {
    background: #0b1f3a;
    padding: 50px 0;
    text-align: center;
}

.faq-cta h2 {
    color: #fff;
    font-size: 26px;
    margin: 0 0 10px;
}

.faq-cta p {
    color: #c3cedd;
    margin: 0 0 22px;
    font-size: 15px;
}

/* ---------- Detail page: header topics ---------- */
.faq-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

/* ---------- Detail page: two-column layout ---------- */
.faq-single-body {
    padding: 40px 0 60px;
    background: #fff;
}

.faq-single-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 44px;
    align-items: start;
}

.faq-single-answer {
    font-size: 16px;
    line-height: 1.85;
    color: #34465e;
}

.faq-single-answer p {
    margin: 0 0 18px;
}

.faq-single-answer h2,
.faq-single-answer h3 {
    color: #0b1f3a;
    margin: 28px 0 12px;
}

.faq-single-answer ul,
.faq-single-answer ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.faq-single-answer li {
    margin-bottom: 8px;
}

/* Inline CTA inside answer column */
.faq-cta-inline {
    margin-top: 36px;
    padding: 26px 28px;
    background: #f5f8fc;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
}

.faq-cta-inline h3 {
    color: #0b1f3a;
    margin: 0 0 8px;
    font-size: 19px;
}

.faq-cta-inline p {
    color: #5a6879;
    margin: 0 0 18px;
    font-size: 15px;
}

/* ---------- Sidebar: related questions ---------- */
.faq-sidebar {
    position: sticky;
    top: 24px;
}

.faq-related {
    background: #f5f8fc;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    padding: 22px 24px;
}

.faq-related h3 {
    color: #0b1f3a;
    font-size: 16px;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e1e8f0;
}

.faq-related ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.faq-related li {
    margin-bottom: 12px;
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.faq-related li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0077be;
}

.faq-related li a {
    color: #34465e;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.faq-related li a:hover {
    color: #0077be;
}

.faq-related-empty {
    color: #8897aa;
    font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .faq-single-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .faq-sidebar {
        position: static;
    }
}

@media (max-width: 600px) {
    .faq-card {
        padding: 20px;
    }
    .faq-q {
        font-size: 18px;
    }
}

/* ---------- FAQ single (detail) page ---------- */
/* Header reuses .sol-detail-header visuals; add a self-contained fallback
   so the dark banner renders correctly even if inner-pages.css changes. */
.faq-single-header {
    background: linear-gradient(135deg, #0b1f3a 0%, #143a6a 50%, #1a4a80 100%);
    color: #fff;
    padding: 55px 0 45px;
}
.faq-single-header h1 {
    color: #fff;
    font-size: 34px;
    line-height: 1.25;
    margin: 14px 0 0;
}
.faq-single-header .breadcrumb a,
.faq-single-header .breadcrumb span {
    color: rgba(255, 255, 255, 0.72);
}
.faq-single-header .breadcrumb a:hover {
    color: #fff;
}
.faq-single-header .faq-tag {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.24);
}
.faq-single-content {
    min-width: 0; /* prevent grid blowout from long code/urls */
}
.faq-single-body {
    padding: 56px 0 64px;
    background: #fff;
}
