/* ============================================================
   Projek Terkini — hero preview slider (click a poster → scroll to its card)
   ============================================================ */
.pj-hero { padding-bottom: 90px; }
.pj-hero .container { max-width: 1040px; }

.pj-slider { position: relative; margin: 46px auto 0; max-width: 960px; padding-bottom: 34px; text-align: left; }
.pj-hero-swiper {
  position: relative; z-index: 1; overflow: hidden; border-radius: 28px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.14), 0 0 70px -20px rgba(255,199,54,.3);
  background: #0d2442;
}
.pj-slide { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; cursor: pointer; text-decoration: none; }
.pj-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.pj-slide:hover img { transform: scale(1.04); }

/* caption sits at the bottom edge on a fade, never over the poster's main artwork */
.pj-slide__cap {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; padding: 46px 22px 16px;
  background: linear-gradient(180deg, transparent, rgba(7,20,39,.9) 70%);
}
.pj-slide__type { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #1a1204; border-radius: 999px; background: linear-gradient(100deg, #ffd35c, #ffb71f); }
.pj-slide__cap strong { flex: 1; min-width: 0; font: 700 1.15rem "Fraunces", Georgia, serif; color: #fff; }
.pj-slide__go { display: inline-flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; font-size: .78rem; font-weight: 700; color: #fff; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(8px); transition: background .25s, color .25s; }
.pj-slide__go i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #1a1204; animation: pj-bounce 1.6s ease-in-out infinite; }
@keyframes pj-bounce { 50% { transform: translateY(3px); } }
.pj-slide:hover .pj-slide__go { background: var(--gold); color: #1a1204; }
.pj-slide:hover .pj-slide__go i { background: #1a1204; color: var(--gold); }

.pj-slider__nav { position: absolute; z-index: 3; right: 22px; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 7px; border-radius: 999px; background: #fff; color: #0b2140; box-shadow: 0 18px 36px -16px rgba(0,0,0,.7); }
.pj-slider__nav button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--gold); background: #0b2140; cursor: pointer; transition: background .25s, color .25s, transform .3s var(--ease); }
.pj-slider__nav button:hover { background: var(--gold); color: #0b2140; transform: scale(1.08); }
.pj-slider__count { min-width: 60px; text-align: center; font: 700 .92rem "Plus Jakarta Sans", sans-serif; letter-spacing: .04em; }
.pj-slider__count b { color: #b5830a; }
.pj-slider__count i { margin: 0 3px; font-style: normal; opacity: .45; }

/* the card the visitor clicked gets a short gold pulse after the scroll */
.pj-card.is-pulse .pj-card__face { animation: pj-pulse 2.2s ease-out 1; }
@keyframes pj-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,199,54,.9), 0 26px 60px -22px rgba(0,0,0,.7); }
  30%  { box-shadow: 0 0 0 10px rgba(255,199,54,.45), 0 26px 60px -22px rgba(0,0,0,.7); }
  100% { box-shadow: 0 0 0 26px rgba(255,199,54,0), 0 26px 60px -22px rgba(0,0,0,.7); }
}

@media (max-width: 767px) {
  .pj-slider { margin-top: 34px; padding-bottom: 30px; }
  .pj-hero-swiper { border-radius: 20px; }
  .pj-slide__cap { padding: 30px 14px 12px; gap: 6px 10px; }
  .pj-slide__cap strong { font-size: .95rem; flex-basis: 100%; order: 2; }
  .pj-slide__go { display: none; }
  .pj-slider__nav { right: 12px; }
}
@media (prefers-reduced-motion: reduce) { .pj-slide__go i, .pj-card.is-pulse .pj-card__face { animation: none; } }

/* nav sits fully below the poster so it never covers poster text */
.pj-slider { padding-bottom: 72px; }
.pj-slider__nav { right: 8px; bottom: 6px; }
@media (max-width: 767px) { .pj-slider { padding-bottom: 66px; } }

/* ============================================================
   v3: slider ABOVE THE FOLD — two columns on desktop (text left, slider right)
   ============================================================ */
@media (min-width: 992px) {
  .pj-hero { padding: 118px 0 36px; min-height: min(100vh, 860px); display: flex; align-items: center; }
  .pj-hero__mark { top: 70px; font-size: clamp(5rem, 13vw, 11rem); }
  .pj-hero .container { max-width: 1320px; width: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 52px; align-items: center; text-align: left; }
  .pj-hero .container > *:not(.pj-slider) { grid-column: 1; }
  .pj-slider { grid-column: 2; grid-row: 1 / span 6; margin: 0; max-width: none; align-self: center; }

  .pj-crumb { justify-content: flex-start; margin-bottom: 18px; }
  .pj-title { margin: 16px 0 14px; font-size: clamp(2.4rem, 4.4vw, 4.2rem); }
  .pj-lead { margin: 0; max-width: 520px; font-size: 1rem; }
  .pj-steps { justify-content: flex-start; margin-top: 24px; gap: 10px; }
  .pj-steps li { font-size: .8rem; padding: 6px 14px 6px 6px; }
  .pj-steps b { width: 26px; height: 26px; }

  .pj-hero-swiper { transform: rotate(-.8deg); }
  .pj-slide__cap strong { font-size: 1.05rem; }
}
@media (min-width: 992px) and (max-height: 820px) {
  .pj-hero { padding-top: 104px; }
  .pj-lead { font-size: .95rem; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .pj-hero .container { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; }
}
/* gentle entrance so the eye lands on the slider first */
.pj-slider { animation: pj-slider-in 1s var(--ease) .15s both; }
@keyframes pj-slider-in { from { opacity: 0; transform: translateX(40px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pj-slider { animation: none; } }

@media (min-width: 992px) { .pj-hero .container > .pj-label { justify-self: start; } .pj-hero .container > .pj-crumb { justify-self: start; } }
