/* ======= Top-menu general ======= */
.top-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 10px;
    background-color: #2b4c7e;
    color: white;
    height: 40px;
    box-sizing: border-box;
}

.top-menu h1 {
    font-size: 16px;
    margin: 0;
    line-height: 1;
    color: white;
}

.top-menu nav a {
    color: white;
    padding: 3px 8px;
    font-size: 15px;
    border-radius: 3px;
    transition: background 0.3s;
}

.top-menu nav a:hover {
    background: #1f3c65;
}

/* Hamburger ascuns pe desktop */
.top-menu .hamburger {
    display: none;
    font-size: 20px;
    cursor: pointer;
}

/* ======= Responsive: max-width 768px ======= */
@media (max-width:768px) {
    .top-menu {
        flex-wrap: wrap;
        height: auto;
        padding: 4px 6px;
    }

    .top-menu .hamburger {
        display: block;
    }


    .top-menu nav {
        display: none;
        flex-direction: column;
        background: #1f3c65;
        width: 100%;
        text-align: center;
        border-radius: 4px;
        padding: 2px 0;
    }
    .top-menu nav.open {
        display: flex;
    }



    .top-menu nav a {
        display: block;           /* fiecare link pe rānd */
        font-size: 15px;          /* font mai mic */
        padding: 6px 10px;        /* padding uniform */
        white-space: normal;      /* permite wrap text */
        box-sizing: border-box;
    }

    .top-menu h1 {
        width: 100%;
        text-align: center;
        margin: 6px 0;            /* mai compact */
    }
}
