/* 2023-11-23 Eric 讓tiny table 有框線 */
table,
th,
td {
  border: 1px solid #3D434F;
  padding: 0.5rem;
}

/* 2023-11-23 Eric 他們要求連結要藍色加上底線 */
.txt a {
  color: #2676f3;
  text-decoration: underline;
}

/*案例精選*/
.galleryBox {
  position: relative;
}

.galleryZone {
  padding-top: 5rem;
}

.related-card {
  border: 1px solid rgb(148 163 185 / 50%);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.related-card__body {
  position: relative;
  font-size: .9rem;
}

.related-card__body .date {
  display: none;
}

.article-p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
  height: 4rem;
}

.listName {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
  height: 3.75rem;
}

.infoBtm {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tags a,
.tags span {
  color: #1F4F7F;
  margin-right: 0.5rem;
}

.tags a {
  pointer-events: none;
  cursor: default;
}

.search-empty {
  font-size: 1.125rem;
}

.infoBtm .tags {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 10px;
  margin-bottom: 0.5em;
}

.infoBtm .btnStyle {
  width: auto;
  text-align: center;
  font-size: 0.9rem;
}

.submitBox .btnStyle {
  color: black;
  -webkit-appearance: none;
}

.related-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.related-card__body .infoBtm {
  flex-direction: column;
  align-items: stretch;
}

.related-card__body .infoBtm .tags {
  width: 100%;
}

.related-card__body .infoBtm a {
  margin-left: auto;
}

.green {
  background-color: #12B840;
}

.red {
  background: #F74A4A;
}

/*切換上下頁*/
.tabChangeBox {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 3rem;
}

.tabChangeBtn {
  background: inherit;
  border: none;
  font-size: 2rem
}

@media (max-width: 600px) {
  .tabChangeBox button {
    font-size: 0.9rem;
  }
}

/*案例分享*/
.relevantZone {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgb(123 137 159 / 50%);
}

.searchResult .mainTit:focus {
  outline: 3px dotted currentColor;
  outline-offset: 0.5rem;
}

.changeBox:hover,
.changeBox:focus-visible {
  color: black;
  background: #fff;
}

.changeBox.active {
  color: #fff;
  background: var(--main-color);
}

.changeBox.active:hover,
.changeBox.active:focus-visible {
  color: #fff;
  background: var(--main-color);
}

.underline:hover {
  background: #8483D3;
  color: #242429;
}

@media (max-width: 575.98px) {
  .infoBtm .btnStyle--sm {
    width: 40%;
    padding: 3px;
    font-size: 1rem;
    margin-bottom: 0;
  }

  .tags a {
    font-size: 0.8rem;
  }

}

.related-card__media {
  height: 16rem;
  border-bottom: 1px solid rgb(148 163 185 / 50%);
}

@media (min-width: 992px) {
  .related-card__media {
    height: auto;
    border-right: 1px solid rgb(148 163 185 / 50%);
    border-bottom: 0;
  }
}
