:root {
  --page-width: 970px;
  --content-width: 930px;
  --card-width: 906px;
  --green-dark: #055541;
  --green-deep: #004d41;
  --gold: #d59459;
  --grey-text: #515452;
  --mint: #f1f7dc;
  --f-main: 'Noto Sans TC', 'Noto Sans HK', sans-serif;
  --f-row: 'Noto Sans HK', 'Noto Sans TC', sans-serif;
}

html[lang="eng"] {
  --f-main: 'Noto Sans', 'Noto Sans HK', sans-serif;
  --f-row: 'Noto Sans', 'Noto Sans HK', sans-serif;
}

html[lang="zh-cn"] {
  --f-main: 'Noto Sans SC', sans-serif;
  --f-row: 'Noto Sans SC', sans-serif;
}

#wrap {
  min-width: 0;
  background: none;
}

.page {
  max-width: var(--page-width);
  margin: 0 auto;
  background-color: #fff;
}

.hero {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 55.258%;
  overflow: hidden;
}

.hero img {
  position: absolute;
  left: 0.03%;
  top: 0;
  width: 111.6%;
  height: 113.43%;
  max-width: none;
  margin: 0;
}

.p88_content {
  position: relative;
  background: linear-gradient(to bottom,
    rgb(248, 251, 238) 34.56%,
    rgb(237, 248, 231) 50%,
    rgb(229, 246, 227) 65%,
    rgb(223, 244, 224) 80%,
    rgb(219, 243, 222) 100%);
  overflow: hidden;
}

.p88_pattern {
  position: absolute;
  inset: 0;
  background-image: url(pattern.svg);
  background-size: 100% 100%;
  transform: scaleX(-1);
  opacity: 0.12;
  pointer-events: none;
}

.p88_main {
  position: relative;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 32px 0 40px;
}

.p88_cluster {
  display: block;
  width: 342px;
  height: auto;
  margin: 0 auto 32px;
  max-width: 100%;
}

.p88_title {
  font-family: var(--f-main) !important;
  font-weight: 900;
  font-size: 36px;
  line-height: normal;
  text-align: center;
  margin: 0 0 32px;
}

html[lang="eng"] .p88_title {
  font-size: 34px;
}

.p88_title .t1 { color: var(--green-dark); }
.p88_title .t2 { color: var(--gold); }

.p88_intro {
  font-family: var(--f-main);
  text-align: center;
  margin: 0;
}

.p88_intro p {
  font-size: 16px;
  line-height: 20px;
  color: var(--grey-text);
  margin: 0 0 8px;
}

.p88_intro p.offer1 {
  font-weight: 900;
  font-size: 20px;
  line-height: normal;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.p88_intro p.offer1 .reg {
  font-weight: 400;
  font-size: 16px;
  color: var(--grey-text);
}

.p88_intro p.narrow {
  max-width: 448px;
  margin-left: auto;
  margin-right: auto;
}

.p88_offer2 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--f-main);
  font-weight: 700;
  font-size: 20px;
  line-height: normal;
  color: var(--green-dark);
}

.p88_offer2 .big {
  font-weight: 900;
  font-size: 24px;
}

.p88_offer2 img.fun_dollar { width: 170.5px; height: 20px; }
.p88_offer2 img.fun_dollars { width: 184.76px; height: 20px; }

.p88_curly {
  display: block;
  width: 546px;
  height: 48px;
  max-width: 100%;
  margin: 0 auto 24px;
}

.p88_curly.bottom {
  margin: 24px auto;
  transform: rotate(180deg);
}

.p88_tagline {
  display: block;
  width: 550px;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
}

.p88_tab_area {
  max-width: var(--card-width);
  margin: 0 auto;
}

.p88_tabs {
  display: flex;
}

.p88_tab {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 100px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(to right, #f5ffcf, #e6f0c1);
  cursor: pointer;
}

.p88_tab.active {
  background: #fff;
  border-bottom: 8px solid var(--green-dark);
  cursor: default;
}

.p88_tab:before,
.p88_tab:after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.p88_tab:before {
  inset: 0;
  border-radius: inherit;
  background: #fff;
  opacity: 0;
  transition: opacity .2s ease;
}

.p88_tab:after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: var(--green-dark);
  transition: height .2s ease;
}

@media (hover: hover) {
  .p88_tab:not(.active):hover:before { opacity: .45; }
  .p88_tab:not(.active):hover:after { height: 8px; }
}

.p88_tab img {
  display: block;
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

.p88_tab .logo_cuhk { width: 113px; }
.p88_tab .logo_stpaul { width: 162px; }
.p88_tab .logo_union { width: 192px; }

.p88_panel { display: none; }

.p88_panel.active {
  display: block;
  animation: p88_panel_in .2s ease both;
}

@keyframes p88_panel_in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .p88_tab:before,
  .p88_tab:after { transition: none; }
  .p88_panel.active { animation: none; }
}

.p88_card {
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p88_card_head {
  background: var(--mint);
  padding: 24px 12px;
}

.p88_card_head p {
  min-height: 55px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--f-row);
  font-weight: 700;
  font-size: 22px;
  line-height: 26px;
  color: var(--green-deep);
  text-align: center;
  margin: 0;
}

.p88_card_head sup {
  font-size: 14.19px;
  line-height: 0;
  vertical-align: super;
}

.p88_rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p88_row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.p88_row_left {
  width: 300px;
  min-height: 115px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--f-row);
  font-weight: 700;
  font-size: 22px;
  line-height: 26px;
  color: var(--green-deep);
}

.p88_row_left p { margin: 0; width: 100%; font-size: inherit; line-height: inherit; }

.p88_row_left .orig {
  display: block;
  font-weight: 400;
  font-size: 16px;
}

.p88_row_desc {
  width: 605px;
  min-height: 116px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding-left: 16px;
}

.p88_row_desc p {
  width: 573px;
  max-width: 100%;
  font-family: var(--f-row);
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: #222;
  margin: 0;
}

.p88_row_desc .rx,
.p88_desc3 .rx {
  display: block;
  font-size: 10px;
  padding-left: 4px;
}

html[lang="eng"] .p88_row_left {
  width: 397px;
  min-height: 116px;
  box-sizing: border-box;
  padding: 0 16px;
  font-size: 20px;
}

html[lang="eng"] .p88_row_desc {
  width: 473px;
  padding: 32px 16px;
}

html[lang="eng"] .p88_row_desc p { width: 100%; }

.p88_row_cu {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.p88_row_cu .p88_row_left { min-height: 115px; }

html[lang="eng"] .p88_row_cu .p88_row_left {
  width: 300px;
  padding: 0 24px;
  font-size: 22px;
}

.p88_col_icon {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.p88_col_icon .icons {
  display: flex;
  gap: 4px;
  align-items: flex-start;
}

.p88_col_icon .icons span {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.p88_col_icon .icons img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.p88_col_icon .lbl {
  width: 149px;
  font-family: var(--f-row);
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: var(--green-deep);
  text-align: center;
  margin: 0;
}

.p88_row_cu .p88_desc3 {
  flex: 1 1 0;
  min-width: 0;
  min-height: 120px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 8px 12px 8px 4px;
}

.p88_row_cu .p88_desc3 p {
  width: 100%;
  font-family: var(--f-row);
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: #222;
  margin: 0;
}

.p88_line {
  height: 0;
  width: 842px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  border-top: 1px solid #b6d102;
}

.p88_bar {
  height: 4px;
  background: linear-gradient(to right, #005740 0.484%, #b6d102 46.639%, #055541 100%);
}

.p88_card .p88_card_head.mid { margin: 0; }

.p88_cta_wrap {
  text-align: center;
  margin: 24px 0 0;
}

.p88_cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 16px 8px 24px;
  border-radius: 5.372px;
  background: linear-gradient(to top, #0e533c, #0d7c2b);
  font-family: var(--f-main);
  font-weight: 400;
  font-size: 16px;
  line-height: normal;
  color: #fff;
  text-decoration: none;
}

.p88_cta:hover,
.p88_cta:focus {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}

.p88_cta .icn {
  position: relative;
  width: 26px;
  height: 26px;
  overflow: hidden;
}

.p88_cta .icn img {
  position: absolute;
  inset: 23.5% 22.18% 23.17% 22.17%;
}

#footer {
  background: none;
}

.footer_bot_area {
  max-width: var(--content-width);
  margin: 0 auto;
}

.p88_notes {
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: #000;
}

.p88_notes .nt {
  font-weight: bold;
  font-size: 11px;
  line-height: 14.3px;
  margin: 0 !important;
}

.p88_notes ol {
  list-style: decimal;
  margin: 0;
  padding-left: 28.5px;
}

.p88_notes ol li {
  font-size: 11px;
  line-height: 14.3px;
  margin: 0;
  margin-left: 0 !important;
}

.p88_lending {
  font-family: Arial, sans-serif;
  font-size: 16px !important;
  line-height: 15px !important;
  color: #000;
  margin: 16px 0 !important;
}

.hidden .btn_tnc,
.hidden .btn_tnc:focus {
  float: left !important;
  background: none !important;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: normal;
  color: #000 !important;
  text-decoration: underline;
  line-height: 30px;
  padding-left: 0 !important;
  padding-right: 0;
}

.hidden .btn_tnc:after {
  background: none !important;
  content: '' !important;
  text-indent: 0 !important;
  width: 6px;
  height: 6px;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  margin-bottom: 3px;
  transform: rotate(45deg);
}

.hidden .btn_tnc.expanded:after {
  transform: rotate(-135deg);
  margin-bottom: -1px;
}

.hidden.tnc .content {
  height: auto !important;
  overflow: visible !important;
  background: transparent !important;
  clear: both;
  font-family: Arial, sans-serif;
  font-size: 11px;
  line-height: 1.6;
  color: #000 !important;
}

.hidden.tnc .content > ol {
  padding-left: 18px;
  margin: 8px 0;
}

.hidden.tnc .content ol li { margin-bottom: 4px; }

.hidden.tnc .content ol.sub {
  list-style: none;
  padding-left: 0;
  margin: 4px 0;
}

.hidden.tnc .content ol.sub .subnum { font-weight: bold; }

.tnc_table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  background: #fff;
}

.tnc_table th,
.tnc_table td {
  border: 1px solid #ccc;
  padding: 6px 8px;
  font-size: 11px;
  text-align: left;
  vertical-align: top;
}

.tnc_table th { background: #f5f5f5; }

.hidden.tnc .content table,
.hidden.tnc .content thead,
.hidden.tnc .content tbody,
.hidden.tnc .content tfoot,
.hidden.tnc .content tr,
.hidden.tnc .content th,
.hidden.tnc .content td {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

.tnc_table td ol,
.tnc_table td ul {
  margin: 2px 0 6px;
  padding-left: 20px;
}

.tnc_table td ol { list-style: decimal; }

.tnc_table td ul { list-style: disc; }

#footer .footer_bot_area .tnc_table td li {
  margin-left: 0;
  margin-bottom: 2px;
}

.tnc_apx_head { margin: 12px 0 4px; }

.footer_state_area {
  max-width: var(--content-width);
  margin: 0 auto;
}

.footer_state_area .copy * { font-size: 13px !important; }

@media (max-width: 768px) {
  .hero_wrap .HSB_logo,
  .hero_wrap .HSB_logo img { width: 200px; height: auto; }
  .p88_main { padding: 24px 16px 32px; }
  .p88_title,
  html[lang="eng"] .p88_title { font-size: 24px; }
  .p88_tab { padding: 8px; }
  .p88_row,
  .p88_row_cu {
    flex-direction: column;
    align-items: center;
  }
  .p88_row_left,
  html[lang="eng"] .p88_row_left,
  html[lang="eng"] .p88_row_cu .p88_row_left {
    width: 100%;
    min-height: 0;
    padding: 8px 16px;
    box-sizing: border-box;
  }
  .p88_row_desc,
  html[lang="eng"] .p88_row_desc {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 0 16px 12px;
    box-sizing: border-box;
    text-align: center;
  }
  .p88_row_desc p { width: 100%; }
  .p88_col_icon { min-height: 0; padding: 8px 0 4px; }
  .p88_row_cu .p88_desc3 {
    flex: none;
    display: block;
    width: 100%;
    min-height: 0;
    padding: 0 16px 12px;
    text-align: center;
  }
  .p88_desc3 .rx { padding-left: 0; }
  .footer_bot_area,
  .footer_state_area { padding: 0 16px; }
}
