:root {
    --brand: #330033;
    --brand-soft: #6a2f73;
    --accent: #a15bbb;
    --bg: #f8f4fb;
    --surface: #ffffff;
    --text: #24172a;
    --muted: #6e6774;
    --border: rgba(51, 0, 51, 0.1);
    --shadow: 0 14px 40px rgba(51, 0, 51, 0.12);
    --radius: 22px;
}

/* Shared Navigation and Header Styles */
header {
    background-color: #330033;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 22px rgba(20, 0, 20, 0.18);
}

.header-inner {
    width: min(1120px, calc(100% - 1.2rem));
    margin: 0 auto;
    padding: 0.85rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.brand img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.95;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    opacity: 1;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Shared Footer Styles */
footer {
    text-align: center;
    padding: 2.5rem 1rem;
    margin-top: 2rem;
    font-size: 0.95rem;
    color: var(--muted);
}

footer p {
    margin: 0.5rem 0;
}

footer a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--accent);
}

@media (max-width: 640px) {
    .header-inner {
        padding: 0.8rem 0;
    }

    .brand {
        letter-spacing: 0.08em;
        font-size: 0.95rem;
        gap: 0.6rem;
    }

    .brand img {
        width: 44px;
        height: 44px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #330033;
        flex-direction: column;
        padding: 5rem 1.5rem 2.5rem;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        height: 100vh;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.25rem;
        width: 100%;
        text-align: center;
        padding: 0.5rem;
    }
}