.discountsList .swiper-pagination {
  bottom: 15px;
}

.discountsList .swiper-pagination .swiper-pagination-bullet {
  background: rgb(232, 224, 213);
  opacity: 1;
  width: 36px;
  height: 4px;
  border-radius: 0;
  margin: 0 4px;
}

.discountsList .swiper-pagination .swiper-pagination-bullet-active {
  background: var(--Brand-Blue, #005bab);
}

.discountsList .swiper-paginationEdit {
  margin-top: 28px;
  margin-bottom: 56px;
  width: 306px;
  height: 46.868px;
}

.discountsList .swiper-paginationEdit .swiper-button-prev,
.discountsList .swiper-paginationEdit .swiper-button-next {
  width: 46.868px;
  height: 46.868px;
  background: #fff;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  transition: background-color 0.5s ease;
}

.discountsList .swiper-paginationEdit .swiper-button-prev svg,
.discountsList .swiper-paginationEdit .swiper-button-next svg {
  width: 11px;
  height: 20px;
}

.discountsList .swiper-paginationEdit .swiper-button-prev::after,
.discountsList .swiper-paginationEdit .swiper-button-next::after {
  content: "";
}

.discountsList .swiper-paginationEdit .swiper-button-prev:hover,
.discountsList .swiper-paginationEdit .swiper-button-next:hover {
  background: var(--Brand-Blue, #005bab);
}

.discountsList .swiper-paginationEdit .swiper-button-prev:hover svg,
.discountsList .swiper-paginationEdit .swiper-button-next:hover svg {
  transition: stroke 0.3s ease;
}

.discountsList .swiper-paginationEdit .swiper-button-prev:hover svg path,
.discountsList .swiper-paginationEdit .swiper-button-next:hover svg path {
  stroke: #fff;
}

.discountsList {
  padding-top: 60px;
}
.discountsList .discountsList-top {
  margin-bottom: 25px;
  position: relative;
}
.discountsList .discountsList-top h3 {
  color: var(--Brand-Blue, #005bab);
  text-align: left;
  font-family: "Noto Sans HK";
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.33;
  letter-spacing: 4.8px;
  position: relative;
}
.discountsList .discountsList-top h3::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 2px;
  background: var(--Brand-Blue, #005bab);
  bottom: -4px;
  left: 0;
}
.discountsList .discountsList-top .input-group {
  max-width: 151px;
  width: 151px;
  position: absolute;
  cursor: pointer;
  top: -7px;
  right: 0px;
}
.discountsList .discountsList-top .input-group input {
  max-width: 151px;
  padding: 10px 20px;
  color: var(--Brand-Blue, #005bab);
  font-family: "Noto Sans HK";
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  border-radius: 100px;
  border: 2px solid var(--Brand-Blue, #005bab);
  opacity: 0.95;
  background: var(--White, #fff);
  box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.3);
  position: relative;
}
.discountsList .discountsList-top .input-group input::-moz-placeholder {
  color: var(--Brand-Blue, #005bab);
}
.discountsList .discountsList-top .input-group input::placeholder {
  color: var(--Brand-Blue, #005bab);
}
.discountsList .discountsList-top .input-group form button {
  background: url("/static/img/doctors/search.svg") no-repeat;
  background-size: contain;
  width: 16px;
  height: 17px;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  animation: searchIcon 1s linear infinite;
}
.discountsList .discountsList-main {
  padding: 0 15px;
}
.discountsList .discountsList-main .discountsList-Box .discountsList-Box-List {
  gap: 15px;
}
.discountsList
  .discountsList-main
  .discountsList-Box
  .discountsList-Box-List
  .discountsList-Box-List-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 430px;
  padding: 15px;
  border-radius: 10px;
  background: var(--Grey-Background, #f7f7f7);
}
.discountsList
  .discountsList-main
  .discountsList-Box
  .discountsList-Box-List
  .discountsList-Box-List-item
  .discountsList-Box-List-item-img
  img {
  max-width: 400px;
  width: 100%;
  height: auto;
}
.discountsList
  .discountsList-main
  .discountsList-Box
  .discountsList-Box-List
  .discountsList-Box-List-item
   .discounts-title { 
      margin-top: 15px;
  overflow: hidden;
  color: var(--Brand-Blue, #005bab);
  /* text-overflow: ellipsis;
  white-space: nowrap; */
  font-family: "Noto Sans HK";
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 2.4px;
  position: relative;
}
.discountsList
  .discountsList-main
  .discountsList-Box
  .discountsList-Box-List
  .discountsList-Box-List-item
  .discounts-intro {
 overflow: hidden;
    color: var(--Grey-Deep, #4d4d4d);
    text-align: justify;
    text-overflow: ellipsis;
    font-family: "Noto Sans HK";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.875;
    letter-spacing: 1.6px;
    position: relative;
}


/* 模糊遮罩效果 */
.discounts-intro::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  /* background: linear-gradient(to bottom, transparent, #f7f7f7 80%); */
   background: linear-gradient(to bottom, 
        transparent 0%,
        rgba(247, 247, 247, 0.05) 10%,
        rgba(247, 247, 247, 0.15) 20%,
        rgba(247, 247, 247, 0.3) 35%,
        rgba(247, 247, 247, 0.5) 50%,
        rgba(247, 247, 247, 0.7) 65%,
        rgba(247, 247, 247, 0.85) 80%,
        rgba(247, 247, 247, 0.95) 90%,
        #f7f7f7 100%);
  pointer-events: none;
}
.expand-checkbox:checked ~ .discounts-intro::after {
  display: none;
}
  /* 文字變化實現 */
        .expand-label::before {
            content: "展開";
        }
        
        .expand-checkbox:checked ~  .expand-label::before {
            content: "收起";
        }
.expand-checkbox {
  display: none;
}

.expand-label {
  color: #005bab;
  font-size: 20px;
  font-family: "Noto Sans HK";
  display: flex;
  justify-content: start;
  align-items: center;
}
.expand-label svg {
  margin-left: 8px;
  vertical-align: middle;
  width: auto;
}
.expand-checkbox:checked ~ .expand-label svg{
  transform: rotate(180deg);
}

/* 使用:target方法的样式 */
.discounts-intro {
  max-height: 80px;
  transition: max-height 0.6s ease;
}

.discounts-intro:target {
  max-height: 500px;
}

.discounts-intro:target::after {
  opacity: 0;
}

.expand-checkbox:checked ~ .discounts-intro {
  max-height: 100%;
}

.discountsList
  .discountsList-main
  .discountsList-Box
  .discountsList-Box-List
  .discountsList-Box-List-item
  > p {
  overflow: hidden;
  color: var(--Grey-Deep, #4d4d4d);
  text-align: justify;
  text-overflow: ellipsis;
  font-family: "Noto Sans HK";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.875;
  letter-spacing: 1.6px;
}
.discountsList
  .discountsList-main
  .discountsList-Box
  .discountsList-Box-List
  .discountsList-Box-List-item
  .CoreHighlight-Box-btn {
  margin-top: 10px;
}

.page-pagination {
  gap: 4px;
}

.page-pagination > a {
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
  display: inline-block;
  width: 40px;
  height: 4px;
  background: var(--Grand-Grey, #e8e0d5);
  color: #fff;
  transition: background-color 0.3s ease;
  padding: 0;
  border: none;
}

.page-num-current {
  background: var(--Brand-Blue, #005bab) !important;
}

@media screen and (min-width: 768px) {
  .category-filter {
    display: flex;
    justify-content: center;
    box-shadow: 0px 0px 66.9px 0px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 50px;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    border-radius: 6px;
  }
  .category-filter__item {
    padding: 5px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .category-filter__item:not(:last-child) {
    border-right: 1px solid var(--Grand-Grey, #e8e0d5);
  }
  .category-filter__item-link {
    display: block;
    color: var(--Brand-Blue, #005bab);
    font-family: "Noto Sans HK";
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 2.4px;
    position: relative;
  }
  .category-filter__item--active {
    background-color: var(--Brand-Blue, #005bab) !important;
    color: var(--White, #fff);
  }
  .category-filter__item--active .category-filter__item-link {
    color: var(--White, #fff);
  }
  .page-pagination {
    gap: 11px;
  }
  .page-pagination > a {
    width: 71px;
    height: 4px;
  }

  .terms-conditions {
    margin-top: 100px;
    margin-bottom: 50px;
  }
  .terms-title {
    color: #333;

    margin-bottom: 30px;

    font-family: "Noto Sans HK";
    font-size: 30px;
    font-weight: bold;
  }

  .terms-list {
    padding-left: 20px; /* 给数字留出空间 */
    margin: 0;
  }

  .terms-item {
    list-style: decimal; /* 显示数字 */
    padding: 8px 0;
    line-height: 1.6;
    color: #666;
    font-size: 20px;
    font-family: "Noto Sans HK";
  }

  .terms-item:last-child {
    border-bottom: none;
  }
}
@media screen and (min-width: 992px) {
  .input-group form {
    width: 100%;
    color: var(--Brand-Blue, #005bab);
  }
  .input-group form input {
    width: 100%;
  }
  .discountsList {
    background-image: url("/static/img/section-overview-bgline.svg");
    background-repeat: no-repeat;
    background-position: 100% 84px;
  }
  .discountsList .discountsList-top {
    margin-bottom: 45px;
    position: relative;
  }
  .discountsList .discountsList-top h3 {
    color: var(--Brand-Blue, #005bab);
    text-align: center;
    font-family: "Noto Sans HK";
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.33;
    letter-spacing: 4.8px;
    position: relative;
  }
  .discountsList .discountsList-top h3::after {
    content: "";
    position: absolute;
    width: 110px;
    height: 2px;
    background: var(--Brand-Blue, #005bab);
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
  }
  .discountsList .discountsList-top .input-group {
    max-width: 220px;
    width: 220px;
    position: absolute;
    right: 0;
    top: -15px;
  }
  .discountsList .discountsList-top .input-group input {
    max-width: 220px;
    padding: 14px 20px;
    color: var(--Brand-Blue, #005bab);
    font-family: "Noto Sans HK";
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 2.6px;
    border-radius: 100px;
    border: 3px solid var(--Brand-Blue, #005bab);
    opacity: 0.95;
    background: var(--White, #fff);
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.3);
    position: relative;
  }
  .discountsList .discountsList-top .input-group form button {
    background: url("/static/img/doctors/search.svg") no-repeat;
    background-size: contain;
    width: 28px;
    height: 30px;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
  }
  .discountsList .discountsList-main {
    padding: 0;
  }
  .discountsList .swiper-pagination {
    bottom: 30px;
  }
  .discountsList .swiper-pagination .swiper-pagination-bullet {
    background: rgb(232, 224, 213);
    opacity: 1;
    width: 71px;
    height: 4px;
    border-radius: 0;
    margin: 0 11px;
  }
  .discountsList .swiper-pagination .swiper-pagination-bullet-active {
    background: var(--Brand-Blue, #005bab);
  }
  .discountsList .swiper-paginationEdit {
    margin-top: 60px;
    width: 634px;
    height: 72px;
  }
  .discountsList .swiper-paginationEdit .swiper-button-prev,
  .discountsList .swiper-paginationEdit .swiper-button-next {
    top: 0;
    transform: translateY(20%);
    width: 71.404px;
    height: 71.403px;
    background: #fff;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    transition: background-color 0.5s ease;
  }
  .discountsList .swiper-paginationEdit .swiper-button-prev svg,
  .discountsList .swiper-paginationEdit .swiper-button-next svg {
    width: 16px;
    height: 28px;
  }
}

@media screen and (max-width: 768px) {
  .category-filter {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    justify-content: center;
    box-shadow: 0px 0px 66.9px 0px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 50px;
    margin-left: auto;
    margin-right: auto;

    border-radius: 6px;
    flex-wrap: wrap;
  }
  .category-filter__item {
    padding: 5px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-wrap: nowrap;
  }
  .category-filter__item:not(:last-child) {
    /* border-right: 1px solid var(--Grand-Grey, #e8e0d5); */
  }
  .category-filter__item-link {
    display: block;
    color: var(--Brand-Blue, #005bab);
    font-family: "Noto Sans HK";
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 2.4px;
    position: relative;
  }
  .category-filter__item--active {
    background-color: var(--Brand-Blue, #005bab) !important;
    color: var(--White, #fff);
  }
  .category-filter__item--active .category-filter__item-link {
    color: var(--White, #fff);
  }
  .page-pagination {
    gap: 11px;
  }
  .page-pagination > a {
    width: 71px;
    height: 4px;
  }

  .terms-conditions {
    margin-top: 50px;
    margin-bottom: 50px;
  }
  .terms-title {
    color: #333;

    margin-bottom: 20px;

    font-family: "Noto Sans HK";
    font-size: 20px;
    font-weight: bold;
  }

  .terms-list {
    padding-left: 20px; /* 给数字留出空间 */
    margin: 0;
  }

  .terms-item {
    list-style: decimal; /* 显示数字 */
    padding: 8px 0;
    line-height: 1.6;
    color: #666;
    font-size: 16px;
    font-family: "Noto Sans HK";
  }

  .terms-item:last-child {
    border-bottom: none;
  }
}
