<div class="page-banner">
    <div class="container">
        <h2>Our Sections</h2>
        <p>Explore our diverse range of services and research areas</p>
        <div class="breadcrumb">
            <a href="/">Home</a>
            <span class="separator"><i class="fas fa-chevron-right"></i></span>
            <span>Sections</span>
        </div>
    </div>
</div>

<section class="sections-area">
    <div class="container">
        <div class="sections-grid">
            <?php foreach ($sections as $index => $sec): ?>
            <div class="section-card fade-in-up" style="transition-delay: <?= ($index % 6) * 0.1 ?>s">
                <div class="section-card-image">
                    <img src="<?= htmlspecialchars($sec['image_url']) ?>" alt="<?= htmlspecialchars($sec['title']) ?>">
                </div>
                <div class="section-card-body">
                    <h3><?= htmlspecialchars($sec['title']) ?></h3>
                    <p><?= htmlspecialchars(substr($sec['description'], 0, 150)) ?>...</p>
                    <a href="/section/<?= htmlspecialchars($sec['slug']) ?>" class="read-more">Read More <i class="fas fa-arrow-right"></i></a>
                </div>
            </div>
            <?php endforeach; ?>
        </div>
    </div>
</section>
