.search-header {
  background: #F8F8F8;
  padding: 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  margin-bottom: 2rem;
}

.search-header h1 {
  font: normal normal bold 72px/92px Playfair Display;
  letter-spacing: 0px;
  color: #02254A;
  opacity: 1;

}

.searchbox-wrapper {
  position: relative;
  width: 100%;
}

.searchbox-input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  font-size: 1.2rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  height:48px;
}

.search-button {
  position: absolute;
  top: 0;
  right: 0;
  height: 48px;
  background: #AF1E2D !important;
  color: #fff;
  border: none;
  padding: 0 1rem;
  cursor: pointer;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
  font-weight: bold;
}

.ai-results {
  background: #02254A 0% 0% no-repeat padding-box;
  opacity: 0.9;
  color: white;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  width: 100% !important;
  display: flex;
  flex-direction: column;

}

.search-body {
  display: flex;
  gap: 2rem;
  margin-top: 30px;
  margin-bottom: 50px;
}
.result-content p.body{
  margin-bottom: 10px !important;
}
.search-results {
  flex: 3;
}

.search-results h2 {
  text-align: left;
  font: normal normal normal 26px/38px Playfair Display;
  letter-spacing: 0.52px;
  color: #181818;
}

.search-results h2 .results-count {
  text-align: left;
  font: normal normal bold 26px/38px Playfair Display;
  letter-spacing: 0.52px;
  color: #181818;
}

.search-sidebar {
  flex: 1.5;

  padding: 1rem;
  background: #F5F5F5 0% 0% no-repeat padding-box;
  border-radius: 4px;
  opacity: 1;
  align-self: flex-start;
  padding-left: 30px !important;
  padding-right: 30px !important;
}

.search-sidebar h3 {
  text-align: left;
  font: normal normal bold 26px/38px Playfair Display;
  letter-spacing: 0.52px;
  color: #181818;
  opacity: 1;
  margin-bottom:10px!important;
}

.search-sidebar h4,
.search-sidebar h4 a {
  text-align: left;
  font: normal normal bold 22px/28px Playfair Display;
  letter-spacing: -0.22px;
  color: #02254A;
  text-transform: capitalize;
  opacity: 1;
  margin-bottom: 5px !important;
}

/* .result-item, .recommended-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
} */
.result-item,
.recommended-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.result-item .result-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.result-content h3,
.result-content h3 a {
  text-align: left;
  font: normal normal bold 28px/36px Playfair Display;
  letter-spacing: -0.28px;
  color: #02254A !important;
  text-transform: capitalize;
  opacity: 1;
  line-height: 36px !important;
  margin-bottom: 5px !important;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  /* fixed width; adjust as needed */
  height: 30px;
  /* fixed height; adjust as needed */
  text-align: center;
  background: rgba(179, 1, 37, 0.1);
  border-radius: 4px;
  margin-top: 0.4rem;
}

.badge span {
  font: normal normal normal 14px/24px Poppins;
  letter-spacing: 0.28px;
  color: #B30125 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.icon-lock {
  color: red;
  margin-right: 5px;
}


/* Hide/show toggle for accordion */
.hidden {
  display: none;
}

/* Align toggle button (arrow) to top-right corner */
.ai-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

/* Style the toggle arrow button */
.ai-toggle-icon {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

/* Flip the arrow when active */
.ai-toggle-icon.rotated {
  transform: rotate(180deg);
}

.ai-header span {
  text-align: left;
  font: normal normal 600 14px/26px Poppins;
  letter-spacing: -0.14px;
  color: #FFFFFF;
  opacity: 1;
  display: flex;
  align-items: center;
}

.ai-header span::before {
  content: '';
  display: inline-block;
  background-image: url('../img/icn-gen-ai.svg');
  background-repeat: no-repeat;
  background-size: contain;
  width: 15px;
  height: 15px;
  margin-right: 8px;
  vertical-align: middle;
  margin-bottom: 1px;
}

.ai-feedback {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.feedback-label {
  color: white;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.thumb {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s;
  width: 15px !important;
}

.thumb:hover {
  transform: scale(1.2);
}

.thumb-up {
  margin-left: 0.1rem;
}

.thumb-down {
  margin-left: 0.25rem;
}

.thumb.selected {
  color: #4CAF50;
  transform: scale(1.3);
}

.thumb:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.thumb:disabled:not(.selected) {
  opacity: 0.3;
}

.search-controls {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
}

.search-sidebar ol,
#hits ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.updated {
  text-align: left;
  font: normal normal normal 14px/24px Poppins;
  letter-spacing: 0.28px;
  color: #181818;
  opacity: 1;
  margin-bottom: 10px !important;
}

.pagination {
  display: flex;
  gap: 6px;
  margin-top: 1rem;
  justify-content: center;
}

.pagination button,
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  text-align: center;
  font: normal normal bold 26px/35px Playfair Display;
  line-height: 36px;
  letter-spacing: 0.26px;
  color: #B30125;
  opacity: 1;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  background: rgba(179, 1, 37, 0.1);
  cursor: pointer;
}

.pagination a:hover {
  background-color: #f1dada;
}

.pagination .current-page {
  background-color: #B30125;
  color: white;
}

/* Modal search results container */
.litho-form-wrapper .search-results-container {
  margin-top: 2rem;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Modal conversation block */
.litho-form-wrapper .modal-conversation .ai-results {
  margin: 0;
}

/* Modal recommended section */
.litho-form-wrapper .modal-recommended-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.litho-form-wrapper .modal-recommended-list li {
  margin-bottom: 10px;
}

.litho-form-wrapper .search-results-container.modal-search-columns .modal-left-col h4 {
  text-align: left;
  font: normal normal bold 24px/30px Playfair Display;
  letter-spacing: 0px;
  color: #FFFFFF;
  text-transform: capitalize;
  opacity: 1;
  margin-bottom: 10px;
}

.litho-form-wrapper .search-results-container.modal-search-columns .modal-left-col {
  color: #fff !important;
}

.litho-form-wrapper .search-results-container.modal-search-columns {
  flex-direction: row;
  display: flex;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
}

.litho-form-wrapper .search-results-container.modal-search-columns .modal-right-col h3 {
  text-align: left;
  font: normal normal bold 26px/38px Playfair Display;
  letter-spacing: 0.52px;
  color: #FFFFFF;
  opacity: 1;
}

.litho-form-wrapper .search-results-container.modal-search-columns .modal-left-col h3 a {
  color: #FFFFFF !important;
}

.litho-form-wrapper .search-results-container.modal-search-columns .modal-left-col .result-content h3 {
  margin-bottom: 5px !important;
}

.litho-form-wrapper .search-results-container.modal-search-columns .modal-left-col .result-content .updated {
  color: #fff !important;
}

.litho-form-wrapper .search-results-container.modal-search-columns .modal-left-col .result-content p {
  margin-bottom: 10px !important;
}

.litho-form-wrapper .search-results-container.modal-search-columns .modal-left-col .result-item .badge {
  text-align: left;
  background: #000000 0% 0% no-repeat padding-box;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.16);
  padding: 0.25rem 0.5rem;
  flex-shrink: 0;
  margin-top: 0.4rem;
}

.litho-form-wrapper .search-results-container.modal-search-columns .modal-left-col .result-item .badge span {
  font: normal normal normal 14px/24px Poppins;
  letter-spacing: 0.28px;
  color: #fff !important;
}

.litho-form-wrapper .search-results-container.modal-search-columns .modal-left-col h3 {
  text-align: left;
  font: normal normal normal 26px/38px Playfair Display;
  letter-spacing: 0.52px;
  color: #FFFFFF !important;
  opacity: 1;
  margin-bottom: 20px !important;
}

/* Two-column layout for modal results */


.litho-form-wrapper .search-results-container.modal-search-columns .modal-left-col {
  flex: 3;
  min-width: 0;
}

.litho-form-wrapper .search-results-container.modal-search-columns .modal-right-col {
  flex: 1.5;
  width: 100%;
}

.modal-right-col .ai-results {
  background: #000000 0% 0% no-repeat padding-box;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.16);
  color: white;
  padding: 30px;

}

.modal-right-col .ai-results p {
  text-align: left;
  font: normal normal normal 16px/26px Poppins;
  letter-spacing: -0.16px;
  color: #FFFFFF;
  opacity: 1;
}

.header-search-icon,
.header-search-icon a {
  color: #fff
}

.search-form-wrapper .litho-form-wrapper {
  background: transparent radial-gradient(closest-side at 50% 50%, var(--unnamed-color-2a5f7a) 0%, var(--unnamed-color-02254a) 100%) 0% 0% no-repeat padding-box;
  background: transparent radial-gradient(closest-side at 50% 50%, #2A5F7A 0%, #02254A 100%) 0% 0% no-repeat padding-box;
  opacity: 0.96;
  width: 100%;
  left: 0;
  top: 0;
  overflow: hidden !important;
  transition: all .2s ease-in-out;
  -moz-transition: all .2s ease-in-out;
  -webkit-transition: all .2s ease-in-out;
  -ms-transition: all .2s ease-in-out;
  -o-transition: all .2s ease-in-out;
  display: block !important;
  height: 100%;
  position: fixed;
  visibility: hidden;
  opacity: 0;
  z-index: 999;
}

.active-form.search-form-wrapper .litho-form-wrapper {
  opacity: 1;
  visibility: visible;
  cursor: url(../images/mfg-close.png), auto;
}

.search-form-wrapper .litho-form-wrapper .search-form {
  height: 0;
  width: 100%;
  left: 0;
  top: 40%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  position: absolute;
  transition: all .2s ease-in-out;
  -moz-transition: all .2s ease-in-out;
  -webkit-transition: all .2s ease-in-out;
  -ms-transition: all .2s ease-in-out;
  -o-transition: all .2s ease-in-out;
}

.search-form-wrapper .litho-form-wrapper .search-close {
  color: #fff;
  position: fixed;
  top: 30px;
  right: 35px;
  overflow: visible;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
  display: block;
  outline: none;
  padding: 0;
  z-index: 1046;
  box-shadow: none;
  font-size: 44px;
  font-weight: 300;
  width: 44px;
  height: 44px;
  line-height: 44px;
}

.search-form-wrapper .litho-form-wrapper .search-form .search-input {
  color: #232323;
  border-bottom: 1px solid #232323;
  width: 100%;
}

.search-form-wrapper .litho-form-wrapper .search-form-box {
  position: relative;
  width: 45%;
  max-width: 890px;
}

.search-form-wrapper .litho-form-wrapper .search-form .search-button {
  color: #fff;
  bottom: 31px;
  position: absolute;
}

.search-form-wrapper .litho-form-wrapper .search-form .search-input::-webkit-input-placeholder {
  color: #000;
  opacity: .65;
  font-style: italic;
}

.search-form-wrapper .litho-form-wrapper .search-form .search-input::-moz-placeholder {
  color: #000;
  opacity: .65;
  font-style: italic;
}

.search-form-wrapper .litho-form-wrapper .search-form .search-input::-ms-input-placeholder {
  color: #000;
  opacity: .65;
  font-style: italic;
}

.show-search-popup {
  overflow: hidden;
}

.show-search-popup header .top-bar {
  z-index: 9;
}

.show-search-popup .fixed-top {
  z-index: 1032;
}

.show-search-popup.show-search-popup-mini-header .top-bar {
  z-index: 1033;
}

.search-form .search-input {
  border: none;
  border-radius: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  font-size: 20px;
  font-weight: 300;
  padding: 10px 38px 10px 20px;
  line-height: 40px;
  color: #232323;
  margin-bottom: 0;
}

.search-form .search-input:focus {
  outline: none;
}

.search-input::-moz-placeholder,
.search-input [placeholder] {
  color: #787878;
}

.search-form .search-button {
  font-size: 34px;
  color: #fff;
  bottom: 37px;
  right: 0;
  line-height: normal;
  outline: none;
  cursor: pointer;
  z-index: 0;
  margin-right: 0;
  border: none;
  background: #b30125;
  top: inherit;
  height: 61px;
  padding: 0px 28px
}

.search-button {
  cursor: pointer;
  z-index: 0;
  margin-right: 0;
  border: none;
  background: none;
}

.search-form-wrapper .form-item-keys {
  display: block;
}

.search-form-wrapper label {
  display: block;
  font: normal normal 200 48px/72px Poppins;
  letter-spacing: 0px;
  color: #FFFFFF;
  opacity: 1;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
  width: 100%;
}

/* Style header search form within modal */
.search-form-wrapper .search-modal-container {
  text-align: center;
  padding-top: 90px;
  padding-bottom: 45px;
  margin: 0 auto;
  max-width: 1250px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  left: 0;
  right: 0;
}
.search-form-wrapper .search-modal-container form {
  margin: 0 auto;
  max-width: 800px;
}

.search-form-wrapper .search-modal-container form .search-form-keyword-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  /* gap: 0.5rem; */
  width: 100%;
  max-width: 800px;
}

.search-form-wrapper .search-modal-container form input[type="text"] {
  color: #232323;
  width: 100%;
  max-width: 700px;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid #232323;
  font-size: 20px;
  font-weight: 300;
  padding: 10px 38px 10px 20px;
  line-height: 40px;
  margin-bottom: 0;
}

.search-form-wrapper .search-modal-container form input[type="text"]::placeholder {
  color: #000;
  opacity: 0.65;
  font-style: italic;
}

.search-form-wrapper .search-modal-container form button {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  outline: none;
  cursor: pointer;
  border: none;
  background: #B30125;
  border-radius: 0px 4px 4px 0px;
  height: 61px;
  width: 90px;
  padding: 0;
  margin: 0;
  align-self: stretch;
}

.view-all-results-button {
  background: #B30125 0% 0% no-repeat padding-box;
  border-radius: 2px;
  text-align: left;
  font: normal normal medium 18px/20px Poppins;
  letter-spacing: -0.18px;
  color: #FFFFFF;
  opacity: 1;
  padding: 10px;
}

@media (max-width: 768px) {

  /* Stack the main search body in a column so the recommended section can appear first */
  .search-body {
    display: flex;
    flex-direction: column;
  }
  

  /* Place recommended (.search-sidebar) above search results */
  .search-sidebar {
    order: 1;
    margin-bottom: 1rem;
    /* optional for spacing */
  }

  .search-results {
    order: 2;
  }

  /* Reorder .badge and .result-content so .badge is displayed on top for mobile */
  .result-item {
    display: flex;
    flex-direction: column;
  }

  .badge {
    order: 0;
    /* Show the badge first */
    margin-bottom: 0px !important;
    /* Optional for spacing */
  }

  .result-content {
    margin-top:10px;
    order: 1;
    /* Then the content with the h3 title */
  }

  /* Make the recommended section collapsible */
  .search-sidebar {
    order: 1;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: unset !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    width:100%!important;
    background-color: #fff!important;
    border: 1px solid #C9C9C9;
    /* retain spacing */
  }

  /* When the .open class is added, expand the recommended section */
  .search-sidebar.open {
    max-height: 1000px;

    /* Adjust this value as needed to fit your content */
  }

  /* Styling for the recommended section header that acts as the accordion toggle */
  .recommended-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    /* Adjust background color if desired */
    padding: left 10px !important;
    padding-right:10px;
    cursor: pointer;
  }
   

  .recommended-header h3 {
    text-align: left;
    font: normal normal medium 16px/26px Poppins;
    letter-spacing: -0.16px;
    color: #181818;
    opacity: 1;
    margin: 0;
  }


  .recommended-header .ai-toggle-icon {
    color: #000 !important;
  }
}

/* Custom checkbox styling for .member-toggle label */
.member-toggle input[type="checkbox"] {
  -webkit-appearance: none;
  /* Remove default styling on Safari */
  -moz-appearance: none;
  /* Remove default styling on Firefox */
  appearance: none;
  /* Remove default styling */
  width: 20px;
  /* Set desired width */
  height: 20px;
  /* Set desired height */
  background-color: #AF1E2D;
  /* Red background */
  border: none;
  /* Remove border */
  border-radius: 3px;
  /* Optional rounded corners */
  cursor: pointer;
  margin-right: 0.5rem;
  /* Spacing before the label text */
  position: relative;
  /* For pseudo-element positioning */
  margin-bottom: 0px !important;
}

/* Display a white check mark when checked */
.member-toggle input[type="checkbox"]:checked::after {
  content: "\f00c";
  /* Font Awesome check mark */
  font-family: FontAwesome;
  /* Use the Font Awesome font */
  color: white;
  /* White check mark */
  font-size: 16px;
  /* Adjust size as needed */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Ensure the unchecked state remains red */
.member-toggle input[type="checkbox"]:not(:checked) {
  background-color: #AF1E2D;
}
p.conversation a {
  color: #fff !important;
  text-decoration: underline !important;
  text-decoration-color: #fff !important;
  /* Optional: make the underline thicker for visibility */
  text-decoration-thickness: 2px;
  /* Optional: remove link outline on click/focus */
  outline: none;
  border-bottom: 0px!important ;
}

p.conversation a:hover,
p.conversation a:focus {
  color: #fff !important;
  text-decoration: underline !important;
  text-decoration-color: #fff !important;
  text-decoration-thickness: 2px;
  border-bottom: 0px!important ;
}

@media (max-width: 768px) {
  .search-form-wrapper .litho-form-wrapper {
    padding-left: 30px;
    padding-right: 30px;
  }

  .search-form-wrapper label {
    display: block;
    text-align: left;
    font: normal normal 200 36px/55px Poppins;
    letter-spacing: 0px;
    color: #FFFFFF;
    opacity: 1;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
    width: 100%;
  }

  .search-results-container.modal-search-columns {
    display: flex !important;
    flex-direction: column !important;
    max-height: 100vh;
    /* Adjust as needed */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Enables smooth scrolling on iOS */
  }

  /* Place the right column first */
  .modal-right-col {
    order: 1;
  }

  /* Place the left column next */
  .modal-left-col {
    order: 2;
  }

  /* Place the conversation section last */
  .modal-conversation {
    order: 3;
  }
 
  
}