/* ==========================================================================
   มูลนิธิรวมใจสร้างเจดีย์ เชียงราย — Shared Stylesheet
   โทนสี: แดง-ทอง-ส้ม (โทนวัด/ศาสนา)
   ========================================================================== */

:root {
  /* Core palette — red / gold / orange (temple tones) */
  --red-deep: #7a1f1f;
  --red: #9c2b2b;
  --red-bright: #b83232;
  --gold: #c9a227;
  --gold-light: #e6c86a;
  --gold-pale: #f4e6bd;
  --orange: #d9631e;
  --orange-light: #f0904f;
  --cream: #fbf5e8;
  --cream-dark: #f3e6cc;
  --ink: #3a2416;
  --ink-soft: #6b4e3d;
  --white: #ffffff;

  --gradient-hero: linear-gradient(135deg, #7a1f1f 0%, #9c2b2b 45%, #d9631e 100%);
  --gradient-gold: linear-gradient(135deg, #c9a227 0%, #e6c86a 100%);
  --gradient-band: linear-gradient(90deg, #7a1f1f, #d9631e, #c9a227);

  --shadow-sm: 0 2px 8px rgba(122, 31, 31, 0.10);
  --shadow-md: 0 8px 24px rgba(122, 31, 31, 0.14);
  --shadow-lg: 0 16px 40px rgba(122, 31, 31, 0.20);

  --radius: 10px;
  --radius-lg: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Sarabun', 'Noto Sans Thai', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Kanit', 'Noto Sans Thai', sans-serif;
  margin: 0 0 .5em;
  color: var(--red-deep);
  font-weight: 600;
  line-height: 1.3;
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.decor-band {
  height: 6px;
  background: var(--gradient-band);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: 'Kanit', sans-serif;
  font-weight: 500;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--red); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--red-deep); }
.btn-gold {
  background: var(--gradient-gold);
  color: var(--red-deep);
  font-weight: 600;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: var(--gold-pale);
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-info a { color: inherit; }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(230,200,106,.4);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.topbar-social a:hover { background: var(--gold); color: var(--ink); }
.topbar-social svg { width: 13px; height: 13px; fill: currentColor; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Kanit', sans-serif;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--red-deep);
  white-space: nowrap;
}
.logo .logo-icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  object-fit: contain;
}
.logo small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-soft);
}
.main-nav { display: flex; }
.main-nav ul { display: flex; gap: 6px; align-items: center; }
.main-nav a {
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  transition: all .2s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--red-deep);
  background: var(--cream-dark);
}
.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 8px;
  border: 1px solid var(--cream-dark);
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--gradient-hero);
  color: var(--white);
  overflow: hidden;
  padding: 90px 0 110px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 15% 25%, rgba(230,200,106,.18) 0, transparent 45%),
                     radial-gradient(circle at 85% 75%, rgba(230,200,106,.14) 0, transparent 50%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(230,200,106,.5);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white);
  font-size: 48px;
  margin-bottom: 14px;
}
.hero h1 span { color: var(--gold-light); }
.hero p.lead {
  font-size: 17px;
  color: rgba(255,255,255,.88);
  max-width: 520px;
  margin-bottom: 30px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art::before {
  content: ""; position: absolute; left: 50%; top: 46%; width: 92%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,214,120,.45) 0%, rgba(255,190,90,.18) 40%, transparent 70%);
  pointer-events: none;
}
.hero-chedi { position: relative; width: auto; height: auto; max-width: 100%; max-height: 460px; filter: drop-shadow(0 18px 22px rgba(60,10,10,.35)); }
.hero-stats {
  position: relative;
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.hero-stat {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-align: center;
  backdrop-filter: blur(2px);
}
.hero-stat strong {
  display: block;
  font-family: 'Kanit', sans-serif;
  font-size: 28px;
  color: var(--gold-light);
}
.hero-stat span { font-size: 13px; color: rgba(255,255,255,.85); }

/* ---------- Section heading ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--cream-dark); }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}
.section-head .tag {
  display: inline-block;
  color: var(--orange);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 { font-size: 32px; }
.section-head p { color: var(--ink-soft); }
.section-head.left { text-align: left; margin: 0 0 40px; }

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-dark);
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: var(--gradient-hero);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.feature-icon svg { width: 30px; height: 30px; fill: var(--gold-light); }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 16px; }
.feature-link { color: var(--orange); font-weight: 600; font-size: 14px; }
.feature-link:hover { color: var(--red); }

/* ---------- Featured campaign / progress ring ---------- */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gold-pale);
}
/* no fundraising ring: picture + text only */
.spotlight--plain { grid-template-columns: 1fr 1.5fr; }
.spotlight--plain p { margin-bottom: 12px; }
.spotlight--plain .btn { margin: 6px 8px 0 0; }
.spotlight-media {
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  min-height: 220px;
}
.spotlight-goal {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--red-deep);
  font-weight: 600;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.spotlight h3 { font-size: 24px; }
.progress-ring { position: relative; width: 140px; height: 140px; }
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 10; }
.progress-ring .ring-bg { stroke: var(--cream-dark); }
.progress-ring .ring-fill { stroke: var(--orange); stroke-linecap: round; }
.progress-ring-label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.progress-ring-label strong { font-family: 'Kanit', sans-serif; font-size: 26px; color: var(--red-deep); }
.progress-ring-label span { font-size: 12px; color: var(--ink-soft); }

/* ---------- Cause list ---------- */
.cause-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  align-items: start;
}
.cause-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cause-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-dark);
  transition: transform .25s, box-shadow .25s;
}
.cause-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.cause-media {
  height: 160px; flex-shrink: 0; position: relative;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}
.cause-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--orange);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
.cause-body { padding: 20px; flex: 1; }
.cause-body h3 { font-size: 17px; margin-bottom: 8px; }
.cause-body p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 16px; }
.progress-bar {
  height: 8px;
  background: var(--cream-dark);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-bar-fill {
  height: 100%;
  background: var(--gradient-band);
  border-radius: 999px;
}
.cause-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.cause-meta strong { color: var(--red-deep); }

/* ---------- Two column / events ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 40px;
}
.event-row {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.event-row:last-child { border-bottom: none; }
.event-date {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  background: var(--gold-pale);
  border-radius: var(--radius);
  padding: 8px 4px;
}
.event-date .m { font-size: 11px; color: var(--orange); font-weight: 700; text-transform: uppercase; }
.event-date .d { font-family: 'Kanit', sans-serif; font-size: 24px; color: var(--red-deep); font-weight: 600; }
.event-info h4 { font-size: 16px; margin-bottom: 4px; }
.event-info p { font-size: 13px; color: var(--ink-soft); margin: 0; }

.card-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-dark);
}
.tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.tab-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--cream-dark);
  background: var(--cream);
  font-family: 'Kanit', sans-serif;
  font-size: 14px;
  cursor: pointer;
}
.tab-btn.active { background: var(--red-deep); color: var(--white); border-color: var(--red-deep); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--gradient-hero);
  padding: 56px 0;
}
.stats-band .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stats-band strong {
  display: block;
  font-family: 'Kanit', sans-serif;
  font-size: 34px;
  color: var(--gold-light);
}
.stats-band span { color: rgba(255,255,255,.85); font-size: 14px; }

/* ---------- Quote / CTA ---------- */
.cta-banner {
  background: var(--gradient-gold);
  border-radius: var(--radius-lg);
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { font-size: 26px; margin-bottom: 6px; }
.cta-banner p { color: var(--ink); margin: 0; }
.cta-banner .btn-primary { background: var(--red-deep); }
.cta-banner .btn-primary:hover { background: var(--ink); }

/* ---------- News / blog cards ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: start;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-dark);
}
.news-media {
  position: relative;
  height: 180px; flex-shrink: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  background: var(--gradient-hero);
}
/* Layer 1: the photo (or, when no photo is set, a gradient placeholder) */
.news-media-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Layer 2: tiled ลายกระหนก (Thai kranok flame-scroll) motif, blended over the photo */
.news-media-pattern {
  position: absolute; inset: 0;
  background-image: url("../img/kranok-pattern.svg");
  background-size: 72px 72px;
  background-repeat: repeat;
  opacity: .55;
  mix-blend-mode: overlay;
  pointer-events: none;
}
/* Layer 3: a thin gold frame + soft base scrim so the pattern/photo read as one piece */
.news-media-frame {
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(230, 200, 106, .55), inset 0 -50px 46px -26px rgba(58, 36, 22, .5);
  pointer-events: none;
}
.news-body { padding: 0 22px 22px; flex: 1; position: relative; }
/* Gold band with the foundation's ลายกนกเปลว pattern (img/kranok-band-*.svg, traced from the chosen
   Gemini design). The red variant is kept for later: swap .news-ribbon background to var(--red-deep)
   and the pattern file to kranok-band-gold.svg. */
.news-ribbon {
  margin: 0 -22px 16px; height: 54px; padding: 0 16px;
  display: flex; align-items: center; position: relative; overflow: hidden;
  background: var(--gradient-gold);
}
.news-ribbon::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/kranok-band-dark.svg") 0 50% / 116px 54px repeat-x;
  opacity: .5; pointer-events: none;
}
.news-ribbon .news-date {
  position: relative; margin: 0; padding: 4px 12px; border-radius: 99px;
  background: var(--white); color: var(--red-deep); font-size: 13px;
  box-shadow: 0 1px 4px rgba(58, 36, 22, .25);
}
.news-date { font-size: 12px; color: var(--orange); font-weight: 600; margin-bottom: 8px; }
.news-body h3 { font-size: 17px; margin-bottom: 10px; }
.news-body p { font-size: 13.5px; color: var(--ink-soft); }
.news-more { font-size: 13.5px; font-weight: 600; color: var(--red-deep); }

/* ---------- Team ---------- */
/* Flex (not grid) so an incomplete last row — 7 committee members = 4 + 3 — sits centred */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 24px;
}
.team-card { text-align: center; width: calc((100% - 72px) / 4); }
.team-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  border: 3px solid var(--gold-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  background: #c87f2d;
  transition: transform .25s, box-shadow .25s;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.team-card:hover .team-photo { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.team-card h4 { font-size: 16px; margin-bottom: 2px; }
.team-card span { font-size: 13px; color: var(--orange); font-weight: 600; }
/* six members: three per row, kept narrow so portraits stay a sensible size */
.team-grid--6 { max-width: 920px; margin: 0 auto; }
.team-grid--6 .team-card { width: calc((100% - 48px) / 3); }
/* chair shown with photo; members without a photo yet are listed as name cards below */
.team-card--lead { width: min(280px, 100%); }
.team-card--lead h4 { font-size: 18px; }
.team-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 34px; }
.team-name-card {
  width: calc((100% - 64px) / 5); min-width: 190px;
  background: var(--white); border: 1px solid var(--cream-dark); border-top: 3px solid var(--gold);
  border-radius: var(--radius); padding: 18px 14px; text-align: center; box-shadow: var(--shadow-sm);
}
.team-name-card h4 { font-size: 15.5px; margin-bottom: 4px; }
.team-name-card span { font-size: 13px; color: var(--orange); font-weight: 600; }

/* ---------- Objectives (about page) ---------- */
.objectives { max-width: 860px; margin: 0 auto; border-top: 4px solid var(--gold); }
.objectives .tag { display: block; font-size: 12.5px; font-weight: 600; color: var(--orange); margin-bottom: 4px; }
.objectives h3 { font-size: 22px; margin-bottom: 16px; }
.objectives ol { counter-reset: obj; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.objectives li { counter-increment: obj; position: relative; padding-left: 46px; min-height: 32px; display: flex; align-items: center; }
.objectives li::before {
  content: counter(obj); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gradient-hero); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 15px;
}

/* ---------- About: group photo ---------- */
.about-photo { margin-top: 22px; border-radius: var(--radius-lg); overflow: hidden; border: 3px solid var(--gold-light); box-shadow: var(--shadow-sm); }
.about-photo img { width: 100%; height: auto; display: block; }

/* ---------- Journey of the foundation (about page) ---------- */
.journey-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 24px; }
.journey-card {
  width: calc((100% - 48px) / 3);
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.journey-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.journey-media { position: relative; aspect-ratio: 4 / 3; background: var(--gradient-hero); }
.journey-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.journey-media--plain { display: flex; align-items: center; justify-content: center; }
.journey-media--plain::before { content: ""; position: absolute; inset: 0; background: url("../img/kranok-pattern.svg") 0 0 / 72px 72px; opacity: .22; }
.journey-media--plain img { position: relative; width: 42%; height: auto; aspect-ratio: 1; object-fit: contain; }
.journey-num {
  position: absolute; left: 14px; top: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gradient-gold); color: var(--red-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 17px;
  box-shadow: 0 2px 8px rgba(58, 36, 22, .35);
}
.journey-body { padding: 20px 22px 24px; }
.journey-body h4 { font-size: 17px; margin-bottom: 6px; }
.journey-body p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ---------- Activity article + photo gallery (news page) ---------- */
#mangrove { scroll-margin-top: 90px; }
.article-text { max-width: 760px; margin: 0 auto 36px; }
.article-text p { font-size: 15.5px; line-height: 1.9; margin-bottom: 14px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid a { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--gold-pale); box-shadow: var(--shadow-sm); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.gallery-grid a:hover img { transform: scale(1.05); }

/* ---------- Map (contact page) ---------- */
.map-frame { width: 100%; height: 300px; border: 0; display: block; }
.map-link { display: block; padding: 12px 18px; font-size: 13.5px; font-weight: 600; color: var(--red-deep); }

/* ---------- Timeline (about page) ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute; left: 9px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--gold);
}
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item::before {
  content: "";
  position: absolute; left: -34px; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--orange);
  border: 4px solid var(--gold-pale);
}
.timeline-item h4 { margin-bottom: 4px; font-size: 16px; }
.timeline-item span.year { color: var(--orange); font-weight: 600; font-size: 13px; }
.timeline-item p { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }
/* founding-story variant: longer quoted paragraphs, so a touch larger and roomier */
.timeline.story .timeline-item h4 { font-size: 18px; }
.timeline.story .timeline-item p { font-size: 15px; line-height: 1.85; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--cream-dark);
  background: var(--cream);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Amount pills (donate page) */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.amount-pill {
  padding: 14px;
  text-align: center;
  border-radius: var(--radius);
  border: 2px solid var(--cream-dark);
  background: var(--cream);
  font-family: 'Kanit', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.amount-pill.selected,
.amount-pill:hover {
  border-color: var(--orange);
  background: var(--gold-pale);
  color: var(--red-deep);
}

.bank-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.bank-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gradient-hero);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.bank-icon svg { width: 22px; height: 22px; fill: var(--gold-light); }
.bank-card h4 { font-size: 15px; margin-bottom: 2px; }
.bank-card p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }

.qr-box {
  background: var(--white);
  border: 2px dashed var(--gold);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.qr-box svg, .qr-box img { margin: 0 auto 14px; }
.qr-box img { width: 240px; height: 240px; max-width: 100%; display: block; image-rendering: pixelated; }

.donate-steps { margin: 0 0 18px; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.donate-steps a, .contact-ways a, .topbar-info a:hover { text-decoration: underline; }
.donate-note { background: var(--gold-pale); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 14px 16px; font-size: 14.5px; }
.donate-note strong { display: block; color: var(--red-deep); margin-bottom: 2px; }
.contact-ways { list-style: none; margin: 0; padding: 0; }
.contact-ways li { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 10px 0; border-bottom: 1px solid var(--cream-dark); }
.contact-ways li:last-child { border-bottom: none; }
.contact-ways span { width: 84px; color: var(--orange); font-weight: 600; font-size: 14px; }
.contact-ways a { color: var(--red-deep); font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Breadcrumb / page header ---------- */
.page-header {
  background: var(--gradient-hero);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(230,200,106,.16) 0, transparent 45%);
}
.page-header h1 { color: var(--white); font-size: 36px; margin-bottom: 10px; position: relative; }
.breadcrumb { position: relative; font-size: 14px; color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: var(--gold-light); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-family: 'Kanit', sans-serif; font-size: 17px; line-height: 1.35; font-weight: 600; margin-bottom: 14px; }
.footer-logo img { width: 46px; height: 46px; flex-shrink: 0; }
.site-footer p { font-size: 13.5px; }
.site-footer h4 { color: var(--gold-light); font-size: 15px; margin-bottom: 18px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13.5px; transition: color .2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--orange); border-color: var(--orange); }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a:hover { color: var(--gold-light); }

/* ---------- Decorative SVG blocks (used in place of photography) ---------- */
.art-block {
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-hero);
}
.art-block.alt { background: linear-gradient(135deg, var(--orange), var(--gold)); }
.art-block.soft { background: var(--gold-pale); }
/* .art-block is combined onto elements that already declare their own size
   (cause-media, news-media, team-photo) — width/height:100% there would fight
   that declared size. Only a *bare* art-block used as a plain child (e.g. inside
   .spotlight-media) needs to be told to fill its parent. */
.spotlight-media .art-block { width: 100%; height: 100%; }
.art-block svg { width: 46%; }

/* ---------- Notice banner (placeholder content notice) ---------- */
.notice {
  background: #fff3d6;
  border: 1px solid var(--gold);
  color: var(--ink);
  font-size: 13.5px;
  text-align: center;
  padding: 10px 16px;
}
.notice strong { color: var(--red-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .cause-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .team-card { width: calc((100% - 48px) / 3); }
  .journey-card { width: calc((100% - 24px) / 2); }
  .two-col { grid-template-columns: 1fr; }
  .spotlight { grid-template-columns: 1fr; text-align: center; }
  .spotlight--plain { text-align: left; }
  .spotlight .progress-ring { margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-band .container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 10px 24px 20px;
  }
  .main-nav.open ul { flex-direction: column; align-items: stretch; }
  .hero h1 { font-size: 34px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .cause-grid, .news-grid { grid-template-columns: 1fr; }
  .team-grid { gap: 24px 16px; }
  .team-card { width: calc((100% - 16px) / 2); }
  .logo .logo-icon { width: 42px; height: 42px; }
  .team-name-card { width: calc((100% - 16px) / 2); min-width: 0; }
  .team-grid--6 .team-card { width: calc((100% - 16px) / 2); }
  .journey-card { width: 100%; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  /* long foundation name: let it wrap and tighten the header so the menu button stays on screen */
  .site-header .container { gap: 10px; }
  .logo { white-space: normal; font-size: 14px; min-width: 0; }
  .logo small { display: none; }
  .header-actions { flex-shrink: 0; gap: 8px; }
  .header-actions .btn { padding: 9px 14px; font-size: 13px; white-space: nowrap; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-banner { flex-direction: column; text-align: center; }
  .topbar-info span:nth-child(3) { display: none; }
}
