/* Universal box-sizing reset ChatGPT taught me */
*,
*::before,
*::after {
  box-sizing: border-box;
}

  /* Navbar background, bottom border, and inner spacing */
  /* position: relative + z-index ensure the navbar always renders above page content */
  .navbar {
    background: #ffffff;
    padding: 0.75rem 1rem;
    position: relative;
    z-index: 1000;
  }

  /* Navbar fills page width */
  .container-fluid {
    width: 100%;
  }

  /* Center objects in navbar and place them in a row with space between */
  .nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 1.5rem;
  }

  /* Scale the image in the navbar */
  .navbar-brand img {
    height: 44px;
    display: block;
  }
  
  /* Hide checkbox to toggle hamburger style */
  .menu-checkbox {
    display: none;
  }
  
  /* Hamburger style icon that is hidden on desktop */
  .menu-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }
  /* Styles each bar in the hamburger icon */
  .menu-icon span {
    display: block;
    width: 28px;
    height: 3px;
    background: #1a3d2b;
    border-radius: 2px;
  }
  
  /* Puts the Navbar links location to right side */
  .nav-links {
    margin-left: auto;
    margin-right: 2rem;
  }

  /* Removes bullet points and places top-level menu in a row */
  .main-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
  }

  /* Makes each top-level menu item the positioning reference for its dropdown */
  .main-menu > li {
    position: relative;
  }

  /* Styles the top-level menu links  */
  .main-menu > li > a {
    text-decoration: none;
    color: #1a3d2b;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    display: block;
  }
  
  /* Dropdown menu settings (Styles and hidden by default) */
  .dropdown-menu {
    list-style: none;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100px;
    background: #ffffff;
    border: 1px solid #d7ebe3;
    border-radius: 8px;
    padding: 0.5rem 0;
    margin: 0;
    z-index: 999;
  }
  
  /* Styles links inside the dropdown menu */
  .dropdown-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #1a3d2b;
    white-space: nowrap;
  }

  /* Changes dropdown link background color on hover */
  .dropdown-menu li a:hover {
    background: #00946f88;
  }
  
  /* Shows the dropdown menu when hovering over the top-level menu item */
  .dropdown:hover .dropdown-menu {
    display: block;
  }
  
  /* Mobile made with the help of ChatGPT */
  /* Overrides the corresponding setting above */
  @media (max-width: 768px) {
    /* Shows the hamburger icon on mobile */
    .menu-icon {
      display: flex;
      margin-left: auto;
    }

    /* Hides the normal nav links until the hamburger is toggled */
    .nav-links {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: #ffffff;
      border-top: 1px solid #d7ebe3;
      padding: 1rem 0;
    }
  
    /* Shows the nav menu when the hidden checkbox is checked */
    .menu-checkbox:checked + .menu-icon + .nav-links {
      display: block;
    }

    /* Stacks the main menu vertically for mobile */
    .main-menu {
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      width: 100%;
    }

    /* Makes each top-level mobile link take up a full row */
    .main-menu > li > a {
      padding: 1rem;
      border-bottom: 1px solid #eef3f0;
    }
  
    /* Make dropdowns always visible inside mobile menu */
    .dropdown-menu {
      display: block;
      position: static;
      border: none;
      box-shadow: none;
      border-radius: 0;
      padding: 0;
      min-width: 100%;
      background: #f9fcfa;
    }
  
    /* Styles the dropdown links inside the mobile menu */
    .dropdown-menu li a {
      padding: 0.9rem 2rem;
      border-bottom: 1px solid #eef3f0;
    }
  
    /* Allows it to stay visable on hover in case using a smaller screen with a mouse */
    .dropdown:hover .dropdown-menu {
      display: block;
    }
  }