/* Shared search category dropdown */
.sr_cat_dropdown {
  position: relative;
  z-index: 1002;
}

.sr_cat_toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #1b3e8c;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.sr_cat_toggle:focus {
  outline: 2px solid rgba(27, 62, 140, 0.25);
  outline-offset: -2px;
}

.sr_cat_caret {
  transition: transform 0.2s ease;
}

.sr_cat_dropdown.is-open .sr_cat_caret {
  transform: rotate(180deg);
}

.sr_cat_menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 132px;
  margin: 0;
  padding: 7px 0;
  border: 1px solid #d9deea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(17, 30, 53, 0.2);
  list-style: none;
  text-align: left;
  z-index: 1003;
}

.sr_cat_dropdown.is-open .sr_cat_menu {
  display: block;
}

.sr_cat_menu li {
  padding: 9px 14px;
  color: #555;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.sr_cat_menu li:hover,
.sr_cat_menu li:focus {
  background: #eef2fb;
  color: #1b3e8c;
  outline: none;
}

.sr_cat_menu li.active {
  background: #1b3e8c;
  color: #fff;
}

/* Desktop header search */
.header_search_widget .mailchimp_form.search-form-with-category {
  position: relative;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  width: 500px;
  height: 48px;
  margin-top: 6px;
  border-radius: 25px;
  background: #fff;
  z-index: 1001;
}

.header_top.home2,
.header_top.home2 .container,
.header_top.home2 .row,
.header_top.home2 .col-xl-12,
.header_top.home2 .ht_left_widget,
.header_top.home2 .ht_left_widget > ul,
.header_top.home2 .ht_left_widget > ul > li,
.header_top.home2 .ht_search_widget,
.header_top.home2 .header_search_widget {
  overflow: visible !important;
}

.header_search_widget .mailchimp_form.search-form-with-category .sr_cat_dropdown {
  flex: 0 0 116px;
  height: 48px;
  border-right: 1px solid #e1e3e8;
}

.header_search_widget .mailchimp_form.search-form-with-category .sr_cat_toggle {
  height: 48px;
  margin: 0;
  padding: 0 12px 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1b3e8c;
  font-size: 13px;
}

.header_search_widget .mailchimp_form.search-form-with-category button.sr_cat_toggle:active,
.header_search_widget .mailchimp_form.search-form-with-category button.sr_cat_toggle:focus {
  border: 0;
  background: transparent !important;
  color: #1b3e8c !important;
  box-shadow: inset 0 0 0 2px rgba(27, 62, 140, 0.18) !important;
  outline: none;
}

.header_search_widget .mailchimp_form.search-form-with-category .sr_cat_menu {
  top: 54px;
  width: 156px;
  min-width: 156px;
}

.header_search_widget .mailchimp_form.search-form-with-category input.form-control {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  height: 48px;
  margin: 0 !important;
  padding: 0 52px 0 14px;
  border: 0;
  border-radius: 0 25px 25px 0;
  background: transparent;
}

.header_search_widget .mailchimp_form.search-form-with-category button.search-submit {
  position: absolute;
  top: 1px;
  right: 4px;
  width: 45px;
  height: 45px;
  margin: 0 !important;
  padding: 0;
}

/* Mobile full-screen search */
.mk-fullscreen-search-overlay #mk-fullscreen-search-wrapper .mobile-search-form {
  display: flex;
  align-items: center;
  width: min(800px, calc(100vw - 30px));
  margin-right: auto;
  margin-left: auto;
  border-radius: 5px;
  background: #fff;
  overflow: visible;
  z-index: 1001;
}

.mk-fullscreen-search-overlay #mk-fullscreen-search-wrapper .mobile-search-form .sr_cat_dropdown {
  flex: 0 0 120px;
  border-right: 1px solid #e1e3e8;
}

.mk-fullscreen-search-overlay #mk-fullscreen-search-wrapper .mobile-search-form .sr_cat_toggle {
  height: 60px;
  padding: 0 14px;
  color: #1b3e8c;
}

.mk-fullscreen-search-overlay #mk-fullscreen-search-wrapper .mobile-search-form .sr_cat_menu {
  top: 66px;
}

.mk-fullscreen-search-overlay #mk-fullscreen-search-wrapper .mobile-search-form #mk-fullscreen-search-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  max-width: none;
  padding-right: 55px;
}

/* Search result page */
.sr_wrap {
  padding: 60px 0 100px;
}

.sr_search_box {
  max-width: 640px;
  margin: 0 auto 30px;
}

.sr_search_box form {
  display: flex;
  overflow: hidden;
  border: 2px solid #1b3e8c;
  border-radius: 8px;
}

.sr_search_box input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 18px;
  border: 0;
  outline: none;
  font-size: 15px;
}

.sr_search_box button {
  flex: 0 0 auto;
  padding: 0 26px;
  border: 0;
  background: #1b3e8c;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.sr_search_box button:hover {
  background: #15316f;
}

.sr_summary {
  margin-bottom: 26px;
  color: #6c757d;
  font-size: 14.5px;
  text-align: center;
}

.sr_summary b {
  color: #1b3e8c;
}

.sr_tabs {
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.sr_tab_count {
  margin-left: 4px;
  color: #9a9a9a;
  font-size: 11.5px;
}

.sr_tabs .nav-link.active .sr_tab_count {
  color: rgba(255, 255, 255, 0.75);
}

.sr_group {
  margin-bottom: 42px;
}

.sr_group_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #171e2e;
}

.sr_group_head h4 {
  margin: 0;
  color: #171e2e;
  font-size: 18px;
  font-weight: 700;
}

.sr_group_head h4 span {
  margin-left: 6px;
  color: #1b3e8c;
  font-size: 13px;
  font-weight: 500;
}

.sr_group_more {
  color: #6c757d;
  font-size: 13px;
  font-weight: 600;
}

.sr_group_more:hover {
  color: #1b3e8c;
}

.sr_result_row {
  display: block;
  padding: 16px 4px;
  border-bottom: 1px solid #ececf2;
}

.sr_result_title {
  display: block;
  margin-bottom: 6px;
  color: #171e2e;
  font-size: 15.5px;
  font-weight: 700;
}

a.sr_result_row:hover .sr_result_title {
  color: #1b3e8c;
}

.sr_result_desc {
  margin-bottom: 8px;
  color: #7e7e7e;
  font-size: 13.6px;
  line-height: 1.6;
}

.sr_result_meta {
  color: #9a9a9a;
  font-size: 12px;
}

.sr_result_meta span {
  margin-right: 14px;
}

.sr_result_meta .sr_badge {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #eaeffb;
  color: #1b3e8c;
  font-size: 11px;
  font-weight: 700;
}

.sr_no_result,
.sr_empty_state {
  color: #9a9a9a;
  font-size: 14px;
  text-align: center;
}

.sr_no_result {
  padding: 40px 0;
}

.sr_api_error {
  color: #b42318;
}

.sr_pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  color: #6c757d;
  font-size: 13px;
}

.sr_pagination a {
  padding: 7px 13px;
  border: 1px solid #d9deea;
  border-radius: 4px;
  color: #1b3e8c;
}

.sr_pagination a:hover {
  border-color: #1b3e8c;
  background: #eef2fb;
}

.sr_pagination .sr_page_number {
  min-width: 34px;
  padding-right: 8px;
  padding-left: 8px;
  text-align: center;
}

.sr_pagination .sr_page_number.active {
  border-color: #1b3e8c;
  background: #1b3e8c;
  color: #fff;
  font-weight: 700;
  pointer-events: none;
}

.sr_empty_state {
  padding: 80px 0;
  font-size: 15px;
}

.sr_empty_state i {
  display: block;
  margin-bottom: 15px;
  color: #d7dae3;
}

.sr_wrap mark.highlight,
mark.sr_hit {
  padding: 0 1px;
  border-radius: 2px;
  background: #fff2ac;
  color: inherit;
}

@media (max-width: 575.98px) {
  .mk-fullscreen-search-overlay #mk-fullscreen-search-wrapper .mobile-search-form .sr_cat_dropdown {
    flex-basis: 104px;
  }

  .mk-fullscreen-search-overlay #mk-fullscreen-search-wrapper .mobile-search-form .sr_cat_toggle {
    padding: 0 10px;
    font-size: 12px;
  }

  .sr_wrap {
    padding: 40px 0 70px;
  }

  .sr_search_box form {
    flex-direction: column;
  }

  .sr_search_box button {
    padding: 12px;
  }

  .sr_pagination {
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 4px;
  }

  .sr_pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 10px;
  }

  .sr_pagination .sr_page_number {
    min-width: 36px;
    padding-right: 6px;
    padding-left: 6px;
  }

  .sr_pagination .sr_page_number[hidden] {
    display: none !important;
  }

  .sr_pagination .sr_page_move {
    min-width: 52px;
  }
}
