
/* HEADER */





header , .header-div{
  border-bottom: .5px solid var(--border-color);
  width: 100%;
  display: flex;
  flex-direction: column; /* mobile stacked */
  align-items: center;
  
  
  
}

.beta-icon{
    height:1.5rem;
}

.beta-icon2{
   height: 1.5rem;
}

.beta-icon, .beta-icon2{
    
}


.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  padding: 1rem 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.0rem;
  position: relative;
  
  
  flex-wrap: nowrap;
  
  margin-right: .5rem;
}

.menu-button {
  color: black;
  margin-top: -0.2rem;
  -webkit-appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0.25rem;
  line-height: 1;
}

.menu-dropdown {
  position: absolute;
  top: 100%;
  left: auto;
  right:0;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: none;
  flex-direction: column;
  min-width: 200px;
  z-index: 1000;
    padding-top: .25rem;
  padding-bottom: .25rem;
}



.menu-dropdown a:last-child { border-bottom: none; }
.menu-dropdown a:hover { background-color: #f5f5f5; }


.menu-dropdown a {
  padding: 0.6rem 1rem 0.6rem 1.4rem; /* ⬅ added left indent */
  text-decoration: none;
  color: var(--text-color);
  font-size: 1rem;
  border: none;
}



/* Section header text */
.menu-section-title {
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 1rem 0.2rem 1rem;
  color: #444;
  pointer-events: none; /* non-clickable */
}

/* Dividers between groups */
.menu-dropdown hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 0.4rem 0;
}






.title {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: black;
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
  font-size: clamp(1rem, 1.5rem, 2rem);
}

.title-icon {
  height: 1.5em;
  width: auto;
  transform: translateY(-0.06em);
  margin-right: 0rem;
}
.other-buttons{

    height: 2rem;
}

#otherbutton{
    height: 1.75rem;
}



.nav-buttons{
    display: flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
    left: auto;
    right: 0;
}
  
  
.search-form {
  position: relative;
  display: flex;
  align-items: center;  /* this centers icon vertically */
}

.search-form input[type="text"] {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem; /* add room on right */
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--input-bg);
  color: var(--text-color);
}

.search-form input[type="text"] {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem; /* space for icon on right */
  font-size: 1rem;
  border: 5px solid black;   /* black border */
  border-radius: 0;           /* remove rounding for rectangle */
  background-color: var(--input-bg);
  color: var(--text-color);
}



.search-form button.search-button {
  position: absolute;
  right: 0.0rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  height:100%;
}

.search-form img.search-icon {
  
  height: 100%;
  display: block;
  pointer-events: none; /* ensures click hits button */
}




.search-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;   /* remove top/bottom margin */
  padding-bottom: 0;
  margin-bottom: 0;
}



.search-container input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid black;
  border-radius: 0px;
  background-color: var(--input-bg);
  color: var(--text-color);
 
}

/* Remove default form spacing */
.search-container form {
  margin: 0;
  padding: 0;
  margin-bottom: 1.2rem; /* control bottom space consistently */
  
}



/* Default (mobile first) */
.search-container-two { display: none; }   /* hide desktop search bar */
.search-container { display: block; }      /* show bottom search bar */




/* Default: hide links (mobile) */
.search-links {
  display: none;
}

/*
.results-top{
    display:none;
}
*/

.fields{
   /* border: 1px solid green;*/
    
      display: flex;
  flex-wrap: nowrap; 
  width: 100%;
  max-width: 1200px;
  padding: 1rem 1.5rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
  margin: 0 auto;
  box-sizing: border-box;
  font-weight:;
  color:black;
  gap:1rem;
  
  
  
  overflow-x: auto;  /* enable horizontal scroll */
  overflow-y: hidden; /* hide vertical overflow */
  scroll-behavior: smooth; /* optional: smooth horizontal scrolling */
  -webkit-overflow-scrolling: touch; /* smooth scroll for mobile */
  
    /* Hide scrollbar — cross-browser */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */



  
 /* flex: 1;
    flex-grow: 1;  Makes the results section grow and fill available space */
 
 





    
    
    
    
}


/* Hide scrollbar — Chrome, Safari, Opera */
.fields::-webkit-scrollbar {
  display: none;
}
   

.fields-middle{
    margin: 0 auto;
}

.fields > * {
  /* flex-shrink: 1; /* allows them to shrink to fit */
 /* min-width: 0;   /* prevents overflow pushing others wider */
  white-space: nowrap; /* prevents text from wrapping */
}

.fields-first{
    font-weight: bold;
    color:purple;
}


.top-links{
    border-bottom: .5px solid var(--border-color);
}


/* Desktop view: show links */
@media (min-width: 768px) {

}







/* Desktop view */
@media (min-width: 768px) {
  
  
    .nav-buttons{
        gap:.7rem;
    }
    
    .menu-dropdown{
        
        min-width: 250px;
    }
    
    
  .search-container-two { display: flex; } /* show desktop search bar */
  .search-container { display: none; }     /* hide bottom search bar */
  
    /* ADD: header-top aligned to edges like page 2 */
  .header-top {
    display: grid;
    grid-template-columns: auto 1fr auto; /* left | center | right */
    align-items: center;
    width: 100%;          /* full width for edges */
    max-width: 1200px;
    margin: 0 auto;       /* center grid horizontally */
    padding: 1rem 1.5rem; /* hamburger and login flush with edges */
  }

  /* ADD: desktop search bar show/hide */
  .search-container-two { 
    display: flex;           /* show desktop search bar */
    justify-content: center; /* center search bar */
    width: 100%;
    padding: 0 .75rem;
  }

  .search-container { 
    display: none;           /* hide mobile search bar */
  }

  /* ADD: search form width */
  .search-container-two form {
    width: 100%;
  /*  max-width: 500px; /* prevent stretching too wide */
    margin: 0;   /* center search form */
  }

  .search-container-two input[type="text"] {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border: 2px solid black;
    border-radius: 0;
    background-color: var(--input-bg);
    color: var(--text-color);
  }
  
  
  .header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-buttons {
    display: flex;
    justify-content: flex-end; /* keeps login far right */
    align-items: center;
  }
  
  .search-form img.search-icon {
  
  height: 100%;
  display: block;
  pointer-events: none; /* ensures click hits button */
}
  
  
}


.search-icon,.search-button {
  outline: none;
  -webkit-tap-highlight-color: transparent; /* removes blue flash on mobile */
}


.search-button:focus,
.search-button:active,
.search-icon:focus,
.search-icon:active {
  outline: none;
  background: none; /* prevent blue highlight */
  box-shadow: none;
}


