/* TAVIM 動物醫事助理課程網站樣式 */

:root {
  --blue: #35699f;
  --blue-alt: #2e6093;
  --blue-deep: #1e5489;
  --sage: #dce9d8;
  --sage-deep: #718d70;
  --yellow: #ffc20b;
  --ink: #171717;
  --muted: #607181;
  --paper: #f7f8f4;
  --line: #d7e0d5;
  --font-sans: "Noto Sans TC Variable", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-serif: "Noto Serif TC Variable", "Noto Serif TC", "Songti TC", serif;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
}

a {
  color: inherit;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
}

h1 {
  margin: 1rem 0;
  font-size: clamp(2.45rem, 5.4vw, 4rem);
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h2 {
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(2.2rem, 4vw, 3.15rem);
  line-height: 1.4;
  font-weight: 600;
}

.section-shell {
  width: min(1160px, 88vw);
  margin: 0 auto;
}

/* ---------- 頁首 ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  min-height: 88px;
  padding: 1rem 6%;
  background: var(--blue);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand img {
  width: 52px;
  height: 52px;
  padding: 2px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
}

.site-header nav a {
  color: #eaf2f8;
  font-size: 1rem;
  text-decoration: none;
}

.site-header nav a:hover {
  text-decoration: underline;
}

/* ---------- 主視覺：背景跟著內容高度延伸 ---------- */

.hero {
  background: linear-gradient(110deg, var(--blue) 0%, var(--blue) 52%, var(--blue-alt) 52%, var(--blue-alt) 100%);
  color: #fff;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  min-height: 550px;
  padding: 4.5rem 0;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  color: var(--yellow);
}

.eyebrow--green,
.eyebrow--sage {
  color: var(--sage-deep);
}

.course-name {
  margin: 0;
  color: #e6eff7;
  font-size: 1.1rem;
  font-weight: 700;
}

.hero-body {
  max-width: 31rem;
  margin: 0;
  color: #e5edf5;
  font-size: 1.2rem;
  line-height: 1.85;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0.95rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 800;
}

.button--yellow {
  background: var(--yellow);
  color: #111;
}

.button--yellow:hover {
  filter: brightness(1.05);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  color: #dce8f3;
  font-size: 1rem;
}

.trust-list li::before {
  content: "●";
  margin-right: 0.45rem;
  color: var(--yellow);
  font-size: 0.6rem;
}

.hero-art {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 12px 12px 84px 12px;
  background: var(--paper);
}

.hero-art--image {
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.hero-art__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-art__taiwan {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 205px;
  height: 280px;
  transform: translateX(-50%);
  background: #b7cdb4;
  clip-path: polygon(48% 0, 71% 18%, 87% 37%, 76% 48%, 85% 72%, 56% 100%, 33% 87%, 20% 65%, 27% 50%, 14% 26%, 32% 12%);
}

.hero-art__petal {
  position: absolute;
  width: 112px;
  height: 67px;
  background: var(--yellow);
  border-radius: 62% 45% 62% 42%;
  transform: rotate(17deg);
}

.hero-art__petal--one {
  top: 23px;
  right: 21px;
}

.hero-art__petal--two {
  top: 65px;
  left: 23px;
  transform: rotate(-22deg);
}

.hero-art strong {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  color: #111;
  font-size: 3rem;
  letter-spacing: -0.08em;
  text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff;
}

.hero-art strong span {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.hero-art p {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.75rem 0.8rem;
  border-radius: 3px;
  background: #111;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.55;
}

.hero-art p b {
  display: block;
  color: var(--yellow);
  font-size: 1rem;
}

/* ---------- 課程重點 ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f2f5f0;
  border-bottom: 1px solid var(--line);
}

.facts div {
  padding: 1.5rem 12%;
  font-size: 1rem;
  line-height: 1.6;
}

.facts div + div {
  border-left: 1px solid var(--line);
}

.facts b,
.facts span {
  display: block;
}

.facts b {
  margin-bottom: 0.2rem;
  color: var(--blue-deep);
  font-size: 1.1rem;
}

.facts span {
  color: #4a5050;
}

/* ---------- 共用區塊 ---------- */

.section {
  padding: 5.5rem 0;
}

.section-heading {
  text-align: center;
}

.section-heading > p:last-child {
  max-width: 42rem;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.8;
}

/* ---------- 課程規劃 ---------- */

.curriculum-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 2.4rem;
  align-items: start;
  margin-top: 2.5rem;
}

.curriculum-intro {
  padding: 1.6rem;
  background: var(--blue);
  border-bottom: 6px solid var(--yellow);
  border-radius: 8px;
  color: #fff;
}

.curriculum-intro h3 {
  margin: 1rem 0 0.7rem;
  font-size: 2rem;
  line-height: 1.45;
  font-weight: 600;
}

.curriculum-intro > p {
  margin: 0;
  color: #e7f0f8;
  font-size: 1.05rem;
  line-height: 1.8;
}

.curriculum-intro > .curriculum-intro__tags {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.95rem;
}

.module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.module-card {
  min-height: 130px;
  padding: 1.1rem 1.15rem;
  border: 1px solid #dce5df;
  border-left: 4px solid #9ab998;
  background: #fff;
}

.module-number {
  color: #c18c00;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.module-card h3 {
  margin: 0.45rem 0 0.25rem;
  color: var(--blue-deep);
  font-size: 1.25rem;
  font-weight: 700;
}

.module-card p {
  margin: 0;
  color: #5f7172;
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- 講師陣容 ---------- */

.faculty-section {
  background: var(--sage);
}

.section-heading--light > p:last-child {
  color: #4d6a55;
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.faculty-card {
  min-height: 250px;
  padding: 1.25rem;
  border-top: 4px solid var(--yellow);
  border-radius: 7px;
  background: #fff;
}

.faculty-card--featured {
  background: #bed2bb;
  border-color: #9fb99c;
}

.faculty-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-content: center;
  border: 1px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-size: 1.25rem;
}

.faculty-kicker {
  margin: 1.35rem 0 0.45rem;
  color: #9b7200;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.faculty-card h3 {
  margin: 0;
  color: var(--blue-deep);
  font-size: 1.45rem;
  line-height: 1.4;
}

.faculty-card p:last-child {
  color: #4d6376;
  font-size: 1rem;
  line-height: 1.7;
}

.faculty-card .faculty-specialty {
  margin: 0.4rem 0;
  color: #36553d;
  font-size: 1.05rem;
  font-weight: 700;
}

/* ---------- 常見問題 ---------- */

.faq-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  padding: 1rem 1.2rem;
  border-left: 4px solid #9ab998;
  background: #fff;
}

.faq-item summary {
  cursor: pointer;
  color: var(--blue-deep);
  font-size: 1.15rem;
  font-weight: 800;
}

.faq-item p {
  margin: 0.8rem 0 0;
  color: #4d6376;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ---------- 結尾與頁尾 ---------- */

.closing {
  padding: 5rem 0;
  background: var(--blue);
  color: #fff;
  text-align: center;
}

.closing h2 {
  color: #fff;
}

.closing__heading > p:not(.eyebrow) {
  max-width: 37rem;
  margin: 1rem auto 0;
  color: #e5eef7;
  font-size: 1.15rem;
  line-height: 1.8;
}

/* ---------- 報名區：個資告知 + 表單 ---------- */

.closing {
  scroll-margin-top: 1rem;
}

.apply-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 2.5rem;
  text-align: left;
}

.privacy-notice {
  position: sticky;
  top: 1rem;
  padding: 1.25rem 1.4rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #e5eef7;
  font-size: 0.95rem;
  line-height: 1.75;
}

.privacy-notice summary {
  cursor: pointer;
  color: var(--yellow);
  font-weight: 800;
}

.privacy-notice p {
  margin: 0.7rem 0 0;
}

.privacy-notice a {
  color: #fff;
  font-weight: 700;
}

.apply-form {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.apply-form iframe {
  display: block;
  width: 100%;
  border: 0;
}

.apply-form__fallback {
  margin: 0;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.apply-form__fallback a {
  color: var(--blue-deep);
  font-weight: 700;
}

.apply-form--empty {
  padding: 2rem 1.6rem;
  text-align: center;
}

.apply-form--empty p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.apply-form--empty b {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--blue-deep);
  font-size: 1.25rem;
}

footer {
  padding: 1.2rem;
  background: var(--blue-deep);
  color: #d8e7f3;
  text-align: center;
  font-size: 0.95rem;
}

/* ---------- 平板與手機 ---------- */

@media (max-width: 800px) {
  .site-header {
    padding: 0.85rem 6%;
  }

  .site-header nav {
    gap: 1.1rem;
  }

  .site-header nav a {
    font-size: 0.95rem;
  }

  .hero-inner,
  .curriculum-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-inner {
    min-height: auto;
    padding: 3rem 0;
  }

  .hero-art {
    min-height: 300px;
  }

  .hero-art--image {
    min-height: 0;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .facts div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }

  .faq-section {
    display: block;
  }

  .faq-list {
    margin-top: 2rem;
  }

  .apply-grid {
    grid-template-columns: 1fr;
  }

  .privacy-notice {
    position: static;
  }
}

@media (max-width: 480px) {
  .site-header {
    min-height: 72px;
  }

  .brand {
    font-size: 0.85rem;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .section-shell {
    width: min(100% - 2rem, 1160px);
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .hero-body,
  .section-heading > p:last-child,
  .closing__heading > p:not(.eyebrow) {
    font-size: 1.05rem;
  }

  .hero-art strong {
    font-size: 2.5rem;
  }

  .hero-art p {
    right: 0.5rem;
    bottom: 0.5rem;
    padding: 0.45rem 0.6rem;
    font-size: 0.8rem;
  }

  .hero-art p b {
    font-size: 0.85rem;
  }
}
