<!-- ================================================================= -->
            <!-- 9. WARM WISHES (Scrollable Feed List)                            -->
            <!-- ================================================================= -->
            <?php if (isset($sectionMap['wishes'])): 
                $wishesConfig = $sectionMap['wishes'];
                $displayPublic = !empty($wishesConfig['display_public']);
                $approvedWishes = (array)($wishesConfig['approved_wishes'] ?? []);
            ?>
                <?php if ($displayPublic): ?>
                    <section class="py-16 md:py-20 lg:py-24 px-6 md:px-12 border-b <?= $style['borderColor'] ?>">
                        <?php
    $headerClass = 'text-center space-y-2 mb-8';
    $headerEmoji = '💬';
    $headerTitle = 'Warm Wishes From Guests';
    require __DIR__ . '/../partials/section_header.php';
    unset($headerClass, $headerEmoji, $headerEmojiClass, $headerTitle);
?>

                        <div class="w-full max-w-2xl mx-auto text-left">
                            <div class="<?= $style['cardBg'] ?> rounded-3xl border <?= $style['borderColor'] ?> shadow-sm p-6 space-y-4">
                                <div class="border-b <?= $style['borderColor'] ?> pb-3 flex items-center justify-between">
                                    <div>
                                        <h3 class="text-base font-bold <?= $style['textColor'] ?> <?= $style['fontSerif'] ?>">Recent Messages</h3>
                                        <p class="text-xs text-slate-400 mt-0.5">Warm prayers from family &amp; friends.</p>
                                    </div>
                                    <span class="text-xxs font-bold uppercase tracking-wider text-amber-700 <?= $style['accentBg'] ?> px-2.5 py-1 rounded-full border border-amber-200/60">
                                        <?= count($approvedWishes) ?> Wishes
                                    </span>
                                </div>

                                <?php if (!empty($approvedWishes)): ?>
                                    <div class="h-[350px] md:h-[450px] overflow-y-auto pr-2 space-y-3 scrollbar-thin">
                                        <?php foreach ($approvedWishes as $w): 
                                            $senderName = $w['sender_name'] ?? 'Guest';
                                            $initial = strtoupper(substr($senderName, 0, 1));
                                        ?>
                                            <div class="bg-amber-50/40 border border-amber-100/80 rounded-2xl p-4 space-y-2 hover:border-amber-300/60 transition shadow-2xs">
                                                <div class="flex items-center justify-between">
                                                    <div class="flex items-center gap-2.5">
                                                        <div class="w-8 h-8 rounded-full bg-gradient-to-tr from-amber-400 to-rose-400 flex items-center justify-center text-white text-xs font-bold shadow-xs">
                                                            <?= $initial ?>
                                                        </div>
                                                        <span class="text-xs font-bold <?= $style['textColor'] ?>"><?= escape_html($senderName) ?></span>
                                                    </div>
                                                    <span class="text-[10px] text-slate-400 font-medium"><?= date('d M Y', strtotime((string)$w['submitted_at'])) ?></span>
                                                </div>
                                                <?php
                                                    $safeMsg = strip_tags((string)$w['message'], '<b><i><u><strong><em><br><p><span>');
                                                    $safeMsg = preg_replace('/<([a-z][a-z0-9]*)[^>]*?(\/?)>/i', '<$1$2>', $safeMsg);
                                                ?>
                                                <p class="text-xs text-slate-700 italic font-serif-fancy leading-relaxed pl-10">
                                                    "<?= nl2br($safeMsg) ?>"
                                                </p>
                                            </div>
                                        <?php endforeach; ?>
                                    </div>
                                <?php else: ?>
                                    <div class="h-[200px] flex flex-col items-center justify-center text-center p-6 bg-slate-50/50 border border-dashed <?= $style['borderColor'] ?> rounded-2xl space-y-1">
                                        <span class="text-2xl opacity-40">💌</span>
                                        <p class="text-xs font-semibold <?= $style['subText'] ?>">No wishes shared yet.</p>
                                        <p class="text-[11px] text-slate-400">Be the first guest to leave congratulations above!</p>
                                    </div>
                                <?php endif; ?>
                            </div>
                        </div>
                    </section>
                <?php endif; ?>
            <?php endif; ?>
