/* ==========================================================================
   IMPACT STORY (live afforum theme)
   Ported from the UAT afforum_hub design:
   full-bleed hero, wide reading column, metadata sidebar, share panel.
   ========================================================================== */

.aff-full-node-main {
  width: 100%;
  margin: 0;
  padding: 0;
}

.aff-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* 1. Full-bleed hero header */
.aff-node-impact .aff-fullbleed-header {
  position: relative;
  width: 100%;
  min-height: 440px;
  background-color: #3a6823;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  color: #FFFFFF;
  padding: 64px 0;
  box-sizing: border-box;
  overflow: hidden;
}

.aff-node-impact .aff-fullbleed-header.no-bg-image {
  background: linear-gradient(135deg, #1b350e 0%, #2e541b 50%, #549433 100%);
}

.aff-node-impact .aff-header-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10, 22, 4, 0.78) 0%, rgba(10, 22, 4, 0.56) 42%, rgba(10, 22, 4, 0.14) 78%, rgba(10, 22, 4, 0.04) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.aff-node-impact .aff-header-wrap {
  position: relative;
  z-index: 2;
}

.aff-node-impact .aff-header-inner {
  max-width: 880px;
}

.aff-node-impact .aff-header-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.aff-node-impact .aff-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.aff-node-impact .aff-eyebrow-pill.impact-pill {
  background: rgba(0, 173, 239, 0.16);
  color: #00ADEF;
  border-color: rgba(0, 173, 239, 0.45);
}

.aff-node-impact .aff-eyebrow-context {
  font-size: 13px;
  color: #DDEACD;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dotted rgba(221, 234, 205, 0.5);
  transition: all 0.2s ease;
}

.aff-node-impact .aff-eyebrow-context:hover {
  color: #FFFFFF;
  border-bottom-color: #FFFFFF;
}

.aff-node-impact .aff-header-title {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
  margin: 0 0 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.aff-node-impact .aff-header-punchline {
  font-size: 18px;
  line-height: 1.6;
  color: #E2EED5;
  margin: 0 0 24px;
  max-width: 800px;
}

.aff-node-impact .aff-header-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: #D2E3C2;
}

.aff-node-impact .aff-byline-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* 2. Reading column + sidebar */
.aff-node-impact .aff-node-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 48px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 80px;
}

.aff-node-impact .aff-main-col {
  min-width: 0;
}

.aff-node-impact .aff-prose-content {
  font-size: 17px;
  line-height: 1.85;
  color: #2D3728;
}

.aff-node-impact .aff-prose-content p {
  margin-bottom: 24px;
}

.aff-node-impact .aff-prose-content h2 {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: 26px;
  color: #1e3611;
  margin: 40px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #EEF6EA;
}

.aff-node-impact .aff-prose-content h3 {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: 21px;
  color: #3a6823;
  margin: 32px 0 14px;
}

/* Images and figure captions keep their natural proportions. */
.aff-node-impact .aff-prose-content img,
.aff-node-impact .aff-prose-content figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(30, 36, 24, 0.08);
}

.aff-node-impact .aff-prose-content figure {
  margin: 28px 0;
}

.aff-node-impact .aff-prose-content figure img {
  display: block;
  margin: 0 auto;
}

.aff-node-impact .aff-prose-content figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: #5C6B57;
  text-align: center;
}

.aff-node-impact .aff-prose-content blockquote {
  border-left: 4px solid #549433;
  padding: 16px 24px;
  margin: 28px 0;
  background: #F7FAF5;
  border-radius: 0 12px 12px 0;
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 19px;
  color: #1e3611;
}

.aff-node-impact .aff-prose-content ul,
.aff-node-impact .aff-prose-content ol {
  padding-left: 28px;
  margin-bottom: 24px;
}

.aff-node-impact .aff-prose-content li {
  margin-bottom: 8px;
}

/* 3. Sidebar card */
.aff-node-impact .aff-meta-col {
  position: static;
}

.aff-node-impact .aff-meta-card {
  background: #FFFFFF;
  border: 1px solid #DFE6D6;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 10px 30px rgba(30, 36, 24, 0.05);
}

.aff-node-impact .aff-meta-section {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #F0F4EC;
}

.aff-node-impact .aff-meta-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.aff-node-impact .aff-meta-label {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #549433;
  margin-bottom: 10px;
}

.aff-node-impact .aff-meta-value {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: #1E2418;
}

.aff-node-impact .aff-meta-value svg {
  color: #549433;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Featured photo (alt text is the caption) */
.aff-node-impact .aff-meta-feature {
  margin: 0;
  border: 1px solid #E3EBD9;
  border-radius: 14px;
  background: #F5F8F0;
  overflow: hidden;
}

.aff-node-impact .aff-meta-feature img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.aff-node-impact .aff-meta-feature figcaption {
  margin: 0;
  padding: 10px 14px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #5C6B57;
  border-top: 1px solid #E3EBD9;
  background: #F5F8F0;
}

/* Featured photo quote (blockquote) */
.aff-node-impact .aff-meta-quote {
  margin: 0;
  padding: 14px 16px 12px;
  background: #FFFFFF;
  border-left: 4px solid #549433;
  border-radius: 8px;
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.6;
  color: #1e3611;
  border: 1px solid #DFE6D6;
}

.aff-node-impact .aff-meta-quote p {
  margin: 0 0 8px;
}

.aff-node-impact .aff-meta-quote cite {
  font-style: normal;
  font-family: inherit;
  font-size: 12.5px;
  color: #5C6B57;
}

.aff-node-impact .aff-meta-quote cite a {
  color: #1e3611;
  font-weight: 700;
  text-decoration: underline;
}

.aff-node-impact .aff-meta-quote cite a:hover {
  text-decoration: underline;
}

.aff-node-impact .aff-meta-link {
  color: #3a6823;
  font-weight: 600;
  text-decoration: none;
}

.aff-node-impact .aff-meta-link:hover {
  text-decoration: underline;
}
.aff-node-impact .aff-tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aff-node-impact .aff-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F5F8F0;
  color: #3a6823;
  border: 1px solid #DFE6D6;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.aff-node-impact .aff-pill-tag:hover {
  background: #549433;
  color: #FFFFFF;
  border-color: #549433;
  transform: translateY(-1px);
}

.aff-node-impact .aff-pill-tag.program-tag {
  background: rgba(252, 185, 19, 0.12);
  color: #9c6c00;
  border-color: rgba(252, 185, 19, 0.4);
}

.aff-node-impact .aff-pill-tag.program-tag:hover {
  background: #FCB913;
  color: #1E2418;
}

/* Share panel */
.aff-node-impact .aff-share-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.aff-node-impact .aff-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #DFE6D6;
  background: #F7FAF5;
  color: #2D3728;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.aff-node-impact .aff-share-btn:hover {
  transform: translateY(-2px);
  color: #FFFFFF;
}

.aff-node-impact .aff-share-btn.btn-facebook:hover {
  background: #1877F2;
  border-color: #1877F2;
}

.aff-node-impact .aff-share-btn.btn-twitter:hover {
  background: #000000;
  border-color: #000000;
}

.aff-node-impact .aff-share-btn.btn-linkedin:hover {
  background: #0A66C2;
  border-color: #0A66C2;
}

.aff-node-impact .aff-share-btn.btn-whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
}

.aff-node-impact .aff-share-btn.btn-email:hover {
  background: #549433;
  border-color: #549433;
}

.aff-node-impact .aff-share-btn.btn-copy:hover {
  background: #FCB913;
  border-color: #FCB913;
  color: #1E2418;
}

/* Pan-African note card */
.aff-node-impact .aff-impact-note {
  margin-top: 20px;
  background: linear-gradient(135deg, #F5F9F2 0%, #EEF6EA 100%);
  border: 1px solid #D5E5CE;
  border-radius: 16px;
  padding: 22px 24px;
}

.aff-node-impact .aff-impact-note h3 {
  margin: 0 0 8px;
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: 18px;
  color: #1e3611;
}

.aff-node-impact .aff-impact-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #5C6B57;
}

@media (max-width: 960px) {
  .aff-node-impact .aff-fullbleed-header {
    min-height: 360px;
  }

  .aff-node-impact .aff-header-overlay {
    background: linear-gradient(180deg, rgba(10, 22, 4, 0.68) 0%, rgba(10, 22, 4, 0.82) 100%);
  }

  .aff-node-impact .aff-node-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
  }

  .aff-node-impact .aff-meta-col {
    position: static;
  }
}

@media (max-width: 480px) {
  .aff-node-impact .aff-share-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
