/* Basic reset for margin and padding */
body, ul {
    margin: 0;
    padding: 0;
}

.navbar {
    grid-column: 1 / -1; /* Span the full width of the grid container */
    background-color: #f8f9fa;
    color: white;
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid #2E2F30;
    /*position: relative;*/
    position: fixed;
    top: 0;
    left: 0;
    height: 60px;
    z-index: 1100;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.navbar-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}

.navbar-menu {
    list-style: none;
    display: flex;
    align-items: center;
}

.navbar-item {
    margin-left: 20px;
    position: relative;
    z-index: 1;
}

.navbar-item a {
    color: red;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    display: block;
    position: relative;
    z-index: 1;
}

.navbar-item a:hover {
    background-color: #555;
}

/* Hamburger menu icon */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    color: red;
    cursor: pointer;
    padding: 5px;
}

.navbar-toggle:hover {
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar {
        position: sticky;
        top: 0;
        z-index: 1100;
    }

    .navbar-container {
        flex-direction: row;
        align-items: center;
        padding: 10px 15px;
    }

    .navbar-toggle {
        display: block;
        margin-left: auto;
    }

    .navbar-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #f8f9fa;
        border-bottom: 1px solid #2E2F30;
        padding: 10px 0;
        z-index: 1101;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-item {
        margin: 0;
        padding: 10px 20px;
        width: 100%;
    }

    .navbar-item a {
        display: block;
        width: 100%;
    }
}
