﻿/* --- Base / light theme --- */
:root {
    --bg: #ffffff;
    --fg: #0b0d12;
    --muted: #6b7280;
    --border: #e5e7eb;
    --link: #5b21b6; /* purple like your screenshot */
    --sak-purple: #5C276A;
    --sak-yellow: #FFE30F;
}
* {
    box-sizing: border-box
}

html, body {
    height: 100%;
            
}

    body.page {
        margin: 0;
        background: var(--bg);
        color: var(--fg);
        font-family: system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
        line-height: 1.6;
        display: flex;
        flex-direction: column; /* makes sticky footer trivial */
        min-height: 100vh;
    }

/* Layout containers */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none
}

.logo {
    display: block;
    height: 40px; /* auto-resizes SVG nicely */
    width: auto;
    max-width: 100%;
}

section {
    padding: 40px 0;
    overflow: hidden;
}

/* Main */
.content {
    flex: 1 0 auto;
}

/* Footer */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    margin-top: auto; /* push footer to bottom when content is short */
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

    .footer-links a {
        color: var(--link);
        text-decoration: none;
    }

        .footer-links a:hover {
            text-decoration: underline
        }

.footer-copy {
    margin-left: auto;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Forms / tiles from earlier (kept but lightened) */
form {
    display: grid;
    gap: 12px;
    max-width: 600px
}

label {
    display: grid;
    gap: 6px;
    color: var(--muted)
}

input, button {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--fg)
}

button {
    background: var(--link);
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 16px
}

.tile {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    min-height: 160px
}

    .tile .num {
        font-size: 56px;
        font-weight: 800
    }

.kiosk .num {
    font-size: 96px
}

.kiosk .tile span {
    opacity: .5
}

.fine {
    color: var(--muted);
    font-size: 12px
}

/* Links */
a {
    color: var(--link)
}

.center{text-align:center}
.timer{margin-top:12px}

/* Hero Banner */
.hero {
    position: relative;
    background: url('/images/bg.jpg') no-repeat center center;
    background-size: cover;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
}

.hero-overlay {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px 40px;
    border-radius: 12px;
    text-align: center;
}

.hero-overlay h1 {
    margin: 0 0 10px;
    font-size: 2.2rem;
    font-weight: 700;
}

.awareness-content {
    margin: 40px auto;
    padding: 0 20px;
}

.awareness-content h2,
.awareness-content h3 {
    color: #222;
    margin-top: 1.5em;
}

.awareness-content p,
.awareness-content li {
    font-size: 1.1rem;
    line-height: 1.7;
}

.awareness-content ul {
    padding-left: 20px;
    list-style-type: disc;
}

blockquote.tip {
    margin: 2em 0;
    padding: 15px 20px;
    border-left: 5px solid #5b21b6;
    background: #f9f6ff;
    font-style: italic;
    color: #333;
}

.section-bg {
    background-color: #f8fbfe;
}

/* full-width hero with overlay text */
.sak-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 38vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sak-hero__overlay {
    background: rgba(255,255,255,0.85);
    padding: 1.75rem 2rem;
    border-radius: 12px;
    max-width: 900px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

/* Base scaling for body text */
body, p, li {
    font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.15rem);
    line-height: 1.6;
}

/* Headings scale more strongly */
h1 {
    font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem);
}

h2 {
    font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.4rem, 1rem + 1vw, 2rem);
}

h4, h5, h6 {
    font-size: clamp(1.1rem, 0.9rem + 0.5vw, 1.5rem);
}
.text-danger {
    color: rgb(92 12 91) !important
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 900px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
    padding: 22px;
}

.card h2 {
    margin: 0 0 10px 0;
    color: var(--link);
    font-size: 1.3rem;
    font-weight: 700;
}

.tips {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tips li {
    margin: 10px 0;
}

.callout {
    border-left: 5px solid var(--link);
    background: #f9f6ff;
    padding: 14px 16px;
    border-radius: 8px;
    margin-top: 12px;
}

.stat-card .card-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.stat-title {
    letter-spacing: .2px;
    text-transform: none;
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-weight: 800;
}

.bg-purple {
    background: #5c0c5b !important;
}

.admin-wrap .btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.admin-wrap .btn .bi {
    font-size: 1.1rem;
}

@media (max-width: 480px) {
    .display-5 {
        font-size: 2rem;
    }

    .display-6 {
        font-size: 1.5rem;
    }
}

/* Scary interstitial */
.warning-screen {
    padding: 64px 0;
}

.alert-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.08); /* soft red bg */
    position: relative;
    overflow: visible;
}

/* Pulsing ring */
.alert-icon-wrap::after {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 3px solid rgba(220, 53, 69, 0.35);
    animation: pulse-red 1.2s ease-out infinite;
}

.alert-icon {
    font-size: 64px;
    color: #dc3545; /* Bootstrap danger */
    text-shadow: 0 0 18px rgba(220,53,69,.35);
    animation: siren-glow 0.9s ease-in-out infinite alternate;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    70% {
        transform: scale(1.15);
        opacity: 0;
    }

    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}

@keyframes siren-glow {
    from {
        filter: drop-shadow(0 0 0 rgba(220,53,69,.0));
        transform: scale(1);
    }

    to {
        filter: drop-shadow(0 0 16px rgba(220,53,69,.5));
        transform: scale(1.04);
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .alert-icon-wrap::after,
    .alert-icon {
        animation: none;
    }
}

/* --- Responsive Hero --- */
.hero-wrap {
    position: relative;
    /* give the banner a sensible height that adapts */
    min-height: 200px;
    max-height: 300px;
    overflow: hidden;
}

/* the image fills the area without distortion */
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; 
    display: block;
}

/* overlay layer that centers content */
.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem; /* breathing room on small screens */
    /* optional subtle vignette for readability */
    background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.08));
}

/* the white box with text */
.hero-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(2px);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    padding: clamp(0.75rem, 1.2vw + 0.5rem, 1.5rem);
    max-width: min(92vw, 820px);
    text-align: center;
}

/* responsive type inside hero */
.hero-card h1 {
    font-size: clamp(1.3rem, 1rem + 2.2vw, 2rem);
    line-height: 1.2;
}

.hero-card .lead {
    font-size: clamp(1rem, 0.95rem + 0.5vw, 1.25rem);
}

/* tighter banner on very small phones */
@media (max-width: 480px) {
    .hero-wrap {
        min-height: 200px;
    }
}

/* respect reduced motion – no future animations if added */
@media (prefers-reduced-motion: reduce) {
    .hero-overlay, .hero-card {
        transition: none !important;
    }
}

.hero-banner {
    background-image: url('/images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 300px;
    width: 100%;
}