<?php
/**
 * Home know more section.
 *
 * @package ALFASMART
 */

$features = alfasmart_get_home_field('home_presence_features', alfasmart_presence_feature_items());

if (! $features) {
    $features = alfasmart_presence_feature_items();
}
?>
<section class="as-presence-section" id="about-more" aria-labelledby="as-presence-title">
    <div class="container as-section-container">
        <div class="as-presence-head as-reveal">
            <p class="as-section-kicker"><?php echo esc_html(alfasmart_get_home_field('home_presence_kicker', 'Know More About Us')); ?></p>
            <h2 class="as-section-heading" id="as-presence-title"><?php echo esc_html(alfasmart_get_home_field('home_presence_title', 'Built for a stronger corporate presence.')); ?></h2>
            <p class="know-more-para"><?php echo esc_html(alfasmart_get_home_field('home_presence_copy', 'A polished structure that communicates trust, scale, and ambition from the first scroll.')); ?></p>
        </div>
        <div class="row as-card-row as-presence-grid">
            <?php foreach ($features as $feature) : ?>
                <div class="col-12 col-md-6">
                    <article class="as-feature-card as-reveal">
                        <?php alfasmart_render_icon($feature['icon_type'] ?? 'icon', $feature['icon'] ?? '', $feature['icon_image'] ?? null, 'as-feature-icon', 'fa-solid fa-shield-halved'); ?>
                        <h3><?php echo esc_html($feature['title'] ?? ''); ?></h3>
                        <p><?php echo esc_html($feature['description'] ?? ''); ?></p>
                    </article>
                </div>
            <?php endforeach; ?>
        </div>
    </div>
</section>
