.announcement-page {
  width: 100%;
}

.announcement-body {
  background: #FFFFFF;
  padding: 24px 16px;
  display: flex;
  justify-content: center;
}
@media (min-width: 997px) {
  .announcement-body {
    padding: 16px 0 40px;
  }
}

.announcement-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 997px) {
  .announcement-container {
    gap: 32px;
  }
}

.announcement-title-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 12px;
}

.announcement-title {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 1.2px;
  color: #303D4A;
  margin: 0;
}
@media (min-width: 997px) {
  .announcement-title {
    font-weight: 400;
    font-size: 40px;
    line-height: 1.2;
    letter-spacing: 1.6px;
  }
}

.announcement-subtitle {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.64px;
  color: #8A9EB2;
  margin: 0;
}

.service-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-accordion-item {
  background: #FBFDFE;
  border: 1px solid #E6EBEF;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.service-accordion-text-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.service-accordion-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-accordion-tag {
  background: #F0F2F5;
  border-radius: 4px;
  padding: 4px 10px;
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.56px;
  color: #445769;
  white-space: nowrap;
}

.service-accordion-date {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.96px;
  color: #8A9EB2;
  white-space: nowrap;
}

.service-accordion-title {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0.8px;
  color: #048295;
  margin: 0;
}

.service-accordion-chevron {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #048295;
  transition: transform 0.2s ease;
}
.service-accordion-chevron svg {
  width: 20px;
  height: 20px;
}

.service-accordion-body {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.64px;
  color: #445769;
  margin: 0;
}

.service-accordion-item.is-collapsed .service-accordion-body {
  display: none;
}
.service-accordion-item.is-collapsed .service-accordion-chevron {
  transform: rotate(180deg);
}

.service-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.service-pagination-btn {
  width: 32px;
  height: 32px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #303D4A;
}
.service-pagination-btn:hover:not(:disabled) {
  background: #E9F8FB;
}
.service-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.service-pagination-btn svg {
  width: 16px;
  height: 16px;
}

.service-pagination-page {
  width: 32px;
  height: 32px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.64px;
  color: #303D4A;
}
.service-pagination-page:hover:not(.is-current) {
  background: #E9F8FB;
}
.service-pagination-page.is-current {
  background: #048295;
  color: #FFFFFF;
}
.service-pagination-page.is-current:hover {
  background: #065D6B;
}

.service-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 35, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}
.service-modal-overlay.is-open {
  display: flex;
}

.service-modal-card {
  width: 100%;
  max-width: 380px;
  min-width: 280px;
  background: #FBFDFE;
  border: 1px solid #E6EBEF;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 997px) {
  .service-modal-card {
    max-width: 440px;
  }
}

.service-modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.service-modal-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-modal-tag {
  background: #F0F2F5;
  border-radius: 4px;
  padding: 4px 10px;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.56px;
  color: #445769;
  white-space: nowrap;
}

.service-modal-date {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.96px;
  color: #8A9EB2;
  white-space: nowrap;
}

.service-modal-close-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #445769;
}

.service-modal-title {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0.8px;
  color: #048295;
  margin: 0;
}

.service-modal-body {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.64px;
  color: #445769;
  margin: 0;
}

.service-modal-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.service-modal-checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.service-modal-checkbox-input {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #303D4A;
  background: #FFFFFF;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
}
.service-modal-checkbox-input:hover {
  background: #E6EBEF;
  border-color: #222B34;
}
.service-modal-checkbox-input:active {
  background: #C7D1DB;
  border-color: #181F25;
}
.service-modal-checkbox-input:focus-visible {
  outline: 2px solid #1458B8;
  outline-offset: 3px;
  border-radius: 6px;
}
.service-modal-checkbox-input:checked {
  background: #048295;
  border-color: #048295;
}
.service-modal-checkbox-input:checked:hover {
  background: #065D6B;
  border-color: #065D6B;
}
.service-modal-checkbox-input:checked:active {
  background: #04444E;
  border-color: #04444E;
}
.service-modal-checkbox-input:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8' fill='none'%3E%3Cpath d='M1 4L3.6 6.6L9 1' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.service-modal-checkbox-label {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.64px;
  color: #303D4A;
}

.service-modal-subtle-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px;
  border-radius: 99px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.64px;
  color: #048295;
  white-space: nowrap;
}
.service-modal-subtle-button:hover {
  background: #E9F8FB;
}
.service-modal-subtle-button:active {
  background: #DAEEF1;
}
.service-modal-subtle-button:focus-visible {
  background: transparent;
  outline: 2px solid #1458B8;
  outline-offset: 4px;
}
.service-modal-subtle-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: transparent;
}

/* Isolate template styles from Bootstrap and the homepage. */
.announcement-page, .service-modal-overlay { font-family: "Noto Sans TC", sans-serif; }
.announcement-page *, .service-modal-overlay * { box-sizing: border-box; }
.announcement-page { min-height: 55vh; }
.service-modal-overlay { z-index: 11000; }
.service-modal-card { max-height: calc(100dvh - 32px); overflow-y: auto; min-width: 0; }
.service-modal-subtle-button { text-decoration: none; }
.service-modal-checkbox-group { margin: 0; }
.service-modal-checkbox-label { white-space: nowrap; }
body.service-announcement-open { overflow: hidden !important; }
.service-accordion-header:focus-visible { outline: 2px solid #1458B8; outline-offset: 4px; }
.service-modal-close-btn:focus,
.service-modal-close-btn:focus-visible { outline: none; box-shadow: none; }
@media (max-width: 380px) {
.service-modal-footer-row { flex-wrap: wrap; gap: 8px; }
}
