﻿/* Readable answers with a quiet, full-width question list. */
.faq-page { color: var(--welsi-ink, #142c14); font-family: var(--welsi-body, 'IBM Plex Sans', sans-serif); }
.faq-page :is(h1,h2) { font-family: var(--welsi-display, 'Newsreader', Georgia, serif); font-weight: 500; line-height: 1.12; }
.faq-page .faq-eyebrow { font-size: .73rem; font-weight: 700; line-height: 1.5; letter-spacing: .13em; text-transform: uppercase; color: var(--welsi-fern, #537b2f); margin-bottom: 1rem; }
.faq-hero { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--welsi-deep, #003d20); border-bottom: 5px solid var(--welsi-accent, #e4eb9c); min-height: 370px; }
.faq-hero-img { grid-column: 2; grid-row: 1; width: 100%; height: 100%; min-height: 370px; object-fit: cover; }
.faq-hero-overlay { display: none; }
.faq-hero-content { grid-column: 1; grid-row: 1; align-self: center; padding: clamp(2rem,5vw,4.5rem); color: #fff; }
.faq-hero-content h1 { color: white; font-size: clamp(3rem,5.5vw,5rem); letter-spacing: -.04em; margin: 1.3rem 0; }
.faq-page .faq-hero-content .faq-eyebrow { color: var(--welsi-accent, #e4eb9c); }
.faq-hero-content p:not(.faq-eyebrow) { color: #e0e9df; font-size: 1.05rem; line-height: 1.8; max-width: 30rem; margin-bottom: 0; }
.faq-container { padding: clamp(3.5rem,7vw,6rem) 1.5rem; }
.faq-wrapper { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0,1.7fr); gap: 2rem clamp(2rem,5vw,5rem); max-width: 1180px; margin-inline: auto; align-items: start; }
.faq-section-header { grid-row: 1 / span 2; }
.faq-section-header h2 { font-size: clamp(2rem,3vw,2.8rem); margin-bottom: 1.5rem; }
.faq-section-header > p:not(.faq-eyebrow) { color: #596a59; line-height: 1.8; }
.faq-accordion { border-top: 1px solid var(--welsi-line, #d9e3d8); }
.faq-item { border-bottom: 1px solid var(--welsi-line, #d9e3d8); background: #fff; }
.faq-question { padding: 1.6rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; cursor: pointer; }
.faq-question:hover, .faq-item.open .faq-question { background: var(--welsi-paper, #f4f7f3); }
.faq-question-content { min-width: 0; flex: 1; }
.faq-question h3 { margin: 0; color: var(--welsi-deep, #003d20); font-family: var(--welsi-body, 'IBM Plex Sans', sans-serif); font-size: 1.05rem; line-height: 1.55; font-weight: 600; overflow-wrap: anywhere; }
.faq-toggle-icon { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; color: var(--welsi-fern, #537b2f); }
.faq-toggle-icon i { transition: transform .2s ease; font-size: .8rem; }
.faq-item.open .faq-toggle-icon i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-answer-content { padding: 1.5rem 1rem 1.8rem; color: #435743; line-height: 1.9; overflow-wrap: anywhere; }
.faq-answer-content p:last-child { margin-bottom: 0; }
.faq-admin-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--welsi-line, #d9e3d8); }
.faq-action-bar { grid-column: 2; }
.faq-btn, .faq-btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem 1rem; border: 1px solid transparent; border-radius: 5px; font-size: .9rem; font-weight: 600; }
.faq-btn-primary, .faq-btn-edit, .faq-btn-primary-submit { background: var(--welsi-deep, #003d20); color: white; }
.faq-btn-primary:hover, .faq-btn-edit:hover, .faq-btn-primary-submit:hover { background: #205132; }
.faq-btn-delete, .faq-btn-delete-confirm { background: #a83232; color: white; }
.faq-btn-delete:hover, .faq-btn-delete-confirm:hover { background: #8c2727; }
.faq-btn-cancel { background: #edf1ec; color: var(--welsi-ink, #142c14); border-color: var(--welsi-line, #d9e3d8); }
.faq-empty { padding: 3rem 1.5rem; background: var(--welsi-paper, #f4f7f3); border: 1px solid var(--welsi-line, #d9e3d8); border-radius: 6px; text-align: center; color: #596a59; }
.faq-empty i { display: block; color: var(--welsi-fern, #537b2f); font-size: 1.7rem; margin-bottom: 1rem; }
.faq-empty p { margin: 0; }
.faq-alert { display: flex; gap: .75rem; align-items: center; padding: 1rem 1.25rem; margin: 1.5rem auto; max-width: 800px; border: 1px solid; border-radius: 5px; }
.faq-alert p { margin: 0; }
.faq-alert.alert-success { background: #eef4e8; border-color: #bfd1b3; color: #315b2c; }
.faq-alert.alert-danger { background: #fbeeee; border-color: #e6bfbf; color: #8c2727; }
.faq-contact-cta { padding: clamp(3rem,6vw,5rem) 1.5rem; background: var(--welsi-paper, #f4f7f3); border-top: 1px solid var(--welsi-line, #d9e3d8); text-align: center; }
.faq-cta-content { max-width: 650px; margin-inline: auto; }
.faq-cta-content h2 { font-size: clamp(2rem,3.5vw,3rem); margin-bottom: 1rem; }
.faq-cta-content p { color: #596a59; line-height: 1.8; margin-bottom: 1.7rem; }
.faq-cta-button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; padding: .85rem 1.4rem; background: var(--welsi-deep, #003d20); color: #fff; border-radius: 5px; font-weight: 600; text-decoration: none; max-width: 100%; overflow-wrap: anywhere; }
.faq-cta-button:hover { background: #205132; color: #fff; }
.faq-page :is(a,button,.faq-question):focus-visible { outline: 3px solid var(--welsi-fern, #537b2f); outline-offset: 3px; }
.faq-modal-content { border: 1px solid var(--welsi-line, #d9e3d8); border-radius: 8px; overflow: hidden; }
.faq-modal-header { background: var(--welsi-deep, #003d20); color: #fff; padding: 1.3rem 1.5rem; }
.faq-modal-header .btn-close { filter: brightness(0) invert(1); }
.faq-form-input { border: 1px solid var(--welsi-line, #d9e3d8); border-radius: 5px; padding: .75rem; }
.faq-form-input:focus { border-color: var(--welsi-fern, #537b2f); box-shadow: 0 0 0 3px #537b2f22; }
.delete-confirmation { padding: 1rem; text-align: center; }
.delete-confirmation i { font-size: 2rem; color: #a83232; margin-bottom: 1rem; }
@media (max-width: 767.98px) {
    .faq-hero { grid-template-columns: 1fr; }
    .faq-hero-img { grid-column: 1; grid-row: 2; height: 190px; min-height: 0; }
    .faq-hero-content { padding: 2.5rem 1.5rem; }
    .faq-wrapper { grid-template-columns: 1fr; gap: 1.5rem; }
    .faq-section-header { grid-row: auto; }
    .faq-action-bar { grid-column: 1; }
    .faq-question { padding: 1.3rem .5rem; }
    .faq-answer-content { padding: 1rem .5rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { .faq-answer, .faq-toggle-icon i { transition: none; } }
