/* 列表頁共用樣式 */

.list-content {
  margin: 100px auto;
  font-weight: 500;
  letter-spacing: .5px;
}

.list-headline {
  font-size: 24px;
  font-weight: 500;
}

.search-card {
  a {
    color: #EE7800;
  }

  .search-bar-keyword {
    font-size: 14px;

    p {
      @media (max-width: 575px) {
        min-width: 75px;
        margin-top: 3px;
      }
    }

    li {
      margin-right: 15px;

      @media (max-width: 575px) {
        margin: 3px 10px 3px 0;
      }
    }
  }

  .form-control {
    font-size: 0.875rem;
    border: 2px solid #EE7800;
  }

  .input-group-text {
    padding: 1rem 2rem;
    color: #fff;
    font-weight: 400;
    font-size: 0.875rem;
    text-align: center;
    background-color: #EE7800;
    border: 2px solid #EE7800;
    border-radius: 0 .25rem .25rem 0;
  }
}

.filter-list {
  .form-check {
    display: flex;
    align-items: center;
  }

  .form-check-label {
    margin-left: 10px;
  }

  .search-tab {
    margin: 10px;
    border-color: #dbdbdb;
    background-color: white;

    &:hover {
      color: #EE7800;
      border-color: #EE7800;
    }

    &.active {
      color: #EE7800;
      border-color: #EE7800;
    }
  }

  .dropdown-menu {
    padding: 0;
    min-width: 15rem;
    max-height: 300px;
    overflow-y: auto;

    li {
      padding: 0.75rem 1.25rem;
      border-bottom: 1px solid rgba(0, 0, 0, 0.125);

      input,
      label {
        cursor: pointer;
      }
    }
  }

  .search-btn-filter {
    button {
      border: none;
      background-color: white;

      &:hover {
        color: #EE7800;
      }

      &.active {
        color: #EE7800;
      }
    }
  }

  .search-tab-result {
    font-size: 14px;
  }

  .designer-card {
    .person-img {
      width: 100%;
      height: 80px;
      max-width: 80px;
      background-size: cover;
      background-position: top;
      border-radius: 50%;
      box-shadow: 2px 2px 10px -2px rgba(0, 0, 0, 0.15);

      @media (max-width: 991px) {
        height: 70px;
        max-width: 70px;
      }

      @media (max-width: 767px) {
        height: 80px;
        max-width: 80px;
      }
    }

    .cover-img {
      height: 235px;
      object-fit: cover;

      @media (max-width: 991px) {
        height: 160px;
      }

      @media (max-width: 767px) {
        height: 235px;
      }
    }

    .card-body {
      section {
        width: 70%;
      }

      h5,
      h6 {
        line-height: 1.25;
        font-size: 0.875rem;
        // 換行
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
      }

      h5 {
        height: 1.09375rem;
        -webkit-line-clamp: 1;
      }

      h6 {
        -webkit-line-clamp: 2;
      }
    }
  }
}