/* Navbar */
.navbar {
    background-color: #333;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    box-sizing: border-box;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Logo and Hamburger Wrapper */
.navbar-left {
    display: flex;
    align-items: center;
}

/* Hamburger Menu */
.hamburger {
    display: none; /* Hide by default */
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    margin-right: 15px; /* Space between hamburger and logo */
}

/* Logo Styling */
.logo img {
    max-height: 60px; /* Adjust this value to fit your design */
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove inline spacing issues */
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    transition: max-height 0.3s ease-out; /* Smooth transition for dropdown */
}

.nav-links li {
    margin-left: 20px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #f04;
}

/* Ensure content doesn’t overlap with navbar */
section {
    padding-top: 80px;
    margin-top: 20px;
    min-height: 100vh;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column; /* Stack logo and nav-links */
        align-items: flex-start;
        height: auto;
    }

    .navbar-left {
        width: 100%; /* Full width for alignment */
        justify-content: flex-start; /* Align items to the left */
    }

    .hamburger {
        display: block; /* Show hamburger icon */
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        padding-left: 0;
        display: none; /* Hide navigation links initially */
        background-color: #333; /* Match navbar color */
        max-height: 0; /* Collapsed state */
        overflow: hidden;
    }

    .nav-links.active {
        display: flex;
        max-height: 500px; /* Expanded state */
    }

    .nav-links li {
        margin-left: 0;
        margin-top: 10px;
        text-align: left;
    }

    .logo img {
        max-height: 50px; /* Adjust for smaller screens */
    }
}
