/* Ensure header uses flex layout and grows with content */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    /* background-color: #74B83E; */ /* Remove or comment out this line */
    min-height: 80px;
    position: fixed;                         
    top: 0;
    width: 100%;   
    z-index: 100;
    overflow: visible;
    flex-wrap: wrap;
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    overflow-x: auto;
}

/* Right section for auth buttons */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 220px;
    overflow: visible;
}

/* Auth buttons styling */
.auth-buttons {
    display: flex;
    gap: 10px;
    overflow: visible;
}

/* Make sure buttons are visible and not hidden */
.auth-buttons a,
.auth-buttons button {
    display: inline-block;
    padding: 8px 18px;
    font-size: 1rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    margin: 0;
}

/* Center navigation */
.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-center nav {
    display: flex;
    gap: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: stretch;
    }
    .header-center, .header-right {
        justify-content: center;
        width: 100%;
    }
    .auth-buttons {
        justify-content: center;
        width: 100%;
    }
}