/* Navbar Styles */
.navbar {
    background-color: #E8E5DC; /* updated background color */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    /* increased vertical padding, removed fixed height to allow taller navbar */
    padding: 20px 40px; /* increased left/right padding for desktop */
    display: flex;
    justify-content: flex-start; /* place logo and links together on the left */
    align-items: center;
    height: auto;
}

/* When items are laid out from the left, add a small gap so nav sits beside logo */
.navbar-container {
    gap: 24px;
}

.navbar-logo a {
    font-size: 24px;
    font-weight: 300;
    color: #333;
    text-decoration: none;
    font-family: 'Assistant', sans-serif;
}

.navbar-logo a:hover {
    color: #007bff;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 300;
    font-family: 'Assistant', sans-serif;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #333;
    border-bottom: 2px solid #333f;
}

.nav-link.active {
    color: #333;
    border-bottom: 2px solid #333f;
}

/* Footer Styles */
.footer {
    background-color: #efeeea; /* changed from #333 */
    color: #333;               /* dark text for contrast on light background */
    text-align: center;
    padding: 20px;
    margin-top: 0;
}

.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 40px;
    font-size: 16px; /* larger, readable font for main content */
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        height: auto;
        padding: 8px 16px; /* reduced vertical padding */
        gap: 2px; /* minimal gap between logo and nav links on mobile */
    }

    .navbar-logo {
        padding: 0; /* remove any padding from logo container */
    }

    .navbar-logo img {
        height: 80px !important; /* reduced logo height on mobile */
        display: inline-block;
    }

    .nav-menu {
        gap: 15px;
        margin-top: 0px; /* removed margin */
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        font-size: 14px;
    }
    
    .main-content {
        font-size: 14px; /* override for mobile */
    }
}

/* Hide the "加入團隊" nav link */
.nav-item:has(> a[href="join.html"]) {
    display: none;
}
