<?php
// Partial: render only the footer markup (no closing </body></html>).
require_once __DIR__ . '/functions.php';

$base_url = defined('BASE_URL') ? BASE_URL : '/';
$siteName = getSiteSetting('site_name') ?: 'Mutalex Academy';
$currentYear = date('Y');
?>

<footer class="footer">
    <div class="container">
        <div class="footer-content">
            <div class="footer-section">
                <h3><?php echo htmlspecialchars($siteName); ?></h3>
                <p>Your source for news, articles, and journals.</p>
            </div>
            <div class="footer-section">
                <h4>Categories</h4>
                <ul class="footer-links">
                    <li><a href="<?php echo $base_url; ?>courses/catalog.php">Courses</a></li>
                    <li><a href="<?php echo $base_url; ?>category?cat=news">News</a></li>
                    <li><a href="<?php echo $base_url; ?>category?cat=articles">Articles</a></li>
                    <li><a href="<?php echo $base_url; ?>category?cat=journals">Journals</a></li>
                    <li><a href="<?php echo $base_url; ?>survey.php">Survey</a></li>
                    <li><a href="<?php echo $base_url; ?>login.php">Login</a></li>
                </ul>
            </div>
            <div class="footer-section">
                <h4>Connect</h4>
                <div class="social-links">
                    <a href="#"><i class="fab fa-twitter"></i></a>
                    <a href="#"><i class="fab fa-facebook"></i></a>
                    <a href="#"><i class="fab fa-linkedin"></i></a>
                </div>
            </div>
        </div>
        <div class="footer-bottom">
            <p>&copy; <?php echo $currentYear; ?> <?php echo htmlspecialchars($siteName); ?>. All rights reserved.</p>
        </div>
    </div>
</footer>

