/* ===== Custom FAQ - Frontend Styles ===== */

.cfaq-wrapper {
    max-width: 860px;
    margin: 0 auto 36px;
    font-family: inherit;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    overflow: hidden;
}

/* ── Each item ── */
.cfaq-item {
    background: #fff;
    border-bottom: 1px solid #d0d5dd;
}

.cfaq-item:last-child {
    border-bottom: none;
}

/* ── Question button — closed state ── */
.cfaq-question {
    width: 100%;
    background: #fff;
    color: #1a1a1a;
    border: none;
    padding: 18px 20px;
    text-align: left;
    font-size: 0.97rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    line-height: 1.45;
    transition: none;
}

/* ── Question button — open state ── */
.cfaq-item.cfaq-open > .cfaq-question {
    background: #2d4a8a;
    color: #fff;
}

.cfaq-question:focus {
    outline: none;
}

/* ── Chevron icon ── */
.cfaq-icon {
    flex-shrink: 0;
    font-size: 1rem;
    color: #555;
    line-height: 1;
    font-style: normal;
}

.cfaq-item.cfaq-open > .cfaq-question .cfaq-icon {
    color: #fff;
}

/* ── Answer panel ── */
.cfaq-answer {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.cfaq-answer[hidden] {
    display: block !important;
    max-height: 0 !important;
    overflow: hidden;
}

.cfaq-answer-inner {
    padding: 16px 20px 20px 20px;
    background: #fff;
    border-top: 1px solid #e8eaed;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.75;
}

/* Rich content inside answer */
.cfaq-answer-inner p          { margin: 0 0 8px; }
.cfaq-answer-inner p:last-child { margin-bottom: 0; }

.cfaq-answer-inner a          { color: #2563eb; text-decoration: underline; }
.cfaq-answer-inner a:hover    { color: #1d4ed8; }

.cfaq-answer-inner ul,
.cfaq-answer-inner ol         { margin: 6px 0 8px 22px; padding: 0; }
.cfaq-answer-inner li         { margin-bottom: 3px; }

.cfaq-answer-inner h2 { font-size: 1.1em; font-weight: 700; margin: 10px 0 5px; color: #1a1a1a; }
.cfaq-answer-inner h3 { font-size: 1em;   font-weight: 700; margin: 10px 0 5px; color: #1a1a1a; }
.cfaq-answer-inner h4 { font-size: 0.95em; font-weight: 700; margin: 8px 0 4px;  color: #1a1a1a; }

/* ── No results ── */
.cfaq-no-results {
    color: #999;
    font-style: italic;
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .cfaq-question       { padding: 14px 15px; font-size: 0.93rem; }
    .cfaq-answer-inner   { padding: 13px 15px 15px; font-size: 0.92rem; }
}
