:root{
  --pill-bg: #ffffff;
  --pill-shadow: 0 12px 24px rgba(20, 35, 90, 0.12);
  --pill-radius: 999px;
  --text: #1f2a44;
  --muted: #92a0b5;
  --brand1: #4c6fff;      /* outer button color */
  --brand2: #3a52ff;      /* inner button color */
}

.course-pill{
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 980px;
    border-radius: 24px;
    border: 3px solid white;
    padding: 8px 16px 8px 24px;
    background: #21212170;
}

.pill-field{
  display: grid;
  grid-template-rows: auto auto;
}

.pill-input{
  border: none;
  outline: none;
  background: transparent;
  padding: 6px 6px 6px 0;
  font-size: 20px;
  color: white;
}

.pill-input::placeholder{ color: var(--muted); }

/* Round search button on the right */
.pill-search{
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  cursor: pointer;
  background: transparent;
  transition: transform .08s ease, box-shadow .12s ease;
}

.pill-search:hover{ transform: translateY(-1px); }
.pill-search:active{ transform: translateY(0); box-shadow: 0 4px 10px rgba(76,111,255,.3); }

/* Optional dropdown styling (if you still show suggestions) */
.pill-dropdown{
  position: absolute;  /* place it right under the pill; wrap both in a relative container if needed */
  max-width: 980px;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--pill-shadow);
  margin-top: 10px;
  display: none;           /* your JS toggles this */
  max-height: 320px;
  overflow: auto;
  padding: 8px 0;
  z-index: 1000;
  left: 0; right: 0;
  top: calc(100% + 8px);
}
.pill-dropdown .views-row{ padding: 10px 18px; }
.pill-dropdown .views-row a{ color: #002347; text-decoration: none; display:block; font-weight: 600; font-size: 1rem;}
.pill-dropdown .views-row:hover{ background: #e8e8e8; }

/* WebKit browsers */
.pill-dropdown::-webkit-scrollbar {
  width: 6px;
}
.pill-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.pill-dropdown::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.15);
  border-radius: 3px;
}
.pill-dropdown::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0,0,0,0.3);
}

/* Firefox */
.pill-dropdown {
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}

.course-pill-wrap { padding-top: 2rem; position: relative; width:100%; max-width:980px; margin-inline:auto; }

@media (max-width: 640px){
  .course-pill{ padding: 12px 12px 12px 16px; }
  .pill-search{ width: 44px; height: 44px; }
}

.pill-input::placeholder {
  color: #e7e7e7da !important;
  opacity: 1 !important;
}

@media (max-width: 992px) {
  .course-pill {
    padding: 8px 10px;
    gap: 8px;
  }

  .pill-input {
    font-size: 14px;
    padding: 6px 4px 6px 0;
  }

  .pill-search {
    width: 36px;
    height: 36px;
  }

  .pill-search svg {
    width: 20px;
    height: 20px;
  }
}
