/* =========================================================
   SUCCESS STORIES – LANDING PAGE ONLY
   Scoped to avoid leaking styles
========================================================= */

.success-stories,
.success-story-detail {
  font-family: "Montserrat", sans-serif;
}


.success-stories {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* ================= INTRO ================= */

.stories-intro {
  max-width: 720px;
  margin-bottom: 3rem;
}

.stories-intro h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.stories-intro p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ================= LAYOUT ================= */

.stories-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: flex-start;
}

/* ================= FILTERS ================= */

.stories-filters {
  position: sticky;
  top: 120px;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filters input,
.filters select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: #fff;
}

.filters input:focus,
.filters select:focus {
  outline: none;
  border-color: var(--deep-blue);
}

/* ================= STORIES LIST ================= */

.stories-list {
  display: flex;
  flex-direction: column;
}

/* ================= STORY CARD ================= */

.story-card {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2rem;
  padding: 2rem 0;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border-soft);
  transition: opacity 0.2s ease;
}

.story-card:first-child {
  padding-top: 0;
}

.story-card:hover {
  opacity: 0.85;
}

/* Meta (Industry) */
.story-meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Title */
.story-card h3 {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  max-width: 600px;
}

/* Summary */
.story-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
}

/* Image */
.story-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  align-self: start;
}
.story-content-left {
  display: flex;
  flex-direction: column;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
  .stories-layout {
    grid-template-columns: 1fr;
  }

  .stories-filters {
    position: static;
  }
}

@media (max-width: 768px) {
  .story-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .story-card img {
    height: 180px;
  }
}
.story-card {
  cursor: pointer;
}

.story-card:hover h3 {
  text-decoration: underline;
}
.story-card:not(:last-child) {
  margin-bottom: 0.5rem;
}
/* =========================================================
   SUCCESS STORY – DETAIL PAGE
========================================================= */

.success-story-detail {
  padding: 4rem 1.5rem;
}

.story-container {
  max-width: 900px;
  margin: 0 auto;
}

/* ================= HEADER ================= */

.story-header {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3rem;
}

.story-header-left h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.story-summary {
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.story-author {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.story-header-right {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ================= HERO IMAGE ================= */

.story-hero img {
  width: 100%;
  max-height: 520px;   /* control height */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 3rem;
}

/* ================= CONTENT ================= */

.story-content {
  margin-bottom: 2.5rem;
}

.story-content h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.story-content p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.story-content ul {
  padding-left: 1.2rem;
}

.story-content li {
  margin-bottom: 0.5rem;
}

/* ================= RELATED ARTICLES ================= */

.related-articles {
  margin-top: 4rem;
}

.related-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.related-card {
  text-decoration: none;
  color: inherit;
}

.related-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.related-card span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.related-card h3 {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ================= CTA ================= */

.global-cta {
  margin-top: 5rem;
  padding: 3rem;
  background: var(--deep-blue);
  color: #fff;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ================= RESPONSIVE ================= */

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

  .related-grid {
    grid-template-columns: 1fr;
  }

  .global-cta {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
