/* =========================================================
   CEFAT STORY PAGE — editorial layout inspired by supplied reference
   ========================================================= */

.story-hero-ref{
  padding: 118px 0 70px;
  background: #fff;
  overflow: hidden;
}

.story-hero-ref-inner{
  max-width: 1120px;
  min-height: 420px;
  display:grid;
  grid-template-columns: 360px minmax(0,1fr);
  gap: 54px;
  align-items:center;
}

.story-hero-visual{
  position:relative;
  min-height:370px;
  display:grid;
  place-items:center;
  isolation:isolate;
}

.story-lottie-hero{
  width:100%;
  max-width:390px;
  height:350px;
  position:relative;
  z-index:2;
  filter: drop-shadow(0 20px 32px rgba(13,27,62,.10));
}

.story-lottie-hero svg{
  width:100% !important;
  height:100% !important;
  overflow:visible;
}

.story-blob{
  position:absolute;
  border-radius:50%;
  z-index:0;
  pointer-events:none;
  filter: blur(.2px);
}
.story-blob-left{
  width:82px;
  height:82px;
  left:4px;
  top:150px;
  background:linear-gradient(145deg,#4a9fe7,#287de0);
  transform:rotate(-22deg);
  border-radius:18px 58px 30px 52px;
}
.story-blob-bottom{
  width:135px;
  height:76px;
  right:10px;
  bottom:20px;
  background:linear-gradient(145deg,#1db9a6,#4a9fe7);
  border-radius:62% 38% 55% 45%;
  transform:rotate(-12deg);
  opacity:.9;
}

.story-scribble{
  position:absolute;
  left:30px;
  top:136px;
  z-index:3;
  font-size:4rem;
  line-height:1;
  color:#0d1b3e;
  transform:rotate(-18deg);
  opacity:.75;
}

.story-floating-note{
  position:absolute;
  z-index:4;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(13,27,62,.08);
  box-shadow:0 12px 28px rgba(13,27,62,.10);
  font-size:.62rem;
  letter-spacing:.08em;
  font-weight:800;
  color:#0d1b3e;
  backdrop-filter:blur(8px);
}
.note-origin{top:34px;right:2px;transform:rotate(4deg)}
.note-build{bottom:34px;left:2px;transform:rotate(-3deg)}

.story-hero-copy{
  max-width:660px;
}
.story-hero-copy h1{
  margin:10px 0 12px;
  font-size:clamp(2.2rem,4.3vw,3.55rem);
  line-height:1.08;
  letter-spacing:-.055em;
  color:#202020;
}
.story-hero-copy .lead{
  max-width:650px;
  font-size:clamp(1rem,1.45vw,1.12rem);
  line-height:1.55;
  color:#3d4654;
}
.story-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:24px;
}
.story-hero-actions .btn{
  min-height:44px;
}
.story-hero-note{
  margin-top:12px;
  color:#525b68;
  font-size:.9rem;
  font-style:italic;
}

.story-intro-ref{
  padding:72px 0 100px;
  background:#fff;
}
.story-intro-heading{
  max-width:950px;
  margin:0 auto 46px;
  text-align:center;
}
.story-intro-heading h2{
  margin:8px auto 10px;
  max-width:850px;
  font-size:clamp(2rem,3.5vw,3rem);
  line-height:1.12;
  letter-spacing:-.045em;
  color:#202020;
}
.story-intro-heading p{
  max-width:930px;
  margin:0 auto;
  font-size:1rem;
  line-height:1.55;
  color:#5c6470;
}

.story-grid-ref{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  align-items:start;
}

.story-card-ref{
  overflow:hidden;
  border-radius:18px;
  background:#f4f7fc;
  border:1px solid rgba(13,27,62,.045);
  box-shadow:0 12px 34px rgba(13,27,62,.055);
  transition:transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.story-card-ref:hover{
  transform:translateY(-7px);
  box-shadow:0 24px 52px rgba(13,27,62,.12);
  border-color:rgba(74,159,231,.22);
}

.story-card-media{
  position:relative;
  display:block;
  height:205px;
  overflow:hidden;
  background:linear-gradient(135deg,#eaf3ff,#f7fbff);
}
.story-card-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 55%,rgba(13,27,62,.10));
  pointer-events:none;
}
.story-card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .6s cubic-bezier(.2,.75,.25,1);
}
.story-card-ref:hover .story-card-media img{
  transform:scale(1.055);
}
.story-card-index{
  position:absolute;
  left:14px;
  top:14px;
  z-index:2;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:rgba(13,27,62,.86);
  color:#fff;
  font-size:.76rem;
  font-weight:800;
  backdrop-filter:blur(6px);
}
.story-card-lottie{
  position:absolute;
  z-index:3;
  right:12px;
  bottom:12px;
  width:56px;
  height:56px;
  padding:7px;
  border-radius:16px;
  background:rgba(255,255,255,.93);
  border:1px solid rgba(13,27,62,.08);
  box-shadow:0 10px 24px rgba(13,27,62,.14);
  backdrop-filter:blur(8px);
}
.story-card-lottie svg{
  width:100% !important;
  height:100% !important;
}

.story-card-body{
  padding:19px 18px 20px;
}
.story-card-kicker{
  display:block;
  margin-bottom:9px;
  color:#718096;
  font-size:.75rem;
  font-weight:700;
}
.story-card-body h3{
  margin:0 0 9px;
  color:#111827;
  font-size:1.12rem;
  line-height:1.27;
  letter-spacing:-.025em;
}
.story-card-body p{
  margin:0;
  color:#626b78;
  font-size:.88rem;
  line-height:1.55;
}
.story-card-link{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-top:17px;
  color:#287de0;
  font-size:.82rem;
  font-weight:800;
  text-decoration:none;
}
.story-card-link span{
  transition:transform .25s ease;
}
.story-card-ref:hover .story-card-link span{
  transform:translateX(4px);
}

.story-journey-strip{
  padding:88px 0 92px;
  background:#f7f9fc;
  border-top:1px solid rgba(13,27,62,.05);
  border-bottom:1px solid rgba(13,27,62,.05);
  overflow:hidden;
}
.story-journey-head{
  max-width:780px;
  margin:0 auto 42px;
  text-align:center;
}
.story-journey-head h2{
  margin:8px 0 10px;
  color:#202020;
  font-size:clamp(2rem,3.3vw,2.8rem);
  line-height:1.13;
  letter-spacing:-.045em;
}
.story-journey-head p{
  margin:0 auto;
  color:#606978;
  max-width:700px;
  line-height:1.55;
}

.story-journey-steps{
  display:grid;
  grid-template-columns:1fr 46px 1fr 46px 1fr;
  gap:14px;
  align-items:center;
  max-width:980px;
  margin:0 auto;
}
.story-journey-step{
  min-height:300px;
  padding:26px 24px 24px;
  background:#fff;
  border-radius:22px;
  border:1px solid rgba(13,27,62,.06);
  box-shadow:0 14px 38px rgba(13,27,62,.06);
  text-align:center;
}
.journey-number{
  width:36px;
  height:36px;
  margin:0 auto 8px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#eaf3ff;
  color:#287de0;
  font-size:.72rem;
  font-weight:800;
}
.journey-lottie{
  width:150px;
  height:130px;
  margin:0 auto 4px;
}
.journey-lottie svg{
  width:100% !important;
  height:100% !important;
}
.story-journey-step h3{
  margin:4px 0 7px;
  color:#111827;
  font-size:1.1rem;
}
.story-journey-step p{
  margin:0 auto;
  max-width:250px;
  color:#667080;
  font-size:.86rem;
  line-height:1.5;
}
.story-journey-connector{
  color:#4a9fe7;
  font-size:1.7rem;
  font-weight:800;
  text-align:center;
}

.story-final-cta{
  padding-top:74px;
  padding-bottom:90px;
}

@media (max-width: 900px){
  .story-hero-ref{padding-top:96px}
  .story-hero-ref-inner{
    grid-template-columns:1fr;
    gap:18px;
    text-align:center;
  }
  .story-hero-visual{
    min-height:300px;
    max-width:430px;
    width:100%;
    margin:0 auto;
    order:-1;
  }
  .story-lottie-hero{height:300px}
  .story-hero-copy{margin:0 auto}
  .story-hero-copy .lead{margin-left:auto;margin-right:auto}
  .story-hero-actions{justify-content:center}
  .story-hero-note{text-align:center}
  .story-grid-ref{grid-template-columns:repeat(2,minmax(0,1fr))}
  .story-journey-steps{
    grid-template-columns:1fr;
    max-width:480px;
  }
  .story-journey-connector{
    transform:rotate(90deg);
    margin:-2px 0;
  }
}

@media (max-width: 620px){
  .story-hero-ref{padding:78px 0 52px}
  .story-hero-ref-inner{min-height:0}
  .story-hero-visual{min-height:255px}
  .story-lottie-hero{height:255px}
  .story-blob-left{left:0;top:105px;width:62px;height:62px}
  .story-blob-bottom{right:4px;bottom:8px;width:100px;height:58px}
  .story-scribble{left:4px;top:98px;font-size:3rem}
  .note-origin{top:18px;right:0}
  .note-build{bottom:12px;left:0;font-size:.55rem}
  .story-hero-copy h1{font-size:2.25rem}
  .story-hero-actions{flex-direction:column;align-items:stretch}
  .story-hero-actions .btn{width:100%;justify-content:center}
  .story-intro-ref{padding:58px 0 70px}
  .story-grid-ref{grid-template-columns:1fr;gap:18px}
  .story-card-media{height:220px}
  .story-card-body{padding:18px}
  .story-journey-strip{padding:66px 0 70px}
  .story-journey-step{min-height:280px}
}

/* ===== STORY DETAIL ===== */
.story-detail-hero{
  padding:118px 0 72px;
  background:#fff;
}
.story-detail-hero-inner{
  max-width:1040px;
  display:grid;
  grid-template-columns:380px minmax(0,1fr);
  gap:64px;
  align-items:center;
}
.story-detail-visual{
  position:relative;
  min-height:340px;
  border-radius:28px;
  background:linear-gradient(145deg,#f4f8ff,#edf8f7);
  border:1px solid rgba(13,27,62,.06);
  box-shadow:0 18px 48px rgba(13,27,62,.08);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.story-detail-visual::before,
.story-detail-visual::after{
  content:"";
  position:absolute;
  border-radius:50%;
  border:1px dashed rgba(74,159,231,.28);
  animation:storyOrbit 14s linear infinite;
}
.story-detail-visual::before{width:250px;height:250px}
.story-detail-visual::after{width:310px;height:310px;animation-direction:reverse;opacity:.6}
@keyframes storyOrbit{to{transform:rotate(360deg)}}
.story-detail-lottie{
  width:290px;
  height:290px;
  position:relative;
  z-index:2;
}
.story-detail-lottie svg{width:100%!important;height:100%!important}
.story-detail-badge{
  position:absolute;
  left:18px;
  bottom:18px;
  z-index:3;
  padding:8px 12px;
  border-radius:999px;
  background:#0d1b3e;
  color:#fff;
  font-size:.7rem;
  font-weight:800;
  box-shadow:0 10px 22px rgba(13,27,62,.18);
}
.story-detail-copy h1{
  margin:12px 0 14px;
  font-size:clamp(2.15rem,4vw,3.5rem);
  line-height:1.08;
  letter-spacing:-.055em;
  color:#202020;
}
.story-detail-copy .lead{
  max-width:680px;
  color:#596373;
  line-height:1.6;
}
.story-detail-content-section{
  padding-top:32px;
}
.story-detail-content-grid{
  max-width:1000px;
  display:grid;
  grid-template-columns:minmax(300px,.95fr) minmax(0,1.05fr);
  gap:54px;
  align-items:start;
}
.story-detail-photo{
  margin:0;
  position:sticky;
  top:100px;
  border-radius:22px;
  overflow:hidden;
  background:#f4f7fc;
  box-shadow:0 18px 44px rgba(13,27,62,.09);
}
.story-detail-photo img{
  display:block;
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
}
.story-detail-photo figcaption{
  padding:12px 16px 14px;
  color:#7a8390;
  font-size:.75rem;
}
.story-detail-article{
  max-width:none;
  margin:0;
}
.story-detail-article p{
  margin-top:12px;
  font-size:1.08rem;
  line-height:1.8;
  color:#3f4855;
}
.story-detail-principle{
  margin-top:30px;
  padding:22px 24px;
  border-left:4px solid #4a9fe7;
  border-radius:0 16px 16px 0;
  background:#f4f8ff;
}
.story-detail-principle span{
  display:block;
  margin-bottom:8px;
  color:#6f7a89;
  font-size:.75rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.07em;
}
.story-detail-principle strong{
  color:#0d1b3e;
  font-size:1.05rem;
  line-height:1.45;
}

@media (max-width:900px){
  .story-detail-hero-inner{grid-template-columns:1fr;gap:34px}
  .story-detail-visual{max-width:460px;width:100%;margin:0 auto}
  .story-detail-copy{text-align:center}
  .story-detail-copy .lead{margin-left:auto;margin-right:auto}
  .story-detail-content-grid{grid-template-columns:1fr;gap:32px}
  .story-detail-photo{position:relative;top:auto;max-width:700px;margin:0 auto}
}
@media (max-width:620px){
  .story-detail-hero{padding:78px 0 52px}
  .story-detail-visual{min-height:280px}
  .story-detail-lottie{width:240px;height:240px}
  .story-detail-copy h1{font-size:2.25rem}
  .story-detail-content-grid{gap:24px}
  .story-detail-article p{font-size:1rem}
}

/* =========================================================
   STORY DETAIL — MODE ARTIKEL (dipakai oleh story-detail.html
   untuk story yang datanya dari Admin Panel / database).
   Layout 1 kolom: judul besar, tanggal, cover full-width,
   subjudul, "Season X — Episode Y", body HTML dari WYSIWYG,
   galeri gambar inline, dan CTA di akhir.
   ========================================================= */
.article-detail-page{
  padding:110px 0 90px;
  background:#fff;
}
.article-detail-header{
  max-width:760px;
  margin:0 auto 40px;
  text-align:center;
}
.article-detail-header h1{
  margin:0 0 14px;
  font-size:clamp(2rem,4vw,2.7rem);
  line-height:1.18;
  letter-spacing:-.03em;
  color:#111827;
}
.article-detail-date{
  display:block;
  color:#8b93a1;
  font-size:.95rem;
}
.article-detail-cover{
  max-width:900px;
  margin:0 auto 48px;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 18px 44px rgba(13,27,62,.09);
}
.article-detail-cover img{
  display:block;
  width:100%;
  height:auto;
  object-fit:cover;
}
.article-detail-body{
  max-width:720px;
  margin:0 auto;
  color:#33394a;
}
.article-detail-body .article-detail-subtitle{
  margin:0 0 2px;
  font-size:1.55rem;
  font-weight:800;
  letter-spacing:-.02em;
  color:#111827;
}
.article-detail-episode{
  display:block;
  margin:0 0 16px;
  color:#5c6470;
  font-size:.92rem;
  font-weight:600;
}
.article-detail-body p{
  margin:0 0 14px;
  font-size:1.05rem;
  line-height:1.5;
}
.article-detail-body h2,
.article-detail-body h3{
  margin:24px 0 10px;
  color:#111827;
  letter-spacing:-.02em;
  line-height:1.25;
}
.article-detail-body h2{ font-size:1.4rem; }
.article-detail-body h3{ font-size:1.15rem; }
.article-detail-body ul,
.article-detail-body ol{
  margin:0 0 14px;
  padding-left:22px;
}
.article-detail-body li{
  margin-bottom:4px;
  font-size:1.02rem;
  line-height:1.5;
}
.article-detail-body li:last-child{ margin-bottom:0; }
.article-detail-body strong{ color:#111827; }
.article-detail-body blockquote{
  margin:14px 0;
  padding:14px 20px;
  border-left:4px solid #4a9fe7;
  background:#f4f8ff;
  border-radius:0 12px 12px 0;
  color:#33394a;
  font-style:italic;
  line-height:1.5;
}
.article-detail-gallery{
  margin:26px 0;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 14px 34px rgba(13,27,62,.08);
}
.article-detail-gallery img{
  display:block;
  width:100%;
  height:auto;
  object-fit:cover;
}
.article-detail-back{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-bottom:24px;
  color:#287de0;
  font-size:.9rem;
  font-weight:700;
  text-decoration:none;
}
.article-detail-not-found{
  max-width:600px;
  margin:0 auto;
  padding:100px 20px;
  text-align:center;
}

@media (max-width:620px){
  .article-detail-page{padding:78px 0 60px}
  .article-detail-header{padding:0 8px}
  .article-detail-body{padding:0 8px}
  .article-detail-body .article-detail-subtitle{font-size:1.3rem}
}

