/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: #E5E5E5;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    display: flex;
    align-items: center;
    padding: 0; /* Remove padding to allow full height for hamburger */
    background: #292929;
    color: #fff;
    width: 100%;
    height: 60px; /* Fixed height for header */
}

.header-content {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    margin-right: 50px;
}

header .hamburger {
    cursor: pointer;
    font-size: 24px;
    padding: 0 10px;
    background: #306B97;
    border-radius: 0; /* Remove border-radius for a modern look */
    height: 100%; /* Full height of the header */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0; /* Ensure the menu is fully to the left */
}

/*header h1 {
    margin: 0;
    font-size: 24px;
}*/

.logo {
    margin: 0;
    font-size: 24px;
}

/* Navigation styles */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    overflow-x: hidden;
    background: #292929;
    color: #fff;
    transition: width 0.3s;
    padding-top: 60px;
    z-index: 1000;
}

.nav-hamburger {
    cursor: pointer;
    font-size: 24px;
    padding: 0 10px;
    position: absolute;
    top: 10px;
    right: 10px;
    background: #306B97;
    border-radius: 5px;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.nav-item {
    border-bottom: 1px solid #444;
    position: relative;
}

.nav-top-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    padding-right: 30px; /* Additional space for the arrow */
}

.nav-item a {
    color: #fff;
    text-decoration: none;
    flex-grow: 1;
}

.nav-item a.active {
    background: #444;
}

/* .nav-arrow {
    color: #777;
    margin-left: auto; 
} */
.nav-arrow {
    background: transparent; /* Ensure no background color */
    margin-left: auto; /* Ensure the arrow is on the right side */
    font-size: 0; /* Hide the text inside */
    width: 20px; /* Increase the width */
    height: 20px; /* Increase the height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow::before {
    content: '';
    display: inline-block;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="gray"%3E%3Cpath fill-rule="evenodd" d="M6.293 4.293a1 1 0 011.414 0l6 6a1 1 0 01-1.414 1.414L7 6.414l-4.293 4.293a1 1 0 01-1.414-1.414l6-6z" clip-rule="evenodd" /%3E%3C/svg%3E'); /* Right arrow by default */
}

.nav-arrow--down::before {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="gray"%3E%3Cpath fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 011.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" /%3E%3C/svg%3E'); /* Down arrow */
}





.subnav-list {
    padding-left: 20px;
    list-style: none;
    display: none;
}

.subnav-list--open {
    display: block;
}

main {
    padding: 20px;
    background: #fff;
    margin: 20px;
    border-radius: 5px;
    
}

/* Footer styles */
.footer {
    background: #292929;
    color: #fff;
    padding: 15px 20px;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid #444;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    justify-content: center;
}

.footer-links li {
    margin: 0 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
}

/* Overlay styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 500;
}

.overlay--active {
    opacity: 1;
    visibility: visible;
}

/* Responsive styles */
@media (min-width: 600px) {
    .nav {
        width: 0;
    }
}
