/* ============================================
   SUCCESS STORIES PAGE
   ============================================ */

/* ---------- Hero ---------- */
.page-hero--stories {
  background-image: url('Images/stories-hero.jpg');
  min-height: 60vh;
}

/* ============================================
   SECTION LABEL (reusable)
   ============================================ */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--primary);
  position: relative;
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}

.section-label::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 3px;
  background: #f4c430;
  border-radius: 2px;
}

.section-label--center {
  display: block;
  text-align: center;
}

.section-label--center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ============================================
   OUR JOURNEY
   ============================================ */

.journey {
  padding: 3rem 0 4rem;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.journey::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45, 49, 146, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.journey > .container {
  position: relative;
  z-index: 1;
}

/* Header */
.journey-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.5rem;
}

.journey-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--primary);
  position: relative;
  padding-bottom: 0.6rem;
  margin-bottom: 1.2rem;
}

.journey-label::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 42px;
  height: 3px;
  background: #f4c430;
  border-radius: 2px;
}

.journey-title {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.8px;
  color: var(--dark);
}

/* Lead paragraph */
.journey-lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--dark);
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
  font-weight: 500;
}

/* Timeline */
.journey-timeline {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.journey-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(45, 49, 146, 0.15) 0%,
    rgba(244, 196, 48, 0.35) 50%,
    rgba(45, 49, 146, 0.15) 100%
  );
  border-radius: 2px;
}

.journey-step {
  position: relative;
  display: flex;
  gap: 1.6rem;
  padding: 1.4rem 1.6rem 1.4rem 0;
  margin-bottom: 1rem;
  transition: transform 0.35s ease;
}

.journey-step:hover {
  transform: translateX(6px);
}

.journey-step-num {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(45, 49, 146, 0.15);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.journey-step:hover .journey-step-num {
  background: var(--primary);
  color: #f4c430;
  border-color: var(--primary);
  transform: scale(1.08);
  box-shadow: 0 12px 26px -12px rgba(45, 49, 146, 0.5);
}

.journey-step-body {
  flex: 1;
  min-width: 0;
  padding-top: 0.35rem;
}

.journey-step-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.35;
  color: var(--dark);
  margin-bottom: 0.55rem;
  transition: color 0.3s ease;
}

.journey-step:hover .journey-step-body h3 {
  color: var(--primary);
}

.journey-step-body p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--gray);
}

.journey-step-body strong {
  color: var(--dark);
  font-weight: 600;
}

/* Closing tagline */
.journey-tagline {
  margin-top: 3.5rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, #f8f9fc 0%, #eef0fb 100%);
  border-radius: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.journey-tagline::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(244, 196, 48, 0.18), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.journey-tagline-text {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.3px;
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 1;
}

.journey-tagline-sub {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray);
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ============================================
   FEATURED STORY
   ============================================ */
.featured-story {
  padding: 1rem 0 4rem;
  background: var(--white);
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3.5rem;
  align-items: center;
  background: #f8f9fc;
  border: 1px solid rgba(45, 49, 146, 0.07);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 25px 55px -30px rgba(45, 49, 146, 0.3);
  overflow: hidden;
}

.featured-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3.6;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.05);
}

.featured-card:hover .featured-media img {
  transform: scale(1.05);
}

.featured-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: #f4c430;
  color: var(--dark);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  z-index: 2;
}

.featured-content {
  padding-right: 1rem;
}

.featured-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.7px;
  color: var(--dark);
  margin: 0.9rem 0 1rem;
}

.featured-excerpt {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--gray);
  margin-bottom: 0.9rem;
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 1.4rem 0 1.6rem;
  font-size: 0.83rem;
  color: var(--gray);
}

.featured-meta i {
  color: var(--primary);
  margin-right: 0.35rem;
}

/* ---------- Story category chip ---------- */
.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; }

/* ============================================
   FILTER CHIPS
   ============================================ */
.stories-filter {
  padding: 1rem 0 3rem;
  background: var(--white);
  position: sticky;
  top: 72px;
  z-index: 80;
}

.stories-filter-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.05rem;
  border-radius: 50px;
  background: #f4f6fb;
  border: 1px solid transparent;
  color: var(--dark);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.filter-chip i {
  font-size: 0.78rem;
  color: var(--primary);
  transition: color 0.3s ease;
}

.filter-chip:hover {
  background: #eef0fb;
  border-color: rgba(45, 49, 146, 0.2);
  transform: translateY(-1px);
}

.filter-chip.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.filter-chip.active i {
  color: #f4c430;
}

/* ============================================
   STORIES GRID
   ============================================ */
.stories-grid-section {
  padding: 2rem 0 6rem;
  background: var(--white);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  margin: 0 auto;
}

.story-card {
  background: var(--white);
  border: 1px solid rgba(45, 49, 146, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px -14px rgba(45, 49, 146, 0.15);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(35px);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}

.story-card.revealed {
  animation: storyIn 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.05) forwards;
}

@keyframes storyIn {
  0%   { opacity: 0; transform: translateY(35px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.story-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 52px -22px rgba(45, 49, 146, 0.32);
  border-color: rgba(45, 49, 146, 0.16);
}

.story-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.05);
}

.story-card:hover .story-media img {
  transform: scale(1.08);
}

.story-media .story-category {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.story-body {
  padding: 1.3rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.story-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.3px;
  color: var(--dark);
  margin-bottom: 0.6rem;
  transition: color 0.3s ease;
}

.story-card:hover .story-title {
  color: var(--primary);
}

.story-excerpt {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--gray);
  margin-bottom: 1.1rem;
  flex-grow: 1;
}

.story-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, color 0.25s ease;
}

.story-link i {
  font-size: 0.72rem;
  transition: transform 0.25s ease;
}

.story-link:hover {
  gap: 0.8rem;
  color: var(--primary-dark);
}

.story-link:hover i {
  transform: translateX(3px);
}

/* ============================================
   QUOTE BAND
   ============================================ */
.quote-band {
  background: linear-gradient(120deg, #2D3192 0%, #1e2168 100%);
  padding: 5rem 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.quote-band::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(244, 196, 48, 0.22), transparent 70%);
  filter: blur(70px);
  pointer-events: none;
}

.quote-band-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.quote-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(244, 196, 48, 0.15);
  color: #f4c430;
  font-size: 1.3rem;
  margin-bottom: 1.6rem;
}

.quote-text {
  font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.4px;
  color: var(--white);
  margin-bottom: 1.6rem;
}

.quote-author {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3px;
  font-style: normal;
}

/* ============================================
   REACH STRIP
   ============================================ */
.reach-strip {
  background: #f8f9fc;
  padding: 5rem 0;
}

.reach-strip-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.reach-strip-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.7px;
  color: var(--dark);
}

.reach-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.reach-item {
  background: var(--white);
  border: 1px solid rgba(45, 49, 146, 0.07);
  border-radius: 20px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 26px -16px rgba(45, 49, 146, 0.18);
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.reach-item.revealed {
  animation: reachIn 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.05) forwards;
}

@keyframes reachIn {
  0%   { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.reach-item:hover {
  transform: translateY(-6px);
  border-color: rgba(45, 49, 146, 0.18);
  box-shadow: 0 24px 48px -22px rgba(45, 49, 146, 0.3);
}

.reach-num {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.6rem;
  font-variant-numeric: tabular-nums;
}

.reach-label {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--gray);
}

/* ============================================
   SHARE YOUR STORY
   ============================================ */
.share-story {
  padding: 6rem 0;
  background: var(--white);
}

.share-story-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.share-story-title {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: var(--dark);
  margin-bottom: 1rem;
}

.share-story-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray);
  margin-bottom: 2rem;
  max-width: 560px;
}

.share-story-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.share-story-card {
  background: #f8f9fc;
  border: 1px solid rgba(45, 49, 146, 0.08);
  border-radius: 22px;
  padding: 2rem 1.8rem;
  box-shadow: 0 20px 40px -24px rgba(45, 49, 146, 0.25);
}

.share-story-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #eef0fb;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.2rem;
}

.share-story-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

.share-story-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.share-story-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--gray);
}

.share-story-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #eef0fb;
}

.share-story-list li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.68rem;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reach-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .share-story-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  .journey {
    padding: 5rem 0 3rem;
  }

  .journey-timeline::before {
    left: 22px;
  }

  .journey-step {
    gap: 1.3rem;
    padding-right: 0;
  }

  .journey-step-num {
    width: 46px;
    height: 46px;
    font-size: 0.82rem;
  }

  .featured-story {
    padding: 5rem 0 3rem;
  }

  .featured-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 2rem;
  }

  .featured-content {
    padding-right: 0;
  }

  .stories-filter {
    top: 66px;
  }

  .quote-band {
    padding: 4rem 0;
  }
}

@media (max-width: 600px) {
  .page-hero--stories {
    min-height: 50vh;
  }

  .journey {
    padding: 4rem 0 2.5rem;
  }

  .journey-title {
    font-size: 1.45rem;
  }

  .journey-lead {
    font-size: 0.98rem;
    margin-bottom: 3rem;
  }

  .journey-timeline::before {
    left: 20px;
  }

  .journey-step {
    gap: 1.1rem;
    padding: 1rem 0;
    margin-bottom: 0.5rem;
  }

  .journey-step-num {
    width: 42px;
    height: 42px;
    font-size: 0.78rem;
  }

  .journey-step-body h3 {
    font-size: 1.02rem;
  }

  .journey-step-body p {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .journey-tagline {
    padding: 1.8rem 1.5rem;
    margin-top: 2.5rem;
    border-radius: 18px;
  }

  .journey-tagline-text {
    font-size: 1rem;
  }

  .journey-tagline-sub {
    font-size: 0.88rem;
  }

  .featured-story {
    padding: 4rem 0 2.5rem;
  }

  .featured-card {
    padding: 1.2rem;
    border-radius: 22px;
  }

  .stories-filter {
    top: 62px;
    padding: 0.8rem 0 2rem;
  }

  .stories-filter-inner {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 5% 4px;
    margin: 0 -5%;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .stories-filter-inner::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex-shrink: 0;
    font-size: 0.8rem;
    padding: 0.5rem 0.9rem;
  }

  .stories-grid-section {
    padding: 2rem 0 4rem;
  }

  .stories-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .reach-strip-grid {
    grid-template-columns: 1fr;
  }

  .share-story {
    padding: 4rem 0;
  }

  .share-story-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .share-story-actions .btn {
    justify-content: center;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .story-card,
  .reach-item {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .story-card:hover,
  .reach-item:hover {
    transform: none;
  }

  .story-card:hover .story-media img,
  .featured-card:hover .featured-media img {
    transform: none;
  }

  .journey-step,
  .journey-step-num,
  .journey-step-body h3 {
    transition: none !important;
  }

  .journey-step:hover,
  .journey-step:hover .journey-step-num {
    transform: none;
  }
}