/* =============================================================================
   Fitness Coach Pro — Luxury Editorial Yoast FAQ Clean Open Cards
   =============================================================================
   Designed with a luxury sports-editorial aesthetic (Equinox / Ontario inspired).
   Features static open Q&A cards with signature gold accents, automatic numbering,
   and zero JavaScript dependencies.
   ============================================================================= */

/* ── 1. Main FAQ Container ── */
.fcp-entry-content .schema-faq,
.schema-faq.wp-block-yoast-faq-block,
.schema-faq {
    counter-reset: fcp-faq-counter;
    margin: 3.5rem 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* ── 2. Individual Question & Answer Card ── */
.fcp-entry-content .schema-faq-section,
.schema-faq .schema-faq-section,
.schema-faq-section {
    counter-increment: fcp-faq-counter;
    background: #ffffff !important;
    border: 1px solid rgba(197, 160, 89, 0.28) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(197, 160, 89, 0.05) !important;
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease !important;
    position: relative !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

@media (hover: hover) {
    .fcp-entry-content .schema-faq-section:hover,
    .schema-faq .schema-faq-section:hover,
    .schema-faq-section:hover {
        transform: translateY(-2px);
        border-color: rgba(197, 160, 89, 0.6) !important;
        box-shadow: 0 8px 24px rgba(197, 160, 89, 0.12) !important;
    }
}

/* ── 3. Question Bar (Signature Gold Accent & Auto-Numbering) ── */
.fcp-entry-content .schema-faq-section > .schema-faq-question,
.fcp-entry-content .schema-faq-section :is(h1, h2, h3, h4, h5, h6, strong, p).schema-faq-question,
.schema-faq-section .schema-faq-question,
.schema-faq-question {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 18px 22px !important;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.07) 0%, rgba(197, 160, 89, 0.02) 100%) !important;
    border-bottom: 1px solid rgba(197, 160, 89, 0.16) !important;
    border-inline-start: 4px solid var(--gold, #C5A059) !important;
    border-top: none !important;
    border-inline-end: none !important;
    font-family: var(--font-heading, 'Cairo', sans-serif) !important;
    font-size: clamp(17px, 2vw, 19px) !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    color: #111111 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    text-align: inherit !important;
}

/* Numbering Chip (01, 02, 03...) */
.fcp-entry-content .schema-faq-section > .schema-faq-question::before,
.fcp-entry-content .schema-faq-section :is(h1, h2, h3, h4, h5, h6, strong, p).schema-faq-question::before,
.schema-faq-section .schema-faq-question::before,
.schema-faq-question::before {
    content: counter(fcp-faq-counter, decimal-leading-zero);
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 8px !important;
    background: linear-gradient(135deg, #C5A059 0%, #A68042 100%) !important;
    color: #ffffff !important;
    font-family: var(--font-primary, 'Outfit', 'Cairo', sans-serif) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    letter-spacing: 0.5px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(197, 160, 89, 0.25) !important;
    line-height: 1 !important;
}

/* ── 4. Answer Area (Readability & Typography) ── */
.fcp-entry-content .schema-faq-section > .schema-faq-answer,
.fcp-entry-content .schema-faq-section .schema-faq-answer,
.schema-faq-section .schema-faq-answer,
.schema-faq-answer {
    padding: 20px 24px 24px 24px !important;
    margin: 0 !important;
    background: #ffffff !important;
    color: #2c2d30 !important;
    font-family: var(--font-body, 'Cairo', sans-serif) !important;
    font-size: 17px !important;
    line-height: 1.9 !important;
    text-align: justify !important;
    box-sizing: border-box !important;
    border: none !important;
}

.schema-faq-answer p {
    margin: 0 0 1rem 0 !important;
    padding: 0 !important;
    line-height: 1.9 !important;
    font-size: 17px !important;
    color: #2c2d30 !important;
    text-align: justify !important;
}

.schema-faq-answer p:last-child {
    margin-bottom: 0 !important;
}

.schema-faq-answer a {
    color: var(--gold, #C5A059) !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(197, 160, 89, 0.4) !important;
    text-underline-offset: 4px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.schema-faq-answer a:hover {
    color: var(--gold-dark, #A68042) !important;
    text-decoration-color: var(--gold, #C5A059) !important;
}

.schema-faq-answer strong,
.schema-faq-answer b {
    color: #111111 !important;
    font-weight: 700 !important;
}

.schema-faq-answer ul,
.schema-faq-answer ol {
    margin: 0.75rem 0 1rem 0 !important;
    padding-inline-start: 1.75rem !important;
    box-sizing: border-box !important;
}

.schema-faq-answer li {
    margin-bottom: 0.5rem !important;
    line-height: 1.8 !important;
}

/* ── 5. Mobile Fluid Scaling (Down to 320px) ── */
@media (max-width: 600px) {
    .fcp-entry-content .schema-faq,
    .schema-faq.wp-block-yoast-faq-block,
    .schema-faq {
        margin: 2.25rem 0 !important;
        gap: 14px !important;
    }

    .fcp-entry-content .schema-faq-section > .schema-faq-question,
    .fcp-entry-content .schema-faq-section :is(h1, h2, h3, h4, h5, h6, strong, p).schema-faq-question,
    .schema-faq-section .schema-faq-question,
    .schema-faq-question {
        padding: 14px 16px !important;
        gap: 10px !important;
        font-size: 15.5px !important;
    }

    .fcp-entry-content .schema-faq-section > .schema-faq-question::before,
    .fcp-entry-content .schema-faq-section :is(h1, h2, h3, h4, h5, h6, strong, p).schema-faq-question::before,
    .schema-faq-section .schema-faq-question::before,
    .schema-faq-question::before {
        min-width: 28px !important;
        height: 28px !important;
        font-size: 11.5px !important;
        padding: 0 5px !important;
        border-radius: 6px !important;
    }

    .fcp-entry-content .schema-faq-section > .schema-faq-answer,
    .fcp-entry-content .schema-faq-section .schema-faq-answer,
    .schema-faq-section .schema-faq-answer,
    .schema-faq-answer {
        padding: 16px !important;
        font-size: 15px !important;
        line-height: 1.8 !important;
    }

    .schema-faq-answer p {
        font-size: 15px !important;
        line-height: 1.8 !important;
    }
}

/* ── 6. Professional Print Layout (@media print) ── */
@media print {
    .fcp-entry-content .schema-faq,
    .schema-faq.wp-block-yoast-faq-block,
    .schema-faq {
        margin: 18pt 0 !important;
        gap: 12pt !important;
    }

    .fcp-entry-content .schema-faq-section,
    .schema-faq .schema-faq-section,
    .schema-faq-section {
        box-shadow: none !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 8px !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
        margin-bottom: 12pt !important;
        background: #ffffff !important;
    }

    .fcp-entry-content .schema-faq-section > .schema-faq-question,
    .fcp-entry-content .schema-faq-section :is(h1, h2, h3, h4, h5, h6, strong, p).schema-faq-question,
    .schema-faq-section .schema-faq-question,
    .schema-faq-question {
        background: #f8f9fa !important;
        color: #000000 !important;
        border-bottom: 1px solid #cbd5e1 !important;
        font-size: 12pt !important;
        padding: 10pt 14pt !important;
    }

    .fcp-entry-content .schema-faq-section > .schema-faq-question::before,
    .fcp-entry-content .schema-faq-section :is(h1, h2, h3, h4, h5, h6, strong, p).schema-faq-question::before,
    .schema-faq-section .schema-faq-question::before,
    .schema-faq-question::before {
        background: #C5A059 !important;
        color: #ffffff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .fcp-entry-content .schema-faq-section > .schema-faq-answer,
    .fcp-entry-content .schema-faq-section .schema-faq-answer,
    .schema-faq-section .schema-faq-answer,
    .schema-faq-answer {
        color: #111111 !important;
        font-size: 11pt !important;
        padding: 12pt 14pt !important;
    }

    .schema-faq-answer p {
        color: #111111 !important;
        font-size: 11pt !important;
    }
}
