<!DOCTYPE html>
<html lang="<?php echo h(current_lang()); ?>">
<head>
    <meta charset="UTF-8">
    <base href="<?php echo BASE_URL; ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <?php
    $pageTitles = [
        'home'         => lang_text('Home - UK Trail Run 2026', 'Beranda - UK Trail Run 2026'),
        'results'      => lang_text('Race Results - UK Trail Run 2026', 'Hasil Lomba - UK Trail Run 2026'),
        'tracking'     => lang_text('Live Tracking - UK Trail Run 2026', 'Pelacakan Langsung - UK Trail Run 2026'),
        'rules'        => lang_text('Race Rules - UK Trail Run 2026', 'Peraturan Lomba - UK Trail Run 2026'),
        'contact'      => lang_text('Contact Us - UK Trail Run 2026', 'Hubungi Kami - UK Trail Run 2026'),
        'about'        => lang_text('About Us - UK Trail Run 2026', 'Tentang Kami - UK Trail Run 2026'),
        'registration' => lang_text('Registration - UK Trail Run 2026', 'Pendaftaran - UK Trail Run 2026'),
        'merchandise'  => lang_text('Merchandise - UK Trail Run 2026', 'Merchandise - UK Trail Run 2026'),
    ];
    $title = isset($pageTitles[$page]) ? $pageTitles[$page] : 'UK Trail Run 2026';
    ?>
    <title><?php echo h($title); ?></title>
    <meta name="description" content="<?php echo tr('UK Trail Run 2026 event site with race details, results, about info, and live checkpoint updates.', 'Situs acara UK Trail Run 2026 dengan detail lomba, hasil, informasi acara, dan pembaruan checkpoint langsung.'); ?>">
    <link rel="stylesheet" href="assets/css/style.css?v=2.6">
    <link rel="icon" type="image/png" href="assets/img/logo.webp">
</head>
<body class="page-<?php echo h($page); ?>">
