/**
 * Public success stories page
 * Scoped to body.custom_theme-page-74
 */

/* ── Flush hero under nav ── */
body.custom_theme-page-74 #content { display: flow-root; }

body.custom_theme-page-74 .site-main,
body.custom_theme-page-74 .page-content,
body.custom_theme-page-74 .custom_theme-74,
body.custom_theme-page-74 .custom_theme-element-30de20d,
body.custom_theme-page-74 .e-con-boxed:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.custom_theme-page-74 .custom_theme-74 > .custom_theme-element-30de20d.e-con {
  --margin-top: 0 !important;
  --margin-block-start: 0 !important;
  --padding-top: 0 !important;
  --padding-block-start: 0 !important;
  margin-block-start: 0 !important;
  margin-top: 0 !important;
}

body.custom_theme-page-74 .custom_theme-74 > .custom_theme-element-30de20d > .e-con-inner {
  --padding-top: 0 !important;
  --padding-block-start: 0 !important;
  padding-block-start: 0 !important;
}

/* ── Design tokens ── */
body.custom_theme-page-74 .success-stories-redesign {
  --ss-navy:   #0f172a;
  --ss-blue:   #2563eb;
  --ss-muted:  #64748b;
  --ss-border: #e2e8f0;
  --ss-coral:  #e84e38;
  --ss-green:  #00cc6d;
  --ss-gold:   #9a7a06;
}

/* ── Page shell ── */
body.custom_theme-page-74 .success-stories-redesign {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  padding: 64px 1.25rem 96px;
  max-width: 100%;
}

/* ── Feed ── */
body.custom_theme-page-74 .success-stories-feed {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ── Article card ── */
body.custom_theme-page-74 .success-story-article {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.10), 0 1px 4px rgba(15, 23, 42, 0.06);
  background: #fff;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

body.custom_theme-page-74 .success-story-article:hover {
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15), 0 2px 8px rgba(15, 23, 42, 0.08);
  transform: translateY(-3px);
}

/* ── Two-column grid ── */
body.custom_theme-page-74 .success-story-article__grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 820px) {
  body.custom_theme-page-74 .success-story-article__grid {
    grid-template-columns: 260px 1fr;
    align-items: stretch;
  }
}

/* ── Aside — feature-colour cycling panel ── */
body.custom_theme-page-74 .success-story-article__aside {
  background: #2b70e4;
  padding: 2rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

body.custom_theme-page-74 .success-story-article:nth-child(8n+1) .success-story-article__aside { background: #2b70e4; }
body.custom_theme-page-74 .success-story-article:nth-child(8n+2) .success-story-article__aside { background: #00cc6d; }
body.custom_theme-page-74 .success-story-article:nth-child(8n+3) .success-story-article__aside { background: #8c52ff; }
body.custom_theme-page-74 .success-story-article:nth-child(8n+4) .success-story-article__aside { background: #e84e38; }
body.custom_theme-page-74 .success-story-article:nth-child(8n+5) .success-story-article__aside { background: #10b981; }
body.custom_theme-page-74 .success-story-article:nth-child(8n+6) .success-story-article__aside { background: #6366f1; }
body.custom_theme-page-74 .success-story-article:nth-child(8n+7) .success-story-article__aside { background: #f59e0b; }
body.custom_theme-page-74 .success-story-article:nth-child(8n+8) .success-story-article__aside { background: #2b70e4; }

/* Amber (#f59e0b) needs dark text for legibility */
body.custom_theme-page-74 .success-story-article:nth-child(8n+7) .success-story-article__church,
body.custom_theme-page-74 .success-story-article:nth-child(8n+7) .success-story-article__location {
  color: rgba(0, 0, 0, 0.75);
}
body.custom_theme-page-74 .success-story-article:nth-child(8n+7) .success-story-article__members {
  color: #92400e;
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.15);
}

@media (min-width: 820px) {
  body.custom_theme-page-74 .success-story-article__aside {
    align-items: flex-start;
  }
}

/* ── Church image ── */
body.custom_theme-page-74 .success-story-article__media {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  margin: 0 0 1.25rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.2);
}

@media (min-width: 820px) {
  body.custom_theme-page-74 .success-story-article__media {
    width: 100%;
    height: auto;
    border-radius: 12px;
    aspect-ratio: 1;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
  }
}

body.custom_theme-page-74 .success-story-article__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Church name ── */
body.custom_theme-page-74 .success-story-article__church {
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 0.4rem;
  text-align: center;
}

@media (min-width: 820px) {
  body.custom_theme-page-74 .success-story-article__church {
    text-align: left;
  }
}

/* ── Location ── */
body.custom_theme-page-74 .success-story-article__location {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 1rem;
  text-align: center;
  line-height: 1.4;
}

@media (min-width: 820px) {
  body.custom_theme-page-74 .success-story-article__location {
    text-align: left;
  }
}

/* ── Members badge ── */
body.custom_theme-page-74 .success-story-article__members {
  display: inline-flex;
  align-items: center;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  width: fit-content;
  margin: 0 auto;
}

@media (min-width: 820px) {
  body.custom_theme-page-74 .success-story-article__members {
    margin: 0;
  }
}

/* ── Main content panel ── */
body.custom_theme-page-74 .success-story-article__main {
  padding: 2rem 1.75rem 2.25rem;
  background: #fff;
  position: relative;
}

@media (min-width: 820px) {
  body.custom_theme-page-74 .success-story-article__main {
    padding: 2.5rem 2.5rem 2.5rem;
  }
}

/* Large decorative quote mark */
body.custom_theme-page-74 .success-story-article__main::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 7rem;
  line-height: 1;
  color: rgba(37, 99, 235, 0.08);
  font-family: Georgia, serif;
  pointer-events: none;
  user-select: none;
}

@media (min-width: 820px) {
  body.custom_theme-page-74 .success-story-article__main::before {
    top: 20px;
    left: 28px;
    font-size: 9rem;
  }
}

/* ── Story headline ── */
body.custom_theme-page-74 .success-story-article__headline {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ss-navy);
  margin: 0 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ── Metrics row ── */
body.custom_theme-page-74 .success-story-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.75rem;
  list-style: none;
  padding: 0;
}

body.custom_theme-page-74 .success-story-metrics__item {
  flex: 1 1 9rem;
  min-width: 9rem;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--ss-border);
  background: #f8fafc;
}

body.custom_theme-page-74 .success-story-metrics__item--coral {
  border-color: rgba(232, 78, 56, 0.28);
  background: rgba(232, 78, 56, 0.05);
}

body.custom_theme-page-74 .success-story-metrics__item--green {
  border-color: rgba(0, 204, 109, 0.3);
  background: rgba(0, 204, 109, 0.05);
}

body.custom_theme-page-74 .success-story-metrics__item--gold {
  border-color: rgba(247, 209, 1, 0.4);
  background: rgba(247, 209, 1, 0.07);
}

body.custom_theme-page-74 .success-story-metrics__value {
  display: block;
  font-family: Inter, system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
}

body.custom_theme-page-74 .success-story-metrics__item--coral .success-story-metrics__value { color: var(--ss-coral); }
body.custom_theme-page-74 .success-story-metrics__item--green .success-story-metrics__value { color: var(--ss-green); }
body.custom_theme-page-74 .success-story-metrics__item--gold  .success-story-metrics__value { color: var(--ss-gold); }

body.custom_theme-page-74 .success-story-metrics__label {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ss-muted);
}

/* ── Story body text ── */
body.custom_theme-page-74 .success-story-article__body {
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #475569;
}

body.custom_theme-page-74 .success-story-article__body p { margin: 0 0 0.9rem; }
body.custom_theme-page-74 .success-story-article__body p:last-child { margin-bottom: 0; }

body.custom_theme-page-74 .success-story-article__body ul,
body.custom_theme-page-74 .success-story-article__body ol {
  margin: 0 0 0.9rem 1.25rem;
  padding: 0;
}

body.custom_theme-page-74 .success-story-article__body li { margin-bottom: 0.35rem; }

body.custom_theme-page-74 .success-story-article__body strong {
  font-weight: 600;
  color: #1e293b;
}

body.custom_theme-page-74 .success-story-article__body a {
  color: var(--ss-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Keep shared footer link colors aligned with the home page. */
body.custom_theme-page-74 .site-footer a,
body.custom_theme-page-74 .footer-col a {
  color: #94a3b8;
}

body.custom_theme-page-74 .footer-col a:hover,
body.custom_theme-page-74 .site-footer a:hover {
  color: var(--t-color-blue-500, #2b70e4);
}

/* ── Video section ── */
body.custom_theme-page-74 .success-story-article__video {
  border-top: 1px solid #1e293b;
  padding: 2.5rem;
  background: #0f172a;
  overflow: hidden;
}

@media (max-width: 767px) {
  body.custom_theme-page-74 .success-story-article__video {
    padding: 1rem;
  }
}

body.custom_theme-page-74 .success-story-article__video-inner {
  border-radius: 0;
  overflow: hidden;
}

body.custom_theme-page-74 .success-story-article__video-inner iframe {
  width: 100%;
  height: auto;
  min-height: 12rem;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
}

body.custom_theme-page-74 .success-story-article__video-note {
  max-width: 760px;
  margin: 1rem auto;
  padding: 0 1.75rem 1.25rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

body.custom_theme-page-74 .success-story-article__video-note a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Empty state ── */
body.custom_theme-page-74 .success-stories-empty {
  font-family: Inter, system-ui, sans-serif;
  text-align: center;
  padding: 5rem 1rem;
  color: var(--ss-muted);
  font-size: 1rem;
}

/* ── Mobile: stack aside on top cleanly ── */
@media (max-width: 819px) {
  body.custom_theme-page-74 .success-story-article__aside {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
  }

  body.custom_theme-page-74 .success-story-article__media {
    margin: 0;
    flex-shrink: 0;
  }

  body.custom_theme-page-74 .success-story-article__church,
  body.custom_theme-page-74 .success-story-article__location,
  body.custom_theme-page-74 .success-story-article__members {
    text-align: left;
    margin: 0;
  }

  body.custom_theme-page-74 .success-story-article__aside > *:not(.success-story-article__media) {
    flex: 1 1 auto;
  }
}
