body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.navrightsection {
  background-color: #000080;
  border-radius: 18px;
  padding-left: 1vw;
  padding-right: 1vw;
}

.navbar-text,
.nav-link,
.nav-link.active {
  color: #fff !important;
}
.state-dropdown {
position: relative;
display: inline-block;
}

.state-dropdown button {
background-color: #007bff;
color: white;
padding: 10px 15px;
border: none;
border-radius: 8px;
cursor: pointer;
min-width: 200px;
text-align: left;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.state-dropdown-content {
position: absolute;
display: none; /* this should remain */
background-color: white;
min-width: 400px;
padding: 15px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
border-radius: 12px;
z-index: 1000;
gap: 40px;
flex-direction: row; /* instead of display: flex here */
}

.state-column {
display: flex;
flex-direction: column;
gap: 8px;
}

.state-dropdown-content .state-column:first-child {
  display: flex;
}

.state-column div {
padding: 5px 10px;
cursor: pointer;
border-radius: 6px;
color: #000;
}

.state-column div:hover {
background-color: #cce6ff;
}

.state-column div.active-state {
  background-color: #e6f3ff;
  font-weight: bold;
}

@media (max-width: 768px) {
  .state-dropdown-content {
    flex-direction: column;
    min-width: 100%;
    max-height: 300px;
    overflow-y: auto;
    left: 0;
    right: 0;
  }

  /* Merge all into 1 column */
  .state-column:not(:first-child) {
    display: none;
  }
  .state-column:first-child {
    width: 100%;
  }
}