/* FAQ page styles -- all red-branded (no gold) */

.faq-container {
    max-width: 920px;
}

.faq-intro-cta {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin: 0 0 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-intro-cta p {
    margin: 0;
    font-size: 1.05rem;
}

.faq-category {
    margin-bottom: 3rem;
}

/* Category heading with red bottom border instead of gold */
.faq-category h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 3px solid var(--red);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

details.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.1rem 1.4rem;
    margin-bottom: 0.9rem;
    background: white;
    transition: box-shadow 0.2s, border-color 0.2s;
}

details.faq-item[open] {
    border-color: var(--red);
    box-shadow: 0 4px 14px rgba(204, 0, 0, 0.07);
}

details.faq-item summary {
    font-weight: 600;
    font-size: 1.08rem;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

details.faq-item summary::-webkit-details-marker {
    display: none;
}

details.faq-item summary::after {
    content: "+";
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1;
    color: var(--red);
    transition: transform 0.2s;
    flex-shrink: 0;
}

details.faq-item[open] summary::after {
    /* en-dash replacement using ASCII */
    content: "-";
    font-size: 2rem;
}

details.faq-item .faq-answer {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid #f1f5f9;
    color: var(--text-secondary);
    line-height: 1.7;
}

details.faq-item .faq-answer p:last-child {
    margin-bottom: 0;
}

/* Mid-section CTA bar with red left border instead of gold */
.faq-mid-cta {
    background: #f8fafc;
    border-left: 4px solid var(--red);
    padding: 1.5rem 1.75rem;
    border-radius: 0 10px 10px 0;
    margin: 2.5rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-mid-cta strong {
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* Table of contents pill links */
.faq-toc {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
}

.faq-toc h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin: 0 0 0.75rem;
}

.faq-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.faq-toc a {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.faq-toc a:hover {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

/* Responsive */
@media (max-width: 768px) {
    .faq-intro-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .faq-mid-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .faq-category h2 {
        font-size: 1.4rem;
    }

    details.faq-item summary {
        font-size: 1rem;
    }
}
