/* Header styling */
header {
    background-color: white; 
    color: black; /* Black text */
    padding: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space between logo and nav */
    width: 100%;
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0; 
    left: 0;
    z-index: 1000; /* Ensure it stays on top */
    box-sizing: border-box !important; /* Prevent overflow */
    margin: 0;
}

/* Flex container for logo & nav */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo styles */
.logo {
    margin-left: 0;
}

.logo img {
    width: 300px;
    height: auto;
}

/* Navigation menu aligned to the extreme right */
header nav {
    margin-left: auto; /* Pushes the nav to the right */
}

header nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: black; /* Black text color */
    text-decoration: none;
    padding: 10px;
    transition: color 0.3s ease-in-out;
}

/* Hover effect for nav links */
header nav ul li a:hover {
    color: #0073e6; 
}

/* Active link (underline effect) */
header nav ul li a.active {
    border-bottom: 1px solid black;
}

/* Responsive: Stack logo and nav on small screens */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    header nav {
        margin-left: 0;
    }

    header nav ul {
        flex-direction: column;
        padding-top: 10px;
    }

    header nav ul li {
        margin: 5px 0;
    }
}
