.faq-item-container { border-bottom: 1px solid #e2e8f0; }
.faq-item-container:last-child { border-bottom: none; }
.faq-trigger { width: 100%; text-align: left; padding: 18px 20px; background: #ffffff; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }
.faq-trigger:hover { background: #f8fafc; }
.faq-trigger span { font-weight: 600; color: #1e293b; font-size: 17px; }
.faq-content { display: none; padding: 0 20px 20px; color: #475569; background: #ffffff; font-size: 16px; }
.faq-icon { transition: transform 0.2s; color: #64748b; font-size: 20px; }
This component uses valid JSON-LD/Microdata Schema.org markup. By embedding this in your WordPress HTML block, search engines can parse the questions and answers to display Rich Snippets (FAQ Schema) directly in the Search Engine Results Pages (SERPs), significantly increasing your click-through rate (CTR).
Yes. The layout uses block-level elements and percentage-based widths where necessary, ensuring it fits perfectly within any WordPress container, column, or sidebar on mobile, tablet, and desktop devices.
WordPress Custom HTML blocks often strip or conflict with external scripts. Using inline 'onclick' events and 'var' ensures maximum compatibility across different browser versions and avoids 'strict mode' issues, making the code robust and plug-and-play without requiring a separate JS file.