/* Top Menu Container */

.header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 20px;
	background-color: #BEE4FB;
	width: 100%;
	box-sizing: border-box;
}
@media (min-width: 600px) {
    .header {
        height: 80px;
    }
}

.header .provider {
    text-decoration: none;
    color: rgb(70, 70, 70);
    font-size: 28px;
    font-weight: 500;
}

.header .logo {
	font-size: 24px;
	font-weight: bold;
	color: #333; /* Darker font color for the logo */
}

.top-menu {
    position: relative; /* Ensure proper positioning for mobile menu */
    display: flex; /* Use flexbox */
    justify-content: flex-end; /* Align hamburger to the right */
    align-items: center; /* Center vertically */
    width: 100%; /* Ensure it spans the full width */
    box-sizing: border-box; /* Prevent overflow from padding */
    z-index: 100;
}


.top-menu ul {
    margin-bottom: 0;
}

/* Account Info Styling */
.account-info {
    font-size: 1.5rem;
    white-space: nowrap;
    text-align: right;
}

.user-icon {
    color:black; font-size: 0.8em; position: relative; top:-2px; 
}

/* Navigation Links */
.nav-links ul {
    list-style: none;
    display: flex;
    margin-top:10px;
}

.nav-links ul li {
    padding: 0 15px;
    border:1px solid rgb(255, 255, 255);
    border-radius: 5px;
    margin:0 6px;
    background-color: #cee7f8
}
.nav-links ul li:hover,
.nav-links ul li.active-page,
.nav-links ul li:hover a,
.nav-links ul li.active-page a {
    background-color: #17426c;
    color: white;
}


.nav-links ul li:last-child {
    margin-right: 0; /* Remove the right margin for the last item */
}


.nav-links ul a {
    text-decoration: none;
    color: #1a32ba;
    font-size: 1.5rem;

}

.nav-links ul a:hover {
    color: #fff7fa;
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    font-size: 3.8rem; /* Size of the hamburger icon */
    color: #034269;
    cursor: pointer;
    margin-bottom: 0;
    padding: 0;
    text-align: center;
    position: relative;
    top:-5px;
}

.hamburger-menu .menu-label {
    display: block; /* Makes 'MENU' appear on a new line */
    font-size: 1.1rem; /* Small font size for the label */
    margin-top: -13px; /* Space between icon and label */
    color: #034269; /* Label color matches the icon */
    text-transform: uppercase; /* Optional: Make the label uppercase */
    letter-spacing: 1px; /* Optional: Add slight spacing for readability */
}


/* Mobile Styles */
@media (max-width: 830px) {
    .hamburger-menu {
        display: block; /* Show the hamburger menu on mobile */
    }

   .user-icon {
        color:rgb(255, 255, 255); font-size: 1.0em; position: relative; top:-2px; 
    }

    .nav-links {
        display: none; /* Hidden by default */
        position: absolute;
        top: 100%; /* Below the header */
        width: 90vw;
        background-color: #333;
        flex-direction: column; /* Stack items vertically */
        padding: 10px 0;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Optional drop shadow */
        border-radius: 10px;
        color:white !important;
    }

    .nav-links.active {
        display: flex; /* Show menu when active class is toggled */
    }

    /* Account Info Styling */
     .account-info {
        text-align: center; /* Center align the text */
        font-size: 1.2rem; /* Adjust the font size for better readability */
        word-wrap: break-word; /* Allow long words to wrap */
        white-space: normal; /* Enable text wrapping */
        max-width: 80%; /* Prevent it from stretching too far */
        margin: 0 auto; /* Center the content within its container */
        line-height: 1.3; /* Improve line spacing */
    }

    .account-info i {
        display: inline-block; /* Ensure the icon aligns well with text */
        margin-bottom: 5px; /* Add spacing below the icon */
        font-size: 0.9em;
    }

    .account-info {
        text-align: center; /* Center align text */
        color: #ffffff; /* White text color */
        font-size: 1.5rem; /* Adjust font size */
        padding: 10px 0; /* Add spacing */
        border-bottom: 1px solid #555; /* Optional separator */
        margin-bottom: 10px; /* Space before menu items */
    }

    .account-info i {
        color: #ffffff; /* White icon */
        margin-right: 5px; /* Space between icon and text */
    }

    .nav-links ul {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center align menu items */
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .nav-links ul li {
        width: 100%; /* Full width for mobile menu items */
        margin: 10px 0;
        padding: 10px 0;
        text-align: center;
        border:0;
        background-color: transparent;
        border-bottom: 1px solid white;
    }

    .nav-links ul li:last-child {
        border-bottom: none; /* Remove the last border */
    }

    .nav-links ul li a {
        display: block;
        color: #ffffff;
        text-decoration: none;
        font-size: 1.5rem;
    }

    .nav-links ul li:hover {
        background-color: #17426c;
    }
}
