<div class="page-banner">
    <div class="container">
        <h2>Our Services</h2>
        <p>Professional genomics services tailored to your needs</p>
        <div class="breadcrumb">
            <a href="/">Home</a>
            <span class="separator"><i class="fas fa-chevron-right"></i></span>
            <span>Services</span>
        </div>
    </div>
</div>

<section class="sections-area">
    <div class="container">
        <div class="sections-grid">
            <?php if (!empty($services)): ?>
                <?php foreach ($services as $svc): ?>
                <div class="section-card fade-in-up">
                    <div class="section-card-image" style="display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--lighter) 0%, var(--gray-50) 100%);">
                        <div class="service-icon">
                            <i class="fas fa-<?= htmlspecialchars($svc['icon'] ?? 'flask') ?>"></i>
                        </div>
                    </div>
                    <div class="section-card-body">
                        <h3><?= htmlspecialchars($svc['title']) ?></h3>
                        <p><?= htmlspecialchars($svc['short_description'] ?? '') ?></p>
                        <?php if (!empty($svc['price'])): ?>
                        <span class="service-price"><?= htmlspecialchars($svc['price']) ?></span>
                        <?php endif; ?>
                        <div class="mt-2">
                            <a href="/service/<?= htmlspecialchars($svc['slug']) ?>" class="read-more">Learn More <i class="fas fa-arrow-right"></i></a>
                        </div>
                    </div>
                </div>
                <?php endforeach; ?>
            <?php else: ?>
                <div class="text-center" style="grid-column: 1 / -1;">
                    <p class="text-muted">No services available at this time.</p>
                </div>
            <?php endif; ?>
        </div>
    </div>
</section>
