.header{
    position: fixed;
    background-color: #f8f8f8;
    width: 100%;
    min-height: 75px;
    z-index: 1000;
    white-space: nowrap;
    font-size: 18px; 
}

.header img{
    width: 135px;
    height: auto;
    padding-top: 10px;
    padding-left: 10px;
}

.navbar {
    display: flex;
    background-color: #f8f8f8;
    justify-content: space-between;
    align-items: center;  
    margin-bottom: 10px;
}

/* Main menu */
.navbar-menu {
    list-style: none;
    margin: 0;
    padding-top: 10px;
    display: flex;
    gap: 10px;
    font-weight: 600;
}

/* Menu items */
.navbar-menu > li {
    position: relative;
}

/* Links */
.navbar-menu a {
    color: grey;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
}

/* Hover effect */
.navbar-menu a:hover {
    color: black;
}

/* Active page */
.navbar-menu .active > a {
    font-weight: bold;
    text-decoration: underline;
}

/* Dropdown menu */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    background-color: #f8f8f8;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 150px;
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}

/* Dropdown items */
.dropdown li a {
    color: black;
    font-size: 14px;
    padding: 8px 12px;
}

.dropdown li a:hover {
    color: black;
    background-color: #00a651;
}

.mobile-toggle {
    display: none; /* show only on small screens */
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.caret{
    font-size: 12px;
}

/* Desktop styling */
@media (min-width: 768px){
    /* Show dropdown on hover */
    .has-dropdown:hover .dropdown {
        display: block;
    }
}

/* mobile styling */
@media (max-width: 768px) {
    .navbar-menu {
    display: none; /* hidden by default */
    flex-direction: column;
    position: absolute; /* detach from the flex row */
    top: 100%; /* place directly below navbar */
    right: 0;
    left: 0;
    background: #f8f8f8;
    border-top: 1px solid #ddd;
    padding: 10px 0;
  }
  .navbar-menu.open {
    display: flex; /* show on toggle */
  }
  .mobile-toggle {
    display: block; /* show burger */
  }
  .dropdown {
    display: none;
    flex-direction: column;
    padding-left: 20px; /* indent children */
    position: static;   /* not absolute in mobile */
    border: none;
    box-shadow: none;
  }
    .has-dropdown > .dropdown {
    display: none;
  }
  .has-dropdown.open > .dropdown {
    display: flex;
  }

  /* prevent parent links from navigating immediately */
  .parentLink {
    cursor: pointer;
  }
}
