

/* Header Container: Use align-items: stretch so children can fill height */
.main_header {
  display: flex;
  justify-content: space-between;
  align-items: stretch; /* Crucial: ensures nav items can fill the height */
  height: 65px; /* Define a height for the header */
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 5%; /* Horizontal padding only */
}

/* Logo: Centered vertically within the stretch header */
.header_logo {
  display: flex;
  align-items: center;
}

/* Nav & List: Must also be full height */
nav, .nav_links {
  display: flex;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Link Styling: The "Click Box" */
.nav_links li {
  display: flex; /* Allows the anchor inside to stretch */
}

.nav_links a {
  display: flex;
  align-items: center; /* Centers text vertically */
  padding: 0 20px; /* Horizontal padding for spacing */
  text-decoration: none;
  color: #333;
  font-weight: 500;
  height: 100%; /* Fills the full height of the li/header */
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover Effect: Full height background change */
.nav_links a:hover {
  background-color: #f0f4f8; /* Changes full box color */
  color: #007bff;
}

/* CTA Button Overrides: Ensure it still looks like a button */
.nav_links a.cta_button {
  background-color: #007bff;
  color: white;
  height: auto; /* Allow it to be smaller than full height */
  align-self: center; /* Center it vertically in the nav */
  padding: 10px 20px;
  border-radius: 5px;
  margin-left: 15px;
}

.nav_links a.cta_button:hover {
  background-color: #0056b3;
  color: white;
}


.nav_toggle { display: none; }
.nav_toggle_label { display: none; }


.footer_wrapper {
  background-color: #777777;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

footer {
  margin: auto;
  padding-top: 10px;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

footer a:link, a:visited{
  color: #ffffff;
  text-decoration: none;
}

.footer_link_list_container {
  margin-right: auto;
}

.footer_link_list_section {
  padding-left: 75px;
  display: flex;
  flex-direction: row;
  gap: 30px;
}

.footer_link_list_list {
  list-style-type: none;
  padding: 0;
  margin: 0 0 0 8px;
}

.footer_link_list_heading{
  margin: 0 0 5px 0;
}

@media screen and (max-width: 600px) {
  .nav_toggle_label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
  }


  .nav_toggle_label span,
  .nav_toggle_label span::before,
  .nav_toggle_label span::after {
    display: block;
    background: #333;
    height: 3px;
    width: 25px;
    border-radius: 2px;
    position: relative;
  }
  .nav_toggle_label span::before,
  .nav_toggle_label span::after {
    content: '';
    position: absolute;
  }
  .nav_toggle_label span::before { bottom: 8px; }
  .nav_toggle_label span::after { top: 8px; }

  .nav_links {
    position: fixed;
    top: 65px;
    left: -100%;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    transition: left 0.3s ease-in-out;
    flex-direction: column;
    justify-content: flex-start;
    min-height: calc(100vh - 80px); 
    height: auto; 
    padding: 40px 0; 
    overflow-y: auto;
  }

  .nav_links li {
    width: 100%;
    margin-left: 0;
    text-align: left;
    display: block;
  }

  .nav_links a {
    width: 100%;
    padding: 20px;
    display: block;
    line-height: 1.5; 
    border-bottom: 1px solid #eee;
  }

  /* 4. The Magic: Toggle menu when checkbox is checked */
  .nav_toggle:checked ~ nav .nav_links {
    left: 0;
  }

  /* Optional: Turn hamburger into an "X" when open */
  .nav_toggle:checked + .nav_toggle_label span { background: transparent; }
  .nav_toggle:checked + .nav_toggle_label span::before { transform: rotate(45deg); top: 0; }
  .nav_toggle:checked + .nav_toggle_label span::after { transform: rotate(-45deg); top: 0; }
}
