.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)
}

.detailName {
  line-height: 1.5;
}

/*避免tinyMCE 的圖片跟 文字超出頁面*/
.detailContent {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.detailContent img {
  width: 100%;
  object-fit: contain;
}

/* 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;
}

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

.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;
}


/*附件區*/
.attachment {
  position: relative
}

.attachment:before {
  content: '';
  width: 100%;
  height: 1px;
  background: rgb(123 137 159 / 50%);
  position: absolute;
  top: -10px;
  left: -20px;
}

.attachment ul li {
  border-left: 10px solid rgb(123 137 159 / 50%);
  padding: 15px;
  list-style-type: none;
  font-size: 1.2rem;
  background: rgb(255 229 0 / 20%);
  width: 90%
}

.attachment ul li a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment ul li:hover {
  background: rgb(255 229 0 / 40%);
}
