/* ==========================================================================
   Static pages — About, Portfolios, programme pages, Donation, Contact
   ========================================================================== */

.page-shell {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-inline: clamp(24px, 4.2vw, 80px);
}

.page-static .home-team > .shell,
.page-static .home-scripture > .shell,
.page-static .home-donate > .shell {
  max-width: none;
  padding-inline: clamp(24px, 4.2vw, 80px);
}

.page-hero {
  padding: 54px 0 58px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 64px;
  align-items: center;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.page-breadcrumb a { transition: color 0.2s var(--ease); }
.page-breadcrumb a:hover { color: var(--orange-2); }
.page-breadcrumb span[aria-hidden] { color: var(--peach); }

.page-hero h1 {
  font-size: clamp(46px, 6vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 800;
  text-wrap: balance;
}
.page-hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--orange);
}
html[lang="zh-CN"] .page-hero h1 {
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}
html[lang="zh-CN"] .page-hero h1 em { font-family: var(--font); font-style: normal; }

.page-hero__lede {
  max-width: 56ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.page-hero__media {
  position: relative;
  margin: 0;
}
.page-hero__media::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: -18px;
  bottom: -18px;
  border-radius: 4px;
  background: var(--peach);
}
.page-hero__media img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: var(--paper-3);
}

.page-section { padding-block: 88px; }
.page-section--tint {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 64px;
  align-items: center;
}
.page-split--reverse { grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr); }

.page-prose {
  max-width: 740px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.8;
}
.page-prose .home-h2 { margin: 0 0 18px; }
.page-prose p { margin: 0 0 1.15em; }
.page-prose p:last-child { margin-bottom: 0; }
.page-prose .home-beliefs { margin-top: 30px; }

.page-lede {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.page-image {
  margin: 0;
}
.page-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: var(--paper-3);
}
.page-image figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.page-points {
  display: grid;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}
.page-points > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.page-points h3 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}
.page-points p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* ---------- Portfolio detail ---------- */

.page-detail {
  display: grid;
  grid-template-columns: minmax(0, 760px) 330px;
  justify-content: space-between;
  gap: 64px;
  align-items: start;
}

.page-aside {
  position: sticky;
  top: 126px;
}

.page-support-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--peach-soft);
}
.page-support-card .eyebrow { margin-bottom: 14px; }
.page-support-card h2 {
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.page-support-card p {
  margin: 10px 0 18px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.65;
}
.page-support-card .btn { width: 100%; min-height: 44px; font-size: 10px; }
.page-support-card .text-link { margin-top: 16px; }

.page-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 36px;
}
.page-gallery figure { margin: 0; }
.page-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
  background: var(--paper-3);
}

/* ---------- Donation ---------- */

.page-impact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 70px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.page-impact > div {
  padding: 26px 24px 26px 0;
  border-right: 1px solid var(--line);
}
.page-impact > div:not(:first-child) { padding-left: 24px; }
.page-impact > div:last-child { border-right: 0; }
.page-impact strong {
  display: block;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
.page-impact span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.page-faq__items { border-top: 1px solid var(--line); }
.page-faq__item { border-bottom: 1px solid var(--line); }
.page-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}
.page-faq__item summary::-webkit-details-marker { display: none; }
.page-faq__item summary .icon { width: 16px; height: 16px; color: var(--orange-2); transition: transform 0.25s var(--ease); }
.page-faq__item[open] summary .icon { transform: rotate(180deg); }
.page-faq__item p {
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

/* ---------- Contact ---------- */

.page-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 64px;
}
.page-contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 200px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
a.page-contact-card:hover { background: var(--peach-soft); border-color: var(--line-strong); transform: translateY(-2px); }
.page-contact-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--peach-soft);
  color: var(--orange-2);
}
.page-contact-card__icon .icon { width: 19px; height: 19px; }
.page-contact-card p {
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.page-contact-card strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.page-visit { margin-top: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .page-hero__grid { gap: 44px; }
  .page-detail { grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; }
  .page-contact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .page-hero { padding: 40px 0 44px; }
  .page-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .page-hero__media { max-width: 720px; }
  .page-split,
  .page-split--reverse { grid-template-columns: 1fr; gap: 34px; }
  .page-split--reverse .page-image { order: 2; }
  .page-section { padding-block: 68px; }
  .page-detail { grid-template-columns: 1fr; gap: 38px; }
  .page-aside { position: static; order: 2; max-width: 620px; }
  .page-faq { grid-template-columns: 1fr; gap: 28px; }
  .page-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-impact > div { padding-left: 18px; }
}

@media (max-width: 760px) {
  .page-hero h1 { font-size: clamp(40px, 11vw, 60px); }
  html[lang="zh-CN"] .page-hero h1 { font-size: clamp(36px, 10vw, 54px); }
  .page-hero__lede { font-size: 16px; }
  .page-hero__media::before { top: 14px; left: 14px; right: -10px; bottom: -10px; }
  .page-section { padding-block: 54px; }
  .page-prose { font-size: 16px; }
  .page-image img { aspect-ratio: 4 / 3; }
  .page-gallery { gap: 6px; }
  .page-impact { grid-template-columns: 1fr; margin-bottom: 46px; }
  .page-impact > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 0; }
  .page-impact > div:not(:first-child) { padding-left: 0; }
  .page-impact > div:last-child { border-bottom: 0; }
  .page-contact-grid { grid-template-columns: 1fr; margin-bottom: 42px; }
  .page-contact-card { min-height: 0; }
  .page-faq__item summary { font-size: 14px; }
}

@media (max-width: 480px) {
  .page-support-card { padding: 20px; }
  .page-contact-card { padding: 20px; }
}

/* Compact donation band on the Donation page (avoids repeating the hero) */
.home-donate--compact { padding: 70px 0; }
.home-donate--compact .home-donate__grid { align-items: stretch; }
.home-donate--compact .home-donate__copy { align-self: center; }
@media (max-width: 760px) {
  .home-donate--compact { padding: 52px 0; }
}

/* ---------- Help the poor in Penang ---------- */

.help-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.help-action {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.help-action:hover { background: var(--peach-soft); border-color: var(--line-strong); transform: translateY(-2px); }
.help-action__n {
  color: var(--orange-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.help-action h3 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.help-action p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.help-action .text-link { margin-top: auto; }

.help-visit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.help-visit h3 {
  margin: 4px 0 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.help-visit p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.help-visit .btn { flex: 0 0 auto; }

@media (max-width: 760px) {
  .help-actions { grid-template-columns: 1fr; }
  .help-visit { flex-direction: column; align-items: flex-start; gap: 20px; }
  .help-visit .btn { width: 100%; }
}
