/*Header area with image*/
header {
    display: flex;
    padding-left : 2rem;
    padding-right : 2rem;
    padding-top : 1rem;
    padding-bottom : 1rem;
    color: #FFFFFF;

    div.headerTitle {
        margin-left: 0;
        img {
            width: 12rem;
            height: auto;
        }

    }
    div.quickLinks {
        display: flex;
        align-items: center;
        margin-left: auto;
        margin-right: 1rem;
        div {
            margin-left: 1rem;
            img {
                width: 1.75rem;
                height: auto;
            }
        }
    }
    /* Container positioning */
.search-bar-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 10;
  margin-bottom: 0rem;
  width: 2.5rem;               /* Keeps wrapper size compact next to Sign Up */
}

/* 1. Base Search Toggle Button (Pinniped to Right Curve) */
#searchToggle {
  position: absolute;
  right: 0.65rem;             /* Aligns icon right in the center of pill's cap */
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0;                 /* Resets default button browser padding */
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;                 /* Ensures icon sits above input layer */
  width: 1.25rem;
  height: 1.25rem;

  img {
    width: 2rem;
    height: auto;
    object-fit: contain;
    display: block;
  }
}

/* 2. Pop-out Search Form (Collapsed state) */
.popout-search-form {
  position: absolute;
  right: 0;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 2;
  
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.25s ease, 
              visibility 0.25s ease;

  input {
    width: 100%;
    height: 100%;
    padding: 0 2.2rem 0 1rem;  /* Right padding leaves exact clearance for icon */
    border: 0.1rem solid #0a885b;
    border-radius: 999rem;     /* Guarantees clean pill capsule shape */
    background: #ffffff;
    font-size: 0.85rem;
    color: #1a1a1a;
    outline: none;
    box-shadow: 0 0.25rem 1.125rem rgba(0, 0, 0, 0.08);
    box-sizing: border-box;

    &::placeholder {
      color: #999999;
    }
  }
}

/* 3. Expanded Active State */
.search-bar-wrapper.is-active {
  .popout-search-form {
    width: 17.5rem;           /* Expanded width */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
    /*Navigation inside header*/
    div.navContainerHeader {
    display: flex;
    align-items: center;
    margin-left: auto;
        nav ul {
            display: flex;
            align-items: center;
            list-style: none;
            padding: 0;
            margin: 0;

            li {
                margin-left: 0.75rem;

                a.btn-login {
                    display: inline-block;
                    padding: 0.5rem 1.4rem;
                    border: 2px solid #00875A;
                    border-radius: 50px;
                    color: #222222;
                    text-decoration: none;
                    font-weight: 600;
                    font-size: 0.85rem;
                    white-space: nowrap;
                    transition: all 0.2s ease-in-out;

                    &:hover {
                        background-color: rgba(0, 135, 90, 0.08);
                    }
                }

                a.btn-signup {
                    display: inline-block;
                    padding: 0.5rem 1.4rem;
                    background-color: #00875A;
                    border: 2px solid #00875A;
                    border-radius: 50px;
                    color: #FFFFFF;
                    text-decoration: none;
                    font-weight: 600;
                    font-size: 0.85rem;
                    white-space: nowrap;
                    transition: all 0.2s ease-in-out;

                    &:hover {
                        background-color: #006c48;
                        border-color: #006c48;
                        color: #FFFFFF;
                    }
                }
            }
        }
    }
}
