.investment-section {
  max-width: 82rem;
  margin: 6rem auto 0;
  padding-top: 10px;
}

.online-investment__inner-box {
  position: relative;
  background: white;
  padding: 5rem 2.5rem 2.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
}

.online-investment__tabs-container {
  position: absolute;
  transform: translateX(-48%) translateY(-176%);
  display: flex;
  justify-content: center;
  z-index: 2;
  width: 90%;
}

.online-investment__label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  background-color: #eaf3ea;
  border-top: 4px solid #fff;
  border-left: 4px solid #fff;
  border-right: 4px solid #fff;
  border-bottom: none;
  color: #006a4e;
  font-weight: bold;
  font-size: 1.125rem;
  border-radius: 1.25rem 1.25rem 0 0;
  cursor: pointer;
  white-space: nowrap;
  min-height: 3.5rem;
  min-width: 16rem;

  transform-origin: top center;
  transform: scale(0.8);
  transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out, color 0.3s ease-in-out;

  box-shadow: 0 -4px 4px -2px #dbeadf, -4px 0 4px -2px #dbeadf, 4px 0 4px -2px #dbeadf;
}

.online-investment__label + .online-investment__label {
  margin-left: -8%;
}

.online-investment__label .tab-icon {
  width: 6rem;
  transform: translateX(40%);
  object-fit: contain;

  transform-origin: bottom center;
  transition: transform 0.3s ease-in-out;
}

.online-investment__label.active {
  transform: scale(1) translateY(-14%);
  background-color: #fff;
  color: #333;
  z-index: 3;
  padding-bottom: 1rem;
  border: none;
  box-shadow: none;
}

.online-investment__label.active .tab-label-inner p {
  display: inline-block;
  transform: translateY(10%);
  transition: transform 0.3s;
}

.online-investment__label.active .tab-icon {
  transform: scale(1.1) translateX(30%);
}

.tab-content {
  display: none;
  padding-left: 30px;
  padding-right: 30px;
}

.tab-content.active {
  display: block;
}

.promo-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.promo-text {
  flex: 1;
  max-width: 680px;
}

.promo-text p {
  font-size: 24px;
  line-height: 40px;
}

.promo-highlight {
  color: #206351;
  font-weight: bold;
  font-family: "Noto Sans TC", Arial, sans-serif !important;
  line-height: 34px;
  font-size: 34px;
}

.promo-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 300px;
}

.promo-image p {
  font-size: 20px;
  text-align: center;
}

.promo-image img {
  height: auto;
}

.terms-link {
  display: block;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #006a4e;
  text-decoration: underline;
}

.remarks-list {
  font-size: 0.875rem;
  line-height: 1.5;
  padding-left: 1.25rem;
  color: #666;
}

.remarks-list li {
  margin-bottom: 0.5rem;
}

.online-investment__label p {
  font-size: 36px !important;
}

.investment-section-remarks-title {
  font-size: 14px;
}

.investment-section-remarks li {
  font-size: 18px;
  line-height: 28px;
}

.tab-card {
  min-width: unset;
  width: 260px;
  min-height: 360px;
  justify-content: space-between;
}

.section-row .section-col {
  width: unset;
  max-width: unset;
  padding-bottom: 18px;
}

.tab-card h4 {
  font-size: 20px;
  padding: unset;
}

.tab-card-top .gray-box {
  margin: unset;
}

.or-ball {
  width: 50px;
  height: 50px;
  padding: unset;
  top: calc(50% - 50px);
  left: -34px;
}

@media (max-width: 1280px) {
  .investment-section {
    padding-top: 0px;
  }

  .online-investment__label {
    transform: translateY(0%);
    min-width: 100px;
    margin: 0 0.25rem;
    padding: 0.5rem 0.75rem;
  }

  .online-investment__label p {
    font-size: 18px !important;
  }

  .online-investment__label + .online-investment__label {
    margin-left: 0%;
  }

  .online-investment__label .tab-icon {
    display: none;
  }

  .online-investment__tabs-container {
    transform: scale(1) translateX(-50%) translateY(-170%);
  }

  .online-investment__label.active {
    transform: translateY(0%);
  }

  .promo-content {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .promo-text,
  .promo-image {
    margin: 0 0 1.5rem 0;
    max-width: unset;
  }
  .promo-highlight {
    font-size: 24px;
  }

  .promo-image {
    align-self: flex-start;
  }

  .section-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
  }
  .section-col {
    width: calc(50% - 1rem);
    padding: 0 0.5rem 1rem;
    box-sizing: border-box;
  }

  .section-row .section-col:nth-child(2n + 1) {
    clear: left;
  }

  .online-investment__inner-box {
    padding: 3rem 1rem 1rem;
  }
  .promo-text p {
    font-size: 1.125rem;
  }
  .investment-section-remarks-title {
    font-size: unset;
    padding-bottom: 10px;
  }
  .investment-section-remarks li {
    font-size: 18px;
  }
}

@media (max-width: 1028px) {
  .tab-inner-title .green-highlight {
    line-height: 24px;
    font-size: 24px;
  }

  .section-row .section-col {
    max-width: 280px;
  }

  .or-ball {
    display: none;
  }
}
