@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;500;600;700&display=swap');

.gi-section-title {
  box-sizing: border-box;
  width: min(100%, var(--gi-max-width-desktop, 360px));
  margin-right: auto;
  margin-left: auto;
  color: var(--gi-title-color, #264081) !important;
  text-align: var(--gi-align-desktop, center);
  transform: translate(var(--gi-group-offset-x-desktop, 0px), var(--gi-group-offset-y-desktop, 0px));
}

.gi-section-title,
.gi-section-title * {
  box-sizing: border-box;
  font-family: "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", serif !important;
}

.gi-section-title__heading {
  margin: 0;
  color: inherit !important;
  font-size: var(--gi-title-desktop, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .08em;
}

.gi-section-title__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  margin-top: var(--gi-title-gap-desktop, 10px);
  margin-bottom: var(--gi-subtitle-gap-desktop, 8px);
  margin-left: auto;
  margin-right: auto;
  gap: 12px;
}

.gi-section-title--left .gi-section-title__divider {
  margin-left: 0;
  margin-right: 0;
  justify-content: flex-start;
}

.gi-section-title__icon {
  display: block;
  flex: 0 0 var(--gi-icon-desktop, 10px);
  width: var(--gi-icon-desktop, 10px);
  height: var(--gi-icon-desktop, 10px);
  background-color: currentColor !important;
  -webkit-mask-image: url('../../theme/default/image/gi_section_title/icon-mask.png');
  mask-image: url('../../theme/default/image/gi_section_title/icon-mask.png');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.gi-section-title__line {
  display: block;
  flex: 0 0 var(--gi-line-width-desktop, 170px);
  width: var(--gi-line-width-desktop, 170px);
  max-width: calc(100vw - 80px);
  height: var(--gi-line-thickness-desktop, 1px);
  background: currentColor !important;
  opacity: .72;
}

.gi-section-title__subtitle {
  color: inherit !important;
  font-size: var(--gi-subtitle-desktop, 13px);
  font-weight: var(--gi-subtitle-weight-desktop, 700);
  line-height: 1.45;
  letter-spacing: .08em;
}

@media (max-width: 767px) {
  .gi-section-title {
    width: min(100%, var(--gi-max-width-mobile, 320px));
    padding-right: 16px;
    padding-left: 16px;
    text-align: var(--gi-align-mobile, center);
    transform: translate(var(--gi-group-offset-x-mobile, 0px), var(--gi-group-offset-y-mobile, 0px));
  }

  .gi-section-title__heading {
    font-size: var(--gi-title-mobile, 26px);
  }

  .gi-section-title__divider {
    margin-top: var(--gi-title-gap-mobile, 8px);
    margin-bottom: var(--gi-subtitle-gap-mobile, 8px);
    gap: 10px;
  }

  .gi-section-title--left-mobile .gi-section-title__divider {
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-start;
  }

  .gi-section-title__icon {
    flex-basis: var(--gi-icon-mobile, 9px);
    width: var(--gi-icon-mobile, 9px);
    height: var(--gi-icon-mobile, 9px);
  }

  .gi-section-title__line {
    flex-basis: var(--gi-line-width-mobile, 118px);
    width: var(--gi-line-width-mobile, 118px);
    height: var(--gi-line-thickness-mobile, 1px);
  }

  .gi-section-title__subtitle {
    font-size: var(--gi-subtitle-mobile, 12px);
    font-weight: var(--gi-subtitle-weight-mobile, 700);
  }
}
