/* Result Labels */
.result-label {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 4px;
  vertical-align: middle;
}

.result-label.prof-dev-label {
  background: #4ea482;
  color: white;
  border: none;
}

.result-label.academic-label {
  background: #119ED5;
  color: white;
  border: none;
}

/* Search Results Page Layout */
.search-results-page {
  margin: 2em auto;
  padding: 1.5em;
  background: #fff;
}

.search-results-page h1 {
  font-size: 2em;
  margin-bottom: 1em;
  text-align: center;
}

.search-form {
  display: flex;
  align-items: center;
  margin-bottom: 2em;
  align-items: stretch;
}
.search-form label {
  flex: 1;
}
.search-form input[type="search"] {
  flex: 1;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  outline: none;
}

.search-form .search-submit {
  background: #2c2c2c;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
}

.search-form .search-submit:hover {
  background: #101010;
}

.search-results-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-results-list li {
  border-bottom: 1px solid #eee;
  padding: 1.2em 0;
}

.search-results-list li:last-child {
  border-bottom: none;
}

.search-results-list h2 {
  margin: 0 0 0.3em 0;
}
.search-results-list h2.prof-dev {
    color: #4ea482;
}
.search-results-list h2.academic {
    color: #119ED5;
}
.search-result-meta {
  margin-bottom: 0.5em;
}

.search-result-excerpt {
  color: #444;
  font-size: 1em;
}

.search-pagination {
  margin-top: 2em;
  text-align: center;
}

@media (max-width: 600px) {
  .search-results-page {
    padding: 0.5em;
  }
}