body {
    background-color: #fafefa; /* Light background */
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: flex;
    flex-direction: row; /* Align items in a row */
    justify-content: space-between; /* Space between logo and nav */
    align-items: center; /* Align items vertically centered */
    background-color: #ffffff; /* White background for contrast */
    padding: 10px 5%;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    flex: 0 0 auto; /* Logo takes necessary space */
    margin-right: 0.5em; /* Space between logo and menu */
}

.logo img {
    width: 2000px;     /* fixed size works better on mobile */
    max-width: 200px;
    height: auto;
}


.nav-container {
    display: flex; /* Flex container for the nav */
    justify-content: flex-end; /* Align the nav to the right */
    width: 100%; /* Full width for nav container */
    flex: 1; 
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    margin-left: auto;
}

nav ul li {
    margin: 10px;
    position: relative;
    margin-top: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #000000; /* Black text for nav links */
    font-size: 1.2em; /* Increase font size */
    font-weight: bold;
}

nav ul .dropdown {
    display: none; /* Initially hide the dropdown */
    position: absolute;
    top: 100%; /* Align below the menu item */
    left: 0;
    background-color: white;
    border: 1px solid #6b6666;
    padding: 10px;
    list-style: none;
    min-width: 150px; /* Set a minimum width for the dropdown */
}

nav ul li:hover .dropdown {
    display: block; /* Show dropdown on hover */
}

nav ul .dropdown li {
    margin: 0.5em; /* No margin for list items */
    padding: 2px 0; /* Add padding for better spacing */
}

nav ul .dropdown li a {
    text-decoration: none;
    color: #000000; /* Text color for dropdown items */
    font-size: 1em; /* Ensure consistency in font size */
    font-weight: normal; /* Regular weight for dropdown items */
    display: block; /* Ensure the entire area is clickable */
    white-space: nowrap; /* Prevent text from wrapping */
}

/* Separator line styling */
.separator-line {
    width: 100%;
    height: 5px; /* Adjust thickness as needed */
    background-color: #63d150; /* Solid color for the line */
    border:#63d150;
    margin: 10px 0; /* Space above and below the line */
}

/* Hamburger hidden on large screens */
.hamburger {
    display: none;
    font-size: 2em;
    background: none;
    border: none;
    cursor: pointer;
}

/* Small screen adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column; /* Stack items vertically */
        align-items: center;    /* Center horizontally */
        position: relative;
    }

    .logo {
        order: 1;
        margin-bottom: 10px;
        text-align: center;     /* Center logo */
    }

    .nav-container {
        order: 2; 
        display: flex;
        justify-content: center; /* center hamburger */
        width: 100%;              /* increase width */
        position: relative;
    }

    .hamburger {
        display: block;
        margin: 0 auto; /* center inside nav-container */
    }

    nav ul {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 50px;              /* below hamburger */
        left: 50%;
        transform: translateX(-50%);
        width: 50%; 
        padding: 10px 0;
        border-top: 1px solid #ccc;
        text-align: center;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        z-index: 1000;   /* <-- ensures it's clickable above video */
    }

    nav ul.active {
        display: flex;
    }
}
