<?php
/**
 * Template View: FAQ Card
 *
 * Displays a question and answer.
 *
 * @package    BoostBot
 * @subpackage Templates/Views
 * @since      1.6.0
 *
 * @var string $question The question.
 * @var string $answer   The answer.
 */

// Prevent direct access
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

// Validate required data
if ( empty( $question ) || empty( $answer ) ) {
    return;
}
?>

<div class="bb-faq-card">
    <div class="bb-faq-question">
        <span class="bb-faq-icon">❓</span>
        <span class="bb-faq-q-text"><?php echo esc_html( $question ); ?></span>
    </div>
    <div class="bb-faq-answer">
        <span class="bb-faq-icon">💡</span>
        <div class="bb-faq-a-text"><?php echo wp_kses_post( $answer ); ?></div>
    </div>
</div>
