body {
    margin: 0;
    font-family: Arial, sans-serif;
  }

  header {
    background: white;
    color: lightyellow;
    display: flex;
    align-items: center;
    padding: 0 10px;
  }

  /* Menu container */
  .second-menu {
    width: 400px; /* Desktop horizontal second menu */
    background-color: transparent;/* rgba(60, 199, 143, 0.9);/* #3CC78F; */
    color: lightyellow;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative;
    border-radius: 4px;
    z-index: 1000;
    /* width: 100%; */
  }

  /* Menu icon at the top */
  .menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    /* width: 50px; */
    background-color: transparent;/* rgba(60, 199, 143, 0.9);/* #3CC78F;*/
    cursor: pointer;
    font-size: 24px;
    -webkit-user-select: none;
  }

  /* Menu items */
  .menu-items {
    display: flex;
    flex-direction: column;/* Mobile default */
    background-color: transparent;/* rgba(60, 199, 143, 0.9);/* #3CC78F; */
  }

  .menu-items a {
    padding: 12px;
    text-decoration: none;
    color: lightyellow;
    border-top: 1px solid lightyellow;
    transition: background 0.2s;
  }

  .menu-items a:hover {
    background-color: transparent;
    color: black;
  }

  /* Desktop: always show menu */
  @media (min-width: 768px) {
    header {
      justify-content: space-between;
    }
    .menu-icon {
      display: none;/* Hide icon on desktop */
    }
    .second-menu {
      max-height: none !important;/* Always visible */
      width: auto;
    }
    .menu-items {
      flex-direction: row; /* Horizontal menu */
      justify-content: flex-end; /* Align to right */
    }
   .menu-items a {
      border: none; /* No borders on desktop */
      padding: 14px 20px;
    }
    /*
    .menu-items a:first-child {
      border-left: none;
    }
    */
  }

  /* Mobile: collapsed by default */
  @media (max-width: 768px) {
    .second-menu {
      max-height: 50px; /* Only icon visible */
      width: 150px; /* Mobile second menu */
      position: absolute;
      background-color: rgba(60, 199, 143, 0.9);
    }
    .second-menu.expanded {
      max-height: 500px; /* Enough to show all items */
    }

    /* Hidden state */
    .second-menu.hidden {
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
    }
  }