.row {
  margin: -10px;
}

.tabs-nav {
  display: flex;
  list-style: none;
  border-bottom: 2px solid #ddd;
  flex-wrap: wrap;
}

.sort-nav {
  display: flex;
  list-style: none;
  border-bottom: none;
  flex-wrap: nowrap;
  margin-top: 10px;
  justify-content: flex-end;
}

.sort-nav li {
  margin-right: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.sort-nav li:hover {
  background-color: #ddd;
}

.team-nav li {
  background-color: #f4f4f4;
  border-radius: var(--bs-border-radius-pill) !important;
  padding: 0.15rem 1rem;
}

.team-nav li a {
  color: #333;
  /* 讓連結顏色繼承父元素的顏色（白色） */
  text-decoration: none;
  /* 移除下劃線 */
}

.team-nav {
  display: flex;
  list-style: none;
  border-bottom: none;
  flex-wrap: nowrap;
  margin-top: 10px;
}

.team-nav li {
  margin-right: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: white;

}

.team-nav li:hover {
  background-color: #ddd;
}

.team-nav li.active {
  background-color: #cbc7c7;
}

.tabs-nav li {
  margin-right: 5px;
}

.tabs-nav a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #333;
  background-color: #f1f1f1;
  border-radius: 5px 5px 0 0;
  transition: all 0.3s ease;
}

.tabs-nav a.active {
  background-color: #fa5b0c;
  color: white;
}

.tabs-nav a:hover:not(.active) {
  background-color: #ddd;
}

.card-img-box {
  height: 170px;
  overflow: hidden;
  background: #f5f5f5;
  border-top-left-radius: var(--bs-card-inner-border-radius);
  border-top-right-radius: var(--bs-card-inner-border-radius);
}

.card-img-box>img {
  /*width: 100%;*/
  width: auto;
  height: 100%;
  /*object-fit: contain;*/
  object-position: center;
  display: block;
  margin: 0 auto;
}

.card-title a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-body {
  padding: 0.5rem;
  min-height: 100px;
}

.card-text {
  padding: 0.5rem;
}

.card .btn-primary {
  padding: 4px 8px 2px 8px;
  font-size: 1rem;
}

.btn.btn-outline {
  border: 1px solid #337ab7;
  color: #337ab7;
}

.btn.btn-outline:hover {
  background-color: #337ab7;
  color: #fff;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.step-item {
  counter-increment: step-counter;
  /* 自動增加數字 */
  padding-left: 30px;
  /* 留出空間給號碼圖示 */
  position: relative;
}

.step-item::before {
  content: counter(step-counter);
  /* 顯示計數器數字 */

  /* 圖示樣式 (類似第一種方法) */
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid red;
  border-radius: 50%;
  color: red;
  font-weight: bold;
  font-size: 12px;
}

.hidden {
  display: none !important;
}

.modal-body {
    font-size: 1rem;
}

.info-wrapper {
    padding: 40px;
}

.form-select:focus {
  padding: .375rem 2.25rem .375rem .75rem !important;
}

/* 圖片滑動效果 */
.card-img-box>img {
  max-height: 100% !important;
  transform: scale(1, 1);
  transition: all 0.15s ease-out;
}

.category-item:hover .card-img-box>img {
  transform: scale(1.1, 1.1);
}
.card-text:last-child {
  margin-top: auto;
}

.card-img-box>img {
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  /*
  border-top-left-radius: var(--bs-card-inner-border-radius);
  border-top-right-radius: var(--bs-card-inner-border-radius);
  */
}

@media (max-width: 576px) {
  .tabs-nav a {
    padding: 10px 10px;
  }
  .card-img-box {
    height: 220px;
  }
  .card-img-box>img {
    width: 100%;
  }
  .card .btn-primary {
    font-size: 1.5rem;
  }
}
