<?php
/** Title: Campaign FAQ Section  
 * Slug: crowdfunding-platform/campaign-faq
 * Description: Frequently asked questions section for campaign pages. Can be hidden via crowdfunding_platform_show_campaign_faq filter.
 * Categories: crowdfunding_platform
 * Keywords: faq, questions, answers, help
 */

// Check if this section should be displayed
if ( ! apply_filters( 'crowdfunding_platform_show_campaign_faq', true ) ) {
    return;
}
?>

<!-- wp:group {"className":"campaign-section campaign-faq","layout":{"type":"default"}} -->
<div class="wp-block-group campaign-section campaign-faq">
	
	<?php if ( apply_filters( 'crowdfunding_platform_show_campaign_faq_title', true ) ) : ?>
	<!-- wp:heading {"level":2,"fontSize":"biggest","className":"pattern-heading-spacing-small"} -->
	<h2 class="wp-block-heading has-biggest-font-size pattern-heading-spacing-small"><?php echo esc_html( apply_filters( 'crowdfunding_platform_campaign_faq_title', __( 'Frequently Asked Questions', 'crowdfunding-platform' ) ) ); ?></h2>
	<!-- /wp:heading -->
	<?php endif; ?>
	
	<?php
	// Build default FAQ content with translatable strings
	$default_faq_content = '
	<!-- wp:group {"layout":{"type":"default"}} -->
	<div class="wp-block-group pattern-content-spacing">
		<!-- wp:heading {"level":3,"textColor":"primary","fontSize":"bigger"} -->
		<h3 class="wp-block-heading has-primary-color has-text-color has-bigger-font-size">' . esc_html__( 'When will the product be delivered?', 'crowdfunding-platform' ) . '</h3>
		<!-- /wp:heading -->

		<!-- wp:paragraph {"fontSize":"base"} -->
		<p class="has-base-font-size pattern-content-spacing">' . esc_html__( 'We expect to begin shipping rewards to our backers within 4-6 months after the campaign successfully concludes. We will provide regular updates on our progress throughout the development and manufacturing process.', 'crowdfunding-platform' ) . '</p>
		<!-- /wp:paragraph -->
	</div>
	<!-- /wp:group -->

	<!-- wp:group {"layout":{"type":"default"}} -->
	<div class="wp-block-group pattern-content-spacing">
		<!-- wp:heading {"level":3,"textColor":"primary","fontSize":"bigger"} -->
		<h3 class="wp-block-heading has-primary-color has-text-color has-bigger-font-size">' . esc_html__( 'What if the campaign does not reach its funding goal?', 'crowdfunding-platform' ) . '</h3>
		<!-- /wp:heading -->

		<!-- wp:paragraph {"fontSize":"base"} -->
		<p class="has-base-font-size pattern-content-spacing">' . esc_html__( 'If we do not reach our funding goal, no pledges will be charged and we will explore alternative funding options. However, we are confident in our community\'s support and our ability to reach our target.', 'crowdfunding-platform' ) . '</p>
		<!-- /wp:paragraph -->
	</div>
	<!-- /wp:group -->

	<!-- wp:group {"layout":{"type":"default"}} -->
	<div class="wp-block-group pattern-content-spacing">
		<!-- wp:heading {"level":3,"textColor":"primary","fontSize":"bigger"} -->
		<h3 class="wp-block-heading has-primary-color has-text-color has-bigger-font-size">' . esc_html__( 'Can I change my reward level after backing?', 'crowdfunding-platform' ) . '</h3>
		<!-- /wp:heading -->

		<!-- wp:paragraph {"fontSize":"base"} -->
		<p class="has-base-font-size pattern-content-spacing">' . esc_html__( 'Yes, you can modify your pledge amount and reward level anytime during the campaign period. Simply log into your account and adjust your contribution as needed.', 'crowdfunding-platform' ) . '</p>
		<!-- /wp:paragraph -->
	</div>
	<!-- /wp:group -->

	<!-- wp:group {"layout":{"type":"default"}} -->
	<div class="wp-block-group pattern-content-spacing">
		<!-- wp:heading {"level":3,"textColor":"primary","fontSize":"bigger"} -->
		<h3 class="wp-block-heading has-primary-color has-text-color has-bigger-font-size">' . esc_html__( 'Do you offer international shipping?', 'crowdfunding-platform' ) . '</h3>
		<!-- /wp:heading -->

		<!-- wp:paragraph {"fontSize":"base"} -->
		<p class="has-base-font-size pattern-content-spacing">' . esc_html__( 'Yes, we ship worldwide! International backers may be responsible for customs duties and taxes in their respective countries. We will work with reliable shipping partners to ensure safe delivery.', 'crowdfunding-platform' ) . '</p>
		<!-- /wp:paragraph -->
	</div>
	<!-- /wp:group -->
	';
	echo wp_kses_post( apply_filters( 'crowdfunding_platform_campaign_faq_questions', $default_faq_content ) );
	?>
	
</div>
<!-- /wp:group -->