@charset "UTF-8";
.news-detail {
  padding: 100px 0 80px;
}
@media all and (max-width: 991px) {
  .news-detail {
    padding: 40px 0 53px;
  }
}
.news-detail .article-date {
  font-family: "Poppins", serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  padding: 8px 10px;
  margin-bottom: 9px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  background-color: #222222;
  color: white;
  border-radius: 5px;
  -webkit-transition: background-color 0.4s ease;
  transition: background-color 0.4s ease;
}
@media all and (max-width: 991px) {
  .news-detail .article-date {
    font-size: 12px;
    padding: 7px 7px;
  }
}
.news-detail .article-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 2;
  padding-bottom: 22px;
  margin-bottom: 12px;
  border-bottom: 1px solid #D9D9D9;
}
@media all and (max-width: 991px) {
  .news-detail .article-title {
    line-height: 1.4;
    margin-bottom: 16px;
  }
}
.news-detail .editor_content {
  margin-bottom: 80px;
}
@media all and (max-width: 991px) {
  .news-detail .editor_content {
    margin-bottom: 0;
  }
}
.news-detail .donate-btn {
  margin: 0 auto;
  display: block;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  background-color: #462897;
  border-radius: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 20px 55px;
  -webkit-transition: background-color 0.4s ease;
  transition: background-color 0.4s ease;
}
@media all and (max-width: 991px) {
  .news-detail .donate-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 6px;
    padding: 12px 0;
    z-index: 10;
  }
}
.news-detail .donate-btn .text {
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  color: #fff;
}
.news-detail .donate-btn .icon {
  position: relative;
  width: 38px;
  height: auto;
  aspect-ratio: 1;
}
@media all and (max-width: 991px) {
  .news-detail .donate-btn .icon {
    width: 31px;
  }
}
.news-detail .donate-btn .icon::before, .news-detail .donate-btn .icon::after {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-transition: opacity 0.4s ease;
  transition: opacity 0.4s ease;
}
.news-detail .donate-btn .icon::before {
  background: url("../images/media/coffee.svg") center/contain no-repeat;
  opacity: 1;
}
.news-detail .donate-btn .icon::after {
  background: url("../images/media/coffee_hover.svg") center/contain no-repeat;
  opacity: 0;
}
@media all and (min-width: 992px) {
  .news-detail .donate-btn:hover {
    background-color: #FCA400;
  }
  .news-detail .donate-btn:hover .icon::before {
    opacity: 0;
  }
  .news-detail .donate-btn:hover .icon::after {
    opacity: 1;
  }
}

.recommended-articles {
  background-color: #FCC900;
  padding: 75px 0 130px;
}
@media all and (max-width: 991px) {
  .recommended-articles {
    padding: 40px 0 69px;
  }
}
.recommended-articles .recommended-sec-title {
  font-size: 26px;
  font-weight: 500;
  line-height: 2;
  color: #3A1D87;
  margin-bottom: 40px;
}
@media all and (max-width: 991px) {
  .recommended-articles .recommended-sec-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.8;
  }
}
.recommended-articles .recommended-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 20px;
}
@media all and (max-width: 991px) {
  .recommended-articles .recommended-list {
    gap: 45px;
    margin-bottom: 40px;
  }
}
.recommended-articles .recommended-card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 30px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
@media all and (min-width: 992px) {
  .recommended-articles .recommended-card:hover .img-wrap::before {
    opacity: 0.4;
  }
  .recommended-articles .recommended-card:hover .article-title {
    color: #462897;
  }
}
@media all and (max-width: 991px) {
  .recommended-articles .recommended-card {
    gap: 15px;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
  }
}
.recommended-articles .recommended-card .img-wrap {
  position: relative;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  width: 200px;
  height: 130px;
  border-radius: 15px;
  overflow: hidden;
  background: url("../images/common/default.webp") center/cover no-repeat;
}
@media all and (min-width: 992px) {
  .recommended-articles .recommended-card .img-wrap::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-color: #fff;
    opacity: 0;
    -webkit-transition: opacity 0.4s ease;
    transition: opacity 0.4s ease;
  }
}
@media all and (max-width: 991px) {
  .recommended-articles .recommended-card .img-wrap {
    width: 26vw;
    height: auto;
    aspect-ratio: 1/0.65;
    border-radius: 8px;
  }
}
.recommended-articles .recommended-card .img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.recommended-articles .recommended-card .article-title span {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  height: 3.6em;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* 第幾行要顯示點點點 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  height: 100%;
  max-height: 3.6em;
  color: #222222;
  -webkit-transition: color 0.4s ease;
  transition: color 0.4s ease;
}
@media all and (max-width: 991px) {
  .recommended-articles .recommended-card .article-title span {
    font-size: 16px;
    line-height: 1.4;
    max-height: unset;
    height: auto;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }
}
.recommended-articles .back-btn {
  margin: 0 auto;
}

#donate-popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  -webkit-transition: opacity 0.3s ease, visibility 0.3s ease;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#donate-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.donate-popup-box {
  position: relative;
  background-color: #fff;
  border-radius: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  overflow: hidden;
}
@media all and (min-width: 992px) {
  .donate-popup-box {
    width: 640px;
    height: 420px;
  }
}
@media all and (max-width: 991px) {
  .donate-popup-box {
    width: calc(100% - 57px);
    max-height: 65vh;
    border-radius: 5px;
  }
}

.popup-close {
  position: absolute;
  z-index: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
@media all and (min-width: 992px) {
  .popup-close {
    top: 22px;
    right: 22px;
  }
}
@media all and (max-width: 991px) {
  .popup-close {
    top: 10px;
    right: 10px;
  }
}
.popup-close .close-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}
.popup-close .close-icon::before, .popup-close .close-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 1.5px;
  background-color: #462897;
}
.popup-close .close-icon::before {
  -webkit-transform: translate(-50%, -50%) rotate(45deg);
          transform: translate(-50%, -50%) rotate(45deg);
}
.popup-close .close-icon::after {
  -webkit-transform: translate(-50%, -50%) rotate(-45deg);
          transform: translate(-50%, -50%) rotate(-45deg);
}

.popup-content {
  position: relative;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-height: 0;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  padding: 52px 36px 52px 47px;
}
@media all and (max-width: 991px) {
  .popup-content {
    padding: 46px 24px 32px;
  }
}
.popup-content .editor_content {
  position: relative;
  z-index: 1;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.popup-content .editor_content::-webkit-scrollbar {
  width: 4px;
}
.popup-content .editor_content::-webkit-scrollbar-track {
  background-color: #e0e0e0;
}
.popup-content .editor_content::-webkit-scrollbar-thumb {
  background-color: #462897;
  border-radius: 16px;
}
.popup-content::before {
  position: absolute;
  z-index: 0;
  right: -19px;
  bottom: -15px;
  content: "";
  -webkit-mask: url("../images/media/media_detail_deco.svg") center/contain no-repeat;
          mask: url("../images/media/media_detail_deco.svg") center/contain no-repeat;
  background-color: #f7f7f7;
  width: 469px;
  height: 303px;
}
@media all and (max-width: 991px) {
  .popup-content::before {
    max-width: 469px;
    width: 61vw;
    height: auto;
    aspect-ratio: 1/0.646;
    right: 0;
    bottom: -1.4vw;
  }
}

.media-detail-page ~ footer {
  background-color: #FCC900;
}
@media all and (max-width: 991px) {
  .media-detail-page ~ footer .footer {
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding-bottom: 93px;
  }
}
.media-detail-page ~ footer .social-list a {
  background-color: #222222;
}
@media all and (min-width: 992px) {
  .media-detail-page ~ footer .social-list a:hover {
    background-color: #462897;
  }
}
.media-detail-page ~ footer .copyright {
  color: #222222;
}

.fix-share-btns {
  position: fixed;
  z-index: 10;
  right: 4.1%;
  top: 62%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  padding: 25px 13px;
  border: 1px solid #D9D9D9;
  border-radius: 30px;
}
@media all and (max-width: 991px) {
  .fix-share-btns {
    right: 0;
    top: 68%;
    padding: 15px 6px;
  }
}
.fix-share-btns .fb-share,
.fix-share-btns .linkedin-share,
.fix-share-btns .line-share {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 34px;
  min-height: 34px;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}
@media all and (max-width: 991px) {
  .fix-share-btns .fb-share,
  .fix-share-btns .linkedin-share,
  .fix-share-btns .line-share {
    width: 24px;
    min-height: 24px;
  }
}
@media all and (min-width: 992px) {
  .fix-share-btns .fb-share:hover,
  .fix-share-btns .linkedin-share:hover,
  .fix-share-btns .line-share:hover {
    opacity: 0.75;
  }
}
.fix-share-btns .fb-share .share-icon,
.fix-share-btns .linkedin-share .share-icon,
.fix-share-btns .line-share .share-icon {
  display: block;
  width: 34px;
  height: 34px;
  background-color: #222222;
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
}
@media all and (max-width: 991px) {
  .fix-share-btns .fb-share .share-icon,
  .fix-share-btns .linkedin-share .share-icon,
  .fix-share-btns .line-share .share-icon {
    width: 24px;
    height: 24px;
  }
}
.fix-share-btns .fb-share {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #D9D9D9;
}
@media all and (max-width: 991px) {
  .fix-share-btns .fb-share {
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
}
.fix-share-btns .linkedin-share {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #D9D9D9;
}
@media all and (max-width: 991px) {
  .fix-share-btns .linkedin-share {
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
}
.fix-share-btns .fb-share .share-icon {
  -webkit-mask-image: url("../images/common/fb.svg");
          mask-image: url("../images/common/fb.svg");
}
.fix-share-btns .linkedin-share .share-icon {
  -webkit-mask-image: url("../images/common/linkedin.svg");
          mask-image: url("../images/common/linkedin.svg");
}
.fix-share-btns .line-share .share-icon {
  -webkit-mask-image: url("../images/common/line.svg");
          mask-image: url("../images/common/line.svg");
}