/* ── CESN Brand Tokens ──────────────────────────────────────────────── */
:root {
    --cesn-navy: #1a3a8f;
    /* Primary — CESN logo blue              */
    --cesn-orange: #f7931e;
    /* Accent  — CESN subtitle / flag saffron */
    --cesn-green: #2d8a4e;
    /* Secondary — flag green                 */
    --cesn-light: #e8eef8;
    /* Soft blue tint for backgrounds         */
    --bg: #f4f6fb;
    --card-bg: #ffffff;
    --text-dark: #1a2340;
    --text-muted: #64748b;
}

/* ── Base ───────────────────────────────────────────────────────────── */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    margin: 0;
    padding: 0;
    color: var(--text-dark);
}

/* ── Container ──────────────────────────────────────────────────────── */
.container {
    max-width: 1250px;
    margin: 20px auto;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(26, 58, 143, 0.07);
}

/* ── Headings ───────────────────────────────────────────────────────── */
h2 {
    color: var(--cesn-navy);
    margin-bottom: 25px;
    border-left: 5px solid var(--cesn-orange);
    padding-left: 15px;
    font-weight: 800;
}

/* ── Navigation Bar ─────────────────────────────────────────────────── */
.main-nav {
    background: var(--cesn-navy);
    padding: 0 30px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(26, 58, 143, 0.25);
    position: sticky;
    top: 0;
    z-index: 1100;
    margin-bottom: 40px;
    font-family: 'Segoe UI', sans-serif;
}

/* Logo area in nav */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-brand img {
    height: 46px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.nav-brand-title {
    font-size: 1.15em;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.5px;
}

.nav-brand-sub {
    font-size: 0.62em;
    color: var(--cesn-orange);
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* Nav menu links */
.nav-menu {
    display: flex;
    gap: 4px;
    height: 100%;
}

.nav-item {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    border-bottom: 3px solid transparent;
    margin-top: 3px;
}

.nav-item:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
    color: #fff !important;
    border-bottom: 3px solid var(--cesn-orange);
    background: rgba(247, 147, 30, 0.12);
}

/* "Live" badge on mapping link */
.nav-badge {
    background: var(--cesn-orange);
    color: white;
    font-size: 0.62em;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* ── Keyboard Widget ─────────────────────────────────────────────────── */
.simple-keyboard {
    max-width: 900px;
    margin: 15px auto 0;
}

#keyboard-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -5px 15px rgba(26, 58, 143, 0.1);
    z-index: 1000;
    display: none;
    padding-bottom: 20px;
}

.keyboard-header {
    display: flex;
    justify-content: center;
    background: var(--cesn-light);
    padding: 10px;
    border-bottom: 1px solid #c8d4f0;
    gap: 10px;
}

.lang-btn {
    padding: 8px 20px;
    border: 1px solid #c8d4f0;
    background: #fff;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
    color: var(--cesn-navy);
    transition: all 0.2s;
}

.lang-btn.active-lang {
    background-color: var(--cesn-navy);
    color: white;
    border-color: var(--cesn-navy);
}

/* ── Page Footer ─────────────────────────────────────────────────────── */
.cesn-footer {
    text-align: center;
    padding: 28px 20px 16px;
    color: var(--text-muted);
    font-size: 0.8em;
    border-top: 1px solid #e2e8f0;
    margin-top: 40px;
}

.cesn-footer a {
    color: var(--cesn-navy);
    font-weight: 600;
    text-decoration: none;
}

.cesn-footer a:hover {
    text-decoration: underline;
}

.cesn-footer .footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: 10px;
    opacity: 0.85;
}