<!-- IMAGE TESTIMONIALS (Unlimited Dynamic) -->
<div class="form-card section-divider" id="section-image_testimonials">
    <h3>Image Testimonials Section</h3>
    <input type="text" name="image_testimonials_title" value="<?php echo htmlspecialchars($landing['image_testimonials_title'] ?? '৫০০০+ খামারির পছন্দ – ছবি রিভিউ'); ?>"
           placeholder="Title" required class="mb-2">
    <textarea name="image_testimonials_subtext" rows="2" placeholder="খামারিদের আসল ছবি – বিশ্বাস করুন!"
              required class="mb-2"><?php echo htmlspecialchars($landing['image_testimonials_subtext'] ?? 'খামারিদের আসল ছবি – বিশ্বাস করুন!'); ?></textarea>
    <div id="imageTestimonialsContainer">
        <?php if (!empty($image_testimonials)): ?>
            <?php foreach ($image_testimonials as $index => $testimonial): ?>
                <div class="image-testimonial-row">
                    <div class="flex justify-between items-center mb-2">
                        <h4>Image Testimonial <?php echo $index; ?></h4>
                        <button type="button" class="remove-btn" onclick="removeImageTestimonial(this)">Remove</button>
                    </div>
                    <label>Image (≤ 2 MB)</label>
                    <input type="file" name="image_file[]" accept="image/*" class="mb-1">
                    <?php if (!empty($testimonial['image'])): ?>
                        <img src="<?php echo htmlspecialchars($upload_dir . $testimonial['image']); ?>" alt="Image Testimonial <?php echo $index; ?>" class="preview-img">
                    <?php endif; ?>
                    <input type="text" name="image_caption[]" value="<?php echo htmlspecialchars($testimonial['caption'] ?? ''); ?>"
                           placeholder="Caption" required class="mt-1">
                </div>
            <?php endforeach; ?>
        <?php else: ?>
            <div class="image-testimonial-row">
                <div class="flex justify-between items-center mb-2">
                    <h4>Image Testimonial 1</h4>
                    <button type="button" class="remove-btn" onclick="removeImageTestimonial(this)">Remove</button>
                </div>
                <label>Image (≤ 2 MB)</label>
                <input type="file" name="image_file[]" accept="image/*" class="mb-1">
                <input type="text" name="image_caption[]" value="" placeholder="Caption" required class="mt-1">
            </div>
        <?php endif; ?>
    </div>
    <button type="button" class="add-btn" onclick="addImageTestimonial()">Add New Image Testimonial</button>
</div>