/* Extra styles for taxonomy term list page (PC).
 * Loaded after statics/css/list.css via yejin_guanfang/taxonomy_term_list.
 */

.taxonomy-term-page {
  padding: 55px 0 70px;
  background: #fff;
}

.taxonomy-term-page > .wid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
}

.taxonomy-term-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e6edf2;
}

.taxonomy-term-title {
  float: none;
  width: auto;
}

.taxonomy-term-title h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  color: #01569b;
  font-weight: normal;
}

.taxonomy-term-title p {
  margin: 10px 0 0;
  font-size: 14px;
  color: #8ea3b5;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.taxonomy-term-nav {
  float: none;
  width: auto;
}

.taxonomy-term-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.taxonomy-term-nav li a {
  display: block;
  min-width: 112px;
  padding: 0 22px;
  border: 1px solid #d8e4ee;
  border-radius: 999px;
  background: #fff;
  color: #4e6477;
  font-size: 15px;
  line-height: 42px;
  text-align: center;
  transition: all 0.25s ease;
}

.taxonomy-term-nav li.active a,
.taxonomy-term-nav li a:hover {
  border-color: #0d8fd3;
  background: #0d8fd3;
  color: #fff;
}

.taxonomy-news-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.taxonomy-news-card {
  border: 1px solid #e5edf3;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.taxonomy-news-card:hover {
  border-color: #b9d7ea;
  box-shadow: 0 16px 36px rgba(23, 89, 140, 0.12);
  transform: translateY(-3px);
}

.taxonomy-news-card__link {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 30px;
}

.taxonomy-news-card__date {
  flex: 0 0 110px;
  text-align: center;
  border-right: 1px solid #e8eef3;
  padding-right: 28px;
}

.taxonomy-news-card__date strong {
  display: block;
  font-size: 44px;
  line-height: 1;
  color: #0d8fd3;
  font-weight: normal;
}

.taxonomy-news-card__date span {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  color: #8ca0b0;
}

.taxonomy-news-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

.taxonomy-news-card__body h3 {
  margin: 0;
  color: #243746;
  font-size: 24px;
  line-height: 1.45;
  font-weight: normal;
}

.taxonomy-news-card__body p {
  margin: 14px 0 0;
  color: #6b7f8e;
  font-size: 15px;
  line-height: 1.9;
  text-align: justify;
}

.taxonomy-news-card__thumb {
  flex: 0 0 220px;
  width: 220px;
  height: 140px;
  overflow: hidden;
  border-radius: 6px;
  background: #eef4f8;
}

.taxonomy-news-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.taxonomy-news-card:hover .taxonomy-news-card__thumb img {
  transform: scale(1.06);
}

.news-pager {
  padding: 40px 0 0;
  overflow: hidden;
}

.news-pager .pager {
  margin: 0;
}

.news-pager .pager__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.news-pager .pager__item a,
.news-pager .pager__item > span {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #e6e6e6;
  background: #fff;
  color: #666;
  line-height: 1;
}

.news-pager .pager__item.is-active a,
.news-pager .pager__item a:hover {
  border-color: #0993cf;
  color: #0993cf;
}

.news-pager .pager__item.is-active > span {
  border-color: #0993cf;
  color: #0993cf;
}

@media screen and (max-width: 1025px) {
  .taxonomy-term-page {
    padding: 24px 0 40px;
  }

  .taxonomy-term-page > .wid {
    padding: 0 18px;
  }

  .taxonomy-term-head {
    display: block;
    margin-bottom: 20px;
  }

  .taxonomy-term-title h2 {
    font-size: 26px;
  }

  .taxonomy-term-nav {
    margin-top: 16px;
  }

  .taxonomy-term-nav ul {
    justify-content: flex-start;
  }

  .taxonomy-term-nav li a {
    min-width: 0;
    padding: 0 16px;
    line-height: 36px;
    font-size: 14px;
  }

  .taxonomy-news-card__link {
    display: block;
    padding: 18px;
  }

  .taxonomy-news-card__date {
    border-right: 0;
    border-bottom: 1px solid #e8eef3;
    padding-right: 0;
    padding-bottom: 14px;
    margin-bottom: 14px;
    text-align: left;
  }

  .taxonomy-news-card__date strong,
  .taxonomy-news-card__date span {
    display: inline-block;
    vertical-align: baseline;
  }

  .taxonomy-news-card__date strong {
    font-size: 30px;
    margin-right: 8px;
  }

  .taxonomy-news-card__body h3 {
    font-size: 20px;
  }

  .taxonomy-news-card__body p {
    font-size: 14px;
    line-height: 1.7;
  }

  .taxonomy-news-card__thumb {
    width: 100%;
    height: 180px;
    margin-top: 16px;
  }
}
