/* CSS Document */
.newsList .title, .newsList .Img::after, .newsList .Img::before {
  transition: all 0.4s ease-in-out;
}

.textEditor h2,
.textEditor .h2Title {
  position: relative;
  margin: 48px 0 20px;
  padding-bottom: 14px;
  color: #000;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
}
@media (max-width: 1180px) {
  .textEditor h2,
  .textEditor .h2Title {
    font-size: 24px;
  }
}
@media (max-width: 768px) {
  .textEditor h2,
  .textEditor .h2Title {
    font-size: 22px;
    margin: 36px 0 16px;
    padding-bottom: 12px;
  }
}
.textEditor h2::after,
.textEditor .h2Title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background-color: rgb(34, 213, 138);
}
@media (max-width: 768px) {
  .textEditor h2::after,
  .textEditor .h2Title::after {
    width: 40px;
    height: 3px;
  }
}
.textEditor h2.center::after,
.textEditor .h2Title.center::after {
  left: 50%;
  transform: translateX(-50%);
}
.textEditor h2:first-child,
.textEditor .h2Title:first-child {
  margin-top: 0;
}
.textEditor h3,
.textEditor .h3Title {
  margin: 32px 0 12px;
  padding: 6px 12px;
  border-left: 3px solid rgb(34, 213, 138);
  background-color: rgb(237.32, 251.64, 245.64);
  color: #222;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}
@media (max-width: 1180px) {
  .textEditor h3,
  .textEditor .h3Title {
    font-size: 18px;
  }
}
@media (max-width: 768px) {
  .textEditor h3,
  .textEditor .h3Title {
    font-size: 17px;
    margin: 24px 0 10px;
    padding: 5px 10px;
  }
}
.textEditor h3:first-child,
.textEditor .h3Title:first-child {
  margin-top: 0;
}

.newsInfoBox {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 15px;
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 1.35px;
}
.newsInfoBox .classTitle {
  color: #fff;
  background-color: #22d58a;
  border-radius: 30px;
  padding: 4px 16px;
}
.newsInfoBox .date {
  color: #555;
  font-weight: 600;
  font-family: "Rajdhani", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

.newsList {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.newsList .newsItem {
  position: relative;
}
.newsList .item {
  position: relative;
}
@media (min-width: 1181px) {
  .newsList .item:hover .Img::before, .newsList .item:hover .Img::after {
    opacity: 1;
  }
  .newsList .item:hover .Img::after {
    transition-delay: 0.1s;
    transform: translateY(0px);
  }
  .newsList .item:hover .title {
    color: #22d58a;
  }
}
.newsList .Img {
  position: relative;
}
.newsList .Img::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(34, 213, 138, 0.65);
  left: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
}
.newsList .Img::after {
  content: "";
  position: absolute;
  width: 29.6%;
  height: auto;
  aspect-ratio: 1/0.9;
  -webkit-mask: url("../images/index/logoIcon.png") no-repeat center center/contain;
          mask: url("../images/index/logoIcon.png") no-repeat center center/contain;
  background-color: #fff;
  z-index: 2;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}
.newsList .Img img {
  width: 100%;
  height: auto;
  display: block;
  backface-visibility: hidden;
}
.newsList .Txt {
  width: 100%;
  padding-top: 10px;
}
.newsList .newsInfoBox {
  margin-bottom: 10px;
}
.newsList .newsInfoBox .classTitle {
  font-size: 15px;
}
.newsList .title {
  color: #222222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.36px;
}
@media (max-width: 840px) {
  .newsList {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .newsList {
    grid-template-columns: repeat(1, 1fr);
  }
}
