:root {
  --cream: #feedb3;
  --cream-deep: #f5c547;
  --blue: #0035a5;
  --blue-dark: #00257a;
  --green: #205f24;
  --green-dark: #17461a;
  --green-soft: #e8f6e9;
  --ink: #1a1a1a;
  --muted: #5b6470;
  --card: #ffffff;
  --line: #edd9a0;
  --radius: 1rem;
  --shadow: 0 8px 28px rgba(32, 95, 36, 0.1);
  --shadow-lg: 0 16px 40px rgba(32, 95, 36, 0.14);
  --font-sans: "Noto Sans TC", "Microsoft JhengHei", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  color: var(--ink);
  font-family: var(--font-sans);
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(245, 197, 71, 0.45) 0%, transparent 55%),
    radial-gradient(1100px 500px at 0% 0%, rgba(254, 237, 179, 1) 0%, transparent 60%),
    var(--cream);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
code { font-size: 0.9em; background: #fff8e0; padding: 0.1em 0.35em; border-radius: 0.35em; }

.page-wrap { max-width: 72rem; margin: 0 auto; padding: 1.5rem 1rem; min-height: 60vh; }
@media (min-width: 768px) { .page-wrap { padding: 2rem 1rem; } }

.space-y-8 > * + * { margin-top: 2rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-5 { margin-bottom: 1.25rem; }
.text-sm { font-size: 0.875rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section-title { color: var(--green); font-weight: 800; }
.page-title {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--green-dark);
}
@media (min-width: 768px) { .page-title { font-size: 1.875rem; } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.15s ease;
  background: #fff;
}
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: #fff; color: var(--blue); }
.btn-secondary { background: #fff; border-color: rgba(0,53,165,0.28); color: var(--blue); }
.btn-secondary:hover { background: #eef3ff; border-color: var(--blue); }
.btn-nav {
  background: #fff;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-weight: 800;
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
}
.btn-nav:hover { background: var(--blue); color: #fff; }

.portal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.25rem;
  padding: 1.1rem 1.4rem;
  border-radius: 1rem;
  border: 3px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 28px rgba(0, 53, 165, 0.28);
  transition: 0.15s ease;
  text-align: center;
}
.portal-btn:hover {
  background: #fff;
  color: var(--blue);
  transform: translateY(-3px) scale(1.02);
}
@media (min-width: 768px) {
  .portal-btn { min-height: 5rem; font-size: 1.85rem; }
}
.portal-note {
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 400;
  color: #dc2626;
}
.notice-closed {
  font-size: 1.15rem;
  font-weight: 400;
  color: #dc2626;
  line-height: 1.5;
  margin: 0 0 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 245, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.brand { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.brand-mark {
  width: 2.25rem; height: 2.25rem; border-radius: 0.75rem;
  border: 1px solid var(--line); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  flex-shrink: 0;
}
.brand-mark img { width: 1.75rem; height: 1.75rem; object-fit: contain; }
.brand-text { min-width: 0; line-height: 1.2; }
.brand-title { display: block; font-weight: 900; color: var(--green); font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { display: block; font-size: 0.7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-desktop { display: none; align-items: center; gap: 0.25rem; }
.nav-link { border-radius: 0.5rem; padding: 0.35rem 0.65rem; font-size: 0.875rem; font-weight: 600; color: #334155; }
.nav-link:hover, .nav-link.is-active { background: var(--green-soft); color: var(--green-dark); }
.nav-sep { width: 1px; height: 1.25rem; background: var(--line); margin: 0 0.25rem; }
.nav-more { position: relative; margin-left: 0.25rem; }
.nav-more summary {
  list-style: none; cursor: pointer; border-radius: 0.5rem;
  padding: 0.35rem 0.65rem; font-size: 0.875rem; color: var(--muted);
}
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more-panel {
  position: absolute; right: 0; margin-top: 0.25rem; min-width: 9rem;
  border: 1px solid var(--line); background: #fff; border-radius: 0.75rem;
  padding: 0.25rem; box-shadow: var(--shadow);
}
.nav-more-panel a { display: block; padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-size: 0.875rem; }
.nav-more-panel a:hover { background: var(--green-soft); }
.nav-mobile-toggle { display: inline-flex; }
.nav-mobile-panel {
  border-top: 1px solid var(--line); background: #fffdf5;
  padding: 0.75rem 1rem; display: grid; gap: 0.5rem;
}
.nav-mobile-panel[hidden] { display: none !important; }
.nav-mobile-link { padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-size: 0.875rem; }
.nav-mobile-link:hover { background: var(--green-soft); }
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .nav-mobile-toggle, .nav-mobile-panel { display: none !important; }
  .brand-title { font-size: 1rem; }
}

/* Home split */
.home-split { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 900px) {
  .home-split {
    grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 0.85fr);
    gap: 1.25rem;
    align-items: stretch;
  }
}
.home-split-visual { display: flex; flex-direction: column; gap: 0.55rem; }
.home-slideshow-row {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem;
  gap: 0.45rem;
  align-items: center;
}
.home-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: min(62vh, 34rem);
  margin-inline: auto;
  cursor: zoom-in;
  overflow: hidden;
  background: transparent;
}
@media (min-width: 900px) { .home-slideshow { max-height: none; } }
.home-slideshow-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; opacity: 0; transition: opacity 0.55s ease; pointer-events: none;
}
.home-slideshow-img.is-active { opacity: 1; }
.home-slideshow-dots { display: flex; justify-content: center; gap: 0.45rem; }
.home-slideshow-dot {
  width: 0.55rem; height: 0.55rem; border-radius: 999px; border: none; padding: 0;
  background: rgba(0, 53, 165, 0.28); cursor: pointer;
}
.home-slideshow-dot.is-active { background: var(--blue); width: 1.35rem; }
.home-slideshow-nav {
  width: 2.25rem; height: 2.25rem; border: none; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: 1.5rem; line-height: 1;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 53, 165, 0.25);
}
.home-slideshow-nav:hover { background: var(--blue-dark); }
.home-lightbox {
  position: fixed; inset: 0; z-index: 80; display: none;
  align-items: center; justify-content: center; padding: 1.25rem;
  background: rgba(10, 20, 40, 0.88); cursor: zoom-out;
}
.home-lightbox-img {
  max-width: min(96vw, 1100px); max-height: 92vh; object-fit: contain;
  border-radius: 0.75rem; background: #fff; cursor: default;
}
.home-lightbox-close {
  position: absolute; top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem;
  border: none; border-radius: 999px; background: rgba(255,255,255,0.92);
  color: var(--blue); font-size: 1.6rem; cursor: pointer;
}

.home-split-timeline { padding: 1.25rem 1.35rem 1.35rem; overflow: auto; display: flex; flex-direction: column; }
@media (min-width: 900px) {
  .home-split-timeline { height: 100%; }
  .home-split-timeline .v-timeline { flex: 1; justify-content: space-between; }
}
.timeline-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.5rem; }
.timeline-head h2 { margin: 0; font-size: 1.25rem; }
.timeline-head a { font-size: 0.875rem; font-weight: 700; color: var(--blue); text-decoration: underline; }
@media (min-width: 768px) { .timeline-head h2 { font-size: 1.5rem; } }

.v-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.v-timeline-item { margin: 0; flex: 1; }
.v-timeline-link {
  display: grid; grid-template-columns: 1.35rem 1fr; gap: 0.85rem;
  align-items: stretch; min-height: 100%; color: inherit;
}
.v-timeline-rail { display: flex; flex-direction: column; align-items: center; }
.v-timeline-dot {
  width: 0.95rem; height: 0.95rem; margin-top: 0.25rem; border-radius: 999px;
  background: #c5d0ea; border: 2px solid #fff; box-shadow: 0 0 0 2px #c5d0ea; flex-shrink: 0;
}
.v-timeline-dot-active { background: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.v-timeline-dot-live { background: var(--blue); box-shadow: 0 0 0 3px rgba(0,53,165,0.28); }
.v-timeline-line { flex: 1; width: 3px; min-height: 1.1rem; margin-top: 0.3rem; background: var(--blue); opacity: 0.35; }
.v-timeline-content { padding-bottom: 0.55rem; }
.v-timeline-date { font-size: 1.05rem; font-weight: 900; color: var(--blue); font-variant-numeric: tabular-nums; }
.v-timeline-label { margin-top: 0.25rem; font-size: 1.05rem; font-weight: 800; line-height: 1.35; color: var(--green-dark); }
.v-timeline-cta {
  display: inline-flex; margin-top: 0.35rem; border-radius: 999px;
  padding: 0.35rem 0.75rem; font-size: 0.95rem; font-weight: 800;
  background: var(--blue); color: #fff;
}
.v-timeline-cta-soft {
  display: inline-block; margin-top: 0.35rem; width: fit-content;
  border-radius: 0.55rem; padding: 0.28rem 0.65rem; font-size: 1.05rem; font-weight: 800;
  background: #fff; color: var(--green); border: 1px solid rgba(32,95,36,0.22);
}
.v-timeline-cta-soft:hover { background: var(--green-soft); }
@media (min-width: 900px) {
  .v-timeline-date { font-size: 1.15rem; }
  .v-timeline-label, .v-timeline-cta, .v-timeline-cta-soft { font-size: 1.1rem; }
}

.portal-grid { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 768px) { .portal-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }

/* Footer */
.site-footer { margin-top: 3rem; background: #fffdf5; border-top: 1px solid var(--line); }
.footer-inner { max-width: 72rem; margin: 0 auto; padding: 2rem 1rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.45fr 1fr; } }
.partner-core-row { display: flex; flex-wrap: nowrap; gap: 1.75rem; overflow-x: auto; padding-bottom: 0.25rem; }
.partner-cell-cohost { margin-left: 1.5rem; }
.footer-social a[aria-label="Facebook"] svg { fill: #1877F2; }
.footer-social a[aria-label="LinkedIn"] svg { fill: #0A66C2; }
.footer-social { margin-top: 1rem; display: flex; align-items: center; gap: 0.75rem; }
@media (min-width: 1024px) { .footer-social { justify-content: flex-end; } }
.footer-social a { display: inline-flex; width: 3rem; height: 3rem; align-items: center; justify-content: center; }
.footer-social a:hover { opacity: 0.8; }
.partner-support-row { display: flex; flex-wrap: wrap; gap: 0.5rem 18px; margin-top: 0.65rem; }
.support-label { font-size: 0.75rem; font-weight: 700; color: var(--green); margin-bottom: 0.35rem; }
.partner-cell { display: flex; flex-direction: column; gap: 0.55rem; width: 7.75rem; flex-shrink: 0; }
.partner-cell-compact { width: auto; }
.partner-role { min-height: 1.15rem; font-size: 0.75rem; font-weight: 700; color: var(--green); }
.partner-logo-link { display: inline-flex; padding: 0.4rem 0; }
.partner-logo { object-fit: contain; object-position: left; }
.partner-name { font-size: 0.65rem; line-height: 1.3; color: #475569; }
.partner-name:hover { color: var(--green); text-decoration: underline; }
.footer-aside { font-size: 0.875rem; color: #475569; }
@media (min-width: 1024px) { .footer-aside { text-align: right; } }
.footer-heading { font-weight: 700; color: var(--green); }
.footer-links { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; }
@media (min-width: 1024px) { .footer-links { justify-content: flex-end; } }
.footer-links a { text-decoration: underline; }
.footer-links a:hover { color: var(--green); }
.footer-contact { margin-top: 0.5rem; line-height: 1.6; }
.footer-contact a { color: var(--green); text-decoration: underline; }

/* Info / student / apply extras */
.info-alert {
  border-radius: 1rem; border: 1px solid #fecaca; background: #fff1f2; padding: 1.25rem;
}
.info-alert h2 { margin: 0; color: #9b1c1c; font-size: 1.125rem; }
.info-alert p { white-space: pre-wrap; margin: 0.75rem 0 0; color: #4c0519; font-size: 0.875rem; line-height: 1.6; }
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 1024px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.guide-step {
  display: flex; gap: 0.75rem; border: 1px solid var(--line); border-radius: 0.75rem;
  background: #fff; padding: 0.75rem;
}
.guide-num {
  width: 2.25rem; height: 2.25rem; border-radius: 0.75rem; background: var(--green);
  color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.form-shell { overflow: hidden; }
.form-shell-head { padding: 1.25rem 1.25rem 0.75rem; }
.guide-note { margin: 0.25rem 0 0; font-size: 0.875rem; font-weight: 400; line-height: 1.6; color: #334155; }
.google-form-frame {
  display: block;
  width: 1100px;
  max-width: 100%;
  height: 2800px;
  min-height: 2800px;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  overflow: auto;
}
@media (max-width: 767px) {
  .google-form-frame {
    width: 100%;
    height: 85vh;
    min-height: 32rem;
  }
}
.journey-list { margin-top: 0.75rem; display: grid; gap: 0.5rem; }
.journey-item { border-radius: 0.75rem; background: var(--green-soft); padding: 0.75rem 1rem; }
.journey-title { font-weight: 700; color: var(--green-dark); }
.journey-item p { margin: 0.25rem 0 0; font-size: 0.875rem; line-height: 1.6; color: #334155; }
.timeline-scroll { overflow-x: auto; padding-bottom: 0.25rem; }
.timeline-track {
  display: flex; align-items: flex-start; min-width: 52rem;
  list-style: none; margin: 0; padding: 0.5rem 0 0;
}
.timeline-item { position: relative; flex: 1 1 0; min-width: 7.5rem; padding-top: 0.15rem; }
.timeline-node { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 0.4rem; }
.timeline-dot {
  position: relative; z-index: 1; width: 0.85rem; height: 0.85rem; border-radius: 999px;
  background: #cbd5e1; border: 2px solid white; box-shadow: 0 0 0 2px #cbd5e1; flex-shrink: 0;
}
.timeline-line {
  position: absolute; top: calc(0.15rem + 0.42rem); left: 50%; right: -50%;
  height: 2px; background: #e5d4a8;
}
.timeline-date {
  margin-top: 0.7rem; font-size: 0.8rem; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--green-dark); letter-spacing: 0.01em;
}
.timeline-label { margin-top: 0.25rem; font-size: 0.875rem; font-weight: 600; line-height: 1.35; color: #334155; }
.previous-page { display: grid; gap: 2rem; }
.previous-lead { display: grid; gap: 10px; }
.previous-kicker {
  margin: 0; color: var(--green); font-size: 1.25rem; font-weight: 900; line-height: 1.2;
}
@media (min-width: 768px) { .previous-kicker { font-size: 1.5rem; } }
.previous-hero { display: grid; gap: 1.1rem; }
@media (min-width: 900px) {
  .previous-hero { grid-template-columns: minmax(18rem, 32rem) minmax(0, 1fr); align-items: stretch; }
}
.previous-a4-wrap {
  width: 100%; margin-inline: auto; padding: 0; overflow: hidden; background: var(--cream);
  border: 1px solid var(--line); border-radius: 1.15rem; box-shadow: var(--shadow-lg);
}
.previous-a4-wrap .home-slideshow-row { grid-template-columns: 1fr; }
.previous-a4-wrap .home-slideshow, .previous-a4-wrap .home-slideshow-nav { grid-column: 1; grid-row: 1; }
.previous-a4-wrap .home-slideshow-nav[aria-label="上一張"] { justify-self: start; align-self: center; margin-left: 0.4rem; z-index: 2; }
.previous-a4-wrap .home-slideshow-nav[aria-label="下一張"] { justify-self: end; align-self: center; margin-right: 0.4rem; z-index: 2; }
.previous-a4 { aspect-ratio: 210 / 297; max-height: 46rem; width: 100%; }
.previous-a4 .home-slideshow-img { object-fit: contain; object-position: center; }
.previous-intro {
  display: flex; flex-direction: column; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 1.15rem; padding: 1.6rem 1.5rem 1.5rem; box-shadow: var(--shadow);
}
.previous-title {
  margin: 0; color: #febd01; font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 900; line-height: 1.25;
  -webkit-text-stroke: 2px #111; paint-order: stroke fill;
}
.previous-subtitle { margin: 0.55rem 0 0; color: var(--green-dark); font-size: 1.05rem; font-weight: 800; line-height: 1.45; }
.previous-intro-copy { margin-top: 1rem; display: grid; gap: 0.75rem; color: #111; font-size: 0.95rem; line-height: 1.8; }
.previous-intro-copy strong { color: var(--green-dark); font-weight: 800; }
.previous-intro-logos {
  display: block; width: 100%; margin-top: auto; padding-top: 1rem;
  object-fit: contain; object-position: left bottom;
}
.previous-stories { display: grid; gap: 1rem; }
@media (min-width: 900px) { .previous-stories { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.previous-story {
  display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line);
  border-radius: 1.15rem; padding: 1.25rem 1.2rem 1.1rem; box-shadow: var(--shadow);
}
.previous-story h3 {
  margin: 0; color: #febd01; font-size: 1.25rem; font-weight: 900;
  -webkit-text-stroke: 2px #111; paint-order: stroke fill;
}
.previous-story-sub { margin: 0.5rem 0 0; color: #ff7248; font-size: 0.95rem; font-weight: 800; line-height: 1.55; }
.previous-story-media { margin-top: auto; padding-top: 0.9rem; display: flex; justify-content: center; }
.previous-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 1.15rem; padding: 1.25rem 1.35rem; box-shadow: var(--shadow); }
.previous-cta h2 { margin: 0; color: var(--green-dark); font-size: 1.2rem; font-weight: 900; }
.previous-cta p { margin: 0.3rem 0 0; color: #475569; font-size: 0.9rem; }
.previous-cta-btn { min-width: 12rem; min-height: 3.4rem; }
.fb-embed-frame { display: block; width: 100%; max-width: 500px; background: #fff; }
.info-split { display: grid; gap: 1rem; }
@media (min-width: 768px) { .info-split { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.awards-wrap { margin-top: 0.75rem; overflow-x: auto; }
.awards-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.875rem; text-align: left; }
.awards-table th { background: var(--green); color: #fff; padding: 0.5rem 0.75rem; }
.awards-table td { padding: 0.5rem 0.75rem; vertical-align: top; }
.awards-table tr.alt { background: var(--green-soft); }
.hero-banner {
  overflow: hidden; border-radius: 1rem; border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow); margin-bottom: 1rem;
}
.hero-banner img { display: block; width: 100%; height: auto; }
.faq-item { padding: 1rem; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--green-dark); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 0.5rem 0 0; font-size: 0.875rem; line-height: 1.6; color: #334155; }
