/* Figma 377:67 / 377:138 手機 logo；桌面 377:66 */
.header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 23px;
  z-index: 11;
  display: block;
  width: 58.17%;
  max-width: 235px;
  aspect-ratio: 297 / 116;
  background: url(../img/news-logo.png) no-repeat left center / contain;
}

@media (min-width: 1024px) {
  .header-logo {
    left: 34px;
    transform: none;
    top: 24px;
    width: 297px;
    max-width: none;
  }
}

.page-news {
  background-color: #0060a5;
  /* 為固定區 logo 留空（Figma NEWS 約 top 129） */
}

@media (max-width: 1024px) {
  .page-news {
    padding-top: 120px;
  }
}

.page-news__inner {
  padding-left: 22px;
  padding-right: 22px;
}

/* title-news.png 518×162 → 2x 顯示 259 */
.page-news__title {
  width: 259px;
  max-width: 100%;
}

@media (min-width: 1024px) {

  .page-news__inner {
    padding-left: 0;
    padding-right: 0;
  }
}

/* 列表：手機直向日期 + 標題（Figma 377:67） */
.page-news .news-list > li {
  margin-bottom: 25px;
}

.page-news .news-date {
  position: relative;
  display: inline-flex;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 50px;
  background-color: #fff340;
  color: #00497e;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: none;
}

.page-news .news-link {
  position: relative;
  z-index: 1;
  display: flex;
  margin-top: 0;
  margin-left: 0;
  min-height: 75px;
  width: 100%;
  align-items: center;
  border-radius: 20px;
  background-color: #fff340;
  padding: 15px;
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
  color: #00497e;
  box-shadow: 6px 6px 0 0 #00497e;
  text-align: justify;
}

.page-news .news-link:hover {
  text-decoration: underline;
}

.page-news .news-pagination {
  gap: 1.25rem;
}

.page-news .news-pagination__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.page-news .news-pagination__arrow img,
.page-news .news-pagination__arrow-img {
  display: block;
  width: 24px;
  height: auto;
}

.page-news .news-pagination__arrow-img.is-prev {
  transform: rotate(180deg);
}

.page-news .news-pagination__page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.page-news .news-pagination__page.is-active {
  background-color: #fff340;
  color: #00497e;
}

@media (min-width: 1024px) {
  .page-news .news-list > li {
    margin-bottom: 20px;
    padding-top: 21px;
  }

  .page-news .news-date {
    position: absolute;
    left: 0;
    top: 0;
    padding: 0 23px 0 17px;
    box-shadow: 6px 6px 0 0 #00497e;
  }

  .page-news .news-link {
    margin-left: 118px;
    min-height: 57px;
    width: auto;
    border-radius: 57px;
    padding: 14px 24px 14px 17px;
    font-size: 20px;
    line-height: normal;
  }

  .page-news .news-pagination {
    gap: 2rem;
  }

  .page-news .news-pagination__arrow-img {
    width: 45px;
  }
}

/* Figma 369:256 / 377:138 — 最新消息內頁 */
.news-detail {
  position: relative;
  max-width: 929px;
  margin: 0 auto 28px;
  padding-top: 20px;
}

.news-detail__date {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 6px 20px;
  border-radius: 50px;
  background-color: #fff340;
  color: #00497e;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.news-detail__card {
  background-color: #fff;
  border-radius: 20px;
  padding: 48px 15px 28px;
}

.news-detail__title {
  margin: 0 0 16px;
  color: #00497e;
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
  text-align: justify;
}

.news-detail__content {
  color: #000;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.5px;
  text-align: justify;
}

.news-detail__content img {
  display: block;
  width: 100%;
  max-width: 575px;
  height: auto;
  margin: 0 0 20px;
}

.news-detail__content p {
  margin: 0 0 1em;
}

.news-detail__content p:last-child {
  margin-bottom: 0;
}

.news-detail__back {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 8px;
  color: #fff340;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.news-detail__back:hover {
  opacity: 0.9;
}

.news-detail__back-arrow {
  display: block;
  width: 45px;
  height: 8px;
  background-color: #fff340;
  -webkit-mask: url(../img/news-page-arrow-l.svg) center / contain no-repeat;
  mask: url(../img/news-page-arrow-l.svg) center / contain no-repeat;
  transform: rotate(180deg);
}

@media (min-width: 1024px) {
  .news-detail {
    margin-bottom: 36px;
    padding-top: 21px;
  }

  .news-detail__date {
    padding: 6px 23px 6px 17px;
  }

  .news-detail__card {
    border-radius: 57px;
    padding: 50px 41px 40px;
  }

  .news-detail__title {
    margin-bottom: 20px;
    font-size: 24px;
    line-height: 1.4;
  }

  .news-detail__back {
    margin-bottom: 0;
  }
}

/* 手機雲朵與內容重疊區 */
.page-news__cloud-m {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  display: block;
  width: 100%;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .page-news__cloud-m {
    display: none;
  }
}
