<?php
/**
 * Service card.
 *
 * @package ALFASMART
 */

$service = $args['service'] ?? array();
$heading = $args['heading'] ?? 'h2';
?>
<article class="as-service-card as-reveal">
    <?php alfasmart_render_icon($service['icon_type'] ?? 'icon', $service['icon'] ?? '', $service['icon_image'] ?? null, 'as-service-icon', 'fa-solid fa-chart-simple'); ?>
    <<?php echo tag_escape($heading); ?>><?php echo esc_html($service['title'] ?? ''); ?></<?php echo tag_escape($heading); ?>>
    <p><?php echo esc_html($service['description'] ?? ''); ?></p>
</article>
