/* Events + Stories pages — extends styles.css */

.community-page .page-hero,
.events-page .page-hero,
.stories-page .page-hero {
  padding: 2.25rem 0 3.25rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 191, 63, 0.22), transparent 32%),
    linear-gradient(135deg, #12263a 0%, #183d55 55%, #173d31 100%);
  color: #fff;
}

.events-page .primary-nav a[href="events.html"],
.stories-page .primary-nav a[href="stories.html"],
.community-page .primary-nav a[href="community.html"] {
  color: var(--coral);
}

.page-hero .hero-crumb {
  margin: 0 0 1.35rem;
  max-width: none;
  font-size: 0.85rem;
  line-height: 1.2;
  color: inherit;
}
.page-hero .home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.15rem 0;
}
.page-hero .home-link:hover { color: #fff; }

.page-hero .section-kicker.light {
  display: inline-block;
  margin-top: 0.15rem;
  color: #8dd9b9;
}
.page-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.055em;
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  line-height: 0.98;
  margin: 14px 0 18px;
  color: #fff;
}
.page-hero > .shell > p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  margin: 0;
}
.page-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Filter chips */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.5rem;
}
.filter-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  font-size: 0.72rem;
  cursor: pointer;
  transition: 0.2s;
}
.filter-chip:hover,
.filter-chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Events list page */
.events-main {
  padding: 2.5rem 0 3rem;
  background: var(--cream);
}
.events-feature-slot:empty { display: none; }
.events-feature-slot .event-feature {
  margin-bottom: 1.75rem;
}
.events-list-page {
  display: grid;
  gap: 12px;
}
.events-list-page article {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
}
.events-list-page time {
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  width: 64px;
  height: 68px;
  display: grid;
  place-items: center;
  line-height: 1;
  text-align: center;
}
.events-list-page time b {
  font-size: 1.35rem;
  display: block;
}
.events-list-page time span {
  color: var(--yellow);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.events-list-page article > div span.cat {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--green);
}
.events-list-page article h3 {
  margin: 4px 0 2px;
  font-size: 1.05rem;
}
.events-list-page article p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.events-list-page .event-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 900;
}
.events-empty {
  background: #fff;
  border: 1px dashed rgba(18, 38, 58, 0.18);
  border-radius: 18px;
  padding: 1.5rem;
  color: var(--muted);
}

/* Stories */
.stories-main {
  padding: 2.5rem 0 3rem;
  background: var(--cream);
}
.story-hero-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow);
}
.story-hero-visual {
  min-height: 260px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 191, 63, 0.35), transparent 45%),
    linear-gradient(160deg, #dff2e8, #f8e8e2);
  display: grid;
  place-items: center;
  font-size: 4rem;
}
.story-hero-copy {
  padding: 1.75rem 1.75rem 1.75rem 0.5rem;
}
.story-hero-copy .section-kicker { color: var(--green); }
.story-hero-copy blockquote {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  line-height: 1.25;
  margin: 12px 0 14px;
  letter-spacing: -0.02em;
}
.story-hero-copy .story-meta {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}
.stories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.story-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem 1.4rem;
}
.story-card h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.15rem;
}
.story-card .quote-line {
  font-family: Georgia, serif;
  color: var(--ink-2);
  margin: 0 0 0.75rem;
  font-size: 1.02rem;
}
.story-card p.body {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.story-card .story-meta {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--green);
}

/* Submit forms */
.submit-section {
  padding: 3.25rem 0 4rem;
  background: linear-gradient(180deg, #f6f2fa 0%, #eee8f5 100%);
}
.submit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.75fr);
  gap: 28px;
  align-items: start;
}
.submit-card,
.aside-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 1.5rem 1.55rem;
  box-shadow: 0 12px 32px rgba(18, 38, 58, 0.06);
}
.submit-card h2,
.aside-card h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--ink-2);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(18, 38, 58, 0.2);
  border-radius: 12px;
  padding: 12px 13px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(18, 38, 58, 0.12);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}
.form-status {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green);
  min-height: 1.2em;
}
.form-status.is-error { color: var(--coral); }
.aside-card ol {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.aside-card li { margin: 0 0 8px; }
.aside-card p { color: var(--muted); font-size: 0.9rem; }

/* Community hub page */
.community-links {
  padding: 2.5rem 0 3.5rem;
  background: var(--cream);
}
.community-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.community-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.45rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
}
.community-card h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.community-card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}
.community-card .button { align-self: flex-start; margin-top: 6px; }

@media (max-width: 900px) {
  .story-hero-card,
  .submit-layout,
  .stories-grid,
  .community-card-grid {
    grid-template-columns: 1fr;
  }
  .story-hero-copy { padding: 0 1.35rem 1.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .events-list-page article {
    grid-template-columns: 64px 1fr;
  }
  .events-list-page .event-arrow { display: none; }
}

.page-hero .button-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.page-hero .button-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.community-card .text-link {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--ink);
}
