.cs {
  margin: 0 auto;
}

.cs__title {
  font-family: "Roboto", sans-serif;
  font-size: 32px;
  font-weight: 500;
  color: #151518;
  margin-bottom: 30px;
}

.cs__search {
  width: 100%;
  position: relative;
}

.cs__searchBox {
  width: 100%;
  max-width: 420px;
  display: flex;
  background: #fff;
  position: absolute;
  right: 0;
  top: -28px;
  transform: translateY(-100%);
}

.cs__searchBox .search-field {
  font-family: "Roboto", Sans-serif !important;
  padding: .5rem 40px .5rem .5rem;
  margin: 0;
  box-sizing: border-box;
}

.cs__searchBox .search-field:focus,
.cs__searchBox .search-field {
  outline: none;
  box-shadow: none;
}

.cs__searchBox .search-submit-btn {
  border-radius: 0px !important;
    background-color: var(--Secondary-500, #2899F6);
    position: absolute;
    right: 0;
    width: 40px;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cs__searchBox .search-submit-btn .custom-search-icon {
    display: inline-block;
    top: unset;
    left: unset;
    transform: translate(0, -1px);
}

.cs__searchBox .search-submit-btn .custom-search-icon:after {
    color: #fff;
}

/* Filters row */
.cs__filters {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
}

.cs__filter {
  position: relative;
  min-width: 150px;
}

.cs__filter select {
  height: 32px;
  width: 100%;
  border: 1px solid #C8D1E0;
  border-radius: 0px;
  padding: 0 10px;
  font-size: 13px;
  background: #fff;
  margin-bottom: 0;
  cursor: pointer;
}

.cs__filter::after {
  content: "";
  vertical-align: middle;
  display: inline-block;
  border: 4px solid transparent;
  border-top: .4em solid;
  position: absolute;
  right: 10px;
  top: calc(50% - .175em);
}

.cs__resetBtn {
  height: 32px;
  min-height: 32px;
  border: 1px solid #C8D1E0;
  background: #fff;
  padding: 0 12px;
  cursor: pointer;
  text-transform: unset;
  line-height: 32px;
  margin: 0;
  font-weight: normal;
  color: #333;
}

.cs__resetBtn:hover {
  background: #f6f7fb;
}

.cs__results.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.cs__results {
  margin: 30px 0;
}

.csGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

/* Card */
.csCard {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0px 3px 25px 5px rgba(40, 76, 235, 0.10);
}

.csCard__link {
  display: grid;
  grid-template-columns: 40% 1fr;
  min-height: 170px;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.csCard__media {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.csCard__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.8s ease;
}

.csCard:hover .csCard__media::after {
  background: rgba(0,0,0,0.5);
}

.csCard__content {
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  gap: 12px;
}

.csCard__logoWrap {
  display: flex;
  align-items: center;
}

.csCard__logo {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.csCard__text {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #6B7280;
}

.csCard__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  color: #1231BD;
}

.csCard__ctaText {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.csCard__ctaIcon {
  font-size: 16px;
  line-height: 1;
}

.csPagination {
  margin-top: 96px;
  text-align: center;
}

.csPagination__link {
  display: inline-flex;
  width: 32px;
  height: 32px;
  padding: 7px 12px;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 1px solid #C8D1E0;
  background: #FFF;
  text-decoration: none;
  color: inherit;
  margin: 0 2px;
}

.csPagination__link:hover {
  background: #4967EE;
  border: 1px solid #4967EE;
  color: #fff;
}

.csPagination__link.is-active {
  background: #4967EE;
  border: 1px solid #4967EE;
  color: #fff;
}

.csEmpty {
  text-align: center;
  padding: 40px 0;
  color: #6B7280;
}

@media (max-width: 1024px) {
  .cs__title { font-size: 28px; line-height: 34px; }
  .csGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .cs__search { align-items: stretch; }
  .cs__searchBox { 
    position: relative;
    top: unset;
    right: unset;
    transform: unset;
    margin-bottom: 16px;
   }
  .cs__resetBtnContainer { min-width: 150px; }
  .csGrid { grid-template-columns: 1fr; }
  .cs__results { margin: 40px 0; }
  .csPagination { margin-top: 40px; }
  .csCard__link { grid-template-columns: 1fr; }
  .csCard__media { min-height: 125px; }
}
