/*
Theme Name: Panya Forest
Theme URI: https://panyaforest.com
Author: Panya Forest
Description: Custom theme for Panya Forest – a multicultural community in Chiang Mai, Thailand. Faithfully recreates the v2 design with full native WordPress editing via Customizer, Custom Post Types, and the block editor.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: panya-forest
Tags: custom-menu, featured-images, custom-logo, full-width-template, threaded-comments
*/

/* ─── RESET & ROOT ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --parchment: #f2ead8;
  --aged: #e8dcc4;
  --bark: #3b2710;
  --bark-mid: #5a3e28;
  --moss: #4a5e3a;
  --lichen: #7a8e68;
  --clay: #9b6b4a;
  --ash: #8e8278;
  --gold: #b8922a;
  --ink: #1e1510;
  --warm-white: #faf6ed;
  --shadow: rgba(30,21,16,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--parchment);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* ─── NAV ──────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--parchment);
  border-bottom: 1px solid rgba(59,39,16,0.15);
  padding: 0 60px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
}

.nav-logo {
  font-family: 'IM Fell English', serif;
  font-size: 18px;
  color: var(--bark);
  text-decoration: none;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-glyph { font-size: 22px; opacity: 0.7; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bark-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current-page-ancestor > a { color: var(--bark); }

.nav-register {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-white) !important;
  background: var(--bark);
  padding: 9px 22px;
  border-radius: 2px;
  transition: background 0.2s !important;
}

.nav-register:hover { background: var(--bark-mid) !important; color: var(--warm-white) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--bark);
  font-size: 20px;
}

/* ─── SHARED UTILITIES ───────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 60px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 60px; }

.rune {
  font-family: 'IM Fell English', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  display: block;
  margin-bottom: 18px;
}

h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; line-height: 1.2; }

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0;
  color: var(--ash);
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(59,39,16,0.2), transparent);
}

.divider-glyph { font-size: 14px; opacity: 0.5; }

.btn {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 2px;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-dark { background: var(--bark); color: var(--parchment); }
.btn-dark:hover { background: var(--ink); transform: translateY(-1px); color: var(--parchment); }

.btn-outline { background: transparent; border: 1px solid var(--bark); color: var(--bark); }
.btn-outline:hover { background: var(--bark); color: var(--parchment); }

.btn-gold { background: var(--gold); color: var(--warm-white); }
.btn-gold:hover { background: #9e7a22; transform: translateY(-1px); color: var(--warm-white); }

/* ─── HOME ──────────────────────────────────────────────── */
.home-hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 55% 45%;
  position: relative;
  overflow: hidden;
}

.home-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 80px;
  position: relative;
}

.home-hero-left::after {
  content: '';
  position: absolute;
  right: 0; top: 10%; bottom: 10%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(59,39,16,0.2), transparent);
}

.home-hero h1 {
  font-size: clamp(44px, 5vw, 74px);
  font-weight: 300;
  color: var(--bark);
  line-height: 1.1;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.home-hero h1 em {
  font-style: italic;
  color: var(--moss);
  font-weight: 300;
}

.home-hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-style: italic;
  color: var(--bark-mid);
  line-height: 1.6;
  max-width: 420px;
  margin-bottom: 48px;
  font-weight: 300;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.home-hero-right {
  position: relative;
  background: var(--aged);
  overflow: hidden;
}

.hero-image-mosaic {
  display: grid;
  grid-template-rows: 60% 40%;
  height: 100%;
  gap: 4px;
  padding: 24px 24px 24px 4px;
}

.hero-img-main {
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.hero-img-main .hero-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--lichen), var(--moss));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-main img,
.hero-img-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-img-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }

.hero-img-sm {
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.hero-img-sm .hero-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.hero-img-sm:nth-child(1) .hero-img-placeholder { background: linear-gradient(135deg, var(--clay), #7a4e30); }
.hero-img-sm:nth-child(2) .hero-img-placeholder { background: linear-gradient(135deg, #6b7a55, var(--moss)); }

.img-label {
  color: rgba(250,246,237,0.25);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Jost', sans-serif;
}

/* Keyword strip */
.keyword-strip {
  background: var(--bark);
  padding: 12px 0;
  overflow: hidden;
}

.keyword-scroll {
  display: inline-flex;
  gap: 40px;
  animation: kscroll 28s linear infinite;
  white-space: nowrap;
}

@keyframes kscroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.kword {
  font-family: 'IM Fell English', serif;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: rgba(242,234,216,0.55);
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.kword::after { content: '✦'; color: var(--gold); font-size: 8px; }

/* Home sections */
.home-about { padding: 100px 0; }

.home-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.home-about-img {
  aspect-ratio: 3/4;
  background: linear-gradient(170deg, var(--aged), var(--lichen), var(--moss));
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-about-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='4'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
}

.home-about-content h2 {
  font-size: clamp(32px, 3.5vw, 52px);
  color: var(--bark);
  margin-bottom: 24px;
  line-height: 1.15;
}

.home-about-content p {
  font-size: 16px;
  color: var(--bark-mid);
  line-height: 1.85;
  margin-bottom: 20px;
  font-weight: 300;
}

.home-pillars { background: var(--aged); padding: 100px 0; }

.pillars-heading { text-align: center; margin-bottom: 64px; }
.pillars-heading h2 { font-size: clamp(30px, 3.5vw, 50px); color: var(--bark); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.pillar-card {
  background: var(--parchment);
  padding: 48px 36px;
  cursor: pointer;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.pillar-card:hover { background: var(--warm-white); }

.pillar-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--moss);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.pillar-card:hover::after { transform: scaleX(1); }

.pillar-glyph { font-size: 28px; display: block; margin-bottom: 20px; opacity: 0.8; }

.pillar-card h3 { font-size: 22px; color: var(--bark); margin-bottom: 12px; }

.pillar-card p { font-size: 14px; color: var(--ash); line-height: 1.7; font-weight: 300; }

/* Home news */
.home-news { padding: 100px 0; }

.home-news-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
}

.story-card {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.2s;
}

.story-card:hover { opacity: 0.8; }

.story-img {
  aspect-ratio: 4/3;
  border-radius: 3px;
  overflow: hidden;
}

.story-img-featured { aspect-ratio: 3/2; }

.story-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.story-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-img-placeholder-1 { background: linear-gradient(135deg, var(--clay), var(--bark-mid)); }
.story-img-placeholder-2 { background: linear-gradient(135deg, var(--lichen), var(--moss)); }
.story-img-placeholder-3 { background: linear-gradient(135deg, var(--moss), var(--bark)); }

.story-meta { display: flex; gap: 12px; align-items: center; }

.story-date {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
  font-weight: 300;
}

.story-tag-pill {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--aged);
  color: var(--bark-mid);
  padding: 3px 10px;
  border-radius: 20px;
}

.story-card h3 { font-size: 22px; color: var(--bark); line-height: 1.25; }
.story-card.small h3 { font-size: 18px; }
.story-card p { font-size: 14px; color: var(--ash); line-height: 1.7; font-weight: 300; }

/* Home events */
.home-events { background: var(--aged); padding: 100px 0; }

.events-list { display: flex; flex-direction: column; gap: 1px; margin-top: 48px; }

.event-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(59,39,16,0.1);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.event-row:first-child { border-top: 1px solid rgba(59,39,16,0.1); }
.event-row:hover { padding-left: 12px; }

.event-date { font-family: 'Cormorant Garamond', serif; font-size: 14px; color: var(--clay); letter-spacing: 0.05em; min-width: 80px; font-style: italic; }
.event-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; color: var(--bark); flex: 1; }
.event-type { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); font-weight: 300; }
.event-arrow { color: var(--clay); opacity: 0; transition: opacity 0.2s; }
.event-row:hover .event-arrow { opacity: 1; }

/* Support / donate */
.home-support {
  background: var(--bark);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-support::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.65' numOctaves='4'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.8;
}

.home-support-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; padding: 0 40px; }
.home-support .rune { color: var(--gold); }
.home-support h2 { font-size: clamp(36px, 4vw, 60px); color: var(--parchment); margin-bottom: 24px; }
.home-support p { font-size: 17px; color: rgba(242,234,216,0.7); line-height: 1.8; margin-bottom: 40px; font-weight: 300; }

/* ─── PAGE HERO ─────────────────────────────────────────── */
.page-hero {
  padding: 100px 0 60px;
  text-align: center;
  border-bottom: 1px solid rgba(59,39,16,0.1);
}

.page-hero h1 { font-size: clamp(40px, 5vw, 72px); color: var(--bark); }
.page-hero p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--bark-mid);
  max-width: 560px;
  margin: 20px auto 0;
  font-weight: 300;
  line-height: 1.6;
}

/* ─── ABOUT ──────────────────────────────────────────────── */
.about-story { padding: 80px 0; }

.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-story-img {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--aged), var(--lichen));
  border-radius: 3px;
  position: sticky;
  top: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-story-img img { width: 100%; height: 100%; object-fit: cover; }

.about-text h2 { font-size: clamp(28px, 3vw, 42px); color: var(--bark); margin-bottom: 24px; margin-top: 48px; }
.about-text h2:first-child { margin-top: 0; }
.about-text p { font-size: 16px; color: var(--bark-mid); line-height: 1.9; margin-bottom: 20px; font-weight: 300; }

.chapter-card {
  background: var(--aged);
  border-left: 3px solid var(--moss);
  padding: 28px 32px;
  border-radius: 0 3px 3px 0;
  margin: 32px 0;
}

.chapter-card p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-style: italic;
  color: var(--bark);
  line-height: 1.65;
  margin: 0;
  font-weight: 300;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.person-card { background: var(--aged); border-radius: 3px; padding: 28px 24px; text-align: center; }

.person-avatar {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--lichen), var(--clay));
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  overflow: hidden;
}

.person-avatar img { width: 100%; height: 100%; object-fit: cover; }

.person-name { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--bark); margin-bottom: 6px; }
.person-role { font-size: 12px; color: var(--ash); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 300; }

/* ─── PROJECTS ───────────────────────────────────────────── */
.projects-hub { padding: 80px 0; }

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.project-card {
  background: var(--aged);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.project-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px var(--shadow); }

.project-card-img {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-card-img-placeholder { width: 100%; height: 100%; background: linear-gradient(160deg, var(--lichen), var(--moss), #2a3a1a); display: flex; align-items: center; justify-content: center; }

.project-card-body { padding: 36px; flex: 1; display: flex; flex-direction: column; }
.project-card-body h3 { font-size: 28px; color: var(--bark); margin-bottom: 12px; }
.project-card-body p { font-size: 15px; color: var(--ash); line-height: 1.75; font-weight: 300; flex: 1; }

.project-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--moss); margin-top: 24px; font-weight: 500; }

/* Project detail */
.project-detail-hero {
  height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.project-detail-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--lichen), var(--moss), #1a2a10);
  z-index: 0;
}

.project-detail-hero-bg img { width: 100%; height: 100%; object-fit: cover; }

.project-detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,21,16,0.7), transparent 60%);
  z-index: 1;
}

.project-detail-hero-text { position: relative; z-index: 2; max-width: 700px; }
.project-detail-hero-text h1 { font-size: clamp(36px, 5vw, 64px); color: var(--parchment); }
.project-detail-hero-text p { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 18px; color: rgba(242,234,216,0.8); margin-top: 12px; }

.project-detail-content { padding: 80px 0; }

.project-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
}

.project-body p { font-size: 16px; color: var(--bark-mid); line-height: 1.9; margin-bottom: 24px; font-weight: 300; }
.project-body h3 { font-size: 26px; color: var(--bark); margin: 40px 0 16px; }

.project-sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-card { background: var(--aged); border-radius: 3px; padding: 28px; }
.sidebar-card h4 { font-family: 'Cormorant Garamond', serif; font-size: 18px; color: var(--bark); margin-bottom: 12px; }
.sidebar-card p { font-size: 14px; color: var(--ash); line-height: 1.7; font-weight: 300; }

.grant-badge { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, var(--aged), var(--parchment)); border: 1px solid rgba(184,146,42,0.3); border-radius: 3px; padding: 16px 20px; margin-top: 16px; }
.grant-badge-icon { font-size: 22px; }
.grant-badge-text { font-size: 13px; color: var(--bark-mid); line-height: 1.5; font-weight: 300; }
.grant-badge-text strong { color: var(--gold); font-weight: 500; display: block; }

/* ─── COURSES & EVENTS ───────────────────────────────────── */
.courses-hub { padding: 80px 0; }

.courses-intro { max-width: 700px; margin-bottom: 64px; }
.courses-intro h2 { font-size: clamp(30px, 3.5vw, 50px); color: var(--bark); margin-bottom: 20px; }
.courses-intro p { font-size: 16px; color: var(--bark-mid); line-height: 1.85; font-weight: 300; }

.whatif-featured {
  background: var(--aged);
  border-radius: 3px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  margin-bottom: 64px;
}

.whatif-img {
  background: linear-gradient(160deg, #4a6741, var(--moss), var(--bark));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.whatif-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.whatif-img-text { font-family: 'IM Fell English', serif; font-size: 48px; color: rgba(242,234,216,0.15); text-align: center; padding: 40px; line-height: 1.3; }

.whatif-body { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.whatif-body h2 { font-size: 36px; color: var(--bark); margin-bottom: 16px; }
.whatif-body p { font-size: 15px; color: var(--ash); line-height: 1.8; font-weight: 300; margin-bottom: 32px; }

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.course-card {
  background: var(--aged);
  border-radius: 3px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
}

.course-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px var(--shadow); }

.course-icon { font-size: 32px; margin-bottom: 20px; }
.course-card h3 { font-size: 22px; color: var(--bark); margin-bottom: 10px; }
.course-card p { font-size: 14px; color: var(--ash); line-height: 1.7; font-weight: 300; flex: 1; }

.course-details { display: flex; gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(59,39,16,0.1); flex-wrap: wrap; }

.course-detail-chip { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--parchment); color: var(--bark-mid); padding: 4px 12px; border-radius: 20px; font-weight: 400; }

.register-btn-wrap { margin-top: 20px; }

/* ─── SCHEDULE ───────────────────────────────────────────── */
.schedule-page { padding: 80px 0; }

.schedule-controls { display: flex; gap: 12px; margin: 32px 0 48px; flex-wrap: wrap; }

.filter-btn {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(59,39,16,0.2);
  color: var(--bark-mid);
  padding: 8px 18px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active { background: var(--bark); color: var(--parchment); border-color: var(--bark); }

.schedule-month { margin-bottom: 48px; }

.month-label { font-family: 'IM Fell English', serif; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--clay); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(59,39,16,0.1); }

.schedule-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px dashed rgba(59,39,16,0.08);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.schedule-item:hover { background: rgba(59,39,16,0.02); padding-left: 8px; }

.sched-date { font-family: 'Cormorant Garamond', serif; font-size: 15px; color: var(--clay); font-style: italic; }
.sched-info h4 { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--bark); margin-bottom: 4px; }
.sched-info p { font-size: 13px; color: var(--ash); font-weight: 300; }

.sched-type { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; border-radius: 20px; white-space: nowrap; font-weight: 400; }

.type-course { background: rgba(74,94,58,0.12); color: var(--moss); }
.type-event { background: rgba(155,107,74,0.12); color: var(--clay); }
.type-workshop { background: rgba(59,39,16,0.08); color: var(--bark-mid); }

/* ─── STORIES / BLOG ─────────────────────────────────────── */
.stories-page { padding: 80px 0; }

.stories-filter { display: flex; gap: 10px; margin-bottom: 48px; flex-wrap: wrap; align-items: center; }
.stories-filter span { font-size: 13px; color: var(--ash); margin-right: 4px; font-weight: 300; }

.tag-filter { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--aged); color: var(--bark-mid); padding: 6px 14px; border-radius: 20px; cursor: pointer; transition: all 0.2s; border: none; font-family: 'Jost', sans-serif; text-decoration: none; display: inline-block; }
.tag-filter:hover, .tag-filter.active { background: var(--bark); color: var(--parchment); }

.stories-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card { background: var(--aged); border-radius: 3px; overflow: hidden; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; text-decoration: none; color: inherit; display: block; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px var(--shadow); }

.blog-card-img { height: 200px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-img-placeholder { width: 100%; height: 100%; }

.blog-img-1 { background: linear-gradient(135deg, var(--clay), #6a3a20); }
.blog-img-2 { background: linear-gradient(135deg, var(--moss), #2a4a1a); }
.blog-img-3 { background: linear-gradient(135deg, var(--lichen), var(--ash)); }
.blog-img-4 { background: linear-gradient(135deg, var(--bark-mid), var(--bark)); }
.blog-img-5 { background: linear-gradient(135deg, #6b7a55, var(--clay)); }
.blog-img-6 { background: linear-gradient(135deg, var(--gold), var(--clay)); }

.blog-card-body { padding: 24px; }
.blog-tags { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.blog-tag { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--parchment); color: var(--bark-mid); padding: 3px 10px; border-radius: 20px; }
.blog-card h3 { font-size: 19px; color: var(--bark); margin-bottom: 10px; line-height: 1.3; }
.blog-card p { font-size: 13px; color: var(--ash); line-height: 1.65; font-weight: 300; }
.blog-card-date { font-size: 11px; color: var(--ash); margin-top: 14px; letter-spacing: 0.06em; font-weight: 300; }

/* Single post / story */
.single-post-hero { padding: 80px 0 40px; border-bottom: 1px solid rgba(59,39,16,0.1); }
.single-post-hero .rune { text-align: center; }
.single-post-hero h1 { text-align: center; font-size: clamp(32px, 4vw, 60px); color: var(--bark); max-width: 800px; margin: 0 auto; }
.single-post-meta { text-align: center; margin-top: 20px; font-size: 13px; color: var(--ash); }
.single-post-featured { margin: 40px 0; border-radius: 3px; overflow: hidden; max-height: 500px; }
.single-post-featured img { width: 100%; height: 100%; object-fit: cover; display: block; }
.single-post-content { max-width: 720px; margin: 0 auto; padding: 60px 0 80px; }
.single-post-content p { font-size: 17px; color: var(--bark-mid); line-height: 1.9; margin-bottom: 24px; font-weight: 300; }
.single-post-content h2 { font-size: 36px; color: var(--bark); margin: 48px 0 20px; }
.single-post-content h3 { font-size: 28px; color: var(--bark); margin: 36px 0 16px; }
.single-post-content img { width: 100%; border-radius: 3px; margin: 24px 0; }
.single-post-content a { color: var(--moss); }

/* ─── VOLUNTEER ──────────────────────────────────────────── */
.volunteer-hero {
  background: linear-gradient(160deg, var(--moss), var(--bark));
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 100px 60px;
  position: relative;
  overflow: hidden;
}

.volunteer-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.65' numOctaves='4'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
}

.volunteer-hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.volunteer-hero .rune { color: var(--gold); }
.volunteer-hero h1 { font-size: clamp(40px, 5vw, 68px); color: var(--parchment); margin-bottom: 24px; }
.volunteer-hero p { font-size: 18px; color: rgba(242,234,216,0.8); line-height: 1.8; margin-bottom: 40px; font-weight: 300; }
.volunteer-hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.volunteer-body { padding: 80px 0; }
.volunteer-body-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 80px; }

.vol-section h2 { font-size: 32px; color: var(--bark); margin-bottom: 20px; }
.vol-section p { font-size: 15px; color: var(--bark-mid); line-height: 1.85; margin-bottom: 16px; font-weight: 300; }

.vol-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 20px 0 32px; }
.vol-list li { display: flex; align-items: flex-start; gap: 14px; font-size: 15px; color: var(--bark-mid); font-weight: 300; }
.vol-list li::before { content: '→'; color: var(--moss); flex-shrink: 0; margin-top: 2px; }

.poster-preview {
  background: linear-gradient(160deg, var(--moss), var(--bark));
  border-radius: 3px;
  padding: 48px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.poster-preview::before { content: ''; position: absolute; inset: 0; border: 8px solid rgba(242,234,216,0.06); border-radius: 3px; }

.poster-title { font-family: 'IM Fell English', serif; font-size: 28px; color: var(--parchment); line-height: 1.3; margin-bottom: 16px; }
.poster-sub { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 15px; color: rgba(242,234,216,0.7); line-height: 1.65; margin-bottom: 28px; }
.poster-details { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.poster-detail { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(242,234,216,0.55); display: flex; align-items: center; justify-content: center; gap: 8px; }
.poster-detail::before { content: '✦'; color: var(--gold); font-size: 8px; }

/* Apply form */
.apply-form-section { background: var(--aged); padding: 80px 0; }

.apply-form { max-width: 680px; display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash); font-weight: 400; }

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--parchment);
  border: 1px solid rgba(59,39,16,0.15);
  border-radius: 2px;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--moss); }

.form-group textarea { resize: vertical; min-height: 140px; }

.form-group select option { background: var(--parchment); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─── CONTACT ────────────────────────────────────────────── */
.contact-page { padding: 80px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 { font-size: 40px; color: var(--bark); margin-bottom: 24px; }
.contact-info p { font-size: 15px; color: var(--bark-mid); line-height: 1.85; font-weight: 300; margin-bottom: 32px; }

.networks-list { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; }

.network-link { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--aged); border-radius: 3px; text-decoration: none; color: var(--bark-mid); font-size: 14px; font-weight: 300; transition: all 0.2s; }
.network-link:hover { background: var(--bark); color: var(--parchment); }
.network-link-icon { font-size: 18px; }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--ink);
  padding: 64px 60px 32px;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(242,234,216,0.06);
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; }

.footer-logo { font-family: 'IM Fell English', serif; font-size: 20px; color: var(--parchment); display: flex; align-items: center; gap: 10px; text-decoration: none; }

.footer-brand p { font-size: 13px; color: rgba(242,234,216,0.4); line-height: 1.7; font-weight: 300; }

.footer-col h5 { font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(242,234,216,0.4); margin-bottom: 20px; }

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col li a { font-size: 14px; color: rgba(242,234,216,0.6); text-decoration: none; font-weight: 300; transition: color 0.2s; }
.footer-col li a:hover { color: var(--parchment); }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; flex-wrap: wrap; gap: 12px; }

.footer-copy { font-size: 12px; color: rgba(242,234,216,0.25); font-weight: 300; }

.footer-social { display: flex; gap: 16px; }
.footer-social a { font-size: 13px; color: rgba(242,234,216,0.4); text-decoration: none; font-weight: 300; transition: color 0.2s; }
.footer-social a:hover { color: var(--parchment); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1000px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--parchment); padding: 24px; border-bottom: 1px solid rgba(59,39,16,0.15); gap: 20px; z-index: 199; }
  .nav-toggle { display: block; }
  .container, .container-narrow { padding: 0 24px; }
  .home-hero { grid-template-columns: 1fr; }
  .home-hero-right { height: 380px; }
  .home-hero-left { padding: 64px 24px; }
  .home-about-grid, .about-story-grid, .whatif-featured, .projects-grid,
  .volunteer-body-grid, .contact-grid, .project-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .pillars-grid, .course-grid, .stories-masonry, .people-grid { grid-template-columns: 1fr; }
  .home-news-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .schedule-item { grid-template-columns: 80px 1fr; }
  .sched-type { display: none; }
  section { padding: 60px 0 !important; }
  .project-detail-hero, .volunteer-hero { padding: 60px 24px; }
  footer { padding: 48px 24px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .home-support-inner, .volunteer-hero-inner { padding: 0 24px; }
  .about-story-img { position: relative; top: 0; }
}

/* WordPress default alignment helpers */
.wp-block-image { margin: 24px 0; }
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }

/* WordPress admin bar fix */
.admin-bar nav { top: 32px; }

@media screen and (max-width: 782px) {
  .admin-bar nav { top: 46px; }
}
