/* Navbar Styles */
nav {
    background-image: url('/static/images/banner.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 144px;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.navbar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 300px;
}

/* Logo */
.logo-img {
    height: 120px;
    width: auto;
    display: block;
    border-radius: 8px;
}

/* Make brand image responsive and cap its height on small screens */
.navbar-brand img {
    width: auto !important;
    max-height: 64px;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    justify-content: center;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Hover and Active Effects */
.nav-links a:hover,
.nav-links .active a {
    background: rgba(0, 0, 0, 0.224);
    color: #ffffff;
}

/* Navbar Buttons */
.navbar-nav .nav-item {
    margin: 0 5px;
}

.navbar-nav .nav-link {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.403);
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #000;
}

.navbar-nav .nav-link.active {
    background-color: #0070ba;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Hamburger Button Styling */
.navbar-toggler {
    border: none;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 5px 10px;
}

.navbar-toggler:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Reduce the navbar height on mobile so it doesn't dominate the viewport */
    nav {
        height: 72px;
    }

    .navbar-container {
        flex-direction: row;
        gap: 8px;
        padding: 0.5rem 1rem;
        align-items: center;
    }

    /* By default keep the links hidden; when the collapse has the .show class, display them */
    .collapse.navbar-collapse .nav-links {
        display: none;
    }

    .collapse.navbar-collapse.show .nav-links {
        display: flex;
        flex-direction: column;
        background: rgba(12, 1, 31, 0.35);
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        text-align: center;
        padding-bottom: 0.5rem;
        z-index: 1500;
    }

    .nav-links li {
        display: block;
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu-toggle {
        display: block;
        font-size: 24px;
        color: #e3e6ea;
        cursor: pointer;
    }

    /* Make the hamburger visible on dark/light backgrounds */
    .navbar-toggler {
        border: none;
        background-color: rgba(0,0,0,0.1);
        padding: 6px 8px;
        border-radius: 6px;
        z-index: 1600;
    }

    .navbar-toggler-icon {
        filter: invert(1) brightness(2);
    }
}