<?php
$this->layout = 'default'; // or use a custom layout
?>

<div class="error-page">
    <h1>404 - Page Not Found</h1>
    <p>Oops! The page you’re looking for doesn’t exist.</p>
    <p><a href="<?= $this->Url->build('/') ?>">Go back to homepage</a></p>
</div>

<style>
    .error-page {
        text-align: center;
        padding: 80px 20px;
    }
    .error-page h1 {
        font-size: 3em;
        color: #ff4d4d;
    }
    .error-page p {
        font-size: 1.2em;
    }
</style>
