/* ============================================
   INDIVIDUAL STORY PAGE
   ============================================ */

/* ---------- Story hero ---------- */
.story-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  padding: 5rem 0 3rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.story-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 17, 60, 0.55) 0%,
    rgba(20, 22, 75, 0.75) 50%,
    rgba(15, 17, 60, 0.95) 100%
  );
  z-index: 1;
}

.story-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

/* Breadcrumb */
.story-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.4rem;
}

.story-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s ease;
}

.story-breadcrumb a:hover {
  color: #f4c430;
}

.story-breadcrumb i {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Category */
.story-hero-category {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: #f4c430;
  color: var(--dark);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.story-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--white);
  margin-bottom: 1.4rem;
}

.story-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
}

.story-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.story-hero-meta i {
  color: #f4c430;
}

/* ============================================
   STORY BODY (two columns)
   ============================================ */
.story-body {
  padding: 5rem 0 4rem;
  background: var(--white);
}

.story-body-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4.5rem;
  align-items: start;
}

.story-article {
  max-width: 100%;
}

.story-article p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #3d4657;
  margin-bottom: 1.3rem;
}

.story-article p:first-of-type::first-letter {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--primary);
  float: left;
  line-height: 1;
  padding: 0.35rem 0.75rem 0 0;
  font-family: 'Inter', sans-serif;
}

.story-article strong {
  color: var(--dark);
  font-weight: 600;
}

.story-article h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--dark);
  margin: 2rem 0 0.9rem;
}

/* Pull quote inside article */
.story-pullquote {
  position: relative;
  margin: 2.4rem 0;
  padding: 1.6rem 1.6rem 1.6rem 3.4rem;
  background: #f8f9fc;
  border-left: 4px solid #f4c430;
  border-radius: 0 14px 14px 0;
}

.story-pullquote::before {
  content: '\f10d';                 /* fa-quote-left */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 1.1rem;
  top: 1.4rem;
  font-size: 1.2rem;
  color: var(--primary);
  opacity: 0.6;
}

.story-pullquote p {
  font-size: 1.12rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.6;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.story-pullquote cite {
  display: block;
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 500;
  color: var(--gray);
}

/* Inline image inside article */
.story-inline-img {
  margin: 2rem 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px -22px rgba(45, 49, 146, 0.3);
}

.story-inline-img img {
  width: 100%;
  height: auto;
  display: block;
}

.story-inline-img figcaption {
  padding: 0.85rem 1.1rem;
  background: #f8f9fc;
  font-size: 0.82rem;
  color: var(--gray);
  font-style: italic;
}

/* ============================================
   SIDEBAR
   ============================================ */
.story-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.sidebar-card {
  background: #f8f9fc;
  border: 1px solid rgba(45, 49, 146, 0.07);
  border-radius: 20px;
  padding: 1.6rem 1.5rem;
}

.sidebar-card h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-card h4 i {
  color: #f4c430;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--gray);
}

.sidebar-list-item i {
  color: var(--primary);
  font-size: 0.8rem;
  margin-top: 0.28rem;
  flex-shrink: 0;
}

.sidebar-list-item strong {
  color: var(--dark);
  font-weight: 600;
  display: block;
  margin-bottom: 0.15rem;
}

/* Programme chips */
.sidebar-programs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sidebar-program-chip {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: var(--white);
  border: 1px solid rgba(45, 49, 146, 0.12);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.sidebar-program-chip:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Donate sidebar card */
.sidebar-card--donate {
  background: linear-gradient(135deg, #2D3192 0%, #1e2168 100%);
  color: var(--white);
  border: none;
  position: relative;
  overflow: hidden;
}

.sidebar-card--donate::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(244, 196, 48, 0.35), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.sidebar-card--donate h4 {
  color: #f4c430;
  position: relative;
}

.sidebar-card--donate p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.2rem;
  position: relative;
}

.sidebar-card--donate .btn {
  position: relative;
  background: #f4c430;
  color: var(--dark);
  width: 100%;
  justify-content: center;
}

.sidebar-card--donate .btn:hover {
  background: #ffffff;
  color: var(--primary);
}

/* ============================================
   STORY GALLERY
   ============================================ */
.story-gallery {
  padding: 4rem 0;
  background: #f8f9fc;
}

.story-gallery-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.story-gallery-header h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.story-gallery-header p {
  font-size: 0.95rem;
  color: var(--gray);
}

.story-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.story-gallery-item {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 12px 30px -18px rgba(45, 49, 146, 0.28);
  transition: transform 0.4s ease;
}

.story-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.05);
}

.story-gallery-item:hover {
  transform: translateY(-4px);
}

.story-gallery-item:hover img {
  transform: scale(1.06);
}

/* ============================================
   IMPACT CALLOUT (3 numbers)
   ============================================ */
.story-impact {
  padding: 4rem 0;
  background: var(--white);
}

.story-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.story-impact-item {
  background: #f8f9fc;
  border: 1px solid rgba(45, 49, 146, 0.07);
  border-radius: 20px;
  padding: 2rem 1.6rem;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.story-impact-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px -22px rgba(45, 49, 146, 0.3);
}

.story-impact-num {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.story-impact-label {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--gray);
}

/* ============================================
   RELATED STORIES
   ============================================ */
.related-stories {
  padding: 5rem 0;
  background: #f8f9fc;
}

.related-stories-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.related-stories-header h3 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--dark);
}

.related-stories-header a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.25s ease;
}

.related-stories-header a:hover {
  gap: 0.85rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.related-card {
  background: var(--white);
  border: 1px solid rgba(45, 49, 146, 0.08);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -22px rgba(45, 49, 146, 0.3);
}

.related-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.05);
}

.related-card:hover .related-media img {
  transform: scale(1.06);
}

.related-media .story-category {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  backdrop-filter: blur(6px);
}

.related-body {
  padding: 1.3rem 1.4rem 1.5rem;
}

.related-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.3px;
  color: var(--dark);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.related-card:hover .related-title {
  color: var(--primary);
}

.related-excerpt {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--gray);
  margin-bottom: 1rem;
}

.related-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.25s ease;
}

.related-link:hover {
  gap: 0.8rem;
}

/* Category chips (reused from stories.css) */
.story-category {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.story-category--mint     { background: #e6f3ee; color: #1f8b6a; }
.story-category--peach    { background: #fbe9de; color: #c96a2e; }
.story-category--lavender { background: #ece9fb; color: #4a3fb8; }
.story-category--cream    { background: #fdf3d8; color: #b8891a; }
.story-category--sky      { background: #e3eefb; color: #1f6dc9; }
.story-category--rose     { background: #fce4ec; color: #b8396b; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .story-body-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .story-sidebar {
    position: static;
    top: auto;
  }
}

@media (max-width: 900px) {
  .story-hero {
    min-height: 60vh;
    padding: 4rem 0 2.5rem;
  }

  .story-body {
    padding: 4rem 0 3rem;
  }

  .story-gallery,
  .story-impact,
  .related-stories {
    padding: 3.5rem 0;
  }

  .story-impact-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .story-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .story-hero {
    min-height: 55vh;
    padding: 3.5rem 0 2rem;
  }

  .story-hero-title {
    font-size: 1.75rem;
  }

  .story-hero-meta {
    font-size: 0.8rem;
    gap: 1rem;
  }

  .story-article p {
    font-size: 0.96rem;
    line-height: 1.75;
  }

  .story-article p:first-of-type::first-letter {
    font-size: 2.6rem;
    padding-right: 0.55rem;
  }

  .story-pullquote {
    padding: 1.4rem 1.4rem 1.4rem 2.9rem;
  }

  .story-pullquote::before {
    left: 0.9rem;
    top: 1.2rem;
    font-size: 1rem;
  }

  .story-pullquote p {
    font-size: 1rem;
  }

  .story-gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .related-stories-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-gallery-item,
  .story-impact-item,
  .related-card {
    transition: none;
  }

  .story-gallery-item:hover,
  .story-impact-item:hover,
  .related-card:hover {
    transform: none;
  }

  .story-gallery-item:hover img,
  .related-card:hover .related-media img {
    transform: none;
  }
}