:root {
  --edu-bg: var(--bg);
  --edu-surface: var(--mint);
  --edu-surface-strong: var(--cream);
  --edu-primary: var(--green);
  --edu-primary-deep: #6f8b75;
  --edu-muted: rgba(82, 82, 82, 0.62);
  --edu-text: rgba(82, 82, 82, 0.82);
  --edu-border: rgba(121, 151, 127, 0.18);
  --edu-shadow: 0 10px 30px rgba(82, 82, 82, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.education-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--edu-text);
  background:
    var(--edu-bg);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.education-page {
  padding-bottom: 0;
}

.education-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.education-shell-compact {
  max-width: 860px;
}

.education-section {
  padding: clamp(52px, 10vw, 116px) 0;
}

.education-hero {
  padding-top: clamp(8px, 2vw, 20px);
}

.education-promo {
  position: relative;
  padding: clamp(30px, 5vw, 52px) 0 clamp(38px, 6vw, 60px);
  background: var(--edu-surface);
}

.education-promo::before,
.education-promo::after {
  content: none;
}

.education-promo-inner {
  position: relative;
  display: grid;
  gap: clamp(10px, 1.8vw, 16px);
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
  justify-items: center;
  text-align: center;
}

.education-promo-gift {
  width: clamp(74px, 8vw, 96px);
  height: clamp(74px, 8vw, 96px);
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 4px;
  margin-bottom: -8px;
  overflow: visible;
}

.education-promo-gift svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: scale(0.94);
  transform-origin: center;
}

.education-promo-label,
.education-promo-title,
.education-promo-text {
  margin: 0;
}

.education-promo-label {
  padding: 10px 26px;
  border-radius: 18px;
  border: 2px solid var(--edu-primary);
  background: transparent;
  color: var(--edu-primary);
  font-size: 1rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.education-promo-title {
  color: #a0846a;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.education-promo-text {
  max-width: 700px;
  margin: 0 auto;
  color: var(--edu-primary);
  font-size: clamp(1.0rem, 1.8vw, 1.6rem);
  line-height: 1.45;
  font-weight: 400;
}

.education-promo-actions {
  width: auto;
  gap: 12px;
  margin-top: 0;
}

.education-button.education-promo-button {
  background: #a0846a;
}

.education-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  grid-template-areas:
    "visual visual"
    "copy actions";
  column-gap: clamp(28px, 5vw, 80px);
  row-gap: clamp(10px, 2vw, 18px);
  align-items: end;
}

.education-hero-brand {
  display: none;
}

.education-hero-visual {
  grid-area: visual;
  display: flex;
  justify-content: center;
  margin-bottom: clamp(0px, 0.8vw, 6px);
}

.education-hero-dashboard {
  width: min(100%, 752px);
  border-radius: 22px;
}

.education-hero-copy {
  grid-area: copy;
  align-self: end;
}

.education-title,
.education-section-title,
.education-story-title,
.education-card h3 {
  margin: 0;
  color: var(--edu-primary);
}

.education-title {
  margin: 0 0 var(--space-md);
  color: var(--edu-primary);
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.education-hero-aside {
  display: contents;
}

.education-brand {
  display: flex;
  width: auto;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
}

.education-brand-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.education-brand-avatar {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.education-brand-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
}

.education-brand-name {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1;
  font-weight: 500;
  color: var(--edu-primary);
  letter-spacing: 0.3em;
  padding: 0px 0px 0 8px;
}

.education-brand-badge {
  flex: 0 0 220px;
  width: 220px;
  height: 40px;
  padding: 0 14px 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--edu-primary);
  border-radius: 16px;
  background: transparent;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 0.6em;
  font-weight: 500;
  color: var(--edu-primary);
}

.education-hero-cta {
  grid-area: actions;
  width: 356px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-end;
  justify-self: end;
}

.education-actions {
  display: flex;
  width: 100%;
  flex-wrap: nowrap;
  gap: 8px;
}

.education-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.education-button:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.education-button:focus {
  outline: 3px solid rgba(121, 151, 127, 0.18);
  outline-offset: 3px;
}

.education-button-secondary {
  background: transparent;
  color: var(--edu-primary);
  border: 1px solid rgba(121, 151, 127, 0.2);
}

.education-button-secondary:hover {
  opacity: 0.85;
}

.education-modal-open {
  overflow: hidden;
}

.education-modal[hidden] {
  display: none;
}

.education-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.education-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(82, 82, 82, 0.34);
  backdrop-filter: blur(4px);
}

.education-modal-panel {
  position: relative;
  width: min(100%, 560px);
  padding: 32px 28px 28px;
  border-radius: 28px;
  background: #fffef4;
  border: 1px solid rgba(121, 151, 127, 0.18);
  box-shadow: 0 24px 60px rgba(82, 82, 82, 0.16);
}

.education-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(121, 151, 127, 0.1);
  color: var(--edu-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.education-modal-copy {
  margin-bottom: 28px;
  padding: 12px 48px 18px;
  text-align: center;
}

.education-modal-title {
  margin: 0;
  padding: 12px 0 12px;
  color: var(--edu-primary);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}

.education-modal-text {
  margin: 14px 0 0;
  max-width: none;
  color: var(--edu-text);
  font-size: 1rem;
  line-height: 1.8;
}

.education-form {
  display: grid;
  gap: 18px;
  padding-bottom: 28px;
}

.education-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.education-field {
  display: grid;
  gap: 8px;
}

.education-field-label {
  color: var(--edu-primary);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.education-field-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(121, 151, 127, 0.22);
  border-radius: 14px;
  background: #fff;
  color: var(--edu-text);
  font-size: 1rem;
}

.education-field-input:focus {
  outline: 3px solid rgba(121, 151, 127, 0.14);
  outline-offset: 2px;
  border-color: rgba(121, 151, 127, 0.4);
}

.education-form-status {
  min-height: 1.6em;
  margin: 0;
  max-width: none;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--edu-muted);
}

.education-form-status.is-success {
  color: #4f7a57;
}

.education-form-status.is-error {
  color: #b25d5d;
}

.education-form-status.is-pending {
  color: var(--edu-primary);
}

.education-form-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.education-lead {
  max-width: 500px;
  margin: clamp(64px, 8vw, 98px) auto 0;
  padding:  0 0 120px 0;
  font-size: clamp(1.05rem, 2vw, 1.48rem);
  line-height: 1.9;
  text-align: center;
  color: var(--edu-muted);
  font-weight: 600;
}

.education-section-centered {
  padding-top: clamp(12px, 3vw, 28px);
  text-align: center;
}

.education-avatar {
  width: clamp(100px, 16vw, 124px);
  height: clamp(100px, 16vw, 124px);
  margin: 0 auto 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.education-avatar img,
.education-avatar-media {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.education-avatar-media {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.education-avatar.is-video-ready img {
  opacity: 0;
}

.education-avatar.is-video-ready .education-avatar-media {
  opacity: 1;
}

.education-section-title {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.education-story-copy {
  max-width: 760px;
  display: grid;
  align-content: start;
}

.education-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.education-story-title {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.education-story-text {
  margin: 34px 0 0;
  padding: 6px 0 24px;
  font-size: clamp(1.05rem, 2vw, 1.48rem);
  line-height: 1.7;
  color: var(--edu-muted);
  font-weight: 700;
}

.education-dashboard-list.education-story-list {
  max-width: fit-content;
  margin: 0;
  padding: clamp(40px, 5vw, 56px) 0 clamp(96px, 11vw, 128px);
}

.education-subtitle {
  margin: 28px auto 0;
  font-size: clamp(1.05rem, 2vw, 1.48rem);
  line-height: 1.7;
  color: var(--edu-muted);
  font-weight: 700;
  text-align: center;
}

.education-story-actions {
  margin-top: 0;
}

.education-story-media {
  width: 100%;
  max-width: 520px;
  justify-self: end;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
}

.education-story-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.education-dashboard-section {
  padding-top: clamp(40px, 7vw, 84px);
}

.education-dashboard-heading {
  margin-bottom: clamp(28px, 4vw, 52px);
  text-align: center;
}

.education-dashboard-title {
  margin: 0;
  color: var(--edu-primary);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.education-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

.education-dashboard-copy {
  width: 100%;
  max-width: 430px;
  align-self: center;
  order: 2;
  justify-self: start;
}

.education-dashboard-list {
  display: grid;
  gap: clamp(20px, 2.6vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.education-dashboard-item,
.education-story-text,
.education-lead {
  color: rgba(82, 82, 82, 0.84);
  font-size: clamp(1.0rem, 1.8vw, 1.6rem);
  line-height: 1;
  font-weight: 400;
}

.education-dashboard-item {
  display: flex;
  align-items: center;
  gap: 18px;
}

.education-lead {
  line-height: 1.45;
}

.education-dashboard-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
}

.education-dashboard-media {
  width: 100%;
  max-width: 874px;
  order: 1;
  justify-self: start;
}

.education-dashboard-image {
  display: block;
  width: 100%;
  height: auto;
}

.education-dashboard-actions {
  margin-top: clamp(44px, 6vw, 72px);
}

.education-heading {
  margin-bottom: clamp(36px, 5vw, 64px);
  text-align: center;
}

.education-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(20px, 3vw, 34px);
}

.education-card {
  min-height: 280px;
  padding: 28px 24px 24px;
  border-radius: 24px;
  background: var(--edu-surface);
  text-align: center;
}

.education-card-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  color: var(--edu-primary);
}

.education-card-icon > * {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
}

.education-icon-fallback {
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.education-card-icon.is-enhanced .education-icon-fallback {
  opacity: 0;
}

.education-card h3 {
  margin-bottom: 14px;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.4;
  font-weight: 700;
}

.education-card p {
  margin: var(--space-lg) var(--space-md) var(--space-md);
  font-size: 1.25rem;
  line-height: 1.4;
  text-align: left;
  color: rgba(82, 82, 82, 0.82);
}

.education-actions-center {
  justify-content: center;
  margin-top: clamp(36px, 5vw, 54px);
}

@media (max-width: 900px) {
  .education-hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "visual"
      "copy"
      "actions";
    row-gap: 18px;
  }

  .education-hero-copy,
  .education-hero-cta {
    justify-self: start;
  }

  .education-hero-cta {
    width: min(100%, 356px);
    align-items: flex-start;
  }

  .education-brand-row {
    justify-content: flex-start;
  }

  .education-hero-visual {
    justify-content: flex-start;
  }

  .education-story-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .education-story-media {
    max-width: min(100%, 520px);
    justify-self: start;
  }

  .education-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .education-dashboard-media {
    max-width: min(100%, 874px);
    justify-self: start;
  }

  .education-dashboard-copy {
    justify-self: start;
  }

}

@media (max-width: 720px) {
  .education-section {
    padding: 36px 0;
  }

  .education-story-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .education-story-copy {
    display: contents;
  }

  .education-story-title {
    order: 1;
    text-align: center;
  }

  .education-dashboard-list {
    margin-left: 24px;
  }

  .education-dashboard-list.education-story-list {
    order: 2;
    padding: 12px 0 12px;
    margin-left: 24px;
    align-self: flex-start;
    margin-right: auto;
    text-align: left;
  }

  .education-story-media {
    order: 3;
    max-width: min(100%, 520px);
    align-self: center;
    justify-self: center;
  }

  .education-story-actions {
    order: 4;
    width: min(100%, 420px);
  }

  .education-section-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .education-section-centered .education-section-title {
    order: -1;
    margin-bottom: 24px;
  }

  .education-section-centered .education-avatar {
    margin: 0 auto;
  }

  .education-hero {
    padding-top: 28px;
    padding-bottom: 36px;
  }

  .education-hero-grid {
    grid-template-areas:
      "copy"
      "visual"
      "actions";
    row-gap: var(--space-sm);
  }

  .education-hero-copy,
  .education-hero-cta {
    justify-self: center;
  }

  .education-hero-aside {
    display: block;
    grid-area: actions;
    width: 100%;
    padding: 16px 0 20px;
  }

  .education-hero-copy {
    width: 100%;
    text-align: center;
  }

  .education-title {
    font-size: clamp(3.2rem, 10vw, 4.6rem);
    line-height: 1.45;
    text-align: center;
  }

  .education-hero-visual {
    justify-content: center;
  }

  .education-hero-dashboard {
    max-width: 420px;
    margin: 20px auto 0;
    border-radius: 24px;
  }

  .education-hero-cta {
    width: min(100%, 420px);
    margin: 0 auto;
    align-items: center;
  }

  .education-brand-row {
    justify-content: center;
  }

  .education-heading,
  .education-dashboard-heading {
    margin-bottom: 30px;
  }

  .education-promo-title,
  .education-section-title,
  .education-story-title,
  .education-dashboard-title {
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.3;
    letter-spacing: 0.02em;
    font-weight: 700;
    margin: 20px 0 30px;
  }

  .education-card p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .education-heading .education-subtitle {
    margin-top: 0;
  }

  .education-promo {
    padding: 36px 0;
  }

  .education-promo-inner {
    gap: 18px;
    padding: 0 18px;
  }

  .education-promo-gift {
    width: 72px;
    height: 72px;
  }

  .education-promo-label {
    font-size: 0.84rem;
    letter-spacing: 0.1em;
  }

  .education-promo-actions {
    width: min(100%, 420px);
    gap: 14px;
  }

  .education-lead {
    width: min(calc(100% - 32px), 500px);
    margin: 52px auto 0;
  }

  .education-actions {
    width: 100%;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .education-button {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 18px;
    font-size: 1rem;
  }

  .education-form-grid {
    grid-template-columns: 1fr;
  }

  .education-form-actions {
    flex-direction: column-reverse;
  }
}

@media (max-width: 560px) {
  .education-promo-text {
    line-height: 1.42;
  }

  .education-dashboard-item {
    gap: 14px;
    font-size: 1rem;
  }

  .education-dashboard-icon {
    width: 25.5px;
    height: 25.5px;
    flex-basis: 25.5px;
  }

  .education-actions {
    width: 100%;
  }

  .education-brand {
    align-items: center;
  }

  .education-hero-cta {
    width: 100%;
  }

  .education-brand-row {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .education-brand-badge {
    width: auto;
    height: 36px;
    flex: 0 1 auto;
    text-align: center;
    font-size: 1.02rem;
  }

  .education-modal {
    padding: 16px;
  }

  .education-modal-panel {
    padding: 28px 20px 20px;
  }

  .education-modal-copy {
    padding: 10px 16px 16px;
  }

  .education-lead {
    font-size: 1rem;
  }

  .education-story-actions {
    margin-top: 40px;
  }

  .education-card {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .education-section {
    padding: 28px 0;
  }

  .education-shell {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 16px;
  }

  .education-promo {
    padding: 28px 0;
  }

  .education-lead {
    width: calc(100% - 124px);
  }

  .education-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 380px) {
  .education-button {
    font-size: 0.92rem;
  }
}

@media (max-width: 350px) {
  .education-button {
    font-size: 0.8rem;
  }

  .education-brand-badge {
    font-size: 0.8rem;
  }
}
