/* Search Box */
.presence-search {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: nowrap;
}

#presence-search-input {
  margin: 0;
  border: 0;
  padding: 0;
  display: inline-block;
  vertical-align: middle;
  white-space: normal;
  background: none;
  line-height: 1;
  min-height: 50px;
  font-size: 20px;
  width: 100%;
  padding: 5px;
  padding-left: calc(50px / 3);
  padding-right: calc(50px / 3);
  background-color: #fff;
}

#presence-search-input:focus,
#presence-search-input:active {
  outline: none;
}

#presence-search-button {
  border-style: solid;
  border-top-width: 0;
  border-right-width: 0;
  border-left-width: 0;
  border-bottom-width: 0;
  color: #fff;
  border-color: #8224e3;
  background-color: #8224e3;
  font-weight: 300;
  font-size: 16px;
  padding: 15px 20px;
  height: auto !important;
  line-height: 1.4em;
  border-radius: 0px 4px 4px 0px !important;
  text-transform: uppercase;
}

/* Search Results */

.result-item {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.result-item:nth-last-of-type(1) {
  margin-bottom: 0;
}

.presence-title a {
  font-size: 26px;
  font-weight: 400;
  color: #000;
  font-family: "Poppins";
}

#presence-search-results .highlight {
  background-color: #e1d7f7 !important;
}

.presence-date,
.presence-excerpt {
  font-family: "Poppins";
  font-size: 20px;
  font-weight: 400;
  color: #334155;
}

.result-item a img {
  width: 200px;
  min-width: 200px;
  max-width: 200px;
  height: 200px;
  object-fit: contain;
  background-color: #fff;
  padding: 10px;
}

/* search spinner */
#presence-search-loader {
  text-align: center;
  margin-top: 20px;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Mobile */
@media (max-width: 767px) {
  /* search results */
  .result-item {
    flex-wrap: wrap;
  }
  .result-item a img {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: auto;
  }
}
