/* ===== NAVIGATION MENU ===== */

#menu {
  background: #00a;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start /* space-between; /* menu items left, toggle right */
  padding: 0.5rem 1rem;
}

/* MENU LIST */
#menu ul {
  list-style: none;
  display: flex;
  justify-content: left; /*flex-start;  left align */
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

/* MENU LINKS */
#menu ul li a {
  color: #eee;
  text-decoration: none;
  font-weight: 400;
  font-size: clamp(0.9rem, 1vw + 0.4rem, 1rem);
  letter-spacing: -0.03rem;
  padding: 0.5rem 0.75rem;
  display: block;
  transition: background 0.3s, color 0.3s;
}

#menu ul li a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* HAMBURGER TOGGLE (Mobile) */
#menu .toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto; /* ensures it stays right */
}

/* MOBILE STYLES */
@media (max-width: 768px) {
  #menu {
    flex-wrap: wrap;
  }

  #menu ul {
    flex-direction: column;
    width: 100%;
    display: none; /* hidden by default */
    background: #00a;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }

  /* When menu is active */
  #menu.active ul {
    display: flex;
    max-height: 500px; /* enough space to reveal all items */
  }

  #menu .toggle {
    display: block;
  }
}


#content {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1.5rem;          /* space between sidebar and main */
  padding: 1rem;
}

.left {
  flex: 0 0 220px;      /* fixed width sidebar */
  padding: 0.75rem;
  border-right: 1px solid #bbb;
}

.left img {
  max-width: 100%;
  height: auto;
  display: block;
}

.right {
  flex: 1;          
  text-align: left;
  padding: 0.75rem;
}

/* Stack on small screens */
@media (max-width: 768px) {
  #content {
    flex-direction: column;
  }

  .left {
    border-right: none;
    border-bottom: 1px solid #bbb;
  }
}
