.c-knowledge-bank-banner {
  padding: 0;
  text-align: center;
  font-family: var(--font-family);
}

.c-knowledge-bank-banner__inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

.c-knowledge-bank-banner__title {
  background: -webkit-linear-gradient(86deg, #008cd0 0%, #00ac41 100%);
  background: linear-gradient(86deg, #008cd0 0%, #00ac41 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 750px;
  margin: auto;
  font-family: var(font-family-mmc-bold);
  font-size: 40px;
  line-height: 54px;
  text-align: center;
  color: #012c52;
  margin-top: 0;
  margin-bottom: 0;
}

.c-knowledge-bank-banner__subtitle {
  color: #012c52;
  font-size: 22px;
  line-height: 26px;
  text-align: center;
  letter-spacing: 0px;
  text-transform: capitalize;
  opacity: 1;
  padding: 20px 0 40px;
  font-weight: 500;
  max-width: 100%;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.c-knowledge-bank-banner__search-container {
  max-width: 700px;
  width: 100%;
  margin: 0 auto 0;
  position: relative;
}

.c-knowledge-bank-banner__search-bar {
  display: flex;
  align-items: center;
  background-color: transparent;
  border: none;
  box-shadow: none;
  position: relative;
  width: 100%;
}

.c-knowledge-bank-banner__search-form {
  display: flex;
  align-items: center;
  flex: 1;
  position: relative;
  height: 100%;
}

.c-knowledge-bank-banner__search-input {
  background-color: #f1f1f2;
  background-image: url("/themes/custom/mercer_resources/images/searchNew.svg");
  position: relative;
  z-index: 99;
  border-radius: 40px;
  background-size: 30px;
  background-position: 5px center;
  outline: 0;
  border: 1.5px solid #cbd5e1;
  padding: 10px 10px 10px;
  background-repeat: no-repeat;
  transition: all 0.3s;
  padding-left: 40px;
  padding-right: 40px;
  font-weight: 600;
  color: #1a1818;
  width: 100%;
  font-size: 15px;
  line-height: 18px;
  font-family: var(--font-family);
  box-sizing: border-box;
}

.c-knowledge-bank-banner__search-input::placeholder {
  font-weight: 600;
  color: #1a1818;
}

.c-knowledge-bank-banner__grid-btn {
  background: none;
  border: none;
  color: #009be3;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
  flex-shrink: 0;
  height: 30px;
  width: 30px;
  box-sizing: border-box;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
}

.c-knowledge-bank-banner__dropdown {
  position: absolute;
  top: 95%;
  right: -5px;
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #CBD0D9;
  max-width: 150px;
  padding: 0px 15px;
  width: 100%;
  z-index: 100;
  display: none;
  flex-direction: column;
}

.c-knowledge-bank-banner__dropdown::before {
  content: "";
  border-width: 9px;
  border-style: solid;
  border-color: transparent transparent #008cd0 transparent;
  position: absolute;
  top: -19px;
  right: 23px;
}

.c-knowledge-bank-banner__search-bar.is-open
  .c-knowledge-bank-banner__dropdown {
  display: flex;
}

.c-knowledge-bank-banner__dropdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.c-knowledge-bank-banner__dropdown-item {
  color: #333;
  font-size: 12px;
  line-height: 30px;
  position: relative;
  border-bottom: 1px solid #CBD0D9;
  padding: 5px 0 5px;
  margin: 0;
  box-sizing: border-box;
}

.c-knowledge-bank-banner__dropdown-item:last-child {
  border-bottom: none;
}

.c-knowledge-bank-banner__dropdown-link {
  display: block;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  text-decoration: none;
  font-weight: 700;
  text-align: left;
  transition: color 0.2s;
}

.c-knowledge-bank-banner__dropdown-link:hover {
  color: #00ac41;
}

.c-knowledge-bank-banner__illustration {
  max-width: 784px;
  width: 100%;
  margin: auto;
  padding-top: 1px;
  padding: 40px 0;
  padding-bottom: 0;
  display: flex;
  justify-content: center;
}

.c-knowledge-bank-banner__illustration .a-image {
  width: 100%;
}

.c-knowledge-bank-banner__illustration img {
  width: 100%;
  max-width: 784px;
  height: auto;
  aspect-ratio: 8 / 3;
  display: block;
}

/* Tablet & Medium Screen Typography */
@media (max-width: 1080px) {
  .c-knowledge-bank-banner__subtitle {
    font-size: 18px;
    line-height: 24px;
  }
}

/* Mobile Responsiveness */
@media (max-width: 1080px) {
  .c-knowledge-bank-banner {
    padding: 20px 15px;
  }

  .c-knowledge-bank-banner__inner {
    display: flex;
    flex-direction: column;
  }

  .c-knowledge-bank-banner__search-container {
    order: 1;
    margin-bottom: 30px;
  }

  .c-knowledge-bank-banner__title {
    order: 2;
    font-size: 32px;
    line-height: 46px;
    margin-bottom: 15px;
  }

  .c-knowledge-bank-banner__subtitle {
    order: 3;
    font-size: 15px;
    line-height: 24px;
    padding: 0 0 30px;
    margin-bottom: 0;
  }

  .c-knowledge-bank-banner__illustration {
    order: 4;
    padding: 20px 0 0;
  }

  .c-knowledge-bank-banner__illustration img {
    aspect-ratio: auto;
  }

  .c-knowledge-bank-banner__dropdown {
    width: calc(100% - 40px);
    right: 20px;
  }
}
