/************************* Master Search *************************/

.views-row .search-result-wrapper {
  position: relative;
  display: flex;
  padding-bottom: 24px;
  max-width: 1320px;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}
.views-row .search-result-wrapper .spr-right {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 24px;
  max-height: 42rem;
}
/************************* Pager *************************/

.master-search .pager {
  width: 100%;
  margin-top: 24px;
}
.master-search .pager__items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.master-search .pager__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-global-150, 6px);
  border: var(--border-width-xs, 1px) solid var(--border-primary-default-subtle, #afd4d8);
  background: var(--surface-page, #fff);
  position: relative;
  transition: background 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.master-search .pager__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  font-family: var(--font-style-body, "Merriweather", sans-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--text-primary-default, #16959f);
}
/* Hover */
.master-search .pager__item:hover:not(.is-disabled):not(.pager__item--ellipsis) {
  background: var(--surface-primary-default-subtle-hover, #d7eaeb);
  border-color: var(--border-primary-default-subtle-hover, #85bfc5);
  box-shadow:
    0px 0px 0px 4px rgba(200, 208, 218, 0.2),
    0px 0px 0px 1px rgba(106, 125, 140, 0.5),
    0px 1px 1px 0px rgba(106, 125, 140, 0.2),
    0px 1px 3px 0px rgba(106, 125, 140, 0.1);
}
.master-search .pager__item:hover:not(.is-disabled):not(.pager__item--ellipsis) a {
  color: var(--text-primary-on-color-subtle-hover, #0d6d75);
}
.master-search .pager__item:hover:not(.is-disabled):not(.pager__item--ellipsis) .pager__icon {
  color: var(--text-primary-on-color-subtle-hover, #0d6d75);
}
/* Focus */
.master-search .pager__item a:focus-visible {
  outline: none;
}
.master-search .pager__item:focus-within:not(.is-disabled):not(.pager__item--ellipsis)::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: var(--border-width-sm, 2px) solid var(--border-primary-focus, #505964);
  border-radius: var(--border-radius-global-200, 8px);
  pointer-events: none;
}
/* Active / Selected */
.master-search .pager__item.is-active {
  background: var(--surface-primary-default-subtle, #f5fafa);
  border-color: var(--border-primary-default, #59aab2);
}
.master-search .pager__item.is-active a {
  color: var(--text-primary-default, #16959f);
}
/* Disabled */
.master-search .pager__item.is-disabled {
  background: var(--surface-disabled-default, #f7fafd);
  border-color: var(--border-disabled-default, #e7eaed);
}
.master-search .pager__item.is-disabled .pager__icon {
  color: var(--text-disabled-default, #8695a7);
}
.master-search .pager__item--ellipsis {
  border: none;
  background: none;
  color: var(--text-primary-default, #16959f);
}
.master-search .pager__item--ellipsis .pager__icon {
  color: var(--text-primary-default, #16959f);
}
.master-search .pager__item--previous,
.master-search .pager__item--next {
  cursor: pointer;
}
.master-search .pager__item--previous.is-disabled,
.master-search .pager__item--next.is-disabled {
  cursor: default;
}
.master-search .pager__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary-default, #16959f);
}
.master-search .pager__icon svg {
  width: 24px;
  height: 24px;
}
.views-element-container.contextual-region header {
  height: 210px;
  margin-top: 0;
  gap: 0;
}

.master-search form {
  display: flex;
  height: 48px;
  max-height: 48px;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  border-radius: var(--border-radius-global-round, 256px);
  background: var(--surface-default-secondary, #f7fafd);
  border: var(--border-width-xs, 1px) solid var(--border-primary-default-subtle, #afd4d8);
  padding: 8px;
  margin: 0;
  position: relative;
  transition: background 0.2s ease-in-out, border-color 0.2s ease-in-out, max-height 0.3s ease-in-out;
}
.master-search form:hover {
  background: var(--surface-primary-default-subtle-hover, #d7eaeb);
  border-color: var(--border-primary-default-subtle-hover, #85bfc5);
}
.master-search form:hover .material-icons {
  color: var(--text-primary-default-hover, #0d6d75);
}
.master-search form:hover .form-type-textfield input::placeholder {
  color: var(--text-primary-default-hover, #0d6d75);
}
.master-search form:focus-within {
  background: var(--surface-default-secondary, #f7fafd);
  border-color: var(--border-primary-default-subtle, #afd4d8);
  outline: var(--border-width-sm, 2px) solid var(--border-primary-focus, #505964);
  outline-offset: 3px;
  border-radius: var(--border-radius-global-round, 256px);
}
.master-search .views-row {
  width: 100%;
}
.master-search input[name="reset"] {
  border-radius: var(--border-radius-global-round, 256px);
  border: var(--border-width-xs, 1px) solid var(--border-default, #cfd5dc);
  background-color: var(--surface-default, #fff);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http://www.w3.org/2000/svg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%3E%3Crect%20width%3D%2220%22%20height%3D%2220%22%20rx%3D%2210%22%20fill%3D%22%23F5FDFF%22/%3E%3Cg%20transform%3D%22translate(10%2010)%20scale(0.9)%20translate(-10%20-10)%22%3E%3Cpath%20d%3D%22M15.25%204.75834C14.925%204.43334%2014.4%204.43334%2014.075%204.75834L9.99998%208.82501L5.92498%204.75001C5.59998%204.42501%205.07498%204.42501%204.74998%204.75001C4.42498%205.07501%204.42498%205.60001%204.74998%205.92501L8.82498%2010L4.74998%2014.075C4.42498%2014.4%204.42498%2014.925%204.74998%2015.25C5.07498%2015.575%205.59998%2015.575%205.92498%2015.25L9.99998%2011.175L14.075%2015.25C14.4%2015.575%2014.925%2015.575%2015.25%2015.25C15.575%2014.925%2015.575%2014.4%2015.25%2014.075L11.175%2010L15.25%205.92501C15.5666%205.60834%2015.5666%205.07501%2015.25%204.75834Z%22%20fill%3D%22%2316959F%22/%3E%3C/g%3E%3C/svg%3E");
  background-position: right 4px center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: border-color 0.2s ease-in-out, color 0.2s ease-in-out, background-image 0.2s ease-in-out;
  color: var(--text-default-body, #363c43);
  text-align: center;
  font-family: var(--font-style-body, Poppins);
  font-size: var(--body-sm-text-size, 14px);
  font-style: normal;
  font-weight: 400;
  line-height: var(--body-sm-line-height, 20px);
  padding: 4px 32px 4px 8px;
}
.master-search input[name="reset"]:hover {
  border-color: var(--border-primary-default-subtle-hover, #85bfc5);
  color: var(--text-primary-default-hover, #0d6d75);
  text-decoration: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http://www.w3.org/2000/svg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%3E%3Crect%20width%3D%2220%22%20height%3D%2220%22%20rx%3D%2210%22%20fill%3D%22%23D7EAEB%22/%3E%3Cg%20transform%3D%22translate(10%2010)%20scale(0.9)%20translate(-10%20-10)%22%3E%3Cpath%20d%3D%22M15.25%204.75834C14.925%204.43334%2014.4%204.43334%2014.075%204.75834L9.99998%208.82501L5.92498%204.75001C5.59998%204.42501%205.07498%204.42501%204.74998%204.75001C4.42498%205.07501%204.42498%205.60001%204.74998%205.92501L8.82498%2010L4.74998%2014.075C4.42498%2014.4%204.42498%2014.925%204.74998%2015.25C5.07498%2015.575%205.59998%2015.575%205.92498%2015.25L9.99998%2011.175L14.075%2015.25C14.4%2015.575%2014.925%2015.575%2015.25%2015.25C15.575%2014.925%2015.575%2014.4%2015.25%2014.075L11.175%2010L15.25%205.92501C15.5666%205.60834%2015.5666%205.07501%2015.25%204.75834Z%22%20fill%3D%22%230D6D75%22/%3E%3C/g%3E%3C/svg%3E");
}
.master-search-wrapper {
  padding: 56px var(--spacing-layout-xl, 56px) 300px;
  background: var(--surface-page, #fff);
}
.master-search-wrapper:has(.view-content) {
  padding-bottom: 56px;
}
.none {
  display: none;
}

.master-search {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-spacing-md, 24px);
}
.master-search .form-type-textfield {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 0 0;
  align-self: stretch;
  margin-left: 8px;
}
.master-search form .form-actions {
  position: absolute;
  bottom: -40px;
  right: 0;
}
.master-search .form-type-textfield input {
  padding: 0;
  background: unset;
  border: unset;
  width: 100%;
  color: var(--text-primary-on-color-subtle, #16959f);
  font-family: var(--font-style-body, "Merriweather", sans-serif);
  font-size: var(--body-md-text-size, 16px);
  font-style: normal;
  font-weight: 400;
  line-height: var(--body-md-line-height, 24px);
}
.master-search .form-type-textfield input::placeholder {
  color: var(--text-default-placeholder, #8695a7);
}
.master-search .form-type-textfield input:focus-visible {
  outline: none !important;
}

/************************* Search Results Count *************************/

.master-search .master-search-results-count {
  font-family: var(--font-style-sub-heading, "Open Sans", sans-serif);
  font-weight: 700;
  font-size: var(--h6-text-size, 20px);
  line-height: var(--h6-line-height, 24px);
  color: var(--text-default-body, #363c43);
  margin: 0;
  width: 100%;
}

/************************* Master Search Hero *************************/

.master-search-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}
.master-search h1 {
  font-family: var(--font-style-heading, "Merriweather", sans-serif);
  font-weight: var(--font-weight-h1, 900);
  font-size: var(--h1-text-size, 60px);
  line-height: var(--h1-line-height, 72px);
  color: #000;
  margin: 0;
}
.master-search .master-search-description {
  font-family: var(--font-style-body, "Merriweather", sans-serif);
  font-weight: var(--font-weight-body-regular, 400);
  font-size: var(--body-lg-text-size, 20px);
  line-height: var(--body-lg-line-height, 32px);
  color: var(--text-default-body, #363c43);
  margin: 0;
}

/************************* Search Page Results *************************/

.search-page-body {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  padding-bottom: 32px;
}
.search-page-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 40px;
}
.search-page-body,
.search-page-title {
  width: 1320px;
  text-align: left;
  color: #202020;
  align-self: unset;
  align-items: flex-start;
}
.views-row .search-result-wrapper .spr-right .spr-right-title {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 16px;
  padding-bottom: 16px;
}
.views-row .search-result-wrapper .spr-right .spr-right-title a {
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
  color: #202020;
  text-decoration: none;
}
.views-row .search-result-wrapper .spr-right-body {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: #161616;
}
.views-row .search-result-wrapper .generic-read-more {
  font-style: normal;
  font-weight: 700 !important;
  font-size: 18px !important;
  line-height: 28px !important;
  color: #41748d !important;
  text-decoration: none !important;
  width: 125px;
}
.views-row .search-result-wrapper .views-field.views-field-body {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: #161616;
}
.view-display-id-search_page .search-tag-filter {
  height: 1rem;
  font-size: 12px;
  position: relative;
  display: inline-block;
  color: #747474;
  text-decoration: none;
  background-color: #fff;
  width: fit-content;
  border-radius: 4px;
  margin-bottom: 2rem;
}
.list-group-item:first-child {
  border: 1px solid #161616 !important;
  border-radius: 4px;
  width: fit-content;
  height: 24px;
  padding-bottom: 28px;
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: #161616 !important;
}
.list-group-item::before {
  content: "#";
}
.views-row .search-result-wrapper .spr-left img {
  display: block;
  height: 200px;
  object-fit: cover;
  width: 200px;
  border-radius: 8px;
}
#views-exposed-form-master-search-page-1 {
  display: flex;
  height: 48px;
  padding: var(--spacing-spacing-none, 0px) var(--spacing-spacing-sm, 16px);
  align-items: center;
  gap: 8px;
  border-radius: var(--border-radius-global-round, 256px);
  background: var(--surface-default-secondary, #f7fafd);
  border: var(--border-width-xs, 1px) solid var(--border-primary-default-subtle, #afd4d8);
  max-width: 1320px;
  width: 100%;
  position: relative;
  margin: auto;
  bottom: 32px;
}
#views-exposed-form-master-search-page-1 .material-icons {
  top: 4px;
  position: relative;
  color: var(--text-default-placeholder, #8695a7);
  transition: color 0.2s ease-in-out;
}
.search-tag-filter {
  flex-direction: row;
  display: flex;
  gap: 8px;
}
.search-result-wrapper:hover .spr-right-body {
  text-decoration: underline;
}
.spr-right a {
  text-decoration: none !important;
}
.search-tag {
  font-size: 14px;
  font-weight: 300;
  line-height: 24px;
  color: #202020 !important;
  text-decoration: none !important;
  background: #f4f4f4;
  display: flex;
  padding: var(--spacing-spacing-xxs, 4px) var(--spacing-spacing-xs, 8px);
  align-items: flex-start;
}
#views-exposed-form-master-search-page-1 #edit-keywords {
  background: transparent;
  border: none;
  top: -2px;
  position: relative;
  width: 1200px;
  height: 44px;
}
#views-exposed-form-master-search-page-1 #edit-keywords:focus-visible {
  outline: none !important;
}
#views-exposed-form-master-search-page-1 #edit-submit-master-search {
  display: none;
}
#views-exposed-form-search-page-1 #edit-combine {
  height: 48px;
  padding: var(--spacing-spacing-none, 0px) var(--spacing-spacing-sm, 16px);
  border-radius: var(--border-radius-global-round, 256px);
  background: var(--surface-default-secondary, #f7fafd);
  border: var(--border-width-xs, 1px) solid var(--border-primary-default-subtle, #afd4d8);
  max-width: 1320px;
  width: 100%;
  position: relative;
  margin: auto;
  bottom: 32px;
}
.search-page-header {
  opacity: 1 !important;
  max-width: 1320px;
  margin-right: auto;
  margin-left: auto;
}

/************************* Search Cards *************************/

.master-search .search-card {
  gap: 32px;
  display: flex;
  align-items: flex-start;
  max-width: 1320px;
  width: 100%;
  transition: all 0.3s ease-in-out;
}
.master-search .views-infinite-scroll-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  align-self: stretch;
  margin-top: 56px;
}
.master-search ul::marker {
  display: none !important;
}
.master-search .search-card img {
  display: block;
  height: 200px;
  object-fit: cover;
  width: 200px;
  min-width: 200px;
  border-radius: var(--border-radius-photos-image-radius-top-left, 8px) var(--border-radius-photos-image-radius-top-right, 8px) var(--border-radius-photos-image-radius-bottom-right, 8px) var(--border-radius-photos-image-radius-bottom-left, 8px);
}
.master-search .search-card-image-link {
  display: block;
  flex: 0 0 200px;
  width: 200px;
  min-width: 200px;
  text-decoration: none;
}
.master-search .search-card-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  flex: 1 0 0;
  min-width: 0;
}
.master-search .search-card-title {
  font-family: var(--font-style-sub-heading, "Open Sans", sans-serif);
  font-weight: 700;
  font-size: var(--h6-text-size, 20px);
  line-height: var(--h6-line-height, 24px);
  color: var(--text-default-body, #363c43);
  text-decoration: none;
  display: block;
  width: 100%;
}
.master-search p.search-card-title {
  margin: 0;
}
.master-search .search-card-right > p:not(.search-card-title) {
  font-family: var(--font-style-body, "Merriweather", sans-serif);
  font-weight: 400;
  font-size: var(--body-sm-text-size, 14px);
  line-height: var(--body-sm-line-height, 20px);
  color: var(--text-default-body, #363c43);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin: 0;
  width: 100%;
  align-self: stretch;
}
.master-search .search-card-right > p:not(.search-card-title) a {
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-decoration: none;
}
.master-search .search-card:hover .search-card-title {
  text-decoration: underline;
}
.master-search .search-card-category {
  padding: 4px;
  font-family: var(--font-style-body, "Merriweather", sans-serif);
  font-weight: 400;
  font-size: var(--body-sm-text-size, 14px);
  line-height: var(--body-sm-line-height, 20px);
  color: var(--text-default-body, #363c43);
  text-align: center;
  white-space: nowrap;
  background: var(--surface-default, #fff);
  border: 1px solid var(--border-default, #cfd5dc);
  border-radius: var(--border-radius-global-150, 6px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.master-search .search-card-category:nth-child(4),
.master-search .search-card-category:nth-child(5),
.master-search .search-card-category:nth-child(6),
.master-search .search-card-category:nth-child(7),
.master-search .search-card-category:nth-child(8),
.master-search .search-card-category:nth-child(9),
.master-search .search-card-category:nth-child(10),
.master-search .search-card-category:nth-child(11),
.master-search .search-card-category:nth-child(12) {
  display: none;
}

.search-card-categories {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.search-card-categories #text {
  display: none;
}
.master-search a.search-card:hover .search-card p {
  text-decoration: underline;
}
.master-search li.pager__item::marker {
  color: transparent;
}

/************************* Responsive *************************/

@media (max-width: 1400px) {
  .views-row .search-result-wrapper,
  .search-page-body,
  .search-page-title {
    display: flex;
    padding-left: 56px;
    padding-right: 56px;
  }

  #views-exposed-form-master-search-page-1 #edit-keywords {
    width: 800px;
  }
}

@media (max-width: 900px) {
  .master-search-wrapper {
    padding: 56px var(--spacing-layout-xl, 24px) 200px;
  }
  .master-search-wrapper:has(.view-content) {
    padding-bottom: 56px;
  }
  .views-row .search-result-wrapper,
  .search-page-body,
  .search-page-title {
    padding-left: 32px;
    padding-right: 32px;
    width: 100%;
  }
  #views-exposed-form-master-search-page-1 #edit-keywords {
    width: 600px;
  }
  .views-element-container.contextual-region header {
    height: auto;
    padding: unset;
    padding-top: 40px;
  }
}

@media (max-width: 600px) {
  .master-search-wrapper {
    padding: 56px var(--spacing-layout-xl, 16px) 100px;
  }
  .master-search-wrapper:has(.view-content) {
    padding-bottom: 56px;
  }
  .views-row .search-result-wrapper,
  .search-page-body,
  .search-page-title {
    padding-left: 16px;
    padding-right: 16px;
  }
  .master-search .search-card {
    flex-direction: column;
  }
  .master-search .search-card img {
    width: 100%;
    min-width: unset;
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .views-element-container.contextual-region header {
    padding-top: 32px;
  }
  .search-page-title {
    font-size: 32px;
    line-height: 32px;
  }
  .views-row .search-result-wrapper {
    flex-direction: column;
  }
  .views-row .search-result-wrapper .spr-right {
    padding-left: 0;
  }
  .search-tag-filter {
    padding-top: 24px;
  }
  .views-row .search-result-wrapper .spr-left img {
    width: 100%;
  }
  .master-search h1 {
    font-size: 32px;
    line-height: 40px;
  }
  .master-search .master-search-description {
    font-size: 16px;
    line-height: 24px;
  }
}

@media (max-width: 450px) {
  .search-card-categories {
    display: inherit;
  }
  .master-search .search-card-category:nth-child(2) {
    margin-left: 4px;
  }
  .master-search .search-card-category:nth-child(3) {
    margin-top: 8px;
  }
  .master-search .pager__items {
    gap: 4px;
  }
  .master-search .pager__item {
    width: 36px;
    height: 36px;
  }
  .master-search .pager__item a {
    font-size: 16px;
  }
}
