header {
  background-color: #4a5d43;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

header img {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto;
}

nav {
  background-color: #354039;
  text-align: center;
  padding: 10px 0;
}

nav a {
  color: #fff;
  text-decoration: none;

  transition: color 0.3s ease;
    margin: 0 5px; /* Adjust horizontal spacing */
    padding: 0 10px; /* Adjust space between text and line */
    position: relative; /* Position for pseudo-element */
}

  nav a:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: -5px; /* Adjust distance from text */
    margin: auto; /* Center the vertical line */
    width: 1px; /* Adjust width of line */
    background-color: #fff;
  }

nav a:hover {
  color: #9ecfa1;
}

@media screen and (max-width: 768px) {
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  nav a {
    margin: 5px;
  }
  .container {
    padding: 10px;
  }
  header {
    padding: 20px; /* Reduce padding on mobile */
  }
}