<?php
/**
 * Event content component (title, description)
 */
if (!defined('ABSPATH')) exit;

// Get content
$em_title = $event_post->post_title;
$em_desc = $event_post->post_content;

// Check if magazine layout
$layout_preference = $event_settings['em_layout_preference'] ?? 'default';
$rounded_class = ($layout_preference === 'magazine') ? 'em-rounded-2xl' : '';
?>

<!-- About Section - New Design -->
<section class="em-bg-white em-p-5 em-border em-border-slate-200 em-shadow-sm em-animate-fade-in em-animate-delay-200 <?php echo esc_attr($rounded_class); ?>">
    <h2 class="em-text-lg em-font-bold em-text-slate-900 em-mb-2">About The Event</h2>
    <div class="em-text-slate-600 em-leading-relaxed em-text-sm">
        <?php if ($em_desc): ?>
            <?php echo wp_kses_post($em_desc); ?>
        <?php else: ?>
            <p>A comprehensive event for professionals, enthusiasts, and industry leaders. Discover the latest trends, network with peers, and get inspired by talks from experts in the field.</p>
        <?php endif; ?>
    </div>
</section>
