<?= $this->extend('layout/main_layout') ?>
<?= $this->section('content') ?>
<div class="container py-5">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card shadow-sm border-0">
                <div class="card-body text-center">
                    <h3 class="card-title mb-3">Choose a semester</h3>
                    <p class="text-muted mb-4">
                        Before viewing scores, pick the semester you want to work with.
                    </p>
                    <?php if (!empty($invalidChoice)): ?>
                        <div class="alert alert-warning">
                            <strong>Note:</strong> "<?= esc($invalidChoice) ?>" is not a valid semester selection.
                        </div>
                    <?php endif; ?>
                    <div class="d-flex flex-wrap justify-content-center gap-3">
                        <a href="<?= esc($fallUrl) ?>" class="btn btn-primary btn-lg px-4">Fall</a>
                        <a href="<?= esc($springUrl) ?>" class="btn btn-outline-primary btn-lg px-4">Spring</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?= $this->endSection() ?>
