/* Start custom CSS for html, class: .elementor-element-eed4292 *//* =========================================================
   台鋼保險小學堂｜首頁 CSS｜Banner 風格調整版
   主色：深藍 #061F33｜台鋼金 #F2A900｜第一、二區段 icon 更新
   ========================================================= */

.tsg-school {
  --tsg-navy: #061f33;
  --tsg-navy-2: #0b304c;
  --tsg-navy-3: #123e5e;
  --tsg-gold: #f2a900;
  --tsg-gold-soft: #f7c85f;
  --tsg-cream: #f8f5ee;
  --tsg-paper: #fcfbf8;
  --tsg-light: #eef3f6;
  --tsg-white: #ffffff;
  --tsg-text: #172936;
  --tsg-muted: #5d6d78;
  --tsg-line: rgba(6, 31, 51, 0.13);
  --tsg-shadow: 0 18px 45px rgba(6, 31, 51, 0.1);
  position: relative;
  overflow: hidden;
  color: var(--tsg-text);
  background: var(--tsg-paper);
  font-family: "Noto Serif TC", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-weight: 500;
  line-height: 1.75;
}

.tsg-school,
.tsg-school * {
  box-sizing: border-box;
}

.tsg-school a {
  color: inherit;
  text-decoration: none;
}

.tsg-school svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tsg-school-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* 共用按鈕 */
.tsg-school-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  min-height: 52px;
  padding: 12px 24px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.tsg-school-btn:hover {
  transform: translateY(-3px);
}

.tsg-school-btn--gold {
  color: var(--tsg-navy) !important;
  background: var(--tsg-gold);
  box-shadow: 0 12px 28px rgba(242, 169, 0, 0.24);
}

.tsg-school-btn--gold:hover {
  background: var(--tsg-gold-soft);
  box-shadow: 0 16px 34px rgba(242, 169, 0, 0.32);
}

.tsg-school-btn--outline {
  color: var(--tsg-white) !important;
  border-color: rgba(255, 255, 255, 0.65);
  background: transparent;
}

.tsg-school-btn--outline:hover {
  color: var(--tsg-navy) !important;
  background: var(--tsg-white);
}

/* 主視覺 */
.tsg-school-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--tsg-white);
  background:
    radial-gradient(circle at 77% 38%, rgba(242, 169, 0, 0.14), transparent 26%),
    linear-gradient(115deg, #061f33 0%, #082a44 58%, #0c3b5c 100%);
}

.tsg-school-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.48;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to right, black, transparent 88%);
}

.tsg-school-hero::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -255px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(242, 169, 0, 0.35);
  border-radius: 50%;
}

.tsg-school-watermark {
  position: absolute;
  left: -42px;
  bottom: -48px;
  width: 300px;
  opacity: 0.045;
  transform: rotate(-90deg);
  pointer-events: none;
}

.tsg-school-watermark img {
  display: block;
  width: 100%;
  height: auto;
}

.tsg-school-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr);
  align-items: center;
  gap: 72px;
  padding: 82px 0 92px;
}

.tsg-school-eyebrow,
.tsg-school-heading__eyebrow,
.tsg-entry-card__eyebrow,
.tsg-knowledge-feature__eyebrow,
.tsg-school-cta__eyebrow {
  margin: 0;
  color: var(--tsg-gold);
  font-family: "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.tsg-school-hero h1 {
  margin: 16px 0 20px;
  color: var(--tsg-white);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.23;
  letter-spacing: 0.025em;
}

.tsg-school-hero h1 span {
  color: var(--tsg-gold);
}

.tsg-school-hero__description {
  max-width: 620px;
  margin: 0;
  color: rgba(255,255,255,0.83);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.9;
  white-space: pre-line;
}

.tsg-school-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.tsg-school-hero__visual {
  position: relative;
  width: min(100%, 490px);
  aspect-ratio: 1 / 1;
  margin-left: auto;
}

.tsg-school-orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
}

.tsg-school-orbit--outer {
  inset: 7%;
}

.tsg-school-orbit--inner {
  inset: 21%;
  border-color: rgba(242,169,0,0.35);
}

.tsg-school-shield {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 168px;
  height: 198px;
  padding: 28px;
  color: var(--tsg-gold);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 26px 60px rgba(0,0,0,0.22);
  backdrop-filter: blur(9px);
  transform: translate(-50%, -50%);
}

.tsg-school-shield svg {
  stroke-width: 3;
}

.tsg-school-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 148px;
  padding: 12px 16px;
  color: var(--tsg-white);
  background: rgba(6,31,51,0.72);
  border: 1px solid rgba(255,255,255,0.19);
  box-shadow: 0 16px 35px rgba(0,0,0,0.18);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 700;
}

.tsg-school-float--one { left: 0; top: 18%; }
.tsg-school-float--two { right: 0; top: 32%; }
.tsg-school-float--three { left: 11%; bottom: 12%; }

.tsg-school-mini-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 7px;
  flex: 0 0 auto;
  color: var(--tsg-gold);
  border: 1px solid rgba(242,169,0,0.55);
  border-radius: 50%;
}

/* 快速導覽 */
.tsg-school-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  color: var(--tsg-white);
  background: rgba(6,31,51,0.97);
  border-bottom: 1px solid rgba(255,255,255,0.11);
  box-shadow: 0 8px 20px rgba(6,31,51,0.12);
}

.tsg-school-nav__scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.tsg-school-nav__scroll::-webkit-scrollbar { display: none; }

.tsg-school-nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 19px 24px;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.tsg-school-nav a::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 3px;
  background: var(--tsg-gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.tsg-school-nav a:hover {
  color: var(--tsg-white);
  background: rgba(255,255,255,0.05);
}

.tsg-school-nav a:hover::after { transform: scaleX(1); }

/* 共用區段 */
.tsg-school-section {
  position: relative;
  padding: 86px 0;
  scroll-margin-top: 78px;
}

.tsg-school-section--light { background: var(--tsg-light); }
.tsg-school-section--cream { background: var(--tsg-cream); }
.tsg-school-section--navy {
  color: var(--tsg-white);
  background:
    radial-gradient(circle at 8% 10%, rgba(242,169,0,0.09), transparent 26%),
    linear-gradient(135deg, var(--tsg-navy), #0a304b);
}
.tsg-school-section--faq { background: #f0f4f6; }

.tsg-school-heading {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin-bottom: 42px;
}

.tsg-school-heading__index {
  margin: 2px 0 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(6,31,51,0.3);
  font-family: "Times New Roman", serif;
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
}

.tsg-school-heading h2 {
  margin: 7px 0 8px;
  color: var(--tsg-navy);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: 0.02em;
}

.tsg-school-heading &gt; div &gt; p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--tsg-muted);
  font-size: 16px;
}

.tsg-school-heading--inverse .tsg-school-heading__index {
  -webkit-text-stroke-color: rgba(255,255,255,0.33);
}

.tsg-school-heading--inverse h2 { color: var(--tsg-white); }
.tsg-school-heading--inverse &gt; div &gt; p:last-child { color: rgba(255,255,255,0.7); }

.tsg-school-link-note {
  margin: 28px 0 0;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  text-align: center;
}

.tsg-school-link-note--dark { color: var(--tsg-muted); }

/* 常見問題卡 */
.tsg-question-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tsg-question-card {
  position: relative;
  min-height: 330px;
  padding: 28px 25px 25px;
  overflow: hidden;
  background: var(--tsg-white);
  border-top: 4px solid transparent;
  box-shadow: 0 12px 32px rgba(6,31,51,0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tsg-question-card:hover {
  transform: translateY(-7px);
  border-color: var(--tsg-gold);
  box-shadow: var(--tsg-shadow);
}

.tsg-question-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(6,31,51,0.08);
  border-radius: 50%;
}

.tsg-question-card__number {
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(6,31,51,0.14);
  font-family: "Times New Roman", serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}

.tsg-question-card__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 23px;
  padding: 14px;
  color: var(--tsg-gold);
  background: rgba(242,169,0,0.1);
  border: 1px solid rgba(242,169,0,0.24);
}

.tsg-question-card h3,
.tsg-entry-card h3,
.tsg-protection-card h3,
.tsg-stage-card h3,
.tsg-knowledge-card h3,
.tsg-knowledge-feature h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.42;
}

.tsg-question-card h3 {
  color: var(--tsg-navy);
  font-size: 21px;
}

.tsg-question-card p {
  margin: 12px 0 26px;
  color: var(--tsg-muted);
  font-size: 14px;
  line-height: 1.8;
}

.tsg-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tsg-navy);
  font-size: 14px;
  font-weight: 800;
}

.tsg-text-link b { color: var(--tsg-gold); }

/* 三大入口 */
.tsg-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.tsg-entry-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 34px;
  overflow: hidden;
  box-shadow: var(--tsg-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.tsg-entry-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 55px rgba(6,31,51,0.16);
}

.tsg-entry-card--navy {
  color: var(--tsg-white);
  background: var(--tsg-navy);
}

.tsg-entry-card--gold {
  color: var(--tsg-navy);
  background: var(--tsg-gold);
}

.tsg-entry-card--cream {
  color: var(--tsg-navy);
  background: var(--tsg-cream);
  border: 1px solid var(--tsg-line);
}

.tsg-entry-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 54px;
}

.tsg-entry-card__top &gt; span {
  color: currentColor;
  opacity: 0.35;
  font-family: "Times New Roman", serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
}

.tsg-entry-card__top svg {
  width: 66px;
  height: 66px;
  color: currentColor;
  opacity: 0.86;
}

.tsg-entry-card--gold .tsg-entry-card__eyebrow,
.tsg-entry-card--cream .tsg-entry-card__eyebrow {
  color: var(--tsg-navy);
  opacity: 0.65;
}

.tsg-entry-card h3 {
  margin-top: 8px;
  font-size: 29px;
}

.tsg-entry-card p:not(.tsg-entry-card__eyebrow) {
  margin: 14px 0 0;
  color: currentColor;
  opacity: 0.72;
  font-size: 15px;
}

.tsg-entry-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid currentColor;
  font-weight: 800;
  opacity: 0.9;
}

/* 六大保障 */
.tsg-protection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tsg-protection-card {
  position: relative;
  min-height: 320px;
  padding: 30px 28px 26px;
  overflow: hidden;
  color: var(--tsg-white) !important;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.13);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.tsg-protection-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.1);
  border-color: rgba(242,169,0,0.55);
}

.tsg-protection-card::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -45px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(242,169,0,0.15);
  border-radius: 50%;
}

.tsg-protection-card__index {
  position: absolute;
  right: 22px;
  top: 18px;
  color: rgba(255,255,255,0.13);
  font-family: "Times New Roman", serif;
  font-size: 46px;
  font-weight: 700;
}

.tsg-protection-card__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 25px;
  padding: 15px;
  color: var(--tsg-gold);
  border: 1px solid rgba(242,169,0,0.5);
}

.tsg-protection-card h3 {
  color: var(--tsg-white);
  font-size: 23px;
}

.tsg-protection-card p {
  margin: 12px 0 25px;
  color: rgba(255,255,255,0.68);
  font-size: 14px;
}

.tsg-protection-card &gt; span:last-child {
  color: var(--tsg-gold);
  font-size: 14px;
  font-weight: 800;
}

/* 人生階段 */
.tsg-stage-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  margin: 0 6.5% 24px;
  height: 2px;
  background: rgba(6,31,51,0.14);
}

.tsg-stage-track span {
  width: 12px;
  height: 12px;
  justify-self: center;
  background: var(--tsg-gold);
  border: 3px solid var(--tsg-cream);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--tsg-gold);
}

.tsg-stage-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.tsg-stage-card {
  position: relative;
  min-height: 300px;
  padding: 25px 18px 22px;
  text-align: center;
  background: var(--tsg-white);
  border-bottom: 4px solid transparent;
  box-shadow: 0 12px 28px rgba(6,31,51,0.06);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tsg-stage-card:hover {
  transform: translateY(-7px);
  border-color: var(--tsg-gold);
  box-shadow: var(--tsg-shadow);
}

.tsg-stage-card__step {
  display: block;
  margin-bottom: 17px;
  color: rgba(6,31,51,0.35);
  font-family: "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.tsg-stage-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  padding: 10px;
  color: var(--tsg-gold);
}

.tsg-stage-card h3 {
  min-height: 58px;
  color: var(--tsg-navy);
  font-size: 18px;
}

.tsg-stage-card p {
  margin: 8px 0 18px;
  color: var(--tsg-muted);
  font-size: 13px;
  line-height: 1.7;
}

.tsg-stage-card &gt; span:last-child {
  color: var(--tsg-navy);
  font-size: 12px;
  font-weight: 900;
}

/* 新手知識 */
.tsg-knowledge-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
}

.tsg-knowledge-feature {
  padding: 38px 36px;
  color: var(--tsg-white);
  background: var(--tsg-navy);
  box-shadow: var(--tsg-shadow);
}

.tsg-knowledge-feature h3 {
  margin-top: 9px;
  color: var(--tsg-white);
  font-size: 30px;
}

.tsg-step-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
}

.tsg-step-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 15px;
  padding: 17px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.tsg-step-list li &gt; span {
  color: var(--tsg-gold);
  font-family: "Times New Roman", serif;
  font-size: 19px;
  font-weight: 700;
}

.tsg-step-list strong {
  color: var(--tsg-white);
  font-size: 16px;
}

.tsg-step-list p {
  margin: 4px 0 0;
  color: rgba(255,255,255,0.62);
  font-size: 13px;
}

.tsg-knowledge-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tsg-knowledge-card {
  min-height: 240px;
  padding: 28px;
  background: var(--tsg-white);
  border: 1px solid var(--tsg-line);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tsg-knowledge-card:hover {
  transform: translateY(-6px);
  border-color: rgba(242,169,0,0.5);
  box-shadow: var(--tsg-shadow);
}

.tsg-knowledge-card__tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 10px;
  color: var(--tsg-navy);
  background: rgba(242,169,0,0.14);
  font-size: 12px;
  font-weight: 800;
}

.tsg-knowledge-card h3 {
  color: var(--tsg-navy);
  font-size: 20px;
}

.tsg-knowledge-card p {
  margin: 11px 0 22px;
  color: var(--tsg-muted);
  font-size: 14px;
}

/* FAQ */
.tsg-faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}

.tsg-faq-item {
  background: var(--tsg-white);
  border: 1px solid var(--tsg-line);
  box-shadow: 0 8px 24px rgba(6,31,51,0.04);
}

.tsg-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  color: var(--tsg-navy);
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 800;
}

.tsg-faq-item summary::-webkit-details-marker { display: none; }

.tsg-faq-item summary span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  color: var(--tsg-navy);
  background: var(--tsg-gold);
  font-family: Arial, sans-serif;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.tsg-faq-item[open] summary span { transform: rotate(45deg); }

.tsg-faq-item &gt; div {
  padding: 0 24px 22px;
}

.tsg-faq-item &gt; div p {
  margin: 0;
  padding-top: 18px;
  color: var(--tsg-muted);
  border-top: 1px solid var(--tsg-line);
  font-size: 14px;
}

/* 底部 CTA */
.tsg-school-cta {
  position: relative;
  overflow: hidden;
  color: var(--tsg-white);
  background: var(--tsg-navy);
}

.tsg-school-cta::before,
.tsg-school-cta::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(242,169,0,0.24);
  border-radius: 50%;
}

.tsg-school-cta::before {
  width: 430px;
  height: 430px;
  right: -170px;
  top: -240px;
}

.tsg-school-cta::after {
  width: 250px;
  height: 250px;
  right: 35px;
  top: -135px;
}

.tsg-school-cta__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 50px;
  padding: 68px 0;
}

.tsg-school-cta h2 {
  margin: 9px 0 13px;
  color: var(--tsg-white);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.35;
}

.tsg-school-cta p:not(.tsg-school-cta__eyebrow) {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,0.69);
  font-size: 15px;
}

.tsg-school-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 平板 */
@media (max-width: 1024px) {
  .tsg-school-hero { min-height: auto; }

  .tsg-school-hero__inner {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 32px;
  }

  .tsg-question-grid,
  .tsg-entry-grid,
  .tsg-protection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tsg-question-card { min-height: 300px; }

  .tsg-entry-card:last-child {
    grid-column: 1 / -1;
    min-height: 350px;
  }

  .tsg-stage-track { display: none; }

  .tsg-stage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .tsg-stage-card { min-height: 280px; }

  .tsg-knowledge-layout {
    grid-template-columns: 1fr;
  }

  .tsg-school-cta__inner {
    grid-template-columns: 1fr;
  }

  .tsg-school-cta__actions {
    flex-direction: row;
  }
}

/* 手機與小平板 */
@media (max-width: 767px) {
  .tsg-school-container {
    width: min(100% - 30px, 1180px);
  }

  .tsg-school-hero__inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 62px 0 50px;
  }

  .tsg-school-hero h1 {
    margin-top: 12px;
    font-size: clamp(37px, 11vw, 52px);
  }

  .tsg-school-hero__description {
    font-size: 16px;
    white-space: normal;
  }

  .tsg-school-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tsg-school-btn { width: 100%; }

  .tsg-school-hero__visual {
    width: min(100%, 360px);
    margin: 0 auto;
  }

  .tsg-school-shield {
    width: 126px;
    height: 151px;
    padding: 22px;
  }

  .tsg-school-float {
    min-width: 122px;
    padding: 9px 11px;
    gap: 8px;
    font-size: 12px;
  }

  .tsg-school-float--one { left: -2%; }
  .tsg-school-float--two { right: -2%; }
  .tsg-school-float--three { left: 5%; }

  .tsg-school-mini-icon {
    width: 29px;
    height: 29px;
    padding: 6px;
  }

  .tsg-school-nav__scroll { justify-content: flex-start; }
  .tsg-school-nav a { padding: 15px 16px; font-size: 13px; }
  .tsg-school-nav a::after { left: 16px; right: 16px; }

  .tsg-school-section {
    padding: 62px 0;
    scroll-margin-top: 62px;
  }

  .tsg-school-heading {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-bottom: 30px;
  }

  .tsg-school-heading__index {
    font-size: 40px;
  }

  .tsg-school-heading h2 {
    font-size: 30px;
  }

  .tsg-school-heading &gt; div &gt; p:last-child {
    font-size: 14px;
  }

  .tsg-question-grid,
  .tsg-entry-grid,
  .tsg-protection-grid,
  .tsg-stage-grid,
  .tsg-knowledge-list {
    grid-template-columns: 1fr;
  }

  .tsg-question-card,
  .tsg-protection-card,
  .tsg-stage-card,
  .tsg-knowledge-card {
    min-height: 0;
  }

  .tsg-entry-card,
  .tsg-entry-card:last-child {
    grid-column: auto;
    min-height: 360px;
    padding: 28px;
  }

  .tsg-entry-card__top { margin-bottom: 40px; }

  .tsg-protection-card { padding: 27px 24px; }

  .tsg-stage-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    column-gap: 16px;
    align-items: center;
    padding: 22px;
    text-align: left;
  }

  .tsg-stage-card__step {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    text-align: center;
  }

  .tsg-stage-card__icon {
    grid-column: 1;
    grid-row: 2 / 5;
    width: 52px;
    height: 52px;
    margin: 0;
    padding: 7px;
  }

  .tsg-stage-card h3,
  .tsg-stage-card p,
  .tsg-stage-card &gt; span:last-child {
    grid-column: 2;
  }

  .tsg-stage-card h3 {
    min-height: 0;
    font-size: 19px;
  }

  .tsg-stage-card p { margin: 4px 0 10px; }

  .tsg-knowledge-feature { padding: 30px 24px; }
  .tsg-step-list li { grid-template-columns: 40px minmax(0, 1fr); }

  .tsg-faq-item summary {
    padding: 19px 18px;
    font-size: 15px;
  }

  .tsg-faq-item &gt; div { padding: 0 18px 19px; }

  .tsg-school-cta__inner {
    gap: 30px;
    padding: 56px 0;
  }

  .tsg-school-cta h2 { font-size: 31px; }

  .tsg-school-cta__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* 極小螢幕 */
@media (max-width: 390px) {
  .tsg-school-container { width: calc(100% - 24px); }
  .tsg-school-hero h1 { font-size: 36px; }
  .tsg-school-float--one { left: -3%; top: 13%; }
  .tsg-school-float--two { right: -3%; top: 36%; }
  .tsg-school-float--three { left: 1%; bottom: 8%; }
  .tsg-school-float { min-width: 112px; }
}

/* 降低動態效果偏好 */
@media (prefers-reduced-motion: reduce) {
  .tsg-school *,
  .tsg-school *::before,
  .tsg-school *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


/* =========================================================
   2026/07 精簡版調整
   1. 縮短區段間距與卡片高度
   2. 深藍底區塊文字統一為白色
   3. 主視覺改為完整圖片 Banner
   ========================================================= */

.tsg-school-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 圖片式 Banner：不再疊加原本盾牌、軌道與文字版型 */
.tsg-school .tsg-school-hero--image {
  display: block;
  min-height: 0;
  padding: 0;
  background: var(--tsg-navy);
}

.tsg-school .tsg-school-hero--image::before,
.tsg-school .tsg-school-hero--image::after {
  display: none;
}

.tsg-school-hero__picture,
.tsg-school-hero__picture img {
  display: block;
  width: 100%;
}

.tsg-school-hero__picture img {
  height: auto;
  aspect-ratio: 1920 / 800;
  object-fit: cover;
  object-position: center;
}

/* 整體節奏縮短 */
.tsg-school-section {
  padding: 58px 0;
}

.tsg-school-heading {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.tsg-school-heading__index {
  font-size: 44px;
}

.tsg-school-heading h2 {
  margin: 4px 0 5px;
  font-size: clamp(28px, 3vw, 38px);
}

.tsg-school-heading &gt; div &gt; p:last-child {
  line-height: 1.65;
}

.tsg-school-link-note {
  margin-top: 18px;
}

/* 卡片尺寸精簡 */
.tsg-question-grid,
.tsg-protection-grid {
  gap: 14px;
}

.tsg-question-card {
  min-height: 252px;
  padding: 22px 21px 20px;
}

.tsg-question-card__number {
  top: 15px;
  right: 17px;
  font-size: 31px;
}

.tsg-question-card__icon {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
  padding: 11px;
}

.tsg-question-card h3 {
  font-size: 19px;
}

.tsg-question-card p {
  margin: 8px 0 16px;
  line-height: 1.65;
}

.tsg-entry-grid {
  gap: 16px;
}

.tsg-entry-card {
  min-height: 330px;
  padding: 26px;
}

.tsg-entry-card__top {
  margin-bottom: 28px;
}

.tsg-entry-card__top &gt; span {
  font-size: 38px;
}

.tsg-entry-card__top svg {
  width: 54px;
  height: 54px;
}

.tsg-entry-card h3 {
  font-size: 25px;
}

.tsg-entry-card p:not(.tsg-entry-card__eyebrow) {
  margin-top: 9px;
  line-height: 1.65;
}

.tsg-entry-card__link {
  padding-top: 18px;
}

.tsg-protection-card {
  min-height: 238px;
  padding: 22px 22px 20px;
}

.tsg-protection-card__index {
  top: 14px;
  right: 18px;
  font-size: 36px;
}

.tsg-protection-card__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 15px;
  padding: 11px;
}

.tsg-protection-card h3 {
  font-size: 20px;
}

.tsg-protection-card p {
  margin: 8px 0 14px;
  line-height: 1.65;
}

.tsg-stage-track {
  margin-bottom: 16px;
}

.tsg-stage-grid {
  gap: 10px;
}

.tsg-stage-card {
  min-height: 226px;
  padding: 19px 14px 17px;
}

.tsg-stage-card__step {
  margin-bottom: 10px;
}

.tsg-stage-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  padding: 8px;
}

.tsg-stage-card h3 {
  min-height: 50px;
  font-size: 16px;
}

.tsg-stage-card p {
  margin: 5px 0 10px;
  line-height: 1.55;
}

.tsg-knowledge-layout {
  gap: 18px;
}

.tsg-knowledge-feature {
  padding: 28px 27px;
}

.tsg-knowledge-feature h3 {
  font-size: 26px;
}

.tsg-step-list {
  margin-top: 20px;
}

.tsg-step-list li {
  padding: 12px 0;
}

.tsg-knowledge-list {
  gap: 14px;
}

.tsg-knowledge-card {
  min-height: 186px;
  padding: 22px;
}

.tsg-knowledge-card__tag {
  margin-bottom: 11px;
}

.tsg-knowledge-card p {
  margin: 7px 0 14px;
  line-height: 1.65;
}

.tsg-faq-list {
  gap: 9px;
}

.tsg-faq-item summary {
  padding: 17px 20px;
}

.tsg-faq-item &gt; div {
  padding: 0 20px 17px;
}

.tsg-school-cta__inner {
  gap: 34px;
  padding: 46px 0;
}

/* 深藍背景與深藍卡片：文字一律白色 */
.tsg-school-section--navy,
.tsg-entry-card--navy,
.tsg-knowledge-feature,
.tsg-school-cta,
.tsg-school-nav {
  color: var(--tsg-white) !important;
}

.tsg-school-section--navy h1,
.tsg-school-section--navy h2,
.tsg-school-section--navy h3,
.tsg-school-section--navy h4,
.tsg-school-section--navy p,
.tsg-school-section--navy a,
.tsg-school-section--navy span,
.tsg-entry-card--navy h3,
.tsg-entry-card--navy p,
.tsg-entry-card--navy span,
.tsg-entry-card--navy a,
.tsg-knowledge-feature h3,
.tsg-knowledge-feature p,
.tsg-knowledge-feature strong,
.tsg-knowledge-feature span,
.tsg-school-cta h2,
.tsg-school-cta p,
.tsg-school-cta span {
  color: var(--tsg-white) !important;
}

.tsg-school-section--navy .tsg-school-heading__eyebrow,
.tsg-school-section--navy .tsg-protection-card__icon,
.tsg-school-section--navy .tsg-protection-card &gt; span:last-child,
.tsg-entry-card--navy .tsg-entry-card__eyebrow,
.tsg-knowledge-feature .tsg-knowledge-feature__eyebrow,
.tsg-knowledge-feature .tsg-step-list li &gt; span,
.tsg-school-cta .tsg-school-cta__eyebrow {
  color: var(--tsg-gold) !important;
}

.tsg-school-section--navy .tsg-school-heading &gt; div &gt; p:last-child,
.tsg-school-section--navy .tsg-protection-card p,
.tsg-entry-card--navy p:not(.tsg-entry-card__eyebrow),
.tsg-knowledge-feature .tsg-step-list p,
.tsg-school-cta p:not(.tsg-school-cta__eyebrow) {
  color: rgba(255, 255, 255, 0.78) !important;
}

@media (max-width: 1024px) {
  .tsg-entry-card:last-child {
    min-height: 280px;
  }

  .tsg-question-card,
  .tsg-stage-card {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .tsg-school-hero__picture img {
    aspect-ratio: 1920 / 800;
    min-height: 0;
    object-fit: cover;
  }

  .tsg-school-section {
    padding: 42px 0;
  }

  .tsg-school-heading {
    gap: 4px;
    margin-bottom: 21px;
  }

  .tsg-school-heading__index {
    font-size: 34px;
  }

  .tsg-school-heading h2 {
    font-size: 27px;
  }

  .tsg-entry-card,
  .tsg-entry-card:last-child {
    min-height: 0;
    padding: 23px;
  }

  .tsg-entry-card__top {
    margin-bottom: 22px;
  }

  .tsg-protection-card,
  .tsg-question-card,
  .tsg-knowledge-card {
    padding: 20px;
  }

  .tsg-stage-card {
    padding: 17px;
  }

  .tsg-knowledge-feature {
    padding: 24px 21px;
  }

  .tsg-school-cta__inner {
    padding: 40px 0;
  }
}


/* =========================================================
   2026/07 Banner 風格調整版
   視覺基準：#002058 深藍、亮黃橘、白色、親民黑體
   本段放在 CSS 最後方，用來覆蓋前方舊設定
   ========================================================= */

.tsg-school {
  --tsg-navy: #002058;
  --tsg-navy-2: #0b3473;
  --tsg-navy-3: #164a93;
  --tsg-gold: #ffb41f;
  --tsg-gold-soft: #ffd36b;
  --tsg-orange: #f47b57;
  --tsg-blue-soft: #eaf2ff;
  --tsg-cream: #fff7e7;
  --tsg-paper: #f7f9fd;
  --tsg-light: #eef4ff;
  --tsg-white: #ffffff;
  --tsg-text: #14233a;
  --tsg-muted: #5c6b80;
  --tsg-line: rgba(0, 32, 88, 0.12);
  --tsg-shadow: 0 10px 26px rgba(0, 32, 88, 0.09);
  color: var(--tsg-text);
  background: var(--tsg-paper);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-weight: 500;
  line-height: 1.65;
}

.tsg-school h1,
.tsg-school h2,
.tsg-school h3,
.tsg-school h4,
.tsg-school strong,
.tsg-school b,
.tsg-school-btn,
.tsg-school-nav a {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-weight: 800;
}

.tsg-school-container {
  width: min(1160px, calc(100% - 40px));
}

/* Banner：完整圖片＋下方雙按鈕，不再疊加文字 */
.tsg-school-hero.tsg-school-hero--image {
  display: block;
  min-height: 0;
  padding: 0;
  color: #fff;
  background: #002058;
  overflow: hidden;
}

.tsg-school-hero.tsg-school-hero--image::before,
.tsg-school-hero.tsg-school-hero--image::after {
  display: none;
}

.tsg-school-hero__picture {
  display: block;
  width: 100%;
  margin: 0;
  line-height: 0;
  background: #002058;
}

.tsg-school-hero__picture img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.tsg-school-hero__button-bar {
  padding: 18px 0 22px;
  background: #002058;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tsg-school-hero__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
}

.tsg-school-btn {
  min-width: 190px;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 16px;
  letter-spacing: 0.02em;
  box-shadow: none;
}

.tsg-school-btn--gold {
  color: #002058 !important;
  background: #ffb41f;
  border-color: #ffb41f;
  box-shadow: 0 8px 18px rgba(255, 180, 31, 0.2);
}

.tsg-school-btn--gold:hover {
  color: #002058 !important;
  background: #ffd36b;
}

.tsg-school-btn--white {
  color: #002058 !important;
  background: #ffffff;
  border: 1px solid #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.tsg-school-btn--white:hover {
  color: #002058 !important;
  background: #eaf2ff;
}

/* 固定導覽 */
.tsg-school-nav {
  color: #ffffff;
  background: rgba(0, 32, 88, 0.98);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 5px 16px rgba(0,32,88,0.16);
}

.tsg-school-nav a {
  padding: 14px 20px;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
}

.tsg-school-nav a::after {
  left: 20px;
  right: 20px;
  height: 3px;
  background: #ffb41f;
}

.tsg-school-nav a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.07);
}

/* 全頁區段縮短 */
.tsg-school-section {
  padding: 54px 0;
}

.tsg-school-section + .tsg-school-section {
  border-top: 1px solid rgba(0,32,88,0.06);
}

.tsg-school-section--light {
  background: #f7f9fd;
}

.tsg-school-section--navy {
  color: #ffffff;
  background: #002058;
}

/* 標題改為親民黑粗體 */
.tsg-school-heading {
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}

.tsg-school-heading__index {
  min-width: 48px;
  margin: 0;
  color: #ffb41f;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
}

.tsg-school-heading__eyebrow,
.tsg-entry-card__eyebrow,
.tsg-knowledge-feature__eyebrow,
.tsg-school-cta__eyebrow {
  color: #1a5aa8;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.tsg-school-heading h2 {
  margin: 4px 0 7px;
  color: #002058;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.tsg-school-heading &gt; div &gt; p:last-child {
  margin: 0;
  color: #5c6b80;
  font-size: 15px;
  line-height: 1.7;
}

.tsg-school-heading--inverse h2,
.tsg-school-section--navy .tsg-school-heading h2,
.tsg-school-section--navy .tsg-school-heading &gt; div &gt; p:last-child,
.tsg-school-section--navy .tsg-school-heading__eyebrow {
  color: #ffffff !important;
}

.tsg-school-section--navy .tsg-school-heading__index {
  color: #ffb41f;
}

/* 共用卡片：更緊湊、更圓潤、更接近 Banner 插畫感 */
.tsg-question-grid,
.tsg-entry-grid,
.tsg-protection-grid,
.tsg-stage-grid,
.tsg-knowledge-grid {
  gap: 16px;
}

.tsg-question-card,
.tsg-entry-card,
.tsg-protection-card,
.tsg-stage-card,
.tsg-knowledge-card {
  border-radius: 18px;
  box-shadow: var(--tsg-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.tsg-question-card:hover,
.tsg-entry-card:hover,
.tsg-protection-card:hover,
.tsg-stage-card:hover,
.tsg-knowledge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,32,88,0.14);
}

/* 新手問題 */
.tsg-question-card {
  min-height: 0;
  padding: 22px 20px 20px;
  background: #ffffff;
  border: 1px solid rgba(0,32,88,0.1);
}

.tsg-question-card__number {
  color: #1a5aa8;
  font-size: 13px;
  font-weight: 900;
}

.tsg-question-card__icon {
  width: 48px;
  height: 48px;
  margin: 10px 0 13px;
  padding: 11px;
  color: #002058;
  background: #eaf2ff;
  border-radius: 15px;
}

.tsg-question-card:nth-child(2) .tsg-question-card__icon,
.tsg-question-card:nth-child(4) .tsg-question-card__icon {
  color: #8a5600;
  background: #fff2c7;
}

.tsg-question-card h3 {
  margin: 0 0 7px;
  color: #002058;
  font-size: 19px;
  font-weight: 900;
}

.tsg-question-card p {
  margin: 0 0 13px;
  color: #5c6b80;
  font-size: 14px;
  line-height: 1.65;
}

.tsg-text-link {
  color: #1a5aa8;
  font-size: 14px;
  font-weight: 800;
}

/* 三大入口 */
.tsg-entry-card {
  min-height: 0;
  padding: 24px;
}

.tsg-entry-card__top {
  margin-bottom: 18px;
}

.tsg-entry-card__top svg {
  width: 50px;
  height: 50px;
}

.tsg-entry-card h3 {
  margin: 4px 0 8px;
  font-size: 23px;
  font-weight: 900;
}

.tsg-entry-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.tsg-entry-card__link {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 900;
}

.tsg-entry-card--navy {
  color: #ffffff !important;
  background: #002058;
}

.tsg-entry-card--navy h3,
.tsg-entry-card--navy p,
.tsg-entry-card--navy .tsg-entry-card__eyebrow,
.tsg-entry-card--navy .tsg-entry-card__link,
.tsg-entry-card--navy .tsg-entry-card__top span {
  color: #ffffff !important;
}

.tsg-entry-card--navy svg {
  color: #ffb41f;
}

.tsg-entry-card--gold {
  color: #002058;
  background: #ffca52;
}

.tsg-entry-card--gold h3,
.tsg-entry-card--gold p,
.tsg-entry-card--gold .tsg-entry-card__eyebrow,
.tsg-entry-card--gold .tsg-entry-card__link,
.tsg-entry-card--gold .tsg-entry-card__top span {
  color: #002058 !important;
}

.tsg-entry-card--cream {
  color: #002058;
  background: #eaf2ff;
}

.tsg-entry-card--cream h3,
.tsg-entry-card--cream p,
.tsg-entry-card--cream .tsg-entry-card__eyebrow,
.tsg-entry-card--cream .tsg-entry-card__link,
.tsg-entry-card--cream .tsg-entry-card__top span {
  color: #002058 !important;
}

/* 六大保障：深藍區中使用白色卡片，視覺更清楚 */
.tsg-protection-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tsg-protection-card {
  min-height: 0;
  padding: 22px 20px 19px;
  color: #002058;
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.14);
}

.tsg-protection-card__index {
  color: #1a5aa8;
  font-size: 12px;
  font-weight: 900;
}

.tsg-protection-card__icon {
  width: 52px;
  height: 52px;
  margin: 11px 0 13px;
  padding: 11px;
  color: #002058;
  background: #eaf2ff;
  border-radius: 16px;
}

.tsg-protection-card:nth-child(2n) .tsg-protection-card__icon {
  color: #8a5600;
  background: #fff1c0;
}

.tsg-protection-card h3 {
  margin: 0 0 7px;
  color: #002058;
  font-size: 19px;
  font-weight: 900;
}

.tsg-protection-card p {
  margin: 0 0 12px;
  color: #5c6b80;
  font-size: 14px;
  line-height: 1.65;
}

.tsg-protection-card &gt; span:last-child {
  color: #1a5aa8;
  font-size: 14px;
  font-weight: 900;
}

/* 人生階段 */
.tsg-stage-card {
  min-height: 0;
  padding: 21px 18px 18px;
  background: #ffffff;
  border: 1px solid rgba(0,32,88,0.1);
}

.tsg-stage-card__icon {
  width: 50px;
  height: 50px;
  margin-bottom: 12px;
  padding: 11px;
  color: #002058;
  background: #eaf2ff;
  border-radius: 16px;
}

.tsg-stage-card:nth-child(2n) .tsg-stage-card__icon {
  color: #8a5600;
  background: #fff1c0;
}

.tsg-stage-card h3 {
  margin: 0 0 6px;
  color: #002058;
  font-size: 18px;
  font-weight: 900;
}

.tsg-stage-card p {
  color: #5c6b80;
  font-size: 13px;
  line-height: 1.6;
}

/* 知識區與 FAQ */
.tsg-knowledge-feature,
.tsg-knowledge-card,
.tsg-school-faq details {
  border-radius: 18px;
}

.tsg-knowledge-feature {
  padding: 26px;
  color: #ffffff;
  background: #002058;
}

.tsg-knowledge-feature h3,
.tsg-knowledge-feature p,
.tsg-knowledge-feature .tsg-knowledge-feature__eyebrow {
  color: #ffffff !important;
}

.tsg-knowledge-card {
  min-height: 0;
  padding: 20px;
  background: #ffffff;
}

.tsg-knowledge-card h3 {
  color: #002058;
  font-size: 18px;
  font-weight: 900;
}

.tsg-knowledge-card p {
  color: #5c6b80;
  font-size: 14px;
}

.tsg-school-faq {
  margin-top: 30px;
}

.tsg-school-faq details {
  margin-bottom: 10px;
  background: #ffffff;
  border: 1px solid rgba(0,32,88,0.1);
}

.tsg-school-faq summary {
  padding: 16px 18px;
  color: #002058;
  font-size: 15px;
  font-weight: 900;
}

.tsg-school-faq details &gt; div {
  padding: 0 18px 17px;
  color: #5c6b80;
  font-size: 14px;
}

/* 底部 CTA 深藍底一律白字 */
.tsg-school-cta {
  padding: 48px 0;
  color: #ffffff;
  background: #002058;
}

.tsg-school-cta h2,
.tsg-school-cta p,
.tsg-school-cta__eyebrow {
  color: #ffffff !important;
}

.tsg-school-cta__inner {
  gap: 24px;
}

/* 深藍底或深藍卡片內文字強制白色 */
.tsg-school [class*="--navy"] h1,
.tsg-school [class*="--navy"] h2,
.tsg-school [class*="--navy"] h3,
.tsg-school [class*="--navy"] h4,
.tsg-school [class*="--navy"] p,
.tsg-school [class*="--navy"] a,
.tsg-school [class*="--navy"] span:not(.tsg-school-btn--gold),
.tsg-school [style*="#002058"] h1,
.tsg-school [style*="#002058"] h2,
.tsg-school [style*="#002058"] h3,
.tsg-school [style*="#002058"] p {
  color: #ffffff;
}

/* 但六大保障白卡片要維持深藍文字 */
.tsg-school-section--navy .tsg-protection-card,
.tsg-school-section--navy .tsg-protection-card h3,
.tsg-school-section--navy .tsg-protection-card p,
.tsg-school-section--navy .tsg-protection-card span {
  color: #002058;
}

.tsg-school-section--navy .tsg-protection-card p {
  color: #5c6b80;
}

.tsg-school-section--navy .tsg-protection-card &gt; span:last-child {
  color: #1a5aa8;
}

/* 平板 */
@media (max-width: 1024px) {
  .tsg-school-section {
    padding: 46px 0;
  }

  .tsg-protection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tsg-school-hero__button-bar {
    padding: 16px 0 19px;
  }
}

/* 手機 */
@media (max-width: 767px) {
  .tsg-school-container {
    width: min(100% - 28px, 1160px);
  }

  .tsg-school-hero__picture {
    overflow: hidden;
  }

  .tsg-school-hero__picture img {
    width: 100%;
    min-height: 0;
    object-fit: contain;
  }

  .tsg-school-hero__button-bar {
    padding: 14px 0 17px;
  }

  .tsg-school-hero__actions {
    gap: 9px;
  }

  .tsg-school-btn {
    min-width: 0;
    width: calc(50% - 5px);
    min-height: 43px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 14px;
  }

  .tsg-school-nav__scroll {
    justify-content: flex-start;
  }

  .tsg-school-nav a {
    padding: 12px 16px;
    font-size: 13px;
  }

  .tsg-school-section {
    padding: 38px 0;
  }

  .tsg-school-heading {
    display: block;
    margin-bottom: 21px;
  }

  .tsg-school-heading__index {
    margin-bottom: 8px;
    font-size: 22px;
  }

  .tsg-school-heading h2 {
    font-size: 26px;
  }

  .tsg-school-heading &gt; div &gt; p:last-child {
    font-size: 14px;
  }

  .tsg-question-grid,
  .tsg-protection-grid,
  .tsg-stage-grid,
  .tsg-knowledge-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tsg-entry-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tsg-question-card,
  .tsg-entry-card,
  .tsg-protection-card,
  .tsg-stage-card,
  .tsg-knowledge-card {
    padding: 18px;
    border-radius: 15px;
  }

  .tsg-question-card__icon,
  .tsg-protection-card__icon,
  .tsg-stage-card__icon {
    width: 46px;
    height: 46px;
    margin-top: 8px;
    margin-bottom: 10px;
  }

  .tsg-school-cta {
    padding: 38px 0;
  }
}

/* 小尺寸手機：按鈕改為上下排列 */
@media (max-width: 430px) {
  .tsg-school-btn {
    width: 100%;
  }
}


/* =========================================================
   2026-07｜Banner 內嵌按鈕＋頁籤字級放大
   ========================================================= */

/* 讓按鈕定位於 Banner 圖片內的下方中央留白區 */
.tsg-school-hero.tsg-school-hero--image {
  position: relative;
}

.tsg-school-hero__button-bar {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(18px, 4.2vw, 72px);
  width: 100%;
  padding: 0;
  transform: translateX(-50%);
  background: transparent;
  border-top: 0;
  pointer-events: none;
}

.tsg-school-hero__actions {
  gap: clamp(10px, 1vw, 16px);
  pointer-events: auto;
}

.tsg-school-hero .tsg-school-btn {
  min-width: clamp(176px, 13vw, 225px);
  min-height: clamp(42px, 3.2vw, 54px);
  padding: clamp(8px, 0.75vw, 12px) clamp(16px, 1.6vw, 28px);
  border: 2px solid rgba(255,255,255,0.92);
  border-radius: 14px;
  font-size: clamp(15px, 1.05vw, 19px);
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 8px 20px rgba(0, 17, 49, 0.24);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.tsg-school-hero .tsg-school-btn--gold {
  border-color: #ffb41f;
}

/* 快速導覽頁籤：桌機由 14px 提升至 18px */
.tsg-school-nav a {
  padding: 17px 24px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.tsg-school-nav a::after {
  left: 24px;
  right: 24px;
}

@media (max-width: 1024px) {
  .tsg-school-hero__button-bar {
    bottom: clamp(14px, 3.6vw, 38px);
    padding: 0;
  }

  .tsg-school-nav a {
    padding: 15px 20px;
    font-size: 16px;
  }

  .tsg-school-nav a::after {
    left: 20px;
    right: 20px;
  }
}

@media (max-width: 767px) {
  .tsg-school-hero__button-bar {
    bottom: 8px;
    padding: 0 8px;
  }

  .tsg-school-hero__actions {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .tsg-school-hero .tsg-school-btn {
    width: auto;
    min-width: 0;
    min-height: 32px;
    padding: 6px 10px;
    border-width: 1px;
    border-radius: 8px;
    font-size: 11px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,17,49,0.22);
  }

  /* 手機頁籤仍比原本 13px 放大兩級，並維持橫向滑動 */
  .tsg-school-nav a {
    padding: 14px 18px;
    font-size: 16px;
    white-space: nowrap;
  }

  .tsg-school-nav a::after {
    left: 18px;
    right: 18px;
  }
}


/* =========================================================
   2026-07｜移除編號與六大保障文字可讀性修正
   ========================================================= */

/* 編號已由 HTML 移除，保留防呆隱藏，避免快取舊版仍顯示 */
.tsg-school-heading__index,
.tsg-question-card__number,
.tsg-entry-card__top &gt; span,
.tsg-protection-card__index,
.tsg-stage-card__step,
.tsg-school-link-note {
  display: none !important;
}

/* 移除編號後縮短多餘間距 */
.tsg-school-heading {
  gap: 0;
}

.tsg-question-card__icon {
  margin-top: 0 !important;
}

.tsg-entry-card__top {
  justify-content: flex-end;
}

.tsg-stage-card__icon {
  margin-top: 0 !important;
}

/* 六大保障白色卡片：預設狀態即顯示深色文字，不需滑鼠移入 */
.tsg-school-section--navy .tsg-protection-card {
  color: #002058 !important;
  background: #ffffff !important;
}

.tsg-school-section--navy .tsg-protection-card h3 {
  color: #002058 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.tsg-school-section--navy .tsg-protection-card p {
  color: #52647d !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.tsg-school-section--navy .tsg-protection-card &gt; span:last-child {
  color: #f2a400 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.tsg-school-section--navy .tsg-protection-card:hover h3 {
  color: #002058 !important;
}

.tsg-school-section--navy .tsg-protection-card:hover p {
  color: #52647d !important;
}

.tsg-school-section--navy .tsg-protection-card:hover &gt; span:last-child {
  color: #f2a400 !important;
}

/* =========================================================
   區段標題排版修正
   移除 01～06 後，標題改為單欄滿寬，避免文字被壓成直排
   ========================================================= */
.tsg-school .tsg-school-heading {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 30px;
}

.tsg-school .tsg-school-heading &gt; div {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.tsg-school .tsg-school-heading__eyebrow,
.tsg-school .tsg-school-heading h2,
.tsg-school .tsg-school-heading &gt; div &gt; p:last-child {
  width: 100% !important;
  max-width: 100% !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  white-space: normal !important;
}

.tsg-school .tsg-school-heading__eyebrow {
  margin-bottom: 7px;
}

.tsg-school .tsg-school-heading h2 {
  margin: 0 0 7px;
}

.tsg-school .tsg-school-heading &gt; div &gt; p:last-child {
  max-width: 760px !important;
}

@media (max-width: 767px) {
  .tsg-school .tsg-school-heading {
    margin-bottom: 24px;
  }

  .tsg-school .tsg-school-heading h2 {
    font-size: 28px;
    line-height: 1.35;
  }
}


/* =========================================================
   2026-07｜正式環境標題橫排最終覆寫
   主容器實際 class 為 .tsg-school，不是 .tsg-school-page
   ========================================================= */
.tsg-school .tsg-school-section .tsg-school-heading {
  display: block !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 0 28px !important;
  padding: 0 !important;
}

.tsg-school .tsg-school-section .tsg-school-heading &gt; div {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tsg-school .tsg-school-section .tsg-school-heading__eyebrow,
.tsg-school .tsg-school-section .tsg-school-heading h2,
.tsg-school .tsg-school-section .tsg-school-heading &gt; div &gt; p:last-child {
  display: block !important;
  width: auto !important;
  max-width: 760px !important;
  min-width: 0 !important;
  writing-mode: horizontal-tb !important;
  -webkit-writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: break-word !important;
  letter-spacing: normal;
}

.tsg-school .tsg-school-section .tsg-school-heading__eyebrow {
  margin: 0 0 7px !important;
  line-height: 1.4 !important;
}

.tsg-school .tsg-school-section .tsg-school-heading h2 {
  margin: 0 0 7px !important;
  font-size: clamp(27px, 3vw, 38px) !important;
  line-height: 1.35 !important;
}

.tsg-school .tsg-school-section .tsg-school-heading &gt; div &gt; p:last-child {
  margin: 0 !important;
  line-height: 1.7 !important;
}

@media (max-width: 767px) {
  .tsg-school .tsg-school-section .tsg-school-heading {
    margin-bottom: 22px !important;
  }

  .tsg-school .tsg-school-section .tsg-school-heading h2 {
    font-size: 27px !important;
  }
}


/* =========================================================
   第一、二區段版型調整｜第一區段去除雙層外框、第二區段改背景插圖式
   ========================================================= */

.tsg-school .tsg-question-card {
  min-height: 316px;
  border-radius: 26px;
}

.tsg-school .tsg-question-card__icon {
  width: 92px;
  height: 92px;
  margin-bottom: 20px;
  padding: 0;
  background: linear-gradient(180deg, rgba(242,169,0,0.16), rgba(242,169,0,0.08));
  border: 1px solid rgba(242,169,0,0.26);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.68);
}

.tsg-school .tsg-question-card__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tsg-school .tsg-entry-card {
  position: relative;
  min-height: 360px;
  padding: 30px 30px 28px;
  border-radius: 28px;
}

.tsg-school .tsg-entry-card::before {
  content: "";
  position: absolute;
  right: -32px;
  top: -32px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.tsg-school .tsg-entry-card--gold::before {
  background: rgba(255,255,255,0.24);
}

.tsg-school .tsg-entry-card--cream::before {
  background: rgba(0,32,88,0.05);
}

.tsg-school .tsg-entry-card__art {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 118px;
  height: 118px;
  padding: 8px;
}

.tsg-school .tsg-entry-card__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.10));
}

.tsg-school .tsg-entry-card__content {
  position: relative;
  z-index: 2;
  max-width: calc(100% - 120px);
  padding-top: 112px;
}

.tsg-school .tsg-entry-card__link {
  position: relative;
  z-index: 2;
}

.tsg-school .tsg-entry-card h3 {
  margin-top: 8px;
  padding-right: 6px;
}

.tsg-school .tsg-entry-card p:not(.tsg-entry-card__eyebrow) {
  max-width: 26em;
}

@media (max-width: 1024px) {
  .tsg-school .tsg-entry-card {
    min-height: 335px;
  }

  .tsg-school .tsg-entry-card__content {
    max-width: calc(100% - 105px);
    padding-top: 104px;
  }

  .tsg-school .tsg-entry-card__art {
    width: 102px;
    height: 102px;
  }
}

@media (max-width: 767px) {
  .tsg-school .tsg-question-card {
    min-height: auto;
  }

  .tsg-school .tsg-question-card__icon {
    width: 84px;
    height: 84px;
    border-radius: 22px;
  }

  .tsg-school .tsg-entry-card {
    min-height: auto;
    padding: 24px 22px 24px;
  }

  .tsg-school .tsg-entry-card::before {
    width: 120px;
    height: 120px;
    right: -34px;
    top: -34px;
  }

  .tsg-school .tsg-entry-card__art {
    width: 88px;
    height: 88px;
    right: 12px;
    top: 12px;
    padding: 6px;
  }

  .tsg-school .tsg-entry-card__content {
    max-width: calc(100% - 84px);
    padding-top: 88px;
  }
}


/* =========================================================
   第一、二區段版型調整｜第一區段去除雙層外框、第二區段改背景插圖式
   ========================================================= */

/* 第一區段：目前圖片本身已帶底色與外框，因此移除外層框，只保留單純圖片 */
.tsg-school .tsg-question-card {
  min-height: 318px;
  border-radius: 28px;
  border: 1px solid rgba(242,169,0,0.45);
}

.tsg-school .tsg-question-card__icon {
  width: 112px;
  height: 112px;
  margin-bottom: 20px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.tsg-school .tsg-question-card__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(6,31,51,0.08));
}

/* 第二區段：改成卡片背景插圖感，不再把內容往下擠 */
.tsg-school .tsg-entry-card {
  position: relative;
  isolation: isolate;
  min-height: 330px;
  padding: 32px 34px 28px;
  border-radius: 34px;
}

.tsg-school .tsg-entry-card::before {
  content: "";
  position: absolute;
  right: -52px;
  top: -48px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  opacity: 0.9;
  z-index: 0;
}

.tsg-school .tsg-entry-card--navy::before {
  background: rgba(255,255,255,0.10);
}

.tsg-school .tsg-entry-card--gold::before {
  background: rgba(255,255,255,0.18);
}

.tsg-school .tsg-entry-card--cream::before {
  background: rgba(0,32,88,0.06);
}

.tsg-school .tsg-entry-card__art {
  position: absolute;
  right: 22px;
  top: 18px;
  z-index: 1;
  width: 138px;
  height: 138px;
  padding: 0;
  opacity: 0.98;
  pointer-events: none;
}

.tsg-school .tsg-entry-card__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.10));
}

.tsg-school .tsg-entry-card__content {
  position: relative;
  z-index: 2;
  max-width: min(70%, 380px);
  padding-top: 0;
}

.tsg-school .tsg-entry-card__link {
  position: relative;
  z-index: 2;
  margin-top: 26px;
}

.tsg-school .tsg-entry-card h3 {
  margin-top: 10px;
  font-size: 28px;
}

.tsg-school .tsg-entry-card p:not(.tsg-entry-card__eyebrow) {
  margin-top: 12px;
  line-height: 1.75;
}

@media (max-width: 1024px) {
  .tsg-school .tsg-question-card {
    min-height: 300px;
  }

  .tsg-school .tsg-question-card__icon {
    width: 100px;
    height: 100px;
  }

  .tsg-school .tsg-entry-card {
    min-height: 312px;
    padding: 28px 28px 24px;
  }

  .tsg-school .tsg-entry-card__art {
    width: 118px;
    height: 118px;
    right: 16px;
    top: 14px;
  }

  .tsg-school .tsg-entry-card__content {
    max-width: min(72%, 330px);
  }
}

@media (max-width: 767px) {
  .tsg-school .tsg-question-card {
    min-height: auto;
  }

  .tsg-school .tsg-question-card__icon {
    width: 92px;
    height: 92px;
  }

  .tsg-school .tsg-entry-card {
    min-height: auto;
    padding: 24px 22px 24px;
  }

  .tsg-school .tsg-entry-card::before {
    width: 145px;
    height: 145px;
    right: -38px;
    top: -34px;
  }

  .tsg-school .tsg-entry-card__art {
    width: 92px;
    height: 92px;
    right: 10px;
    top: 10px;
  }

  .tsg-school .tsg-entry-card__content {
    max-width: calc(100% - 72px);
  }

  .tsg-school .tsg-entry-card h3 {
    font-size: 24px;
  }
}


/* =========================================================
   第一、二區段對齊修正
   1. 第一區段 icon 改為無外框顯示
   2. 第二區段插圖縮小並收進右上裝飾圓
   3. 三張入口卡統一文字區與連結位置
   ========================================================= */

/* 第一區段：取消所有網頁額外底框，圖片直接放在卡片上 */
.tsg-school .tsg-question-card__icon {
  display: block;
  width: 92px;
  height: 92px;
  margin: 0 0 18px;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible;
}

.tsg-school .tsg-question-card__icon img {
  display: block;
  width: 92px;
  height: 92px;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  /* 淡化圖片檔內建的淺色底板，使其更接近無底框圖示 */
  mix-blend-mode: multiply;
  filter: saturate(1.03) contrast(1.02);
}

/* 第二區段：統一卡片高度與內部排列 */
.tsg-school .tsg-entry-grid {
  align-items: stretch;
}

.tsg-school .tsg-entry-card {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 342px;
  padding: 32px 34px 28px;
}

/* 右上角裝飾圓 */
.tsg-school .tsg-entry-card::before {
  right: -32px;
  top: -42px;
  width: 188px;
  height: 188px;
}

/* 插圖完整收進圓形範圍內 */
.tsg-school .tsg-entry-card__art {
  right: 16px;
  top: 12px;
  width: 104px;
  height: 104px;
  padding: 0;
}

.tsg-school .tsg-entry-card:nth-child(1) .tsg-entry-card__art,
.tsg-school .tsg-entry-card:nth-child(2) .tsg-entry-card__art {
  right: 18px;
  top: 15px;
  width: 98px;
  height: 98px;
}

.tsg-school .tsg-entry-card__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 文字內容不再因插圖產生大段上方留白 */
.tsg-school .tsg-entry-card__content {
  display: grid;
  grid-template-rows: 24px 58px 96px;
  align-content: start;
  width: 100%;
  max-width: none;
  padding: 0 118px 0 0;
}

.tsg-school .tsg-entry-card__eyebrow {
  align-self: start;
  line-height: 1.4;
}

.tsg-school .tsg-entry-card h3 {
  align-self: start;
  display: flex;
  align-items: center;
  min-height: 58px;
  margin: 4px 0 0;
  font-size: 28px;
  line-height: 1.35;
}

.tsg-school .tsg-entry-card p:not(.tsg-entry-card__eyebrow) {
  align-self: start;
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.75;
  opacity: 0.76;
}

.tsg-school .tsg-entry-card__link {
  align-self: end;
  width: 100%;
  margin-top: 18px;
  padding-top: 22px;
}

@media (max-width: 1024px) {
  .tsg-school .tsg-entry-card {
    min-height: 326px;
    padding: 28px 28px 24px;
  }

  .tsg-school .tsg-entry-card::before {
    width: 168px;
    height: 168px;
  }

  .tsg-school .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(1) .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(2) .tsg-entry-card__art {
    right: 14px;
    top: 12px;
    width: 90px;
    height: 90px;
  }

  .tsg-school .tsg-entry-card__content {
    grid-template-rows: 22px 54px 92px;
    padding-right: 100px;
  }

  .tsg-school .tsg-entry-card h3 {
    min-height: 54px;
    font-size: 25px;
  }
}

@media (max-width: 767px) {
  .tsg-school .tsg-question-card__icon,
  .tsg-school .tsg-question-card__icon img {
    width: 82px;
    height: 82px;
  }

  .tsg-school .tsg-entry-card {
    display: grid;
    min-height: 300px;
    padding: 24px 22px 22px;
  }

  .tsg-school .tsg-entry-card::before {
    right: -35px;
    top: -36px;
    width: 142px;
    height: 142px;
  }

  .tsg-school .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(1) .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(2) .tsg-entry-card__art {
    right: 8px;
    top: 8px;
    width: 78px;
    height: 78px;
  }

  .tsg-school .tsg-entry-card__content {
    grid-template-rows: 20px 50px auto;
    padding-right: 72px;
  }

  .tsg-school .tsg-entry-card h3 {
    min-height: 50px;
    font-size: 23px;
  }

  .tsg-school .tsg-entry-card p:not(.tsg-entry-card__eyebrow) {
    font-size: 14px;
  }
}


/* =========================================================
   第一、二區段緊湊排版最終覆寫
   1. 第一區段縮短卡片上下留白與 icon 間距
   2. 第二區段文字優先，標題桌機版維持單行
   3. 插圖縮小並固定於右上裝飾圓內
   ========================================================= */

/* 第一區段：縮短卡片高度、上下內距與 icon 間距 */
.tsg-school .tsg-question-grid {
  align-items: stretch;
}

.tsg-school .tsg-question-card {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 22px 24px 20px;
  border-radius: 26px;
}

.tsg-school .tsg-question-card__icon,
.tsg-school .tsg-question-card__icon img {
  width: 78px;
  height: 78px;
}

.tsg-school .tsg-question-card__icon {
  margin: 0 0 12px;
}

.tsg-school .tsg-question-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
}

.tsg-school .tsg-question-card p {
  margin: 8px 0 14px;
  line-height: 1.7;
}

.tsg-school .tsg-question-card .tsg-text-link {
  margin-top: auto;
}

/* 第二區段：文字優先，插圖只作右上角背景裝飾 */
.tsg-school .tsg-entry-card {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 320px;
  padding: 30px 32px 26px;
}

.tsg-school .tsg-entry-card::before {
  right: -34px;
  top: -44px;
  width: 176px;
  height: 176px;
}

.tsg-school .tsg-entry-card__art,
.tsg-school .tsg-entry-card:nth-child(1) .tsg-entry-card__art,
.tsg-school .tsg-entry-card:nth-child(2) .tsg-entry-card__art {
  right: 13px;
  top: 10px;
  width: 82px;
  height: 82px;
}

.tsg-school .tsg-entry-card__content {
  display: grid;
  grid-template-rows: 24px 52px 82px;
  align-content: start;
  width: 100%;
  max-width: none;
  padding: 0;
}

.tsg-school .tsg-entry-card__eyebrow {
  width: calc(100% - 86px);
  white-space: nowrap;
}

.tsg-school .tsg-entry-card h3 {
  display: block;
  min-height: 0;
  margin: 5px 0 0;
  padding: 0;
  font-size: clamp(23px, 1.65vw, 28px);
  line-height: 1.32;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.tsg-school .tsg-entry-card p:not(.tsg-entry-card__eyebrow) {
  width: 100%;
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.72;
}

.tsg-school .tsg-entry-card__link {
  width: 100%;
  margin-top: 14px;
  padding-top: 18px;
}

@media (max-width: 1180px) and (min-width: 768px) {
  .tsg-school .tsg-entry-card {
    padding-left: 26px;
    padding-right: 26px;
  }

  .tsg-school .tsg-entry-card h3 {
    font-size: 23px;
  }

  .tsg-school .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(1) .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(2) .tsg-entry-card__art {
    right: 10px;
    width: 76px;
    height: 76px;
  }
}

@media (max-width: 1024px) {
  .tsg-school .tsg-question-card {
    min-height: 252px;
    padding: 20px 22px 18px;
  }

  .tsg-school .tsg-question-card__icon,
  .tsg-school .tsg-question-card__icon img {
    width: 72px;
    height: 72px;
  }

  .tsg-school .tsg-entry-card {
    min-height: 300px;
    padding: 26px 26px 22px;
  }

  .tsg-school .tsg-entry-card__content {
    grid-template-rows: 22px 48px 76px;
  }
}

@media (max-width: 767px) {
  .tsg-school .tsg-question-card {
    min-height: auto;
    padding: 20px 20px 18px;
  }

  .tsg-school .tsg-question-card__icon,
  .tsg-school .tsg-question-card__icon img {
    width: 70px;
    height: 70px;
  }

  .tsg-school .tsg-question-card__icon {
    margin-bottom: 10px;
  }

  .tsg-school .tsg-entry-card {
    min-height: 282px;
    padding: 24px 22px 21px;
  }

  .tsg-school .tsg-entry-card::before {
    right: -38px;
    top: -38px;
    width: 138px;
    height: 138px;
  }

  .tsg-school .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(1) .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(2) .tsg-entry-card__art {
    right: 8px;
    top: 8px;
    width: 68px;
    height: 68px;
  }

  .tsg-school .tsg-entry-card__content {
    grid-template-rows: 20px auto auto;
  }

  .tsg-school .tsg-entry-card__eyebrow {
    width: calc(100% - 70px);
  }

  .tsg-school .tsg-entry-card h3 {
    margin-top: 8px;
    font-size: 23px;
    white-space: normal;
  }

  .tsg-school .tsg-entry-card p:not(.tsg-entry-card__eyebrow) {
    margin-top: 10px;
  }
}


/* =========================================================
   第二、三區段微調最終覆寫
   1. 第二區段插圖放大但不超出右上裝飾圓
   2. 第二區段縮短內文與底線距離
   3. 第三區段移除 icon，改用淡化背景插圖
   ========================================================= */

/* 第二區段 */
.tsg-school .tsg-entry-card::before {
  right: -30px;
  top: -38px;
  width: 184px;
  height: 184px;
}

.tsg-school .tsg-entry-card__art,
.tsg-school .tsg-entry-card:nth-child(1) .tsg-entry-card__art,
.tsg-school .tsg-entry-card:nth-child(2) .tsg-entry-card__art,
.tsg-school .tsg-entry-card:nth-child(3) .tsg-entry-card__art {
  right: 12px;
  top: 8px;
  width: 98px;
  height: 98px;
}

.tsg-school .tsg-entry-card__content {
  grid-template-rows: 24px 52px auto;
}

.tsg-school .tsg-entry-card__link {
  margin-top: 6px;
  padding-top: 13px;
}

/* 第三區段：淡化背景插圖卡 */
.tsg-school .tsg-protection-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 258px;
  padding: 26px 26px 24px;
  isolation: isolate;
  overflow: hidden;
  color: var(--tsg-white) !important;
  background: rgba(255,255,255,0.065);
  border: 1px solid rgba(255,255,255,0.15);
}

.tsg-school .tsg-protection-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0,32,88,0.96) 0%, rgba(0,32,88,0.88) 54%, rgba(0,32,88,0.42) 100%);
  transition: background 0.25s ease;
}

.tsg-school .tsg-protection-card::after {
  display: none;
}

.tsg-school .tsg-protection-card:hover::before {
  background: linear-gradient(90deg, rgba(0,32,88,0.93) 0%, rgba(0,32,88,0.80) 54%, rgba(0,32,88,0.30) 100%);
}

.tsg-school .tsg-protection-card__art {
  position: absolute;
  right: -4px;
  top: 50%;
  z-index: -2;
  width: 58%;
  height: 88%;
  transform: translateY(-50%);
  opacity: 0.28;
  pointer-events: none;
}

.tsg-school .tsg-protection-card__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  filter: saturate(0.9) contrast(0.95);
}

.tsg-school .tsg-protection-card__content {
  position: relative;
  z-index: 2;
  width: min(74%, 340px);
}

.tsg-school .tsg-protection-card h3 {
  margin: 0;
  color: var(--tsg-white) !important;
  font-size: 23px;
}

.tsg-school .tsg-protection-card p {
  margin: 10px 0 18px;
  color: rgba(255,255,255,0.78) !important;
  line-height: 1.75;
}

.tsg-school .tsg-protection-card__link {
  color: var(--tsg-gold) !important;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 1180px) and (min-width: 768px) {
  .tsg-school .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(1) .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(2) .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(3) .tsg-entry-card__art {
    width: 88px;
    height: 88px;
    right: 10px;
  }
}

@media (max-width: 767px) {
  .tsg-school .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(1) .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(2) .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(3) .tsg-entry-card__art {
    width: 76px;
    height: 76px;
    right: 8px;
    top: 8px;
  }

  .tsg-school .tsg-entry-card__link {
    margin-top: 10px;
    padding-top: 14px;
  }

  .tsg-school .tsg-protection-card {
    min-height: 230px;
    padding: 24px 22px 22px;
  }

  .tsg-school .tsg-protection-card__art {
    right: -10px;
    width: 62%;
    height: 82%;
    opacity: 0.24;
  }

  .tsg-school .tsg-protection-card__content {
    width: 78%;
  }
}


/* =========================================================
   最終覆寫｜第二區段插圖加大、縮短內文與底線距離
             第三區段改回白色卡片與淡化背景插圖
   ========================================================= */

/* 第二區段：插圖加大，但維持在右上裝飾圓內 */
.tsg-school .tsg-entry-card::before {
  right: -28px;
  top: -36px;
  width: 190px;
  height: 190px;
}

.tsg-school .tsg-entry-card__art,
.tsg-school .tsg-entry-card:nth-child(1) .tsg-entry-card__art,
.tsg-school .tsg-entry-card:nth-child(2) .tsg-entry-card__art,
.tsg-school .tsg-entry-card:nth-child(3) .tsg-entry-card__art {
  right: 9px;
  top: 6px;
  width: 112px;
  height: 112px;
}

.tsg-school .tsg-entry-card__content {
  grid-template-rows: 24px 52px auto;
}

.tsg-school .tsg-entry-card__link {
  margin-top: 16px;
  padding-top: 16px;
}

/* 第三區段：白色卡片，不使用藍色漸層遮罩 */
.tsg-school .tsg-protection-card {
  position: relative;
  display: block;
  min-height: 245px;
  padding: 22px 24px 22px;
  isolation: isolate;
  overflow: hidden;
  color: var(--tsg-navy) !important;
  background: var(--tsg-white) !important;
  border: 1px solid rgba(0,32,88,0.12);
  box-shadow: 0 10px 28px rgba(0,32,88,0.07);
}

.tsg-school .tsg-protection-card::before {
  display: none !important;
  content: none !important;
  background: none !important;
}

.tsg-school .tsg-protection-card::after {
  display: none !important;
}

.tsg-school .tsg-protection-card:hover {
  background: var(--tsg-white) !important;
  border-color: rgba(242,169,0,0.48);
  box-shadow: 0 16px 34px rgba(0,32,88,0.11);
}

.tsg-school .tsg-protection-card__art {
  position: absolute;
  right: -8px;
  top: 50%;
  z-index: -1;
  width: 54%;
  height: 88%;
  transform: translateY(-50%);
  opacity: 0.13;
  pointer-events: none;
}

.tsg-school .tsg-protection-card__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  filter: saturate(0.9) contrast(0.95);
}

.tsg-school .tsg-protection-card__content {
  position: relative;
  z-index: 2;
  width: min(76%, 350px);
}

.tsg-school .tsg-protection-card h3 {
  margin: 0 0 8px;
  color: var(--tsg-navy) !important;
  font-size: 23px;
  line-height: 1.35;
}

.tsg-school .tsg-protection-card p {
  margin: 0 0 16px;
  color: #5d6d78 !important;
  line-height: 1.72;
}

.tsg-school .tsg-protection-card__link {
  color: #0b5cab !important;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 1180px) and (min-width: 768px) {
  .tsg-school .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(1) .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(2) .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(3) .tsg-entry-card__art {
    width: 100px;
    height: 100px;
    right: 8px;
    top: 7px;
  }
}

@media (max-width: 767px) {
  .tsg-school .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(1) .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(2) .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(3) .tsg-entry-card__art {
    width: 84px;
    height: 84px;
    right: 7px;
    top: 7px;
  }

  .tsg-school .tsg-entry-card__link {
    margin-top: 12px;
    padding-top: 13px;
  }

  .tsg-school .tsg-protection-card {
    min-height: 220px;
    padding: 20px 20px 20px;
  }

  .tsg-school .tsg-protection-card__art {
    right: -10px;
    width: 58%;
    height: 82%;
    opacity: 0.11;
  }

  .tsg-school .tsg-protection-card__content {
    width: 80%;
  }
}


/* =========================================================
   第二、三區段最終微調
   1. 第二區段：縮小空白、插圖再放大、第三張圖再加大
   2. 第三區段：以文字為主，縮短了解更多下方的留白
   ========================================================= */

/* 第二區段：以文字為主，卡片高度縮短，減少大面積空白 */
.tsg-school .tsg-entry-card {
  min-height: 268px;
  padding: 24px 28px 20px;
}

.tsg-school .tsg-entry-card::before {
  right: -24px;
  top: -30px;
  width: 198px;
  height: 198px;
}

.tsg-school .tsg-entry-card__art,
.tsg-school .tsg-entry-card:nth-child(1) .tsg-entry-card__art,
.tsg-school .tsg-entry-card:nth-child(2) .tsg-entry-card__art {
  right: 10px;
  top: 8px;
  width: 114px;
  height: 114px;
}

/* 第三張插圖再放大一點 */
.tsg-school .tsg-entry-card:nth-child(3) .tsg-entry-card__art {
  right: 8px;
  top: 4px;
  width: 128px;
  height: 128px;
}

.tsg-school .tsg-entry-card__content {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0 128px 0 0;
}

.tsg-school .tsg-entry-card__eyebrow {
  margin: 0 0 10px;
  line-height: 1.35;
}

.tsg-school .tsg-entry-card h3 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.22;
  white-space: nowrap;
}

.tsg-school .tsg-entry-card p:not(.tsg-entry-card__eyebrow) {
  margin: 0;
  line-height: 1.6;
}

.tsg-school .tsg-entry-card__link {
  margin-top: 12px;
  padding-top: 10px;
}

/* 第三區段：文字優先，縮短卡片高度，背景插圖只作淡化搭配 */
.tsg-school .tsg-protection-card {
  min-height: 206px;
  padding: 18px 22px 18px;
}

.tsg-school .tsg-protection-card__art {
  right: -6px;
  top: 54%;
  width: 46%;
  height: 72%;
  opacity: 0.12;
}

.tsg-school .tsg-protection-card__content {
  width: min(70%, 320px);
}

.tsg-school .tsg-protection-card h3 {
  margin: 0 0 8px;
  line-height: 1.28;
}

.tsg-school .tsg-protection-card p {
  margin: 0 0 12px;
  line-height: 1.66;
}

.tsg-school .tsg-protection-card__link {
  display: inline-block;
  margin-top: 0;
}

@media (max-width: 1180px) and (min-width: 768px) {
  .tsg-school .tsg-entry-card {
    min-height: 252px;
    padding: 22px 24px 18px;
  }

  .tsg-school .tsg-entry-card::before {
    width: 182px;
    height: 182px;
    right: -24px;
    top: -28px;
  }

  .tsg-school .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(1) .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(2) .tsg-entry-card__art {
    width: 102px;
    height: 102px;
    right: 8px;
    top: 8px;
  }

  .tsg-school .tsg-entry-card:nth-child(3) .tsg-entry-card__art {
    width: 116px;
    height: 116px;
    right: 6px;
    top: 6px;
  }

  .tsg-school .tsg-entry-card__content {
    padding-right: 114px;
  }

  .tsg-school .tsg-entry-card h3 {
    font-size: 24px;
  }

  .tsg-school .tsg-protection-card {
    min-height: 194px;
    padding: 18px 18px 16px;
  }

  .tsg-school .tsg-protection-card__art {
    width: 44%;
    height: 68%;
    opacity: 0.11;
  }

  .tsg-school .tsg-protection-card__content {
    width: 72%;
  }
}

@media (max-width: 767px) {
  .tsg-school .tsg-entry-card {
    min-height: auto;
    padding: 22px 20px 18px;
  }

  .tsg-school .tsg-entry-card::before {
    width: 150px;
    height: 150px;
    right: -30px;
    top: -26px;
  }

  .tsg-school .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(1) .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(2) .tsg-entry-card__art {
    width: 86px;
    height: 86px;
    right: 8px;
    top: 8px;
  }

  .tsg-school .tsg-entry-card:nth-child(3) .tsg-entry-card__art {
    width: 96px;
    height: 96px;
    right: 6px;
    top: 6px;
  }

  .tsg-school .tsg-entry-card__content {
    padding-right: 94px;
  }

  .tsg-school .tsg-entry-card h3 {
    font-size: 22px;
    white-space: normal;
  }

  .tsg-school .tsg-entry-card__link {
    margin-top: 10px;
    padding-top: 10px;
  }

  .tsg-school .tsg-protection-card {
    min-height: auto;
    padding: 18px 18px 16px;
  }

  .tsg-school .tsg-protection-card__art {
    width: 42%;
    height: 62%;
    opacity: 0.10;
  }

  .tsg-school .tsg-protection-card__content {
    width: 74%;
  }
}


/* =========================================================
   第二三區段最終調整
   1. 第二區段插圖置中放大，進一步縮短內文與底線距離
   2. 第三區段背景插圖上移，縮短了解更多下方留白
   ========================================================= */

/* ===== 第二區段：三大學習入口 ===== */
.tsg-school .tsg-entry-card {
  min-height: 244px;
  padding: 22px 26px 18px;
}

/* 右上圓再明確一點，方便插圖置中 */
.tsg-school .tsg-entry-card::before {
  right: -22px;
  top: -24px;
  width: 196px;
  height: 196px;
}

/* 三張插圖至少置於圓形中間位置 */
.tsg-school .tsg-entry-card__art,
.tsg-school .tsg-entry-card:nth-child(1) .tsg-entry-card__art,
.tsg-school .tsg-entry-card:nth-child(2) .tsg-entry-card__art {
  right: 26px;
  top: 18px;
  width: 118px;
  height: 118px;
}

/* 第三張再放大一點 */
.tsg-school .tsg-entry-card:nth-child(3) .tsg-entry-card__art {
  right: 24px;
  top: 14px;
  width: 132px;
  height: 132px;
}

/* 文字優先，避免空白過多 */
.tsg-school .tsg-entry-card__content {
  padding: 0 136px 0 0;
}

.tsg-school .tsg-entry-card h3 {
  margin: 0 0 10px;
  font-size: 25px;
}

.tsg-school .tsg-entry-card p:not(.tsg-entry-card__eyebrow) {
  margin: 0;
  line-height: 1.58;
}

/* 內文與橫線距離再縮小 */
.tsg-school .tsg-entry-card__link {
  margin-top: 8px;
  padding-top: 8px;
}

/* ===== 第三區段：六大保障 ===== */
.tsg-school .tsg-protection-card {
  min-height: 192px;
  padding: 18px 22px 18px;
}

/* 背景插圖往上移，文字可壓過插圖沒關係 */
.tsg-school .tsg-protection-card__art {
  right: -4px;
  top: 42%;
  width: 50%;
  height: 82%;
  opacity: 0.13;
}

.tsg-school .tsg-protection-card__art img {
  object-position: right top;
}

.tsg-school .tsg-protection-card__content {
  width: min(72%, 330px);
}

.tsg-school .tsg-protection-card h3 {
  margin: 0 0 8px;
}

.tsg-school .tsg-protection-card p {
  margin: 0 0 10px;
  line-height: 1.62;
}

/* 讓了解更多下方間距縮小到接近上方標題間距 */
.tsg-school .tsg-protection-card__link {
  display: inline-block;
  margin-top: 0;
  line-height: 1.3;
}

@media (max-width: 1180px) and (min-width: 768px) {
  .tsg-school .tsg-entry-card {
    min-height: 232px;
    padding: 20px 22px 16px;
  }

  .tsg-school .tsg-entry-card::before {
    right: -20px;
    top: -22px;
    width: 178px;
    height: 178px;
  }

  .tsg-school .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(1) .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(2) .tsg-entry-card__art {
    right: 22px;
    top: 16px;
    width: 106px;
    height: 106px;
  }

  .tsg-school .tsg-entry-card:nth-child(3) .tsg-entry-card__art {
    right: 20px;
    top: 12px;
    width: 118px;
    height: 118px;
  }

  .tsg-school .tsg-entry-card__content {
    padding-right: 122px;
  }

  .tsg-school .tsg-entry-card h3 {
    font-size: 23px;
  }

  .tsg-school .tsg-protection-card {
    min-height: 184px;
    padding: 16px 18px 16px;
  }

  .tsg-school .tsg-protection-card__art {
    top: 40%;
    width: 52%;
    height: 80%;
  }

  .tsg-school .tsg-protection-card__content {
    width: 74%;
  }
}

@media (max-width: 767px) {
  .tsg-school .tsg-entry-card {
    min-height: auto;
    padding: 20px 18px 16px;
  }

  .tsg-school .tsg-entry-card::before {
    right: -22px;
    top: -22px;
    width: 150px;
    height: 150px;
  }

  .tsg-school .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(1) .tsg-entry-card__art,
  .tsg-school .tsg-entry-card:nth-child(2) .tsg-entry-card__art {
    right: 16px;
    top: 14px;
    width: 84px;
    height: 84px;
  }

  .tsg-school .tsg-entry-card:nth-child(3) .tsg-entry-card__art {
    right: 14px;
    top: 10px;
    width: 94px;
    height: 94px;
  }

  .tsg-school .tsg-entry-card__content {
    padding-right: 96px;
  }

  .tsg-school .tsg-entry-card h3 {
    font-size: 22px;
    white-space: normal;
  }

  .tsg-school .tsg-entry-card__link {
    margin-top: 8px;
    padding-top: 8px;
  }

  .tsg-school .tsg-protection-card {
    min-height: auto;
    padding: 16px 18px 16px;
  }

  .tsg-school .tsg-protection-card__art {
    top: 36%;
    width: 46%;
    height: 68%;
  }

  .tsg-school .tsg-protection-card__content {
    width: 76%;
  }
}


/* =========================================================
   第三區段｜了解更多與卡片底部間距縮至最小
   後續可再逐步調高
   ========================================================= */
.tsg-school .tsg-protection-card {
  min-height: 0;
  padding-bottom: 6px;
}

.tsg-school .tsg-protection-card__content {
  padding-bottom: 0;
}

.tsg-school .tsg-protection-card__link {
  display: inline-block;
  margin: 0;
  padding: 0;
  line-height: 1.1;
}

@media (max-width: 1180px) and (min-width: 768px) {
  .tsg-school .tsg-protection-card {
    min-height: 0;
    padding-bottom: 6px;
  }
}

@media (max-width: 767px) {
  .tsg-school .tsg-protection-card {
    min-height: 0;
    padding-bottom: 6px;
  }
}


/* =========================================================
   第三區段｜底部間距 10px＋背景插圖放大
   ========================================================= */
.tsg-school .tsg-protection-card {
  padding-bottom: 10px;
}

.tsg-school .tsg-protection-card__art {
  right: -22px;
  top: 36%;
  width: 62%;
  height: 96%;
  opacity: 0.14;
  overflow: visible;
}

.tsg-school .tsg-protection-card__art img {
  object-fit: contain;
  object-position: right top;
  transform: scale(1.08);
  transform-origin: right top;
}

@media (max-width: 1180px) and (min-width: 768px) {
  .tsg-school .tsg-protection-card {
    padding-bottom: 10px;
  }

  .tsg-school .tsg-protection-card__art {
    right: -18px;
    top: 35%;
    width: 64%;
    height: 92%;
  }
}

@media (max-width: 767px) {
  .tsg-school .tsg-protection-card {
    padding-bottom: 10px;
  }

  .tsg-school .tsg-protection-card__art {
    right: -14px;
    top: 34%;
    width: 56%;
    height: 82%;
    opacity: 0.12;
  }
}


/* =========================================================
   第三區段｜底部間距與頂部一致＋背景插圖上下置中
   桌機 18px｜平板 16px｜手機 16px
   ========================================================= */
.tsg-school .tsg-protection-card {
  padding-bottom: 18px;
}

/* 插圖容器使用相同的上下間距，避免視覺偏上 */
.tsg-school .tsg-protection-card__art {
  top: 18px;
  bottom: 18px;
  height: auto;
  transform: none;
}

.tsg-school .tsg-protection-card__art img {
  height: 100%;
  object-position: right center;
  transform-origin: right center;
}

@media (max-width: 1180px) and (min-width: 768px) {
  .tsg-school .tsg-protection-card {
    padding-bottom: 16px;
  }

  .tsg-school .tsg-protection-card__art {
    top: 16px;
    bottom: 16px;
    height: auto;
    transform: none;
  }
}

@media (max-width: 767px) {
  .tsg-school .tsg-protection-card {
    padding-bottom: 16px;
  }

  .tsg-school .tsg-protection-card__art {
    top: 16px;
    bottom: 16px;
    height: auto;
    transform: none;
  }
}


/* =========================================================
   第一區段尺寸與間距調整
   ========================================================= */

/* 桌機版 */
.tsg-school .tsg-question-card {
  padding: 14px 24px 20px;
}

.tsg-school .tsg-question-card__icon,
.tsg-school .tsg-question-card__icon img {
  width: 90px;
  height: 90px;
}

.tsg-school .tsg-question-card__icon {
  margin: 0 0 14px;
}

.tsg-school .tsg-question-card h3 {
  margin: 0;
}

.tsg-school .tsg-question-card p {
  margin: 8px 0 12px;
}

/* 平板版 */
@media (max-width: 1024px) and (min-width: 768px) {
  .tsg-school .tsg-question-card {
    padding: 12px 22px 18px;
  }

  .tsg-school .tsg-question-card__icon,
  .tsg-school .tsg-question-card__icon img {
    width: 80px;
    height: 80px;
  }

  .tsg-school .tsg-question-card__icon {
    margin-bottom: 12px;
  }
}

/* 手機版 */
@media (max-width: 767px) {
  .tsg-school .tsg-question-card {
    padding: 12px 20px 18px;
  }

  .tsg-school .tsg-question-card__icon,
  .tsg-school .tsg-question-card__icon img {
    width: 80px;
    height: 80px;
  }

  .tsg-school .tsg-question-card__icon {
    margin-bottom: 8px;
  }
}


/* =========================================================
   第四區段調整｜人生階段卡片改為右下淡化背景插圖
   ========================================================= */

.tsg-school .tsg-stage-card {
  position: relative;
  min-height: 218px;
  padding: 20px 22px 18px;
  overflow: hidden;
  isolation: isolate;
  background: #ffffff;
  border: 1px solid rgba(0,32,88,0.10);
}

.tsg-school .tsg-stage-card__icon {
  display: none !important;
}

.tsg-school .tsg-stage-card::before {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background: rgba(0,32,88,0.04);
  z-index: -2;
}

.tsg-school .tsg-stage-card__art {
  position: absolute;
  right: -6px;
  bottom: -6px;
  z-index: -1;
  width: 44%;
  height: 78%;
  opacity: 0.16;
  pointer-events: none;
}

.tsg-school .tsg-stage-card__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  filter: saturate(0.92) contrast(0.96);
}

.tsg-school .tsg-stage-card__content {
  position: relative;
  z-index: 2;
  width: min(72%, 240px);
}

.tsg-school .tsg-stage-card h3 {
  margin: 0 0 8px;
  color: #002058;
  font-size: 18px;
  line-height: 1.35;
}

.tsg-school .tsg-stage-card p {
  margin: 0 0 14px;
  color: #5c6b80;
  font-size: 13px;
  line-height: 1.66;
}

.tsg-school .tsg-stage-card__link,
.tsg-school .tsg-stage-card &gt; span:last-child {
  display: inline-block;
  color: #1a5aa8;
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 1180px) and (min-width: 768px) {
  .tsg-school .tsg-stage-card {
    min-height: 206px;
    padding: 18px 18px 16px;
  }

  .tsg-school .tsg-stage-card__art {
    width: 42%;
    height: 74%;
    opacity: 0.15;
  }

  .tsg-school .tsg-stage-card__content {
    width: 74%;
  }
}

@media (max-width: 767px) {
  .tsg-school .tsg-stage-card {
    min-height: auto;
    padding: 18px 18px 16px;
  }

  .tsg-school .tsg-stage-card::before {
    right: -34px;
    bottom: -34px;
    width: 132px;
    height: 132px;
  }

  .tsg-school .tsg-stage-card__art {
    width: 38%;
    height: 68%;
    right: -4px;
    bottom: -4px;
    opacity: 0.14;
  }

  .tsg-school .tsg-stage-card__content {
    width: 78%;
  }
}


/* =========================================================
   第四區段微調｜移除灰色圓形、恢復原文字寬度、背景插圖放大
   ========================================================= */

/* 不額外放置灰色圓形裝飾 */
.tsg-school .tsg-stage-card::before {
  display: none !important;
}

/* 文字恢復原本可用寬度，不為背景圖預留右側空間 */
.tsg-school .tsg-stage-card__content {
  width: 100%;
  max-width: none;
}

/* 背景插圖放大，直接壓在文字後方 */
.tsg-school .tsg-stage-card__art {
  right: -18px;
  bottom: -14px;
  width: 64%;
  height: 96%;
  opacity: 0.12;
}

.tsg-school .tsg-stage-card__art img {
  object-fit: contain;
  object-position: right bottom;
}

/* 文字維持前景，避免與背景視覺衝突 */
.tsg-school .tsg-stage-card h3,
.tsg-school .tsg-stage-card p,
.tsg-school .tsg-stage-card__link {
  position: relative;
  z-index: 2;
}

@media (max-width: 1180px) and (min-width: 768px) {
  .tsg-school .tsg-stage-card__content {
    width: 100%;
  }

  .tsg-school .tsg-stage-card__art {
    right: -16px;
    bottom: -12px;
    width: 60%;
    height: 92%;
    opacity: 0.11;
  }
}

@media (max-width: 767px) {
  .tsg-school .tsg-stage-card__content {
    width: 100%;
  }

  .tsg-school .tsg-stage-card__art {
    right: -12px;
    bottom: -10px;
    width: 54%;
    height: 86%;
    opacity: 0.10;
  }
}


/* =========================================================
   第四區段最終修正｜文字與背景完全分層、移除卡片多餘底部空白
   ========================================================= */

/* 卡片高度只由文字內容與 padding 決定，不再保留固定高度 */
.tsg-school .tsg-stage-grid {
  align-items: start;
}

.tsg-school .tsg-stage-card {
  display: block;
  min-height: 0 !important;
  height: auto !important;
  padding: 20px 22px 18px;
}

/* 移除舊版為標題保留的固定高度 */
.tsg-school .tsg-stage-card h3 {
  min-height: 0 !important;
  margin: 0 0 8px;
}

.tsg-school .tsg-stage-card p {
  margin: 0 0 14px;
}

/* 文字在最上層，背景圖絕不參與排版 */
.tsg-school .tsg-stage-card__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: none;
}

.tsg-school .tsg-stage-card__link {
  display: inline-block;
  margin: 0;
  position: relative;
  z-index: 3;
}

.tsg-school .tsg-stage-card__art {
  position: absolute;
  z-index: 1;
  right: -18px;
  bottom: -14px;
  width: 64%;
  height: 96%;
  opacity: 0.12;
  pointer-events: none;
}

.tsg-school .tsg-stage-card__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
}

@media (max-width: 1180px) and (min-width: 768px) {
  .tsg-school .tsg-stage-card {
    min-height: 0 !important;
    height: auto !important;
    padding: 18px 18px 16px;
  }

  .tsg-school .tsg-stage-card h3 {
    min-height: 0 !important;
  }
}

@media (max-width: 767px) {
  .tsg-school .tsg-stage-card {
    min-height: 0 !important;
    height: auto !important;
    padding: 18px 18px 16px;
  }

  .tsg-school .tsg-stage-card h3 {
    min-height: 0 !important;
  }
}


/* =========================================================
   第四區段｜黃點精準對齊六張卡片中心
   ========================================================= */
.tsg-school .tsg-stage-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  height: 2px;
  margin: 0 0 16px;
  background: transparent;
}

.tsg-school .tsg-stage-track::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc((100% - 50px) / 12);
  right: calc((100% - 50px) / 12);
  height: 2px;
  background: rgba(0,32,88,0.14);
}

.tsg-school .tsg-stage-track span {
  position: relative;
  z-index: 1;
  justify-self: center;
  align-self: center;
}


/* =========================================================
   Banner、手機頁籤與第四區段生命線調整
   ========================================================= */

/* 第四區段：生命線超過最左與最右黃點 */
.tsg-school .tsg-stage-track::before {
  left: -18px;
  right: -18px;
}

/* 桌機版 Banner 按鈕加大 */
@media (min-width: 1025px) {
  .tsg-school .tsg-school-hero__actions {
    gap: 18px;
  }

  .tsg-school .tsg-school-hero .tsg-school-btn {
    min-width: 250px;
    min-height: 62px;
    padding: 14px 32px;
    border-radius: 16px;
    font-size: 21px;
  }
}

/* 手機版：Banner 按鈕縮小、六個頁籤改為 3×2 完整顯示 */
@media (max-width: 767px) {
  .tsg-school .tsg-school-hero__button-bar {
    bottom: 6px;
    padding: 0 10px;
  }

  .tsg-school .tsg-school-hero__actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 5px;
  }

  .tsg-school .tsg-school-hero .tsg-school-btn {
    width: auto;
    min-width: 0;
    min-height: 28px;
    padding: 5px 8px;
    border-width: 1px;
    border-radius: 7px;
    font-size: 10px;
    line-height: 1.15;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0,17,49,0.20);
  }

  .tsg-school .tsg-school-nav .tsg-school-container {
    width: 100%;
    padding: 0 8px;
  }

  .tsg-school .tsg-school-nav__scroll {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: visible;
    width: 100%;
  }

  .tsg-school .tsg-school-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    padding: 8px 4px;
    font-size: 13px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .tsg-school .tsg-school-nav a::after {
    left: 8px;
    right: 8px;
  }
}

/* 極小螢幕避免頁籤文字過擠 */
@media (max-width: 390px) {
  .tsg-school .tsg-school-nav a {
    font-size: 12px;
    padding-left: 2px;
    padding-right: 2px;
  }
}


/* =========================================================
   FAQ 內文左右間距修正
   正式環境可能覆蓋答案容器 padding，因此同步作用於答案文字本身
   ========================================================= */
.tsg-school .tsg-faq-item &gt; div {
  padding: 0 24px 22px !important;
}

.tsg-school .tsg-faq-item &gt; div &gt; p,
.tsg-school .tsg-faq-item[open] &gt; div &gt; p {
  box-sizing: border-box;
  width: 100%;
  margin: 0 !important;
  padding: 18px 0 0 !important;
  text-indent: 0 !important;
}

/* 防止 Elementor／佈景主題將答案容器拉到卡片邊緣 */
.tsg-school .tsg-faq-item[open] &gt; div {
  margin: 0 !important;
}

@media (max-width: 767px) {
  .tsg-school .tsg-faq-item &gt; div {
    padding: 0 18px 18px !important;
  }

  .tsg-school .tsg-faq-item &gt; div &gt; p,
  .tsg-school .tsg-faq-item[open] &gt; div &gt; p {
    padding-top: 14px !important;
  }
}


/* =========================================================
   手機 Banner 按鈕縮小＋FAQ 展開內文左右間距強制修正
   ========================================================= */

@media (max-width: 767px) {
  /* Banner 內兩個按鈕再縮小，避免遮擋主視覺 */
  .tsg-school .tsg-school-hero__button-bar {
    bottom: 6px !important;
    padding: 0 6px !important;
  }

  .tsg-school .tsg-school-hero__actions {
    gap: 5px !important;
    justify-content: center !important;
  }

  .tsg-school .tsg-school-hero .tsg-school-btn {
    min-width: 0 !important;
    width: auto !important;
    min-height: 28px !important;
    padding: 4px 8px !important;
    border-radius: 7px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }

  /* FAQ：同時把間距加在外層容器與 p 本身，避免 Elementor 清除父層 padding */
  .tsg-school .tsg-faq-item &gt; div {
    display: block !important;
    width: 100% !important;
    padding: 0 18px 18px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .tsg-school .tsg-faq-item &gt; div &gt; p,
  .tsg-school .tsg-faq-item[open] &gt; div &gt; p {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 16px 0 0 !important;
    box-sizing: border-box !important;
    border-top: 1px solid rgba(0,32,88,0.12) !important;
  }
}


/* =========================================================
   手機生命線隱藏＋FAQ 正式環境強制間距修正
   ========================================================= */

/* 手機版不顯示人生階段黃點與灰色生命線 */
@media (max-width: 767px) {
  .tsg-school .tsg-stage-track {
    display: none !important;
  }
}

/*
 * FAQ 正式頁可能改寫 div 結構或清除父層 padding。
 * 改由所有答案段落本身保留左右 margin，不依賴外層容器。
 */
.tsg-school .tsg-faq-item &gt; div,
.tsg-school .tsg-faq-item[open] &gt; div {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 0 22px !important;
  box-sizing: border-box !important;
}

.tsg-school .tsg-faq-item p,
.tsg-school .tsg-faq-item &gt; p,
.tsg-school .tsg-faq-item &gt; div &gt; p,
.tsg-school .tsg-faq-item[open] p {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 24px !important;
  padding: 18px 0 0 !important;
  box-sizing: border-box !important;
  text-indent: 0 !important;
  border-top: 1px solid rgba(0,32,88,0.12) !important;
}

@media (max-width: 767px) {
  .tsg-school .tsg-faq-item &gt; div,
  .tsg-school .tsg-faq-item[open] &gt; div {
    padding: 0 0 18px !important;
  }

  .tsg-school .tsg-faq-item p,
  .tsg-school .tsg-faq-item &gt; p,
  .tsg-school .tsg-faq-item &gt; div &gt; p,
  .tsg-school .tsg-faq-item[open] p {
    width: auto !important;
    margin-left: 18px !important;
    margin-right: 18px !important;
    padding: 14px 0 0 !important;
  }
}


/* =========================================================
   Banner 與 FAQ 最終修正
   1. 桌機 Banner 按鈕往下
   2. 手機 Banner 按鈕再縮小 2px
   3. FAQ 改用專屬 class，避免舊規則影響桌機／平板／手機
   ========================================================= */

/* 桌機版：按鈕更靠近 Banner 底部 */
@media (min-width: 1025px) {
  .tsg-school .tsg-school-hero__button-bar {
    bottom: 10px !important;
  }
}

/* 平板版保留適當底部距離 */
@media (min-width: 768px) and (max-width: 1024px) {
  .tsg-school .tsg-school-hero__button-bar {
    bottom: 8px !important;
  }
}

/* 手機版：按鈕字級由 10px 縮至 8px，整體尺寸同步縮小 */
@media (max-width: 767px) {
  .tsg-school .tsg-school-hero__button-bar {
    bottom: 4px !important;
    padding: 0 5px !important;
  }

  .tsg-school .tsg-school-hero__actions {
    gap: 4px !important;
  }

  .tsg-school .tsg-school-hero .tsg-school-btn {
    min-height: 24px !important;
    padding: 3px 6px !important;
    border-radius: 6px !important;
    font-size: 8px !important;
    line-height: 1.15 !important;
  }
}

/* FAQ：先清除舊版廣泛 .elementor-85964 .elementor-element.elementor-element-eed4292 對答案區的干擾 */
.tsg-school .tsg-faq-item &gt; .tsg-faq-answer,
.tsg-school .tsg-faq-item[open] &gt; .tsg-faq-answer {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 24px 22px !important;
  box-sizing: border-box !important;
}

.tsg-school .tsg-faq-item .tsg-faq-answer__text,
.tsg-school .tsg-faq-item[open] .tsg-faq-answer__text {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 18px 0 0 !important;
  box-sizing: border-box !important;
  color: #14233a !important;
  text-indent: 0 !important;
  text-align: left !important;
  line-height: 1.75 !important;
  border-top: 1px solid rgba(0,32,88,0.12) !important;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .tsg-school .tsg-faq-item &gt; .tsg-faq-answer,
  .tsg-school .tsg-faq-item[open] &gt; .tsg-faq-answer {
    padding: 0 22px 20px !important;
  }

  .tsg-school .tsg-faq-item .tsg-faq-answer__text,
  .tsg-school .tsg-faq-item[open] .tsg-faq-answer__text {
    padding-top: 16px !important;
  }
}

@media (max-width: 767px) {
  .tsg-school .tsg-faq-item &gt; .tsg-faq-answer,
  .tsg-school .tsg-faq-item[open] &gt; .tsg-faq-answer {
    width: auto !important;
    margin: 0 !important;
    padding: 0 18px 18px !important;
  }

  .tsg-school .tsg-faq-item .tsg-faq-answer__text,
  .tsg-school .tsg-faq-item[open] .tsg-faq-answer__text {
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 0 0 !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
  }
}


/* =========================================================
   2026/07｜新手常見問題答案區最終重製
   - 使用專屬 class，不依賴 Elementor 可能被清除的父層樣式
   - 桌機、平板、手機皆保留完整左右留白與自動換行
   ========================================================= */
.tsg-school .tsg-faq-list {
  display: grid !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: 920px !important;
  margin: 0 auto !important;
}

.tsg-school details.tsg-faq-item {
  display: block !important;
  width: 100% !important;
  overflow: visible !important;
  background: #ffffff !important;
  border: 1px solid rgba(6, 31, 51, 0.13) !important;
  box-shadow: 0 8px 24px rgba(6, 31, 51, 0.05) !important;
}

.tsg-school .tsg-faq-item summary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  width: 100% !important;
  min-height: 82px !important;
  margin: 0 !important;
  padding: 22px 24px !important;
  box-sizing: border-box !important;
  color: #061f33 !important;
  cursor: pointer !important;
  list-style: none !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  text-align: left !important;
}

.tsg-school .tsg-faq-item summary::-webkit-details-marker {
  display: none !important;
}

.tsg-school .tsg-faq-item summary span {
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #061f33 !important;
  background: #f2a900 !important;
  font-family: Arial, sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  transition: transform 0.2s ease !important;
}

.tsg-school .tsg-faq-item[open] summary span {
  transform: rotate(45deg) !important;
}

.tsg-school .tsg-faq-answer {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 24px 24px !important;
  box-sizing: border-box !important;
}

.tsg-school .tsg-faq-answer__text {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 18px 0 0 !important;
  box-sizing: border-box !important;
  color: #172936 !important;
  border-top: 1px solid rgba(6, 31, 51, 0.13) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.9 !important;
  letter-spacing: 0.01em !important;
  text-align: left !important;
  text-indent: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

@media (max-width: 767px) {
  .tsg-school .tsg-faq-list {
    gap: 10px !important;
  }

  .tsg-school .tsg-faq-item summary {
    min-height: 68px !important;
    gap: 14px !important;
    padding: 17px 16px !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
  }

  .tsg-school .tsg-faq-item summary span {
    width: 30px !important;
    height: 30px !important;
    flex-basis: 30px !important;
    font-size: 21px !important;
  }

  .tsg-school .tsg-faq-answer {
    padding: 0 16px 18px !important;
  }

  .tsg-school .tsg-faq-answer__text {
    padding-top: 14px !important;
    font-size: 15px !important;
    line-height: 1.85 !important;
  }
}


/* =========================================================
   人生階段「規劃重點」正式環境顯示修正
   使用專屬 class，避免被 Elementor / 佈景主題的 span 規則覆蓋
   ========================================================= */
.tsg-school .tsg-stage-card .tsg-stage-card__link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  width: auto !important;
  margin-top: 2px !important;
  color: #0b5da8 !important;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  opacity: 1 !important;
  white-space: nowrap !important;
}

.tsg-school .tsg-stage-card .tsg-stage-card__link b {
  display: inline-block !important;
  color: currentColor !important;
  font-family: Arial, sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  transform: translateY(-1px);
}

.tsg-school .tsg-stage-card:hover .tsg-stage-card__link {
  color: #074b88 !important;
}

@media (max-width: 767px) {
  .tsg-school .tsg-stage-card .tsg-stage-card__link {
    font-size: 13px !important;
  }

  .tsg-school .tsg-stage-card .tsg-stage-card__link b {
    font-size: 16px !important;
  }
}/* End custom CSS */