﻿

/* Header container */
nav {
   
    padding: 4px 6px;
    position: relative; /* ensure positioning context */
    z-index: 9999; /* make menu stay on top of slider */
    height: 40px;
    font-family: "Plus Jakarta Sans",sans-serif;
}

    /* Menu styles */
    nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex; /* horizontal layout */
    }
        nav ul ul {
            position: absolute;
            top: 100%;
            left: 0;
            background-color: #081424;
            display: none;
            flex-direction: column;
            border-radius: 6px;
            min-width: 180px;
            z-index: 10000; /* ensure submenu shows above everything */
        }
    nav li {
        position: relative;
    }

    nav > ul > li {
        margin-right: 10px;
    }

    nav a {
        font-family: "Plus Jakarta Sans",sans-serif;
                text-decoration: none;
               
        color: #333;
        font-weight: 500;
        padding: 2px 8px 2px;
        display: block;
        transition: all 0.3s ease;
     
    }

        nav a:hover {
            color: #333;
            background-color:#ffd800;
        }

    /* Submenu (dropdown) */
    nav ul ul {
        position: absolute;
        top: 100%;
        left: 0;
       margin-top:3px;
        background-color: #fff;
        display: none;
        flex-direction: column;
        border-radius: 6px;
        min-width:280px;
    }

        nav ul ul li a {
            padding: 6px 14px;
            border-bottom:1px dotted #fff;
        }

    nav ul li:hover > ul {
        display: flex;
    }

/* ----- Mobile styles ----- */
.hamburger {
    display: none;
    cursor: pointer;
    width: 26px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
}

    .hamburger span {
        background-color: #94a3b8;
        height: 3px;
        border-radius: 2px;
        width: 100%;
        transition: all 0.3s ease;
    }

/* Responsive breakpoint */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background-color: #0b1220;
        width: 100%;
    }

        nav ul.show {
            display: flex;
        }

    nav > ul > li {
        margin: 0;
    }

    nav ul ul {
        position: static;
        display: none;
    }

    nav ul li.open > ul {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
}
