/* ===========================================================
   components.css — 按鈕、卡片、標籤、Hero 輪播、表單
   =========================================================== */

/* —— 按鈕 —— */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 200ms var(--ease), background 200ms var(--ease),
              border-color 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }

.button--primary {
  color: #251510;
  background: var(--kagyu-yellow);
  border-color: rgba(122, 21, 36, 0.16);
  box-shadow: 0 8px 22px rgba(245, 197, 24, 0.32);
}

.button--primary:hover {
  background: var(--kagyu-yellow-soft);
  color: var(--kagyu-red-deep);
}

.button--ghost {
  color: var(--kagyu-red-deep);
  border-color: rgba(178, 31, 53, 0.4);
  background: rgba(255, 255, 255, 0.4);
}

.button--ghost:hover {
  background: #fff;
  color: var(--kagyu-red);
}

.button--light { color: var(--kagyu-red-deep); background: #fff; }
.button--light:hover { background: rgba(255, 255, 255, 0.86); }

.button--red {
  color: #fff;
  background: linear-gradient(135deg, var(--kagyu-red), var(--kagyu-red-deep));
  border-color: var(--kagyu-red-deep);
  box-shadow: 0 8px 24px rgba(178, 31, 53, 0.32);
}
.button--red:hover { background: linear-gradient(135deg, #c9243d, #571012); color: #fff; }

.button--lg { min-height: 56px; padding: 16px 32px; font-size: 1.05rem; }
.button--block { width: 100%; }

.copy-button {
  min-height: 36px;
  margin-left: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--kagyu-red);
  cursor: pointer;
  font: 700 0.82rem var(--font-sans);
}

/* —— Tag chip（分類） —— */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--kagyu-red);
}

.tag--活動      { background: var(--kagyu-red); }
.tag--課程      { background: #e59531; color: #2a1f18; }
.tag--法會      { background: var(--kagyu-red-deep); }
.tag--公告      { background: var(--ink); }
.tag--護持      { background: var(--gold-soft); color: #2a1f18; }
.tag--護持活動  { background: var(--gold-soft); color: #2a1f18; }
.tag--修法      { background: var(--turquoise); }

/* ===========================================================
   HERO 輪播
   =========================================================== */
.hero {
  position: relative;
  min-height: 72vh;
  padding: 112px 0 56px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--paper-cream), #ffffff);
}

.hero > .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  align-items: end;
  gap: 28px;
}

.hero-slides { position: absolute; inset: 0; z-index: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 900ms var(--ease), transform 6400ms var(--ease);
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 252, 239, 0.86) 32%, rgba(255, 216, 77, 0.46) 60%, rgba(178, 31, 53, 0.18) 100%),
    linear-gradient(180deg, transparent 60%, var(--paper-cream) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-content h1 {
  margin-bottom: 16px;
  font-size: clamp(2.35rem, 5vw, 4.25rem);
  line-height: 1.1;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 20px;
  color: #4f433b;
  font-size: 1.14rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-panel {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0;
  align-self: end;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-hover);
}

.hero-panel-label {
  color: var(--kagyu-red);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-panel a {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-sans);
  font-weight: 600;
}

.hero-panel a:last-child { border-bottom: 1px solid var(--line); }
.hero-panel a:hover { color: var(--kagyu-red); padding-left: 6px; }

/* —— 輪播控制 —— */
.hero-controls {
  position: relative;
  z-index: 3;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 620px;
  margin-top: 20px;
}

.hero-arrow {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  cursor: pointer;
  transition: background 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease);
}

.hero-arrow:hover { background: var(--kagyu-yellow); color: var(--kagyu-red-deep); }
.hero-arrow:active { transform: scale(0.94); }

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(178, 31, 53, 0.25);
  cursor: pointer;
  transition: width 240ms var(--ease), background 240ms var(--ease);
}

.hero-dot.is-active {
  width: 32px;
  border-radius: var(--radius-pill);
  background: var(--kagyu-red);
}

/* ===========================================================
   卡片 BASE
   =========================================================== */
.card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-card);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0;
  background: var(--kagyu-yellow);
  transition: height 240ms var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
}

.card:hover::before { height: 3px; }

/* —— Feature / Number 卡片 —— */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-grid .card { padding: 32px; }
.feature-number {
  display: inline-block;
  margin-bottom: 22px;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 2.4rem;
  color: var(--kagyu-red);
  letter-spacing: -0.02em;
}

/* —— Nav cards (about / support / practice / ...) —— */
.nav-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.nav-card {
  display: block;
  min-height: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-card);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
}

.nav-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.nav-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.nav-card img.nav-card-image--portrait {
  object-position: center 10%;
}

.nav-card img.nav-card-image--contain {
  box-sizing: border-box;
  padding: 0;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.nav-card-body {
  padding: 18px 16px 22px;
}

.nav-card-tag {
  display: block;
  margin-bottom: 6px;
  color: var(--kagyu-red);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-card-title {
  display: block;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

/* —— Pathway 區—— */
.pathway-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.pathway {
  display: block;
  padding: 30px;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.pathway:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.pathway.featured {
  grid-row: span 2;
  color: var(--paper-cream);
  background:
    linear-gradient(135deg, rgba(107, 18, 23, 0.96), rgba(178, 31, 53, 0.92)),
    radial-gradient(circle at 80% 20%, var(--kagyu-yellow), transparent 50%);
}

.pathway-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--gold-soft);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pathway.featured .pathway-eyebrow { color: var(--kagyu-yellow); }

.pathway-title {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
}

.pathway.featured .pathway-title { color: #fff; }

.pathway p { color: var(--muted); }
.pathway.featured p { color: rgba(255, 255, 255, 0.85); }

/* ===========================================================
   POST 卡片
   =========================================================== */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tabs button {
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}

.filter-tabs button:hover { background: rgba(245, 197, 24, 0.24); color: var(--kagyu-red); }

.filter-tabs button.is-active {
  background: var(--kagyu-red);
  color: #fff;
  border-color: var(--kagyu-red);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease);
  position: relative;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
}

.post-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.post-group-title {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.2rem;
}

.post-card-date-label,
.post-status {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
}

.series-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.series-nav a {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: 700 0.92rem var(--font-sans);
}

.series-nav a:hover,
.series-nav a[aria-current="page"] {
  border-color: var(--kagyu-red);
  background: var(--kagyu-red);
  color: #fff;
}

.post-card-date-label { color: var(--muted); }

.post-status {
  padding: 4px 9px;
  border-radius: 999px;
  background: #f5ead9;
  color: var(--kagyu-red);
}

.post-card-date {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
}

.post-card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.35;
}

.post-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.post-card-cta {
  margin-top: auto;
  color: var(--kagyu-red);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 200ms var(--ease);
}

.post-card:hover .post-card-cta { gap: 10px; }

/* —— Support lists —— */
.support-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.home-service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.support-list .card h3 { margin-bottom: 12px; }
.support-list .card p { color: var(--muted); margin-bottom: 16px; }
.support-list .card a { color: var(--kagyu-red); font-weight: 800; font-family: var(--font-sans); }

/* —— CTA banner —— */
.action-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(56px, 8vw, 96px) 0;
  background: linear-gradient(135deg, var(--kagyu-red-deep), var(--kagyu-red) 62%, #d85b34);
  color: var(--paper-cream);
}

.action-band > div { max-width: 720px; }
.action-band h2 { color: #fff; }
.action-band p { color: rgba(255, 255, 255, 0.86); }
.action-band .eyebrow { color: var(--kagyu-yellow); }

/* —— Card list (about) —— */
.card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card-list .card h3 { margin-bottom: 10px; }
.card-list .card p { color: var(--muted); margin-bottom: 12px; }

/* —— Review note —— */
.link-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
}

.link-panel h3 { margin-bottom: 14px; color: var(--kagyu-red); }
.link-panel ul { display: grid; gap: 8px; padding-left: 1.2rem; }

/* —— Data table —— */
.data-table {
  display: grid;
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
}

.data-table > div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}

.data-table > div:first-child { border-top: 0; }

.data-table strong { color: var(--kagyu-red); }

.data-table--compact > div { grid-template-columns: 80px minmax(0, 1fr); }

/* —— Account panel —— */
.account-panel {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.account-panel dl { display: grid; gap: 0; margin: 0; }

.account-panel dl > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.account-panel dl > div:first-child { border-top: 0; }

.account-panel dt {
  color: var(--muted);
  font-family: var(--font-sans);
  font-weight: 700;
}

.account-panel dd {
  margin: 0;
  color: var(--kagyu-red-deep);
  font-size: 1.2rem;
  font-weight: 700;
}

/* —— Teacher hero —— */
.teacher-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 216, 0.92)),
    url("../assets/teacher/teacher-hero.jpg");
  background-size: cover;
  background-position: center;
}

.teacher-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 380px);
  gap: 48px;
  align-items: center;
  max-width: 1180px;
}

.teacher-hero h1 {
  max-width: 620px;
  color: var(--kagyu-red-deep);
  font-size: clamp(2.5rem, 3.7vw, 3.25rem);
  line-height: 1.12;
}
.teacher-hero p:not(.eyebrow) { max-width: 720px; color: #4f433b; font-size: 1.12rem; }

.teacher-hero-content .hero-actions {
  margin: 30px 0 0;
}

.teacher-portrait {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-hover);
}

.teacher-portrait img {
  display: block;
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  object-position: top;
  border-radius: calc(var(--radius) - 2px);
}

.teacher-portrait figcaption {
  margin-top: 12px;
  color: var(--kagyu-red-deep);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  font-family: var(--font-sans);
}

/* —— Timeline —— */
.teacher-story-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), var(--paper-cream));
}

.teacher-story,
.teacher-section-heading,
.timeline {
  max-width: 1040px;
  margin-inline: auto;
}

.teacher-section-heading { margin-bottom: 34px; }

.timeline {
  display: grid;
  gap: 12px;
}

.timeline article {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(107, 44, 16, 0.07);
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.timeline article:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.timeline article > span {
  display: inline-flex;
  width: fit-content;
  min-width: 74px;
  justify-content: center;
  padding: 6px 14px;
  color: var(--kagyu-red);
  background: rgba(245, 197, 24, 0.18);
  border: 1px solid rgba(212, 162, 74, 0.34);
  border-radius: var(--radius-pill);
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.96rem;
}

.timeline article p { margin: 0; }

/* —— Teacher legacy —— */
.teacher-legacy-section {
  background: rgba(255, 255, 255, 0.66);
}

.teacher-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 24px;
  max-width: 1100px;
  margin-inline: auto;
}

.teacher-detail-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.teacher-detail-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--kagyu-yellow), var(--kagyu-red));
}

.teacher-detail-card h2 {
  margin-bottom: 20px;
  color: var(--kagyu-red-deep);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.teacher-detail-card p {
  color: #4f433b;
  line-height: 1.85;
}

/* —— 圖片 grid —— */
.image-document-grid,
.image-gallery {
  display: grid;
  gap: 20px;
}

.image-document-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.image-document-grid img,
.image-gallery img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
  cursor: zoom-in;
}

.image-document-grid img:hover,
.image-gallery img:hover { transform: scale(1.01); box-shadow: var(--shadow-hover); }

.certificate-documents {
  grid-template-columns: repeat(2, 200px);
  justify-content: center;
  justify-items: center;
  margin-top: 48px;
}

.certificate-documents img {
  width: 200px;
  max-width: 100%;
  cursor: zoom-in;
}

.certificate-documents img:hover {
  transform: none;
  box-shadow: var(--shadow-card);
}

.image-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.image-gallery img { aspect-ratio: 4 / 3; object-fit: cover; }

/* —— Article body —— */
.article-body { max-width: 980px; margin: 0 auto; }
.article-body p { color: #4f433b; font-size: 1.04rem; line-height: 1.85; }

.article-body blockquote {
  margin: 32px 0 0;
  padding: 24px 26px;
  border-left: 5px solid var(--kagyu-yellow);
  border-radius: var(--radius);
  background: rgba(255, 246, 216, 0.78);
  font-size: 1.04rem;
  line-height: 1.85;
}

.article-body h2 { margin-bottom: 18px; }
.article-body img { margin: 24px 0; border-radius: var(--radius); }
.article-body iframe { margin: 24px 0; max-width: 100%; }
.article-body .form-embed { margin: 28px 0; }

/* —— 法王表揚題辭 —— */
.recognition-inscription {
  display: grid;
  gap: 24px;
  margin-top: 32px;
  padding: 28px;
  border-left: 5px solid var(--kagyu-yellow);
  border-radius: var(--radius);
  background: rgba(255, 246, 216, 0.78);
}

.recognition-inscription p { margin: 0; }

.recognition-tibetan {
  color: var(--kagyu-red-deep) !important;
  font-family: "Noto Serif Tibetan", "Microsoft Himalaya", serif;
  font-size: 1.5rem !important;
  line-height: 1.75 !important;
}

.recognition-english {
  color: var(--muted) !important;
  font-family: var(--font-sans);
  font-size: 1rem !important;
  line-height: 1.8 !important;
}

/* —— 長壽祈請文 —— */
.prayer-body { max-width: 980px; margin: 0 auto; }
.prayer-body .tibetan {
  color: var(--kagyu-red-deep);
  font-family: "Noto Serif Tibetan", "Microsoft Himalaya", serif;
  font-size: 1.5rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.prayer-body .tibetan-title {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  line-height: 1.55;
}

.prayer-lines { display: grid; gap: 18px; margin-top: 30px; }

.prayer-lines article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
}

.prayer-lines article > p { margin: 0 0 8px; }
.prayer-lines strong,
.prayer-lines span { display: block; }
.prayer-lines strong { color: var(--kagyu-red); font-size: 1.18rem; margin: 6px 0; }
.prayer-lines span { color: var(--muted); font-family: var(--font-sans); font-size: 0.95rem; }

/* ===========================================================
   聯絡/詢問表單
   =========================================================== */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.contact-methods--home {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-method {
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--kagyu-red);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.contact-method:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.contact-method--line { border-top-color: var(--turquoise); }

.contact-method h3 {
  margin: 6px 0 8px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  overflow-wrap: anywhere;
}

.contact-value {
  margin: 6px 0 8px !important;
  color: var(--ink) !important;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.contact-value--email { font-size: 1rem; }

.contact-method p { color: var(--muted); margin-bottom: 14px; }
.contact-method a.text-link { font-family: var(--font-sans); }

.contact-label {
  margin: 0 0 6px;
  color: var(--kagyu-red);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-method--line .contact-label { color: var(--turquoise); }

/* —— form-embed iframe —— */
.form-embed {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
}

.form-embed iframe { width: 100%; min-height: 640px; border: 0; }

/* —— LINE 大按鈕區 —— */
.line-block {
  display: grid;
  gap: 20px;
  align-content: start;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(216, 240, 244, 0.4));
  box-shadow: var(--shadow-card);
}

.line-block h3 { color: var(--turquoise); }
.line-block p { color: var(--muted); }
.line-qr { max-width: 200px; margin-inline: 0; border-radius: var(--radius); }

/* —— Six-point transport grid —— */
.transport-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.22);
}

.transport-grid article {
  padding: 28px;
  background: var(--kagyu-red-deep);
}

.transport-grid h3 { margin: 22px 0 10px; color: #fff; }
.transport-grid p { margin: 0; color: rgba(255, 255, 255, 0.78); }

.transport-index {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--kagyu-yellow);
}

/* —— Lightbox (純 CSS) —— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 12, 10, 0.92);
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: 92%;
  max-height: 92vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  font-size: 1.6rem;
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px) {
  .hero { min-height: auto; padding: 132px 0 64px; }
  .hero > .container { grid-template-columns: 1fr; }
  .hero-controls { margin-top: 24px; }
  .hero-panel { max-width: 480px; }
  .section-heading--split { flex-direction: column; align-items: flex-start; }

  .feature-grid,
  .post-grid,
  .support-list,
  .card-list,
  .image-document-grid,
  .image-gallery,
  .transport-grid,
  .pathway-layout,
  .nav-card-grid {
    grid-template-columns: 1fr;
  }

  .nav-card-grid { grid-template-columns: repeat(2, 1fr); }
  .home-service-grid { grid-template-columns: repeat(2, 1fr); }
  .image-gallery { grid-template-columns: repeat(2, 1fr); }

  .pathway.featured { grid-row: auto; }

  .teacher-hero .container { grid-template-columns: 1fr; gap: 28px; }
  .teacher-detail-grid { grid-template-columns: 1fr; }
  .contact-methods { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { padding: 108px 0 40px; }
  .hero-panel { display: none; }
  .hero-content h1 { font-size: clamp(2.2rem, 12vw, 3.1rem); }
  .hero-copy { margin-bottom: 20px; line-height: 1.7; }
  .hero-actions { margin-bottom: 22px; }
  .nav-card-grid { grid-template-columns: 1fr; }
  .home-service-grid { grid-template-columns: 1fr; }
  .filter-tabs,
  .hero-actions { display: grid; }
  .filter-tabs button,
  .button { width: 100%; }
  .certificate-documents { grid-template-columns: 200px; }
  .timeline article {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
