/* =========================================================
   SUCCESS STORIES – LANDING PAGE
========================================================= */

.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: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

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

.story-card:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* LEFT CONTENT */

.story-content-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Meta */
.story-meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ff6b6b;
}

/* Title */
.story-card h3 {
  font-size: 1.15rem;
  line-height: 1.4;
}

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

/* ================= IMAGE FIX (FINAL CORRECT WAY) ================= */

.story-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   DETAIL PAGE
========================================================= */

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

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

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

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

.story-summary {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

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

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

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

/* =========================================================
   MOBILE (CLEAN + FINAL)
========================================================= */

@media (max-width: 768px) {

  .success-stories {
    padding: 40px 16px;
  }

  .stories-layout {
    display: block;
    width: 100%;
    overflow-x: hidden;
  }

  .stories-filters {
    width: 100%;
    position: static;
    margin-bottom: 24px;
  }

  .filters {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
  }

  .filters input,
  .filters select {
    width: calc(50% - 6px);
    flex-grow: 1;
    min-width: 140px;
    font-size: 13px;
    padding: 0.75rem;
    box-sizing: border-box;
  }

  /* Intro */
  .stories-intro {
    text-align: center;
  }

  .stories-intro h1 {
    font-size: 26px;
  }

  .stories-intro p {
    font-size: 14px;
  }

  /* Cards */
  .story-card {
  display: flex;
  flex-direction: column;

  width: 100%;
  max-width: 100%;

  background: #fff;
  border-radius: 14px;
  padding: 14px;

  box-shadow: 0 4px 12px rgba(0,0,0,0.05);

  margin-bottom: 16px;
}

  .story-image {
  width: 100%;
  height: auto;

  aspect-ratio: 16 / 9;
  overflow: hidden;

  border-radius: 12px;
  margin-bottom: 12px;
}
  .story-image {
  order: -1;
}
  .story-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  display: block;
}
  .story-content-left {
  width: 100%;
}
  .story-card h3 {
    font-size: 15px;
  }

  .story-card p {
    font-size: 13px;
  }

  .story-meta {
    font-size: 11px;
  }

  .story-card:active {
    transform: scale(0.97);
  }

  /* Detail */
  .story-header {
    flex-direction: column;
  }

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

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