/* ========================= */
/* RESET & BASE STYLES       */
/* ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* ========================= */
/* BACKGROUND IMAGE          */
/* ========================= */
body {
    background: url("assets/background_image.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(121, 121, 121, 0.6); /* opacity 60% */
    z-index: -1;
}

/* ========================= */
/* HEADER                    */
/* ========================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #960106;
    color: white;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 60px;
}

/* ========================= */
/* NAVBAR                    */
/* ========================= */
nav {
    background: #960106;
    color: white;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar > ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar > ul > li {
    position: relative;
}

.navbar > ul > li > a {
    color: white;
    font-weight: bold;
    cursor: pointer;
    padding: 8px 12px;
    display: inline-block;
    user-select: none;
}

/* Submenu */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #960106;
    border-radius: 5px;
    min-width: 180px;
    padding: 5px 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.submenu.open {
    display: block;
}

.submenu li {
    padding: 8px 20px;
    list-style: none;
}

.submenu li a {
    color: white;
    font-weight: bold;
    display: block;
    text-decoration: none;
    user-select: none;
}

.submenu li:hover {
    background: #7a0014;
}

/* ========================= */
/* MAIN CONTENT AREA         */
/* ========================= */
main#content {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    flex: 1; /* take remaining vertical space to push footer down */

    /* Center content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* ========================= */
/* FOOTER                    */
/* ========================= */
footer {
    text-align: center;
    padding: 20px;
    background: #1a1a1a;
    color: white;
    width: 100%;
}

/* ========================= */
/* RESPONSIVE                 */
/* ========================= */
@media (max-width: 768px) {
    .navbar > ul {
        flex-direction: column;
        gap: 0;
    }

    .navbar > ul > li > a {
        padding: 12px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .submenu {
        position: static;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        min-width: auto;
    }

    .submenu li {
        padding: 12px 40px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}
