/* Pop-up carousel (banyak materi, bisa digeser) */
.popup-carousel .popup-slides { position: relative; }
.popup-slide { display: none; }
.popup-slide.is-active { display: block; }

.popup-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.popup-nav:hover { background: #F2C94C; color: #000D24; }
.popup-nav--prev { left: 10px; }
.popup-nav--next { right: 10px; }

.popup-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px; background: #04162F;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.popup-counter { color: #9CA3AF; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.popup-dots { display: flex; align-items: center; gap: 6px; }
.popup-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .3); cursor: pointer; transition: .15s;
}
.popup-dot.is-active { width: 22px; border-radius: 4px; background: #F2C94C; }

@media (max-width: 640px) {
  .popup-nav { width: 34px; height: 34px; font-size: 22px; }
  .popup-nav--prev { left: 6px; }
  .popup-nav--next { right: 6px; }
  .popup-bar { padding: 8px 12px; }
}

/* video vertikal (reels) tidak boleh gepeng */
.popup-box video {
  width: auto; max-width: 100%; height: auto; max-height: 70vh;
  display: block; margin-left: auto; margin-right: auto; object-fit: contain; background: #000;
}

/* popup rekrutmen */
.popup-hero--hire { padding: 56px 44px 48px; }
.popup-eyebrow--hire { color: #F2C94C; }
.popup-hero--hire .popup-headline { font-size: clamp(1.9rem, 5.5vw, 2.9rem); }
.popup-hero--hire .popup-teaser { margin-bottom: 4px; }
.popup-roles { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 22px 0 4px; }
.popup-role {
  font-family: var(--font-d); font-weight: 700; font-size: .72rem; letter-spacing: .09em;
  text-transform: uppercase; color: #fff; border: 1px solid rgba(242,201,76,.45);
  border-radius: var(--radius); padding: 7px 12px; background: rgba(242,201,76,.07);
}
.popup-hero--hire .popup-cta { margin-top: 26px; }
@media (max-width: 560px) { .popup-hero--hire { padding: 40px 20px 36px; } }

/* CTA di bawah media pop-up (mis. poster event + tombol daftar) */
.popup-cta--media {
  display: block;
  margin: 14px 16px 18px;
  padding: 14px 18px;
  text-align: center;
  font-family: var(--font-d, Archivo, sans-serif);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #0B1330;
  background: linear-gradient(135deg, #FFD876, #F2C94C 55%, #E8B93B);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(242, 201, 76, .22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.popup-cta--media:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 14px 30px rgba(242, 201, 76, .3); }
@media (max-width: 560px) { .popup-cta--media { margin: 12px 12px 14px; padding: 13px 14px; font-size: .78rem; } }

/* Poster portrait: tampil penuh, bisa discroll di dalam kotak */
.popup-box--poster { max-height: 88vh; overflow-y: auto; }
.popup-box--poster .popup-slide img { max-height: none; height: auto; object-fit: initial; background: #000D24; }
.popup-box--poster::-webkit-scrollbar { width: 8px; }
.popup-box--poster::-webkit-scrollbar-thumb { background: rgba(242,201,76,.5); border-radius: 4px; }
@media (max-width: 560px) {
  .popup-box--poster { max-height: 92vh; }
}

/* Transisi muncul popup */
.popup-overlay {
  opacity: 0;
  transition: opacity .28s ease;
}
.popup-overlay.is-visible { opacity: 1; }
.popup-overlay .popup-box {
  transform: translateY(10px) scale(.99);
  transition: transform .32s cubic-bezier(.2,.7,.3,1);
}
.popup-overlay.is-visible .popup-box { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .popup-overlay, .popup-overlay .popup-box { transition: none; }
}
