.dns-search-results {
  font-family: "Roboto";
  .sw19s-std-wrap {
    margin: 0 auto;
    max-width: 1024px;
    padding: 0 24px;
  }

  .results-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 32px;
  }

  .blog-item {
    padding-bottom: 40px;
    border-bottom: 1px solid #b3b3a8;

    a {
      color: #222222;
      display: flex;
      flex-direction: column;
      gap: 16px;

      &:hover .title {
        text-decoration: underline;
      }

      &:active .title {
        color: #00086f;
      }
    }
  }

  .top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 16px;
  }

  .title {
    position: relative;
    max-width: 712px;
    font-size: 24px;
    line-height: 32px;
    font-weight: bold;

    svg {
      position: absolute;
      left: -22px;
    }
  }

  .excerpt {
    font-size: 18px;
    line-height: 32px;
    max-width: 712px;
    line-clamp: 2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .date {
    color: #766d68;
    font-size: 14px;
    line-height: 24px;
    font-style: italic;
    white-space: nowrap;
  }

  .search-bar {
    position: relative;
    padding-top: 40px;
    padding-bottom: 25px;
    border-bottom: solid 1px #b3b3a8;
    margin-bottom: 16px;

    .form-block {
      position: relative;
      width: 100%;
      height: 48px;
    }
  }

  .search-button,
  .clear-button {
    position: absolute;
    padding: 0;
    line-height: 0;
    background-color: transparent;
    right: 14px;
    top: 8px;

    &:hover svg {
      color: #64a2ff;
    }
    &:active svg {
      color: #0044ab;
    }

    svg {
      color: #0066ff;
    }
  }

  .clear-button {
    right: 8px;
    width: 32px;
    height: 32px;

    &:hover svg path {
      fill: #64a2ff;
    }
    &:active svg path {
      fill: #0044ab;
    }
  }

  .search:not(:placeholder-shown) ~ .search-button {
    right: 40px;
  }

  .search {
    width: 100%;
    background-color: #f7f7f1;
    border-radius: 32px;
    border: solid 1px #b3b3a8;
    outline: none;
    height: 48px;
    font-size: 18px;
    line-height: 32px;
    padding-left: 16px;

    &:focus {
      background-color: #f7f7f1;
      color: #222222;
    }

    &::placeholder {
      color: #766d68;
    }
  }

  .result-count {
    padding-bottom: 16px;
    color: #584f4a;
    font-size: 18px;
    line-height: 32px;
    font-weight: bold;
  }

  .filter-button {
    text-align: center;
    padding: 12px 32px;
    border-radius: 48px;
    background-color: #42e2b8;
    font-family: "Archivo";
    font-size: 18px;
    font-weight: bold;
    line-height: 1.33;
    color: #000;

    &:hover {
      background-color: #83ecd0;
    }

    &:active {
      background-color: #21d4a4;
    }
  }

  .filters {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;

    input[type="text"] {
      width: 100%;
      color: #111;
      border: none;
      font-size: 18px;
      line-height: 1.78;
      font-weight: bold;
      font-family: "Roboto", sans-serif;
      &:focus {
        outline: none;
      }
    }

    input[type="text"]::placeholder {
      color: #222;
    }

    .filter-dropdown {
      position: relative;
      min-width: 248px;
      color: #111;

      &.sort {
        margin-left: auto;

        .items {
          right: 0;

          .checkbox {
            padding-right: 32px;
          }
        }
      }
    }
    .filter-dropdown input[type="text"] {
      background-color: #fff;
      border: 1px solid #ccc;
      border-radius: 40px;
      font-size: 18px;
      height: 48px;
      padding: 10px 12px 10px 16px;
      display: flex;
      align-items: center;
      width: 100%;
      cursor: pointer;
    }

    .filter-dropdown.selected input[type="text"] {
      display: none;
    }

    .filter-dropdown .items {
      position: absolute;
      z-index: 1;
      display: none;
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
      background: #fff;
      border-radius: 16px;
      border: solid 1px #b3b3a8;
      margin-top: 4px;
      width: 215px;
    }

    .filter-dropdown .items.selected {
      display: block;
    }

    .filter-dropdown .items.selected ~ .caret {
      rotate: 180deg;
    }

    .filter-dropdown .items .checkbox {
      padding: 13px 16px;
      margin: 0px;
      line-height: 0;
      user-select: none;
      white-space: nowrap;
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .checkbox input[type="checkbox"] {
      min-width: 20px;
      min-height: 20px;
      margin: 0;
      accent-color: #0066ff;
    }

    .checkbox input[type="radio"] {
      appearance: none;
      pointer-events: none;
      display: none;
    }

    .items .checkbox:first-child {
      border-top-left-radius: 16px;
      border-top-right-radius: 16px;
    }

    .items .checkbox:last-child {
      border-bottom-left-radius: 16px;
      border-bottom-right-radius: 16px;
    }

    .checkbox label {
      width: 100%;
      height: 100%;
      font-family: "Roboto";
      font-size: 14px;
      line-height: 1.71;
      color: #584f4a;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-direction: row;
      gap: 8px;
    }

    .filter-dropdown .items .checkbox {
      svg {
        display: none;
      }
    }

    .filter-dropdown .items .checkbox:has(input[type="checkbox"]:checked),
    .filter-dropdown .items .checkbox:has(input[type="radio"]:checked) {
      background-color: #eaf2f5;
      font-weight: bold;

      svg {
        display: block;
      }
    }

    .filter-dropdown .items .checkbox .tick {
      width: 20px;
    }

    .filter-dropdown .items .checkbox.hidden {
      display: none;
    }

    .filter-dropdown .selected-label {
      background-color: #fff;
      border: 1px solid #444;
      border-radius: 40px;
      font-size: 18px;
      font-weight: bold;
      height: 48px;
      padding: 10px 12px 10px 16px;
      font-family: "Roboto", sans-serif;
      justify-content: space-between;
      color: #111111;
      display: none;
      white-space: nowrap;
      cursor: pointer;

      svg {
        width: 20px;
        height: 20px;
        transform: rotate(-90deg);
      }
    }

    .filter-dropdown .selected-label span {
      min-width: 0;
      overflow: hidden;
    }

    .filter-dropdown.selected .selected-label {
      display: flex;
      align-items: center;
    }

    .filter-dropdown .selected-label button {
      border: none;
      background-color: transparent;
      color: #111111;
      display: flex;
      align-items: center;
      cursor: pointer;
      pointer-events: none;
    }

    .filter-dropdown.selected .caret {
      display: none;
    }

    .filter-dropdown.mobile-filter {
      display: none;
    }

    .caret {
      position: absolute;
      top: 14px;
      right: 16px;
      width: 20px;
      height: 20px;
      pointer-events: none;

      svg {
        width: 20px;
        height: 20px;
        transform: rotate(-90deg);
      }
    }

    .clear-filter {
      font-family: "Roboto";
      font-size: 18px;
      font-weight: bold;
      line-height: 1.78;
      color: #0044ab;
      background: transparent;
      padding: 0;
      display: none;

      &.active {
        display: block;
      }
    }
  }

  .filters-menu-mobile {
    display: none;
  }

  #filter-menu {
    display: none;
  }

  @media (max-width: 992px) {
    .direction-text {
      display: none;
    }

    .sw19b-job-search-info {
      .numresults {
        margin: 0;
        padding-top: 24px;
      }

      .top {
        border-bottom: 1px solid #ccc;
        padding-bottom: 16px;
      }

      .top div {
        padding-left: 8px;
        border-radius: 15px;
        background-color: #d8e3e3;
        font-size: 14px;
        line-height: 24px;
        margin: 16px 8px 0 0;
      }

      .top div a {
        text-decoration: none;
        color: #111111;
        display: flex;
      }

      .filters-text {
        margin-right: 8px;
      }

      .clear {
        margin-top: 8px;
      }
    }

    .job td {
      padding-right: 12px;
    }
    .job td:last-child {
      padding-right: 0px;
    }

    .sw19b-jobs-paging {
      padding: 24px 0 64px 0;
      background-color: #ffffff;

      .direction-button {
        width: 32px;
      }
      a {
        font-size: 16px;
      }
      .page-nums a.page-num {
        font-weight: bold;
      }
    }

    .sw19b-search {
      padding: 32px 0 24px 0;
      .search-bar {
        flex-direction: column;

        button.sw32-button,
        button.sw33-button {
          display: none;
        }
      }

      .text-search input {
        font-weight: bold;
      }

      .text-search input::placeholder {
        font-weight: normal;
      }

      .filter-dropdown.locations,
      .filter-dropdown.departments {
        display: none;
      }

      .filter-dropdown.mobile-filter {
        background-color: #fff;
        border: 1px solid #a0b9b9;
        border-radius: 40px;
        height: 40px;
        padding: 10px 12px 10px 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 113px;
        min-width: 0;
        overflow: visible;
        font-size: 18px;
        color: #111;

        svg {
          margin-right: 4px;
        }
      }
    }
    #overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(17, 17, 17, 0.15);
      backdrop-filter: blur(4px);
      display: none;
      z-index: 999;
    }

    #overlay.active {
      display: block;
    }

    #filter-menu {
      position: fixed;
      top: 0;
      right: 0;
      display: none;
      background: #fff;
      z-index: 1001;
      padding-bottom: 24px;
      min-width: 300px;
      width: 80%;
      max-height: 100vh;
      overflow-y: scroll;
    }

    #filter-menu.active {
      display: block;
    }

    .menu-top {
      display: flex;
      justify-content: space-between;
      padding: 16px;
      border-bottom: 1px solid #b3b3a8;

      div {
        font-family: "Roboto";
        font-size: 18px;
        font-weight: bold;
        line-height: 1.78;
        color: #584f4a;
      }
    }

    #filter-menu-close {
      border: none;
      background-color: transparent;
      overflow: visible;
      padding: 0;
    }

    details {
      &[open] {
        padding-bottom: 16px;

        svg {
          transform: rotate(90deg);
        }
      }
      summary {
        display: flex;
        justify-content: space-between;
        align-items: center;

        &::marker {
          display: none;
        }

        svg {
          width: 20px;
          height: 20px;
          transform: rotate(-90deg);
        }
      }
    }

    .menu-items {
      border-bottom: 1px solid #b3b3a8;
      margin: 0 16px;
    }

    .filter-category {
      font-family: "Roboto";
      font-size: 18px;
      font-weight: bold;
      line-height: 1.78;
      color: #584f4a;
      margin: 16px 0;
    }

    .checkbox {
      color: #444444;
      font-size: 14px;
      line-height: 24px;
      display: flex;
      align-items: center;
      gap: 16px;
      position: relative;
      margin-bottom: 8px;
    }

    .checkbox input[type="checkbox"],
    .checkbox input[type="radio"] {
      appearance: none;
      pointer-events: none;
      width: 20px;
      height: 20px;
      border: 1px solid #666666;
      background-color: #fff;
      margin: 0;
    }

    .checkbox input[type="radio"] {
      border-radius: 50%;
    }

    .checkbox input[type="checkbox"]:checked,
    .checkbox input[type="radio"]:checked {
      background-color: #0066ff;
    }

    .checkbox input[type="radio"]:checked {
      border: 3px solid #fff;
      outline: 1px solid #0066ff;
    }

    .checkmark:after {
      content: "";
      position: absolute;
      display: none;
    }

    .checkbox input[type="checkbox"]:checked ~ .checkmark:after,
    .checkbox input[type="radio"]:checked ~ .checkmark:after {
      display: block;
    }
    .checkbox input[type="checkbox"]:checked ~ label,
    .checkbox input[type="radio"]:checked ~ label {
      font-weight: bold;
    }
    .checkmark:after {
      left: 6px;
      top: 3px;
      width: 7px;
      height: 12px;
      border: solid white;
      border-width: 0 2px 2px 0;
      transform: rotate(36deg);
    }

    .filter-menu-buttons {
      display: flex;
      justify-content: space-between;
      font-weight: bold;
      gap: 1rem;
      margin: 1.5rem 1rem 0;
    }

    /* Waiting for feedback from UX */
    #mobile-reset-filters.disabled {
      /* border-color: #cccccc;
      pointer-events: none; */
    }

    #mobile-apply-filters:disabled {
      /* background-color: #cccccc;
      border-color: #cccccc;
      pointer-events: none; */
    }

    .dns10-button {
      font-family: "Archivo";
      font-size: 18px;
      text-align: center;
      font-weight: bold;
      line-height: 1.33;
      color: #000;
      padding: 12px 20px;
      background-color: #42e2b8;
      border-radius: 48px;

      &.secondary {
        background-color: #fff;
        border: 3px solid #42e2b8;
      }
    }
  }

  @media (max-width: 767px) {
    .top {
      flex-direction: column;
    }

    .excerpt {
      line-clamp: 4;
      -webkit-line-clamp: 4;
    }

    .sw19s-std-wrap.bar {
      padding: 0;
    }

    .search-bar {
      padding: 24px;
      border-bottom: none;
      box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.16);
      display: flex;
      justify-content: space-between;
      gap: 16px;
    }

    .filters-menu-mobile {
      display: flex;
      padding: 0;
      margin: 0;
      background-color: transparent;
      color: #0066ff;
      width: 100%;
      max-width: 48px;
      height: 48px;
      border-radius: 50%;
      border: solid 1px #b3b3a8;
      align-items: center;
      justify-content: center;
    }

    .blog-item {
      border-bottom: none;
      position: relative;
      padding-bottom: 57px;

      &::before {
        content: "";
        position: absolute;
        bottom: 0;
        width: 100vw;
        height: 1px;
        background: #b3b3a8;
        left: -24px;
      }
    }
    .result-count {
      padding-bottom: 0;
    }
    .filters {
      display: none;
    }
  }
}
