/* slider-extended-reading.css — 延伸閱讀 */

.tc-extended-reading {
  padding: 48px 0;
  color: #0b2f53;
}

.tc-extended-reading__slider {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
}

.tc-extended-reading__header {
  width: 100%;
  max-width: 212px;
  min-height: 48px;
  background-color: var(--color-primary);
  border: 1px solid #0b2f53;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin: 0 auto 34px;
  position: relative;
}

.tc-extended-reading__title {
  margin: 0;
  color: #000;
  font-weight: 500;
  text-align: center;
  align-content: center;
  width: 100%;
  max-width: 193px;
  min-height: 46.5px;
  position: relative;
  margin-top: -19.5px;
  background-color: var(--color-white);
  border: 1px solid var(--color-primary);
}

.tc-extended-reading__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
}

.tc-extended-reading__card {
  width: 100%;
  min-height: 454px;
  background-color: #fff;
  box-shadow: 0 4.9px 10.9px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.tc-extended-reading__thumb-link {
  display: block;
  width: 100%;
  aspect-ratio: 380 / 236;
  overflow: hidden;
}

.tc-extended-reading__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tc-extended-reading__thumb--placeholder {
  background-color: #d9d9d9;
}

.tc-extended-reading__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  flex: 1;
}

.tc-extended-reading__meta {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.tc-extended-reading__article-title {
  margin: 0;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.tc-extended-reading__article-title a {
  text-decoration: none;
  color: #000;
}

.tc-extended-reading__article-title a {
  transition: color 0.2s ease;
}

.tc-extended-reading__article-title a:hover {
  color: #e2ae3b;
  text-decoration: none;
}

.tc-extended-reading__excerpt {
  margin: 0;
  color: #000;
  overflow-wrap: break-word;
  word-break: break-word;
}

.tc-extended-reading__date {
  color: #666;
  flex-shrink: 0;
}

.tc-extended-reading__more {
  width: 100%;
  max-width: 245px;
  min-height: 40px;
  background-color: #fff;
  border: 1px solid #0b2f53;
  color: #0b2f53;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  margin-top: auto;
  box-sizing: border-box;
  text-decoration: none;
}

.tc-extended-reading__more:hover {
  background-color: #0b2f53;
  color: #fff;
}

.tc-extended-reading__empty {
  text-align: center;
  color: #666;
  padding: 48px 0;
  margin: 0;
}

.tc-extended-reading__footer {
  width: 100%;
  max-width: 1220px;
  margin: 40px auto 0;
  display: flex;
  justify-content: center;
}

.tc-extended-reading__btn {
  min-width: 178px;
  min-height: 48px;
  background-color: #0b2f53;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 28px;
  box-sizing: border-box;
  text-decoration: none;
  letter-spacing: 0.1em;
  font-weight: 600;
  transition: filter 0.3s ease;
}

.tc-extended-reading__btn-text {
  font-size: 1.5rem;
}

.tc-extended-reading__btn:hover {
  filter: brightness(0.9);
}

.tc-extended-reading__btn-arrow {
  font-weight: 400;
}

/* 平板 */
@media (max-width: 992px) {
  .tc-extended-reading__body {
    gap: 28px;
    padding: 24px 20px;
  }

  .tc-extended-reading__btn-text {
    font-size: 1rem;
  }
}

/* 手機 */
@media (max-width: 480px) {
  .tc-extended-reading__btn-text {
    font-size: 10px;
  }
  .tc-extended-reading {
    padding: 24px 0 45px;
  }

  .tc-extended-reading__card {
    min-height: 0;
    border-radius: 2px;
    overflow: hidden;
    max-width: 340px;
    margin: 0 auto;
  }
  .tc-extended-reading__thumb-link {
    aspect-ratio: 16 / 10;
  }
  .tc-extended-reading__body {
    gap: 14px;
    padding: 20px 18px 22px;
  }
  .tc-extended-reading__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .tc-extended-reading__article-title {
    font-size: 17px;
    line-height: 1.5;
  }
  .tc-extended-reading__date {
    font-size: 13px;
    order: -1;
  }
  .tc-extended-reading__excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .tc-extended-reading__more {
    width: 100%;
    max-width: 120px;
    min-height: 38px;
    margin-top: 4px;
    border: none;
    background-color: #e2ae3b;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    border-radius: 18px;
    align-self: center;
  }

  .tc-extended-reading__header {
    background-image: url(../../../assets/images/tc-extended-reading__title-bg.svg);
    background-color: transparent;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    border: none;
    min-height: 30px;
    height: 30px;
    max-width: 103.6px;
    padding: 0;
    margin: 0 auto 11px;
  }
  .tc-extended-reading__title {
    margin-top: 0;
    background-color: transparent;
    border: none;
    font-size: 13px;
  }

  .tc-extended-reading__footer {
    margin-top: 28px;
  }
  .tc-extended-reading__btn {
    min-width: 0;
    width: 100%;
    max-width: 63px;
    height: 20px;
    font-size: 10px;
    gap: 2.4px;
    border-radius: 2.4px;
    min-height: auto;
    padding: 0;
    line-height: 1;
    font-weight: 400;
  }

  .tc-extended-reading__btn-arrow {
    font-size: 6px;
  }
}
