/* Halaman /cerita-sukses (daftar) dan /cerita-sukses/{slug} (kisah alumni) */
.story-page { background: var(--white); }
.story-container { max-width: 1160px; margin: 0 auto; }

body.js-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
body.js-ready .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  body.js-ready .reveal { opacity: 1; transform: none; transition: none; }
}

.story-eyebrow {
  display: inline-block; font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--gold); margin-bottom: var(--sp-4);
}
.story-hook {
  display: inline; font-size: var(--fs-lg); font-style: italic; line-height: var(--lh-relaxed);
  color: var(--green-900); background: var(--gold-soft); box-decoration-break: clone; -webkit-box-decoration-break: clone;
  padding: 2px var(--sp-2);
}

/* ── HERO ─────────────────────────────────────────────── */
.story-hero {
  position: relative; overflow: hidden; color: var(--white);
  background: var(--green-900);
  background-image: radial-gradient(circle at 80% 10%, rgba(61,170,114,.35), transparent 50%), radial-gradient(circle at 0% 100%, rgba(245,166,35,.14), transparent 45%);
  padding: var(--sp-12) var(--sp-12) 0;
}
.story-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--sp-12); align-items: end; }
.story-hero-text { padding-bottom: var(--sp-20); }

.story-breadcrumb { display: flex; flex-wrap: wrap; gap: var(--sp-2); font-size: var(--fs-xs); color: rgba(255,255,255,.45); margin-bottom: var(--sp-8); }
.story-breadcrumb a { color: rgba(255,255,255,.6); transition: color .2s; }
.story-breadcrumb a:hover { color: var(--white); }
.story-breadcrumb [aria-current] { color: rgba(255,255,255,.85); }

.story-hero .story-hook { font-size: var(--fs-md); }
.story-hero h1 {
  font-family: var(--font-display); font-size: var(--fs-h1); font-weight: 700; line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight); margin: var(--sp-5) 0 var(--sp-5);
}
.story-hero h1 span { color: var(--gold); }
.story-lead { font-size: var(--fs-lg); line-height: var(--lh-relaxed); color: rgba(255,255,255,.75); max-width: 560px; }

.story-person {
  margin-top: var(--sp-10); padding-top: var(--sp-6); border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.story-person strong { display: block; font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; }
.story-person > div > span { font-size: var(--fs-sm); color: rgba(255,255,255,.6); }
.story-roles { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.story-roles li {
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--white); color: var(--text); border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-2);
  box-shadow: var(--shadow-md);
}
.story-role-logo { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.story-role-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.story-role-logo.is-wordmark { width: 104px; }
.story-role-text { display: flex; flex-direction: column; line-height: var(--lh-snug); }
.story-role-text b { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; color: var(--green-900); }
.story-role-text small { font-size: var(--fs-xs); color: var(--gray-500); }

.story-portrait { position: relative; align-self: end; }
.story-portrait img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; border: 6px solid rgba(255,255,255,.08); border-bottom: none;
}
.story-portrait-badge {
  position: absolute; left: -32px; bottom: var(--sp-16);
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--gold); color: var(--green-900); border-radius: var(--radius-sm); padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--shadow-lg);
}
.story-portrait-badge span { display: flex; flex-direction: column; line-height: var(--lh-snug); }
.story-portrait-badge b { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 700; }
.story-portrait-badge small { font-size: var(--fs-xs); }

/* ── BAB KISAH ────────────────────────────────────────── */
.story-chapter { padding: var(--sp-20) var(--sp-12); }
.story-chapter:nth-of-type(even) { background: var(--green-50); }
.story-chapter-grid { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.story-chapter.has-photo .story-chapter-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-16); align-items: center; max-width: 1160px; }
.story-chapter.is-flipped .story-photo { order: -1; }

.story-step {
  display: inline-flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-4);
  font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--green-600);
}
.story-step b { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green-700); color: var(--white); letter-spacing: 0; }
.story-chapter h2 {
  font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 700; line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight); color: var(--green-900); margin-bottom: var(--sp-4);
}
.story-chapter p { font-size: var(--fs-lg); line-height: var(--lh-relaxed); color: var(--gray-700); }

.story-skills { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-6); }
.story-skills li {
  font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; color: var(--green-800);
  background: var(--white); border: 1.5px solid var(--green-100); border-radius: 100px; padding: var(--sp-2) var(--sp-4);
}
.story-skills li::before { content: '✓ '; color: var(--green-500); }

.story-photo img { width: 100%; height: auto; object-fit: cover; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.story-photo.is-portrait img { aspect-ratio: 4 / 5; object-position: 50% 40%; }
.story-photo.is-landscape img { aspect-ratio: 16 / 10; }

/* ── KUTIPAN ──────────────────────────────────────────── */
.story-quote { background: var(--green-800); color: var(--white); padding: var(--sp-20) var(--sp-12); text-align: center; }
.story-quote figure { max-width: 860px; }
.story-quote-mark { color: var(--gold); margin-bottom: var(--sp-4); }
.story-quote blockquote {
  font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600; line-height: var(--lh-snug); font-style: italic;
}
.story-quote figcaption { margin-top: var(--sp-6); font-size: var(--fs-md); color: rgba(255,255,255,.7); }
.story-quote figcaption b { color: var(--white); font-weight: 600; }

/* ── DAFTAR CERITA ────────────────────────────────────── */
.story-hero-index { padding-bottom: var(--sp-32); text-align: center; }
.story-hero-index .story-container { max-width: 760px; }
.story-hero-index .story-lead { margin: 0 auto; }
.story-list { padding: 0 var(--sp-12) var(--sp-20); }
.story-list > .story-container { margin-top: -96px; position: relative; }

.story-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.story-card-photo { position: relative; display: block; }
.story-card-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 25%; }
.story-card-program {
  position: absolute; left: var(--sp-4); bottom: var(--sp-4);
  font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600; color: var(--green-900);
  background: var(--gold); border-radius: 100px; padding: var(--sp-1) var(--sp-3);
}
.story-card-body { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-6); }
.story-card-name { font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--green-600); }
.story-card-title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; line-height: var(--lh-snug); color: var(--green-900); }
.story-card-quote { font-size: var(--fs-base); font-style: italic; line-height: var(--lh-relaxed); color: var(--gray-700); border-left: 3px solid var(--gold); padding-left: var(--sp-4); }
.story-card-roles { display: flex; flex-direction: column; gap: var(--sp-2); }
.story-card-role { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--gray-700); }
.story-card-role b { font-weight: 600; color: var(--green-900); }
.story-card-role .story-role-logo { width: 32px; height: 32px; }
.story-card-role .story-role-logo.is-wordmark { width: 80px; }
.story-card-link { margin-top: auto; padding-top: var(--sp-2); font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; color: var(--green-700); }
.story-card:hover .story-card-link { color: var(--green-500); }

.story-card.is-featured { flex-direction: row; box-shadow: var(--shadow-lg); border: none; }
.story-card.is-featured { min-height: 420px; }
.story-card.is-featured .story-card-photo { flex: 0 0 40%; overflow: hidden; }
/* Foto mengisi kolomnya; tinggi kartu mengikuti teks, bukan rasio foto potret */
.story-card.is-featured .story-card-photo img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: 50% 30%; }
.story-card.is-featured .story-card-body { justify-content: center; gap: var(--sp-4); padding: var(--sp-10) var(--sp-12); }
.story-card.is-featured .story-hook { align-self: flex-start; font-size: var(--fs-md); }
.story-card.is-featured .story-card-title { font-size: var(--fs-h4); }
.story-card.is-featured .story-card-link { margin-top: var(--sp-2); }

.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); margin-top: var(--sp-6); }
.story-more { padding: var(--sp-20) var(--sp-12); background: var(--green-50); }
.story-more h2 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 700; color: var(--green-900); margin-bottom: var(--sp-2); }

.story-invite {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6);
  margin-top: var(--sp-10); padding: var(--sp-6) var(--sp-8);
  border: 1.5px dashed var(--green-100); border-radius: var(--radius-md); background: var(--green-50);
}
.story-invite strong { display: block; font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; color: var(--green-900); margin-bottom: var(--sp-1); }
.story-invite p { font-size: var(--fs-base); color: var(--gray-700); line-height: var(--lh-normal); }

/* ── TESTIMONI (latar gelap untuk partials.testimonial-wall) ── */
.testi { position: relative; overflow: hidden; background: var(--green-900); padding: var(--sp-24) var(--sp-12); }
.testi::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px); background-size: 32px 32px; }
.testi-glow-l, .testi-glow-r { position: absolute; top: 50%; transform: translateY(-50%); width: 500px; height: 500px; border-radius: 50%; pointer-events: none; }
.testi-glow-l { left: -200px; background: radial-gradient(circle, rgba(42,140,90,.15), transparent 70%); }
.testi-glow-r { right: -200px; background: radial-gradient(circle, rgba(245,166,35,.08), transparent 70%); }
.testi .story-container { position: relative; }

/* ── AJAKAN ───────────────────────────────────────────── */
.story-cta { padding: var(--sp-24) var(--sp-12); background: var(--gold-soft); text-align: center; }
.story-cta-inner { max-width: 760px; margin: 0 auto; }
.story-cta .story-eyebrow { color: var(--green-600); }
.story-cta h2 { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-tight); letter-spacing: var(--ls-tight); color: var(--green-900); }
.story-cta p { font-size: var(--fs-lg); line-height: var(--lh-relaxed); color: var(--gray-700); margin-top: var(--sp-4); }
.story-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-8); }

.story-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; white-space: nowrap;
  border-radius: 100px; padding: var(--sp-3) var(--sp-6); border: 1.5px solid transparent;
  transition: transform .2s, background .2s, border-color .2s;
}
.story-btn:hover { transform: translateY(-2px); }
.story-btn-gold { background: var(--green-800); color: var(--white); }
.story-btn-gold:hover { background: var(--green-700); }
.story-btn-ghost { background: var(--white); color: var(--green-800); border-color: var(--green-100); }
.story-btn-ghost:hover { border-color: var(--green-400); }
.story-btn-outline { background: var(--white); color: var(--green-800); border-color: var(--green-400); }
.story-btn:focus-visible, .story-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 960px) {
  .story-hero-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .story-hero-text { padding-bottom: 0; }
  .story-portrait { max-width: 420px; margin: 0 auto; width: 100%; }
  .story-portrait-badge { left: var(--sp-4); }
  .story-chapter.has-photo .story-chapter-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .story-chapter.is-flipped .story-photo { order: 0; }
  .story-card.is-featured { flex-direction: column; }
  .story-card.is-featured { min-height: 0; }
  .story-card.is-featured .story-card-photo img { position: static; height: auto; aspect-ratio: 4 / 3; }
  .story-card.is-featured .story-card-body { padding: var(--sp-8) var(--sp-6); }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .story-hero { padding: var(--sp-8) var(--sp-5) 0; }
  .story-hero-index { padding-bottom: var(--sp-32); }
  .story-breadcrumb { margin-bottom: var(--sp-6); }
  .story-roles li { width: 100%; }
  .story-chapter, .story-quote, .story-more, .testi, .story-cta { padding: var(--sp-14) var(--sp-5); }
  .story-list { padding: 0 var(--sp-5) var(--sp-14); }
  .story-photo.is-portrait img { aspect-ratio: 4 / 4; }
  .story-grid { grid-template-columns: 1fr; }
  .story-invite { flex-direction: column; align-items: stretch; text-align: center; padding: var(--sp-6) var(--sp-5); }
  .story-cta-actions .story-btn { width: 100%; }
}
