@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Roboto+Serif:wght@400;500;600;700&family=Merriweather+Sans:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;600;700&family=Roboto+Condensed:wght@400;500;600;700&family=Share+Tech+Mono&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Prevent horizontal overflow — only on body, NOT html.
   Setting overflow on <html> makes it the scroll container, which
   breaks position:fixed and causes window.scrollY to return 0. */
body {
  overflow-x: hidden;
  touch-action: pan-x pan-y;
}

/* Set Roboto as default font for paragraphs */
p {
  font-family: 'Roboto', sans-serif;
  text-align: left;
}

/* Standard link color */
a:not(.nav__link):not(.footer__link):not(.cta-button):not(.sunday-button):not(.sunday-action-card__button):not(.nav__give-desktop):not(.subnav__chip):not(.ministry-card):not(.lhc-hero__cta):not(.home-feed-card):not(.service-info__cta):not(.give-method__btn):not(.v2-map-link):not(.v2-close__cta):not(.ministry-card__btn):not(.happenings-item):not(.digital-bulletin__row):not(.info-bar__button) {
  color: var(--leaf-green);
}

a:not(.nav__link):not(.footer__link):not(.cta-button):not(.sunday-button):not(.sunday-action-card__button):not(.nav__give-desktop):not(.subnav__chip):not(.ministry-card):not(.lhc-hero__cta):not(.home-feed-card):not(.service-info__cta):not(.give-method__btn):not(.v2-map-link):not(.v2-close__cta):not(.ministry-card__btn):not(.happenings-item):not(.digital-bulletin__row):not(.info-bar__button):hover {
  color: var(--dark-green);
}

/* Color Variables */
:root {
  /* Layout */
  --header-h: 55px;
  --subnav-h: 48px;

  /* Brand */
  --bright-green: #8fc64c;
  --leaf-green: #2d9d48;
  --dark-green: #215c2e;
  --dark-brown: #2d1f17;
  --charcoal: #2e2e2e;
  --warm-beige: #d9c9a3;
  --golden-yellow: #ffcc4d;

  /* Neutrals */
  --black: #000;
  --white: #ffffff;
  --off-white: #f5f5f6;
  --bg-light: #f3f4f6;

  /* Text */
  --text-dark: #111827;
  --text-body: #374151;
  --text-medium: #333;
  --text-muted: #6b7280;
  --text-subtle: #888;

  /* Borders */
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;

  /* UI Blue */
  --ui-blue: #0066cc;
  --ui-blue-dark: #0052a3;
  --ui-blue-accent: #3b82f6;

  /* Status */
  --status-green: #10b981;
  --status-amber: #f59e0b;
  --status-red: #dc2626;
  --status-red-bg: #fef2f2;
  --status-red-border: #fecaca;
}

.feed-cache-notice {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10050;
  width: min(430px, calc(100vw - 32px));
  padding: 12px 16px;
  border-left: 4px solid var(--status-amber);
  background: var(--dark-brown);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  color: var(--white);
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
}

/* Navigation */
#header-placeholder {
  position: relative;
}

#header-placeholder:not(.is-loaded)::before {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 999;
  height: var(--header-h);
  background: var(--charcoal);
  content: '';
  pointer-events: none;
}

.nav {
  background: var(--charcoal);
}

.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 55px;
}

.nav__logo {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Wide logo: only on wide screens */
.nav__logo-wide {
  display: block;
  max-width: 150px;
}
.nav__logo-tree {
  display: none;
  max-width: 36px;
}

/* Crunched desktop only: swap to tree icon */
@media (max-width: 1000px) and (min-width: 769px) {
  .nav__logo-wide { display: none; }
  .nav__logo-tree { display: block; }
}

/* Mobile: back to wide logo, same size as desktop */
@media (max-width: 768px) {
  .nav__logo-tree { display: none; }
  .nav__logo-wide {
    display: block;
    height: 30px;
    max-width: 150px;
  }
}

.nav__menu {
  display: flex;
  list-style: none;
  gap: 15px;
  font-family: 'Merriweather Sans', sans-serif;
  flex: 1;
  justify-content: center;
  align-items: center;
}

.nav__give-mobile {
  display: none;
}

.nav__give-desktop {
  flex-shrink: 0;
  border: 2px solid var(--warm-beige);
  border-radius: 0;
  color: var(--warm-beige) !important;
  padding: 6px 10px !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav__give-desktop:hover {
  background: var(--warm-beige);
  color: var(--dark-brown) !important;
}

.font-normal {
  font-weight: 400;
}

.mt-\[20px\] { margin-top: 20px; }
.mb-\[20px\] { margin-bottom: 20px; }
.pt-\[0px\]  { padding-top: 0; }
.pb-\[0px\]  { padding-bottom: 0; }
.mt-\[30px\] { margin-top: 30px; }
.mb-\[30px\] { margin-bottom: 30px; }
.pl-\[30px\] { padding-left: 30px; }
.pr-\[30px\] { padding-right: 30px; }
.ml-\[15\.5px\] { margin-left: 15.5px; }
.mr-\[15\.5px\] { margin-right: 15.5px; }
.mt-\[0px\]  { margin-top: 0; }
.mb-\[0px\]  { margin-bottom: 0; }
.pt-\[10px\] { padding-top: 10px; }
.pb-\[10px\] { padding-bottom: 10px; }
.pl-\[10px\] { padding-left: 10px; }
.pr-\[10px\] { padding-right: 10px; }
.mt-\[4px\]  { margin-top: 4px; }
.mb-\[4px\]  { margin-bottom: 4px; }
.pt-\[20px\] { padding-top: 20px; }
.pb-\[20px\] { padding-bottom: 20px; }

.nav__link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.3s ease;
  padding: 6px 8px;
  border-radius: 5px;
  font-family: 'Merriweather Sans', sans-serif;
  text-transform: uppercase;
}

.nav__link:hover {
  color: var(--warm-beige);
}

.nav__link.active {
  color: var(--warm-beige);
}

.nav__link--stacked {
  text-align: center;
  line-height: 1.2;
}

/* Wide desktop — scale up nav */
@media (min-width: 1200px) {
  :root { --header-h: 70px; }

  .nav__container {
    height: 70px;
    padding: 0 40px;
  }

  .nav__logo-img {
    height: 38px;
    max-width: 190px;
  }

  .nav__menu {
    gap: 28px;
  }

  .nav__link {
    font-size: 1rem;
    padding: 8px 12px;
  }

  .nav__give-desktop {
    font-size: 1rem;
    padding: 8px 14px !important;
  }
}

.nav__toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav__toggle span {
  width: 25px;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--charcoal);
    flex-direction: column;
    padding: 10px 28px 52px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    gap: 4px;
  }

  .nav__menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .nav__link {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.25rem;
  }

  .nav__link:last-child {
    border-bottom: none;
  }

  .nav__give-mobile {
    display: list-item;
    border-top: none !important;
  }

  .nav__give-mobile .nav__link {
    display: inline-block;
    border: 2px solid var(--warm-beige) !important;
    border-radius: 0;
    color: var(--warm-beige) !important;
    padding: 6px 10px !important;
  }

  .nav__give-mobile .nav__link:hover {
    background: var(--warm-beige);
    color: var(--dark-brown) !important;
  }

  .nav__give-desktop {
    display: none;
  }

  .nav__menu li:nth-last-child(-n+2) {
    text-align: center;
  }

  .nav__menu li:nth-last-child(-n+2) .nav__link {
    align-items: center;
    justify-content: center;
  }
}

html { --vh: 1vh; }
body { width: 100vw; }
.lhc-hero { width: 100vw; height: calc(var(--vh) * 100); height: 100dvh; }

.lhc-hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.lhc-hero__media {
  position: absolute; inset: 0;
  z-index: 0;
}

.lhc-hero__video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.lhc-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.lhc-hero__content {
  position: relative; z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: white;
  text-align: center;
}

.lhc-hero__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.lhc-hero__cta {
  display: inline-block;
  padding: 11px 28px;
  border: 1.5px solid #ffcc4d;
  border-radius: 3px;
  color: #ffcc4d;
  background: rgba(255, 204, 77, 0.1);
  font-family: "Merriweather Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lhc-hero__cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
  color: rgba(255, 255, 255, 0.9);
}

.lhc-hero__title {
  max-width: min(1100px, 92vw);
  font-size: clamp(2rem, 6vw, 5.5rem);
  color: var(--warm-beige);
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-wrap: balance;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.65);
}

/* Reduced-motion fallback */
@media (prefers-reduced-motion: reduce) {
  .lhc-hero__video { display: none; }
}

/* Content Sections */
.content-section {
  padding: 80px 20px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-section--white {
  background-color: var(--white);
  color: var(--dark-brown);
}

.content-section--off-white {
  background-color: var(--off-white);
  color: var(--dark-brown);
}

/* Home feed card modal --------------------------------------- */
.lhc-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.lhc-modal--open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.lhc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.lhc-modal__panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 6px;
  width: min(580px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: scale(0.95);
  transition: transform 0.22s ease;
}

.lhc-modal--open .lhc-modal__panel {
  transform: scale(1);
}

.lhc-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lhc-modal__close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.lhc-modal__image {
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border-radius: 6px 6px 0 0;
}

.lhc-modal__body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lhc-modal__title {
  font-family: 'Roboto Serif', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-brown);
  line-height: 1.25;
}

.lhc-modal__freq {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--leaf-green);
  margin-bottom: -4px;
}

.lhc-modal__desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-body);
}

.lhc-modal__footer {
  margin-top: 8px;
}

.lhc-modal__action {
  display: inline-block;
}

/* Lock background scroll when a modal is open */
body.lhc-modal-open {
  overflow: hidden;
}

html.ocs-embed-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.ocs-embed-modal-open {
  position: fixed;
  top: var(--ocs-scroll-y, 0);
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
}

/* OneChurch Software embed modal -------------------------------- */
.ocs-embed-modal {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.22s;
}

.ocs-embed-modal--open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.ocs-embed-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.ocs-embed-modal--open .ocs-embed-modal__backdrop {
  opacity: 1;
}

.ocs-embed-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1120px, 100%);
  height: min(860px, calc(100vh - 48px));
  height: min(860px, calc(100dvh - 48px));
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
}

.ocs-embed-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: var(--dark-brown);
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.ocs-embed-modal__close:hover,
.ocs-embed-modal__close:focus-visible {
  background: var(--leaf-green);
}

.ocs-embed-modal__share {
  position: absolute;
  top: 58px;
  right: 17px;
  z-index: 3;
  display: grid;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 7px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--dark-brown);
  color: #fff;
  cursor: pointer;
}

.ocs-embed-modal__share[hidden] {
  display: none;
}

.ocs-embed-modal__share:hover,
.ocs-embed-modal__share:focus-visible {
  background: var(--leaf-green);
}

.ocs-embed-modal__share svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.ocs-embed-modal__share-status {
  position: absolute;
  top: 96px;
  right: 14px;
  z-index: 3;
  max-width: min(220px, calc(100% - 28px));
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(40, 28, 21, 0.88);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.2;
  text-align: right;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ocs-embed-modal__share-status--visible {
  opacity: 1;
  transform: translateY(0);
}

.ocs-embed-modal__share-status[hidden] {
  display: block;
  visibility: hidden;
}

.ocs-embed-modal__body {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: auto;
}

.ocs-embed-modal__state {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  padding: 0;
  background: transparent;
  color: #000;
  line-height: 1.6;
}

.ocs-embed-modal__state-text {
  display: inline-block;
}

.ocs-embed-modal__state[hidden] {
  display: none;
}

.ocs-embed-modal__fallback-link {
  display: block;
  width: fit-content;
  margin-top: 16px;
}

.ocs-embed-modal__slot {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: auto;
}

.ocs-embed-modal__slot,
.ocs-embed-modal__slot .ocs-embed {
  height: 100%;
}

.ocs-embed-modal__slot iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: auto;
}

.ocs-embed-modal__mobile-close {
  display: none;
}

@media (max-width: 480px) {
  .lhc-modal__image { height: 180px; }
  .lhc-modal__body  { padding: 18px 18px 22px; }
  .lhc-modal__title { font-size: 1.15rem; }

  .ocs-embed-modal {
    padding: 12px;
  }

  .ocs-embed-modal__panel {
    height: calc(100vh - 24px);
    height: calc(100dvh - 24px);
  }

  .ocs-embed-modal__close {
    top: 10px;
    right: 10px;
  }

  .ocs-embed-modal__share {
    top: 54px;
    right: 13px;
  }

  .ocs-embed-modal__share-status {
    top: 91px;
    right: 10px;
  }
}

@media (max-width: 768px) {
  .ocs-embed-modal {
    padding: 0;
  }

  .ocs-embed-modal__panel {
    position: absolute;
    inset: 0;
    width: 100vw;
    max-width: 100vw;
    height: auto;
    min-height: 100%;
    overflow: visible;
    border-radius: 0;
    flex-direction: column;
  }

  .ocs-embed-modal__mobile-close {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 auto;
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 0 12px env(safe-area-inset-bottom);
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: var(--dark-brown);
    color: var(--white);
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1;
    cursor: pointer;
  }

  .ocs-embed-modal__mobile-close::after {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    height: 100px;
    background: var(--dark-brown);
    content: '';
    pointer-events: none;
  }

  .ocs-embed-modal__mobile-close:focus-visible,
  .ocs-embed-modal__mobile-close:hover {
    background: var(--leaf-green);
    outline: none;
  }
}

/* Home page feed — card grid ---------------------------------- */
.home-feed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  align-items: start;
}

@media (min-width: 600px) {
  .home-feed-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .home-feed-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .home-feed-grid { grid-template-columns: repeat(4, 1fr); }
}

.home-feed-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
}

.home-feed-card__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  will-change: filter;
}

.home-feed-card__image-action {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  color: inherit;
  text-decoration: none;
  pointer-events: none;
}

.home-feed-card__image-action .home-feed-card__bg {
  pointer-events: auto;
}

.home-feed-card__image-action:focus-visible {
  outline: 3px solid var(--golden-yellow);
  outline-offset: -4px;
}

.home-feed-card__backdrop {
  position: absolute;
  inset: -18px;
  z-index: 0;
  background-position: center;
  background-size: cover;
  filter: blur(18px);
  opacity: 0.42;
  transform: scale(1.06);
  will-change: filter, transform;
  pointer-events: none;
}

.home-feed-card__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #215c2e;
  text-align: center;
  will-change: filter;
}

.home-feed-card__fallback-title {
  font-family: 'Roboto Serif', serif;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.home-feed-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  will-change: opacity;
  background: #000;
  pointer-events: none;
}

.home-feed-card__body {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  align-items: center;
  text-align: center;
  gap: 10px;
  overflow: hidden;
  opacity: 0;
  will-change: opacity;
  pointer-events: none;
}

.home-feed-card__title,
.home-feed-card__desc {
  pointer-events: auto;
}

.home-feed-card__body--description {
  justify-content: center;
}

.home-feed-card__title {
  font-family: 'Roboto Serif', serif;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.home-feed-card__desc {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: clamp(0.82rem, 1.4vw, 1rem);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Feed section header — compact label above items, not a full section */
.feed-section-header {
  padding: 18px 28px 14px;
  border-left: 4px solid var(--leaf-green);
  background-color: var(--off-white);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 12px;
}

.feed-section-header__label {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark-green);
}

.feed-section-header__desc {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Happenings event list ────────────────────────────────── */
.happenings-list {
  background: var(--white);
  padding: 4px 28px 20px;
}

.happenings-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 10px;
  margin: 0 -10px;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--text-dark);
  border-radius: 4px;
  transition: background 0.15s ease;
}

.happenings-item:last-child {
  border-bottom: none;
}

.happenings-item:hover {
  background: var(--off-white);
}

.happenings-item__date-wrap {
  flex-shrink: 0;
  width: 62px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
  transform: scaleY(0.9);
  transform-origin: center;
}

.happenings-item__date {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  font-family: 'Merriweather Sans', sans-serif;
  background: var(--white);
}

.happenings-item__weekday {
  background: var(--dark-green);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 4px 3px;
  line-height: 1;
}

.happenings-item__daynum {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--dark-brown);
  line-height: 1;
  padding: 5px 4px 2px;
}

.happenings-item__month {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--dark-brown);
  letter-spacing: 0.04em;
  padding: 0 4px 5px;
  line-height: 1;
}

.happenings-item__name {
  flex: 1;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
  transition: color 0.15s ease;
}

.happenings-item:hover .happenings-item__name {
  color: var(--leaf-green);
}

.happenings-item__time {
  flex-shrink: 0;
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--white);
  background: var(--dark-brown);
  padding: 4px 7px;
  border-radius: 4px;
  line-height: 1;
  align-self: center;
}

@media (max-width: 480px) {
  .happenings-list { padding: 4px 16px 16px; }
  .happenings-item { gap: 12px; padding: 12px 8px; margin: 0 -8px; }
  .happenings-item__date-wrap { width: 54px; }
  .happenings-item__name { font-size: 0.88rem; }
}

.content-section--sermon {
  padding: 0;
  min-height: unset;
  display: block;
  padding-bottom: 40px;
}

@media (min-width: 700px) {
  .content-section--sermon {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (min-width: 1100px) {
  .content-section--sermon {
    padding-left: 80px;
    padding-right: 80px;
  }
}

.content-section__container {
  max-width: 800px;
  text-align: center;
}

/* Sunday page sermon embed ------------------------------------- */
.sunday-page__header {
  margin-top: var(--header-h);
  padding: 0 20px;
  background: var(--white);
}

@media (min-width: 769px) {
  .sunday-page__header {
    background:
      radial-gradient(circle at 12% 20%, rgba(143, 198, 76, 0.28), transparent 34%),
      radial-gradient(circle at 88% 78%, rgba(109, 162, 121, 0.24), transparent 38%),
      linear-gradient(120deg, #f1e5d3 0%, #edf1e6 48%, #dfe9df 100%);
  }
}

.sunday-page__embed {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.sunday-page__embed::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  cursor: default;
}

/* Online livestream page ---------------------------------------- */
.online-page__hero {
  width: 100%;
  margin-top: var(--header-h);
  background: var(--black);
}

.online-page__vimeo {
  position: relative;
  z-index: 22;
  width: 100%;
  padding: 56.25% 0 0;
  overflow: hidden;
}

.online-page__vimeo iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Visit Us campus tour -------------------------------------------- */
.visit-campus-tour {
  padding: clamp(48px, 7vw, 88px) 24px;
  background: var(--off-white);
}

.visit-campus-tour__inner {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.visit-campus-tour__label {
  display: block;
  margin-bottom: 10px;
  color: var(--leaf-green);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.visit-campus-tour__title {
  margin: 0 0 18px;
  color: var(--dark-brown);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.visit-campus-tour__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--black);
  box-shadow: 0 14px 34px rgba(45, 31, 23, 0.16);
}

.visit-campus-tour__video iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.sunday-action-section {
  padding: clamp(22px, 4vw, 52px) 20px;
  background: transparent;
}

.sunday-action-section__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.sunday-action-grid {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2.4vw, 34px);
}

.sunday-action-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(14px, 2.2vw, 28px);
  border: 1px solid var(--border-medium);
  background: var(--white);
}

.sunday-action-card__details {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.sunday-action-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: var(--dark-green);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: clamp(0.88rem, 1.65vw, 1.2rem);
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}

.sunday-action-card__title::-webkit-details-marker {
  display: none;
}

.sunday-action-card__title::after {
  flex: 0 0 auto;
  color: var(--dark-green);
  content: '+';
  font-size: 1.5em;
  font-weight: 400;
  line-height: 1;
}

.sunday-action-card__details[open] > .sunday-action-card__title::after {
  content: '−';
}

.sunday-action-card__title:focus-visible {
  outline: 3px solid var(--golden-yellow);
  outline-offset: 3px;
}

.sunday-action-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.sunday-action-card p {
  margin: clamp(9px, 1.5vw, 15px) 0 clamp(16px, 2vw, 24px);
  color: var(--text-body);
  font-family: 'Roboto', sans-serif;
  font-size: clamp(0.75rem, 1.25vw, 0.95rem);
  line-height: 1.45;
}

.sunday-action-card p a {
  color: var(--dark-green);
  font-weight: 700;
}

.sunday-action-card__form-link {
  display: block;
  margin-top: 4px;
  text-align: right;
}

.sunday-action-card__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: auto;
  padding: 11px 14px;
  border: 2px solid var(--dark-green);
  border-radius: 0;
  background: var(--dark-green);
  color: var(--white);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: clamp(0.72rem, 1.2vw, 0.9rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sunday-action-card__button--sms {
  position: relative;
}

.sunday-action-card__icon {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  opacity: 0.5;
  transform: translateY(-50%);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sunday-action-card__button:hover {
  background: var(--leaf-green);
  border-color: var(--leaf-green);
  color: var(--white);
  transform: translateY(-2px);
}

.sunday-action-card__button:focus-visible {
  outline: 3px solid var(--golden-yellow);
  outline-offset: 3px;
}

.sunday-action-card__button--watch {
  background: var(--dark-brown);
  border-color: var(--dark-brown);
}

.sunday-action-card__button--watch:hover {
  background: var(--leaf-green);
  border-color: var(--leaf-green);
}

.sunday-action-card__button--give {
  background: var(--golden-yellow);
  border-color: var(--golden-yellow);
  color: var(--dark-brown);
}

.sunday-action-card__button--give:hover {
  background: var(--bright-green);
  border-color: var(--bright-green);
  color: var(--dark-brown);
}

.sunday-action-card__button--give:focus-visible {
  outline-color: var(--dark-brown);
  box-shadow: 0 0 0 5px var(--white);
}

.sunday-page__empty {
  min-height: 400px;
  background: var(--off-white);
}

.sunday-page__bulletin {
  max-width: 100%;
  overflow-x: hidden;
  padding: clamp(36px, 6vw, 72px) 20px;
  background: var(--off-white);
}

body.page-sunday,
body.page-online,
body.page-sunday main,
body.page-online main {
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

#digital-bulletin-content {
  padding-top: 26px;
  border-top: 2px solid var(--border-medium);
}

.digital-bulletin__inner {
  width: 100%;
  min-width: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.digital-bulletin__inner > .digital-bulletin__title {
  color: var(--dark-green);
  font-family: 'Roboto Serif', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
}

.digital-bulletin__inner > .digital-bulletin__title {
  margin-bottom: clamp(24px, 4vw, 40px);
}

.digital-bulletin__page {
  min-width: 0;
  padding: 26px 0 10px;
  border-top: 2px solid var(--border-medium);
}

.digital-bulletin__page:first-child {
  padding-top: 0;
  border-top: 0;
}

.digital-bulletin__page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--dark-brown);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.digital-bulletin__page-title::-webkit-details-marker {
  display: none;
}

.digital-bulletin__page-title::after {
  content: '+';
  flex: 0 0 auto;
  color: var(--dark-green);
  font-size: 1.5em;
  font-weight: 400;
  line-height: 1;
}

.digital-bulletin__page[open] > .digital-bulletin__page-title::after {
  content: '−';
}

.digital-bulletin__page:not([open]) > .digital-bulletin__page-title {
  margin-bottom: 0;
}

.digital-bulletin__section {
  margin-bottom: 18px;
  padding: 0 0 4px;
}

.sunday-next-steps__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 24px);
  margin-top: 14px;
}

.sunday-next-steps__buttons .sunday-action-card__button {
  flex: 1 1 200px;
  width: auto;
  min-width: min(100%, 200px);
  margin-top: 0;
  text-transform: capitalize;
}

.digital-bulletin__section-title {
  display: inline;
  color: var(--dark-green);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.digital-bulletin__section-title--featured {
  display: block;
  margin-bottom: clamp(24px, 4vw, 40px);
  color: var(--dark-green);
  font-family: 'Roboto Serif', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

.digital-bulletin__section-description {
  display: inline;
  margin-left: 10px;
  color: var(--text-muted);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: clamp(0.8rem, 1.3vw, 0.95rem);
  line-height: 1.4;
}

.digital-bulletin__items {
  min-width: 0;
  max-width: 100%;
  margin-top: 6px;
  background: var(--white);
}

.digital-bulletin__row {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-dark);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.digital-bulletin__row:last-child {
  border-bottom: 0;
}

.digital-bulletin__row:hover {
  background: var(--off-white);
}

.digital-bulletin__highlight {
  display: flow-root;
  padding: 12px 14px;
}

.digital-bulletin__highlight-copy {
  min-width: 0;
}

.digital-bulletin__highlight-image {
  float: right;
  width: clamp(96px, 18%, 180px);
  margin: 0 0 8px 16px;
  overflow: hidden;
  border-radius: 4px;
  line-height: 0;
}

.digital-bulletin__highlight-image img {
  display: block;
  width: 100%;
  height: auto;
}

.digital-bulletin__row .digital-bulletin__title {
  color: var(--text-dark);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.digital-bulletin__highlight .digital-bulletin__description {
  display: inline;
}

.digital-bulletin__description {
  color: var(--text-body);
  font-family: 'Roboto', sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.5;
}

.digital-bulletin__meta-list {
  display: inline-flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 5px;
  margin-left: auto;
}

.digital-bulletin__highlight .digital-bulletin__meta-list {
  margin-left: 6px;
}

.digital-bulletin__highlight .digital-bulletin__meta {
  color: var(--dark-green);
}

.digital-bulletin__meta {
  color: var(--text-muted);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.digital-bulletin__meta + .digital-bulletin__meta::before {
  content: '·';
  margin-right: 5px;
  color: var(--border-medium);
}

.digital-bulletin__plain {
  display: block;
  padding: 9px 14px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.digital-bulletin__plain .digital-bulletin__title {
  margin-right: 3px;
}

.digital-bulletin__happening {
  padding: 8px 14px;
  gap: 10px;
  border-radius: 0;
}

.digital-bulletin__happening .happenings-item__date-wrap {
  width: 50px;
  border-radius: 5px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.digital-bulletin__happening .happenings-item__date {
  border-radius: 5px;
}

.digital-bulletin__happening .happenings-item__weekday {
  padding: 3px 3px 2px;
  font-size: 0.55rem;
}

.digital-bulletin__happening .happenings-item__daynum {
  padding: 4px 3px 1px;
  font-size: 1.2rem;
}

.digital-bulletin__happening .happenings-item__month {
  padding: 0 3px 4px;
  font-size: 0.55rem;
}

.digital-bulletin__happening .happenings-item__time {
  padding: 3px 6px;
  font-size: 0.72rem;
}

.digital-bulletin__happening .happenings-item__name {
  font-size: 0.9rem;
}

.digital-bulletin__status {
  color: var(--text-muted);
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .sunday-page__header {
    padding: 0;
  }

  .sunday-page__bulletin {
    padding: 32px 16px;
  }

  .sunday-action-section {
    padding: 20px 12px;
  }

  .sunday-action-grid {
    gap: 8px;
  }

  .sunday-action-card {
    padding: 12px 8px;
  }

  .sunday-action-card p {
    margin: 8px 0 14px;
    font-size: clamp(0.68rem, 2.6vw, 0.8rem);
  }

  .sunday-action-card__button {
    min-height: 42px;
    padding: 8px 4px;
    font-size: clamp(0.64rem, 2.4vw, 0.78rem);
  }

  .digital-bulletin__section {
    padding-left: 0;
  }

  .digital-bulletin__section-description {
    display: block;
    margin: 3px 0 0;
  }

  .digital-bulletin__highlight {
    display: flow-root;
  }

  .digital-bulletin__highlight .digital-bulletin__description {
    display: inline;
    margin-top: 0;
  }

  .digital-bulletin__highlight-image {
    width: clamp(80px, 24vw, 120px);
    margin-left: 10px;
  }

  .digital-bulletin__meta-list {
    display: flex;
    margin: 5px 0 0;
  }
}

.content-section h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 24px;
  font-weight: 600;
  font-family: 'Roboto Serif', serif;
}

.content-section p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Feed page empty state */
.feed-empty-state {
  min-height: 320px;
  background:
    linear-gradient(rgba(245, 243, 239, 0.92), rgba(245, 243, 239, 0.92)),
    url('assets/headers/pattern.png') repeat;
}

.feed-empty-state__eyebrow {
  margin-bottom: 14px !important;
  color: var(--leaf-green);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.75rem !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feed-empty-state h2 {
  color: var(--dark-green);
}

/* Service Info Styling */
.service-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .service-info-row {
    flex-direction: column;
    align-items: stretch;
  }

  .service-info__cta {
    display: block;
    text-align: center;
  }
}

.service-info {
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  flex: 1 1 auto;
  min-width: 0;
}

.service-info__cta {
  display: inline-block;
  flex-shrink: 0;
  padding: 12px 30px;
  background: var(--golden-yellow);
  color: var(--dark-brown);
  font-family: 'Merriweather Sans', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 0;
  box-shadow: 0 4px 15px rgba(255, 204, 77, 0.3);
  transition: all 0.3s ease;
}

.service-info__cta:hover {
  background-color: var(--bright-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(143, 198, 76, 0.4);
}

.service-info p {
  margin: 8px 0;
  font-size: 1rem;
}

.service-info a {
  color: var(--ui-blue);
  text-decoration: none;
}

.service-info a:hover {
  text-decoration: underline;
}

/* Action Steps Grid */
.calendar-cta {
  display: flex;
  justify-content: center;
  padding: 8px 20px;
  background: var(--white);
}

.calendar-cta__button {
  padding: 5px 16px;
  border: 1px solid var(--dark-brown);
  border-radius: 2px;
  background: transparent;
  color: var(--dark-brown);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.calendar-cta__button:hover,
.calendar-cta__button:focus-visible {
  background: var(--dark-brown);
  color: var(--white);
}

.calendar-cta__button:focus-visible {
  outline: 2px solid var(--golden-yellow);
  outline-offset: 2px;
}

.action-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  max-width: 900px;
}

.action-step {
  text-align: center;
  padding: 20px;
}

.action-step h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-medium);
  font-family: 'Roboto Serif', serif;
}

.action-step p {
  font-size: 1rem;
  margin-bottom: 20px;
  max-width: none;
}

/* Mobile responsive for action steps */
@media (max-width: 768px) {
  .action-steps {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .action-step {
    padding: 15px;
  }
}

/* Ministry Cards header label */
.ministry-cards-header {
  background: var(--off-white);
  text-align: center;
  padding: 32px 20px 20px;
}
.ministry-cards-header h2 {
  font-family: 'Roboto Serif', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--leaf-green);
  margin: 0;
}

/* Ministry Pathway Cards */
.ministry-cards {
  display: flex;
  width: 100%;
}

.ministry-card {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: var(--white);
}

/* Grayscale background image layer — driven by --scroll-t (0→1 as card scrolls into view) */
.ministry-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(calc((1 - var(--scroll-t, 0) * 0.4) * 100%));
  transform: scale(calc(1 + var(--scroll-t, 0) * 0.04));
  z-index: 0;
}

/* Brand colour overlay layer */
.ministry-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: calc(1 - var(--scroll-t, 0) * 0.25);
}

/* Per-card backgrounds — matching page header images and overlay colours */
.ministry-card--classes::before {
  background-image: url('assets/headers/classes.webp');
}
.ministry-card--classes::after {
  background-color: rgba(16, 137, 172, 0.62); /* blue — matches page-header--classes */
}

.ministry-card--groups::before {
  background-image: url('assets/headers/groups.jpg');
}
.ministry-card--groups::after {
  background-color: rgba(109, 162, 121, 0.68); /* green — matches page-header--groups */
}

.ministry-card--teams::before {
  background-image: url('assets/headers/Teams.webp');
}
.ministry-card--teams::after {
  background-color: rgba(212, 109, 89, 0.62); /* red — matches page-header--teams */
}

/* Watermark icon — matches page-header watermark treatment */
.ministry-card__watermark {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(80px, 12vw, 140px);
  opacity: 0.13;
  filter: brightness(0) invert(1);
  z-index: 2;
  pointer-events: none;
}

.ministry-card__content {
  position: relative;
  z-index: 2;
  padding: 32px;
  width: 100%;
}

.ministry-card__content h3 {
  font-family: 'Roboto Serif', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}

.ministry-card__content p {
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  margin-bottom: 20px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
  max-width: none;
  text-align: left;
}

.ministry-card__btn {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.8);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 0;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.ministry-card:hover .ministry-card__btn {
  background: rgba(255,255,255,0.18);
  border-color: var(--white);
}

@media (max-width: 768px) {
  .ministry-cards {
    flex-direction: column;
  }

  .ministry-card {
    min-height: 260px;
  }
}

/* Statement of Faith */
.statement-of-faith {
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.faith-statement {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--leaf-green);
}

.faith-statement:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.faith-statement h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--dark-brown);
  font-family: 'Roboto Serif', serif;
  margin: 0;
  text-align: left;
}

.faith-content p {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  line-height: 1.6;
  margin: 0;
  text-align: left;
  max-width: none;
}

/* Mobile responsive for Statement of Faith */
@media (max-width: 768px) {
  .faith-statement {
    grid-template-columns: 1fr;
    gap: 15px;
    text-align: left;
  }

  .faith-statement h3 {
    text-align: left;
  }
}

/* Mission and Values Lists */
.mission-list, .values-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.mission-list li, .values-list li {
  position: relative;
  padding: 14px 0 14px 28px;
  font-size: 1.05rem;
  font-family: 'Roboto', sans-serif;
  color: var(--text-body);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.mission-list li::before, .values-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 14px;
  color: var(--bright-green);
  font-size: 0.85rem;
  line-height: 1.6;
}

.mission-list li:last-child, .values-list li:last-child {
  border-bottom: none;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background: var(--ui-blue);
  color: var(--white);
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background: var(--ui-blue-dark);
}

.class-frequency {
  font-size: 0.85em;
  color: var(--text-subtle);
  font-style: italic;
  margin: 6px 0 14px;
}

/* Call to Action Button */
.cta-button {
  display: inline-block;
  padding: 12px 30px;
  margin-top: 20px;
  background-color: var(--golden-yellow);
  color: var(--dark-brown);
  text-decoration: none;
  border-radius: 0;
  font-family: 'Merriweather Sans', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 204, 77, 0.3);
}

.cta-button:hover {
  background-color: var(--bright-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(143, 198, 76, 0.4);
}

/* Section headings with accent color */
.content-section h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 24px;
  font-weight: 600;
  color: var(--leaf-green);
}

/* Sunday Page Styles */
.sunday-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.sunday-button {
  display: inline-block;
  padding: 15px 25px;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 180px;
}

.sunday-button--text {
  background-color: var(--bright-green);
  color: white;
  box-shadow: 0 4px 15px rgba(143, 198, 76, 0.3);
}

.sunday-button--text:hover {
  background-color: var(--leaf-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 157, 72, 0.4);
}

.sunday-button--online {
  background-color: var(--golden-yellow);
  color: var(--dark-brown);
  box-shadow: 0 4px 15px rgba(255, 204, 77, 0.3);
}

.sunday-button--online:hover {
  background-color: var(--warm-beige);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 201, 163, 0.4);
}

/* Sermon Notes Section */
.sermon-notes {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  border-left: 4px solid var(--leaf-green);
}

.sermon-info h3 {
  color: var(--dark-green);
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-family: 'Roboto Serif', serif;
}

.sermon-info p {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.sermon-info strong {
  color: var(--dark-brown);
}

/* Check-in Form Styles */
.checkin-form-container {
  max-width: 600px;
  margin: 30px auto 0;
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.checkin-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-body);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-medium);
  border-radius: 0.375rem;
  font-size: 16px;
  color: var(--text-body);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ui-blue-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
  margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.checkmark {
  font-size: 0.9rem;
}

/* Mobile responsiveness for Sunday page */
@media (max-width: 768px) {
  .sunday-actions {
    flex-direction: column;
    align-items: center;
  }

  .sunday-button {
    width: 100%;
    max-width: 300px;
  }

  .checkin-form-container {
    padding: 20px;
    margin-top: 20px;
  }

  .sermon-notes {
    padding: 20px;
  }
}

/* Page Header */
.page-header {
  padding: 60px 20px 80px;
  margin-top: var(--header-h);
  background: linear-gradient(135deg, var(--leaf-green) 0%, var(--dark-green) 100%);
  color: white;
  text-align: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* When a subnav bar is visible, push page-header below it too */
body.has-subnav .page-header {
  margin-top: calc(var(--header-h) + var(--subnav-h));
}

/* Photo overlay heroes — grayscale image + brand-color tint */
.page-header--visit::before,
.page-header--sunday::before,
.page-header--leadership::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  z-index: 0;
}

.page-header--classes::after,
.page-header--groups::after,
.page-header--teams::after,
.page-header--visit::after,
.page-header--kids::after,
.page-header--give::after,
.page-header--sunday::after,
.page-header--leadership::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Pattern texture overlay on video headers */
.page-header--classes::before,
.page-header--groups::before,
.page-header--teams::before,
.page-header--kids::before,
.page-header--give::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/headers/pattern.png');
  background-repeat: repeat;
  opacity: 0.35;
  z-index: 2;
  pointer-events: none;
}

/* Per-page images and overlay colors — kept in sync with homepage ministry cards */
.page-header--classes {
  background: none;
}
.page-header__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  z-index: 0;
}
.page-header--classes::after {
  background-color: rgba(16, 137, 172, 0.62); /* blue #1089ac */
}

.page-header--groups {
  background: none;
}
.page-header--groups::after {
  background-color: rgba(109, 162, 121, 0.68); /* green #6da279 */
}

.page-header--teams {
  background: none;
}
.page-header--teams::after {
  background-color: rgba(212, 109, 89, 0.62); /* red #d46d59 */
}

.page-header--visit {
  background: none;
}
.page-header--visit::before {
  background-image: url('assets/images/visit.webp');
}
.page-header--visit::after {
  background-color: rgba(45, 31, 23, 0.65); /* --dark-brown */
}

.page-header--kids {
  background: none;
}
.page-header--kids::after {
  background-color: rgba(45, 157, 72, 0.58); /* --leaf-green */
}

.page-header--give {
  background: none;
}
.page-header--give::after {
  background-color: rgba(160, 110, 20, 0.58); /* warm gold overlay */
}

.page-header--sunday {
  background: none;
}
.page-header--sunday::before {
  background-image: url('https://images.unsplash.com/photo-1438232992991-995b671a1d38?w=1400&auto=format&fit=crop');
}
.page-header--sunday::after {
  background-color: rgba(45, 31, 23, 0.68); /* --dark-brown */
}

.page-header--leadership {
  background: none;
}
.page-header--leadership::before {
  background-image: url('https://images.unsplash.com/photo-1511632765486-a01980e01a18?w=1400&auto=format&fit=crop');
}
.page-header--leadership::after {
  background-color: rgba(45, 31, 23, 0.68); /* --dark-brown */
}

/* Leadership page — person cards -------------------------------- */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  margin-top: 32px;
}

@media (min-width: 600px) {
  .leader-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .leader-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.leader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.leader-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  background: var(--off-white);
  display: block;
}

.leader-card__name {
  font-family: 'Merriweather Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.3;
  margin: 0;
}

.leader-card__role {
  font-family: 'Roboto', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.leader-card__email {
  font-family: 'Roboto', sans-serif;
  font-size: 0.78rem;
  color: var(--leaf-green);
  text-decoration: none;
  word-break: break-all;
}

.leader-card__email:hover {
  color: var(--dark-green);
}

.leader-section-heading {
  font-family: 'Roboto Serif', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--dark-brown);
  margin-bottom: 4px;
}

.leader-section-rule {
  border: none;
  border-top: 3px solid var(--leaf-green);
  width: 48px;
  margin: 0 0 8px 0;
}

.page-header__content {
  position: relative;
  z-index: 4;
}

/* Icon watermark — white, semi-transparent, decorative */
.page-header__watermark {
  position: absolute;
  right: 6%;
  bottom: 0;
  width: clamp(100px, 15.6vw, 200px);
  opacity: 0.13;
  filter: brightness(0) invert(1);
  z-index: 3;
  pointer-events: none;
  user-select: none;
  display: block;
}

.page-header__content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
  font-weight: 600;
  font-family: 'Roboto Serif', serif;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}

.page-header__content p {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  opacity: 0.9;
  max-width: 600px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}

/* Church Family Photos */
.church-family-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.church-family-photo {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.church-family-photo img {
  width: 100%;
  max-height: 120px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}

.church-family-photo figcaption {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

@media (max-width: 640px) {
  .church-family-photos {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Statement of Faith articles inside accordion */
.sof-body {
  padding-top: 8px;
}

.sof-article {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.sof-article:last-of-type {
  border-bottom: none;
  margin-bottom: 12px;
}

.sof-article h4 {
  font-family: 'Roboto Serif', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-green);
  margin-bottom: 6px;
}

.sof-article p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-body);
  max-width: none;
  margin: 0;
}

.sof-affirmation {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
  text-align: left;
  max-width: none;
  margin: 0;
}

/* Accordion */
.accordion {
  margin: 32px auto 0;
  max-width: 600px;
  text-align: left;
}

.accordion__item {
  border-top: 1px solid var(--border-medium);
}

.accordion__item:last-child {
  border-bottom: 1px solid var(--border-medium);
}

.accordion__trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 4px;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--dark-green);
  cursor: pointer;
  list-style: none;
  gap: 12px;
}

.accordion__trigger::-webkit-details-marker { display: none; }

.accordion__trigger::after {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--bright-green);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238fc64c' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 6px;
  transition: transform 0.25s ease;
}

details[open] > .accordion__trigger::after {
  transform: rotate(180deg);
}

.accordion__body {
  padding: 4px 4px 20px;
}

.accordion__body p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  max-width: none;
  margin: 0 0 12px;
}

.accordion__body p:last-child {
  margin-bottom: 0;
}

/* Info Bar */
.info-bar {
  background-color: var(--charcoal);
  padding: 8px 20px;
}

.info-bar__container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.info-bar__label {
  justify-self: start;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.info-bar__actions {
  grid-column: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.info-bar__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid var(--golden-yellow);
  background: transparent;
  color: var(--golden-yellow);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.info-bar__button:hover,
.info-bar__button:focus-visible {
  background: var(--golden-yellow);
  color: var(--dark-brown);
}

.info-bar__button--unlinked {
  cursor: default;
  opacity: 0.6;
}

@media (max-width: 600px) {
  .info-bar__label {
    display: none;
  }

  .info-bar__container {
    display: flex;
    justify-content: center;
    gap: 0;
  }

  .info-bar__actions {
    grid-column: auto;
  }

  .info-bar__button {
    padding-right: 10px;
    padding-left: 10px;
    font-size: clamp(0.62rem, 2.6vw, 0.78rem);
  }
}

/* Footer Styles */
.footer {
  background-color: var(--charcoal);
  color: rgba(255, 255, 255, 0.9);
  padding: 60px 20px 30px;
  margin-top: auto;
}

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

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer__section {
  display: flex;
  flex-direction: column;
}

.footer__title {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  font-family: 'Roboto Serif', serif;
}

.footer__subtitle {
  color: var(--bright-green);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  font-family: 'Roboto Serif', serif;
}

.footer__text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 10px;
  opacity: 0.9;
}

.footer__link {
  color: var(--bright-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--golden-yellow);
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 8px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 500;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 30px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copyright {
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer__policy {
  position: relative;
  text-align: right;
}

.footer__policy-toggle {
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: 0.72rem;
  opacity: 0.5;
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.03em;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.footer__policy-toggle:hover {
  opacity: 0.75;
}

.footer__policy-text {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 0.72rem;
  line-height: 1.6;
  margin: 8px auto 0;
  max-width: 560px;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

/* Mobile responsive for footer */
@media (max-width: 768px) {
  .footer {
    padding: 40px 20px 20px;
  }

  .footer__content {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
  }

  .footer__bottom {
    padding-top: 20px;
  }
}

/* Church Groups Widget Styles */
.church-groups-container {
  margin-top: 2rem;
}

.church-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.church-groups-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.church-groups-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.75rem;
}

.church-groups-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.church-group-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.church-group-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.church-group-list {
  display: flex;
  align-items: center;
}

.church-group-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-light);
}

.church-group-list .church-group-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  margin-right: 1rem;
}

.church-group-content {
  padding: 1rem;
}

.church-group-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.5rem 0;
}

.church-group-tags {
  margin-bottom: 0.75rem;
}

.church-group-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  margin-right: 0.5rem;
}

.church-group-parent {
  background-color: var(--bg-light);
  color: var(--text-muted);
}

.church-group-type {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--ui-blue-accent);
}

.church-group-description {
  color: var(--text-muted);
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
}

.church-group-leaders {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.church-group-leaders-label {
  font-weight: 500;
  color: var(--text-body);
}

.church-group-leaders-list {
  color: var(--text-muted);
}

.church-group-membership {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.church-group-membership-public {
  color: var(--status-green);
}

.church-group-membership-private {
  color: var(--status-amber);
}

.church-groups-error {
  text-align: center;
  padding: 2rem;
  color: var(--status-red);
  background-color: var(--status-red-bg);
  border: 1px solid var(--status-red-border);
  border-radius: 0.5rem;
}

/* ── Smooth scroll ─────────────────────────────────────────── */
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ── Sticky header wrapper ─────────────────────────────────── */
.sticky-header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.sticky-header-wrap.header-hidden {
  transform: translateY(calc(-1 * var(--header-h)));
}

@media (prefers-reduced-motion: reduce) {
  .sticky-header-wrap { transition: none; }
}

/* ── Chip sub-nav bar ──────────────────────────────────────── */
.subnav {
  background: var(--charcoal);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  height: var(--subnav-h);
  overflow: hidden;
}

.subnav__list {
  display: flex;
  align-items: center;
  justify-content: safe center;
  height: 100%;
  padding: 0 16px;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.subnav__list::-webkit-scrollbar { display: none; }

.subnav__chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.subnav__chip:hover {
  color: var(--warm-beige);
  border-color: var(--warm-beige);
}

.subnav__chip--active {
  background: var(--warm-beige);
  color: var(--dark-brown);
  border-color: var(--warm-beige);
  font-weight: 600;
}

.subnav__chip:focus-visible {
  outline: 2px solid var(--warm-beige);
  outline-offset: 2px;
}

/* ── Section scroll offset ─────────────────────────────────── */
section[id],
[data-nav][id] {
  scroll-margin-top: calc(var(--header-h) + var(--subnav-h) + 12px);
}

/* ── Feed card layout ───────────────────────────────────────── */
/* Per-page overrides: body.page-classes .class-feature__image { } */

/* Feed heading colors matched to page header overlay tints */
body.page-classes .feed-section-header { border-left-color: #1089ac; }
body.page-classes .feed-section-header__label { color: #1089ac; }

body.page-groups .feed-section-header { border-left-color: #6da279; }
body.page-groups .feed-section-header__label { color: #6da279; }

body.page-teams .feed-section-header { border-left-color: #d46d59; }
body.page-teams .feed-section-header__label { color: #d46d59; }

/* Feed item title colors matched to page accent */
body.page-classes .class-feature__content h2,
body.page-classes .content-section h2 { color: #1089ac; }

body.page-groups .class-feature__content h2,
body.page-groups .content-section h2 { color: #6da279; }

body.page-teams .class-feature__content h2,
body.page-teams .content-section h2 { color: #d46d59; }
.class-feature {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.class-feature--reverse {
  flex-direction: row-reverse;
}

.class-feature__image {
  flex: 0 0 380px;
  height: 280px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 10px;
}

.class-feature__image--action {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.class-feature__image--action:focus-visible {
  outline: 3px solid var(--golden-yellow);
  outline-offset: 4px;
}

.class-feature__content {
  flex: 1;
  text-align: left;
}

.class-feature__content h2 {
  text-align: left;
  margin-bottom: 16px;
}

.class-feature__content p {
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .class-feature,
  .class-feature--reverse {
    flex-direction: column;
    gap: 24px;
  }

  .class-feature__image {
    flex: none;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .class-feature__content {
    text-align: center;
  }

  .class-feature__content h2 {
    text-align: center;
  }
}

/* LifeTree Resource Center */
/* Homepage surfaces use one calm neutral base; imagery and the ministry cards
   provide the intentional contrast instead of alternating white panels. */
body.home-page {
  background-color: var(--off-white);
}

body.home-page .content-section--white,
body.home-page .content-section--off-white,
body.home-page #bulletin-feed,
body.home-page .calendar-cta,
body.home-page .ministry-cards-header,
body.home-page .resource-center {
  background-color: var(--off-white);
}

.resource-center {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 60px);
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 2vw, 24px);
  background: var(--off-white);
}

.resource-center__image {
  position: relative;
  flex: 0 0 clamp(320px, 52%, 520px);
  overflow: hidden;
  background: var(--white);
  border-radius: 10px;
}

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

.resource-center__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0;
  background: transparent;
}

.resource-center__label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--leaf-green);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.resource-center__body h2 {
  margin-bottom: 18px;
  color: var(--dark-brown);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.2;
}

.resource-center__body p {
  max-width: 600px;
  margin: 0 0 26px;
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.75;
}

.resource-center__cta {
  align-self: flex-start;
}

@media (max-width: 768px) {
  .resource-center {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 32px 20px 48px;
  }

  .resource-center__image {
    flex: none;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }

  .resource-center__body {
    padding: 0 4px;
    text-align: center;
  }

  .resource-center__body p {
    margin-right: auto;
    margin-left: auto;
  }

  .resource-center__cta {
    align-self: center;
  }
}