.detailTitBox {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
}

.newsTit {
  font-size: 1.25rem;
  font-weight: bold;
  text-align: center;
}

.newsList {
  list-style: none;
  padding-left: 0;
  margin-top: 2rem;
}

.newsLink {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid rgb(123 137 159 / 40%);
  position: relative;
}

.newsList li:last-child .newsLink {
  border-bottom: 1px solid rgb(123 137 159 / 40%);
}

.newsLink .date {
  font-weight: bold;
  width: 100px;
  display: inline-block;
  text-align: center;
}

.newsLink .type {
  width: 50px;
  display: inline-block;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  margin: 0px 20px;
  color: #000;
  font-size: .9rem;
}

.newsLink .type.type--yellow {
  background: var(--main-color);
  color: #000
}

.newsLink .type.type--red {
  background: #F74A4A
}

.newsLink .tit {
  width: calc(100% - 200px);
  display: -webkit-box;
  white-space: normal;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  height: 22px;
  overflow: hidden;
}

.newsLink:before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100px;
  height: 2px;
  background: #7B899F;
}

.newsList li:last-child .newsLink:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100px;
  height: 2px;
  background: #7B899F;
}

.bg-important {
  background: #F74A4A
}

.bg-course {
  background: #12B840
}

.bg-normal {
  background: var(--main-color)
}

/*避免tinyMCE 的圖片跟 文字超出頁面*/
.txt {
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: 1rem;
  line-height: 24px;
}

.txt img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.txt p {
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
}

/*六圖六文*/
.flow-image {
  margin: 5rem 0;
  border: 5px double rgb(123 137 159 / 50%);
  border-radius: 24px;
}

.flow-image img {
  border-radius: 20px;
}

.pageContent table {
  max-width: 100%;
  width: 100%;
}

.tx01 {
  margin-bottom: 2rem;
}

.img-left,
.img-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.img-left figure,
.img-right figure {
  width: calc(50% - .5rem);
}

.img-right {
  flex-direction: row-reverse
}

.img-right.tx01 figure+.text {}

.img-left.tx01 figure+.text,
.img-right.tx01 figure+.text {
  width: calc(50% - .5rem);
}

.img_center {
  width: 33.3%;
}

.img-left img,
.img-right img {
  max-width: 100%;
}

.img_center img {
  float: left;
  padding: 1em;
  width: 100%;
  text-align: center;
}

.img-left figure:only-child,
.img-right figure:only-child {
  float: none;
  padding: 0;
  margin: auto;
  max-width: inherit;
  text-align: center;
  width: auto;
}

.tx01 a {
  color: #242f8a;
  text-decoration: underline;
}

.tx01 a:hover {
  opacity: .8
}

.tx01 figcaption {
  position: relative;
  padding: 1rem 0;
  font-size: 1rem;
}

.tx01 img {
  max-width: 100%;
  max-height: 100%;
  height: auto !important
}

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

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

.txt li {
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: 1rem;
  line-height: 24px;
}

/*折疊文章*/
.toggle-button {
  font-size: 1.2rem;
  display: inline-block;
  padding: 5px 12px 1px 12px;
  border: 1px solid grey;
  cursor: pointer;
}

@media (max-width: 400px) {
  .rule-article p {
    font-size: 0.875rem;
    /* 設定所有 <p> 標籤的文字為 12px */
    line-height: 1.125rem;
    /* 設定所有 <p> 標籤的行高為 18px */
  }

  .rule-article p strong {
    font-size: 1rem;
    /* 設定所有 <strong> 標籤內的文字為 16px */
    line-height: 20px;
    /* 設定 <strong> 標籤內的文字行高，根據需要調整 */
  }

  /* 如果 <span> 內的文字沒有被 <strong> 包圍，但需要是 18px，則需要這樣設定 */
  .rule-article p span {
    font-size: 1.125rem;
    line-height: 22px;
    /* 設定 <span> 標籤內的文字行高，根據需要調整 */
  }

  .rule-article p span strong {
    /* 重設 <span> 內的 <strong> 文字為 16px，行高與外層相同 */
    font-size: 1rem;
    line-height: 20px;
    /* 確保 <strong> 內的行高與外層 <span> 一致 */
  }

  .toggle-button {
    font-size: 1.2rem;
  }
}
