/* --- FULLY CORRECTED RESPONSIVE NAVIGATION BAR --- */

.navigation-bar {
    background-color: #055f44;
    overflow: visible; /* Allows dropdown to show */
    display: flex;
    justify-content: left; /* CHANGED: This will center the nav items */
    align-items: center; 
    position: relative;
    font-family: roboto, sans-serif;
    padding: 5px 10px;
}

/* Container for all the links on desktop */
.nav-links {
    display: flex;
    align-items: center;
    /* REMOVED justify-content and flex-grow to allow left alignment */
}

/* Styling for individual links */

.navigation-bar a {
    float: center;
    text-align: center;
    font-size: 25px; /* Increased from 18px */
    color: white;
    text-align: center;
    padding: 18px 20px; /* Increased padding for a taller bar */
    text-decoration: none;
}

/* Hover effect for main links */
.navigation-bar > .nav-links > a:hover, .dropdown:hover .dropbtn {
    background-color: #05668d;
    color: #ebf2fa;
}

/* --- Dropdown Menu Styles --- */
.dropdown {
    position: relative;
}

/* Dropdown button */
.dropdown .dropbtn {
    font-size: 25px; /* Increased from 18px */
    border: none;
    outline: none;
    color: white;
    padding: 18px 20px; /* Increased padding for a taller bar */
    background-color: inherit;
    font-family: inherit;
    margin: 0;
}


/* The dropdown content (hidden by default) - THIS IS THE FIX */
.dropdown-content {
    display: none; /* This is the only display property it should have by default */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #05668d;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10;
    min-width: max-content;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: flex; /* On hover, change display to flex */
}

/* Class to keep dropdown open on click (added by JS) */
.dropdown-content.show {
    display: flex; /* When JS adds 'show', change display to flex */
}

/* --- HOVER EFFECT FOR DROPDOWN ITEMS --- */
.dropdown-content a:hover {
    background-color: #04506b; /* A slightly darker shade for hover */
    color: white;
}

/* --- CORRECTED RESPONSIVE HAMBURGER MENU --- */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s;
}

/* --- FULLY CORRECTED RESPONSIVE NAVIGATION BAR --- */

.navigation-bar {
    background-color: #055f44;
    overflow: visible;
    /* Allows dropdown to show */
    display: flex;
    justify-content: left;
    /* CHANGED: This will center the nav items */
    align-items: center;
    position: relative;
    font-family: roboto, sans-serif;
    padding: 5px 10px;
}

/* Container for all the links on desktop */
.nav-links {
    display: flex;
    align-items: center;
    /* REMOVED justify-content and flex-grow to allow left alignment */
}

/* Styling for individual links */

.navigation-bar a {
    float: center;
    text-align: center;
    font-size: 25px;
    /* Increased from 18px */
    color: white;
    text-align: center;
    padding: 18px 20px;
    /* Increased padding for a taller bar */
    text-decoration: none;
}

/* Hover effect for main links */
.navigation-bar>.nav-links>a:hover,
.dropdown:hover .dropbtn {
    background-color: #05668d;
    color: #ebf2fa;
}

/* --- Dropdown Menu Styles --- */
.dropdown {
    position: relative;
}

/* Dropdown button */
.dropdown .dropbtn {
    font-size: 25px;
    /* Increased from 18px */
    border: none;
    outline: none;
    color: white;
    padding: 18px 20px;
    /* Increased padding for a taller bar */
    background-color: inherit;
    font-family: inherit;
    margin: 0;
}


/* The dropdown content (hidden by default) - THIS IS THE FIX */
.dropdown-content {
    display: none;
    /* This is the only display property it should have by default */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #05668d;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 10;
    min-width: max-content;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: flex;
    /* On hover, change display to flex */
}

/* Class to keep dropdown open on click (added by JS) */
.dropdown-content.show {
    display: flex;
    /* When JS adds 'show', change display to flex */
}

/* --- HOVER EFFECT FOR DROPDOWN ITEMS --- */
.dropdown-content a:hover {
    background-color: #04506b;
    /* A slightly darker shade for hover */
    color: white;
}

/* --- CORRECTED RESPONSIVE HAMBURGER MENU --- */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s;
}

/* Media query for screens smaller than 950px */
@media screen and (max-width: 950px) {
    .navigation-bar {
        /* This allows the menu to wrap onto a new line */
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .nav-links {
        /* THIS IS THE KEY CHANGE: Removing 'position: absolute' */
        /* It makes the menu part of the document flow, so it pushes content down. */
        display: none;

        /* This forces the nav container to take up the full width on its own line */
        flex-basis: 100%;
        order: 2;
        /* Ensures it always comes after the hamburger button */

        background-color: #055f46;
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }

    .nav-links.active {
        display: flex;
        /* When active, it will now push everything down */
    }

    .hamburger-menu {
        display: block;
        order: 1;
        /* Ensures hamburger is the first item */
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        /* Allows dropdown to flow naturally in the column layout */
        box-shadow: none;
        background-color: #054b38;
        flex-direction: column;
        padding-left: 20px;
    }

    /* Hide by default in mobile, show when JS adds 'show' */
    .dropdown-content {
        display: none;
    }

    .dropdown-content.show {
        display: flex;
    }
}