<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Portal Data Pribadi</title>
    <link rel="stylesheet" href="<?= base_url('css/bootstrap.min.css') ?>" />
    <link rel="stylesheet" href="<?= base_url('css/custom.css') ?>" />
</head>
<body>
    <?= $this->include('layout/navbar') ?>
    <?= $this->include('layout/page_header') ?>

    <?php
    $uri = service('uri');
    $segment1 = $uri->getSegment(1);
    $isHome = ($segment1 === '' || $segment1 === null || $segment1 === 'home');
    ?>

    <?php if (!$isHome): ?>
    <div class="main-container">
        <section id="main-content" class="content-section">
            <?= $this->renderSection('content') ?>
        </section>
    </div>
    <?php endif; ?>

    <?= $this->include('layout/footer') ?>

    <script src="<?= base_url('js/jquery.min.js') ?>"></script>
    <script src="<?= base_url('js/bootstrap.min.js') ?>"></script>
</body>
</html>