/* ===== HALAMAN DETAIL PROJECT (dipakai bersama style.css) ===== */
.project-page {
  width: min(1100px, 100% - 80px);
  margin: 0 auto;
  padding: 48px 0 90px;
  animation: p-in 0.5s ease both;
}
@keyframes p-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-weight: 600;
  color: #9db4ff;
  transition:
    color 0.25s ease,
    transform 0.2s ease;
}
.back-link:hover {
  color: #fff;
  transform: translateX(-4px);
}
.back-link:active {
  transform: scale(0.95);
}

.p-title {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  letter-spacing: 1px;
  line-height: 1.2;
  margin: 4px 0 8px;
}
.p-sub {
  color: #b8bbd0;
  font-size: 1.05rem;
}

.p-hero {
  margin: 30px 0 40px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid #1a1a6a;
  box-shadow: 0 0 30px rgba(26, 26, 255, 0.3);
}
.p-hero img {
  display: block;
  width: 100%;
  max-height: 520px;
  min-height: 160px;
  object-fit: cover;
}

.p-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}
.p-main section + section {
  margin-top: 36px;
}
.p-main h2 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.p-main p {
  color: #d8dae8;
  line-height: 1.85;
}
.p-features {
  list-style: none;
  display: grid;
  gap: 12px;
}
.p-features li {
  position: relative;
  padding-left: 30px;
  color: #d8dae8;
  line-height: 1.7;
}
.p-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(26, 26, 255, 0.3);
  color: #cfd6ff;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 3px;
}
.p-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.p-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #1a1a6a;
}

.p-side {
  padding: 26px 24px;
  position: sticky;
  top: 110px;
}
.p-side h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.p-side dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 18px;
  font-size: 0.95rem;
}
.p-side dt {
  color: #9a9db6;
}
.p-side dd {
  font-weight: 600;
  text-align: right;
}
.p-label {
  margin: 20px 0 10px;
  color: #9a9db6;
  font-size: 0.95rem;
}
.p-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.p-tag {
  padding: 4px 14px;
  border: 1px solid #2a2a8a;
  border-radius: 999px;
  background: rgba(26, 26, 255, 0.14);
  font-size: 0.85rem;
  font-weight: 600;
}
.p-link {
  width: 100%;
  justify-content: center;
  margin-top: 24px;
}

.p-pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid #1a1a3a;
}
.p-pager-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid #1a1a4a;
  transition:
    transform 0.2s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}
.p-pager-link:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  background: #1a1a26;
}
.p-pager-link:active {
  transform: scale(0.97);
}
.p-pager-link.is-next {
  margin-left: auto;
  text-align: right;
}
.p-pager-text {
  display: grid;
  gap: 2px;
}
.p-pager-text small {
  color: #9a9db6;
  font-size: 0.72rem;
  letter-spacing: 1px;
}
.p-pager-link i {
  color: var(--blue);
}

.p-missing {
  text-align: center;
  padding: 70px 0 30px;
}
.p-missing .btn {
  margin-top: 26px;
}

@media (max-width: 900px) {
  .project-page {
    width: calc(100% - 40px);
    padding-top: 32px;
  }
  .p-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .p-side {
    position: static;
  }
}
@media (prefers-reduced-motion: reduce) {
  .project-page {
    animation: none;
  }
}


/* ===== GAMBAR PROJECT: BISA DI-SCROLL & TIDAK KEPOTONG ===== */
.p-hero {
  max-height: 75vh;        /* tinggi bingkai maksimal; kalau gambar lebih tinggi, bisa di-scroll di dalam bingkai */
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;   /* scrollbar tipis (Firefox) */
  scrollbar-color: #2a2aff #0e0e16;
}
.p-hero img {
  width: 100%;
  height: auto;            /* tinggi mengikuti gambar asli, jadi tidak dipotong */
  max-height: none;
  min-height: 0;
  object-fit: contain;
}
/* scrollbar tipis bernuansa biru (Chrome, Edge, Safari) */
.p-hero::-webkit-scrollbar { width: 10px; }
.p-hero::-webkit-scrollbar-track { background: #0e0e16; }
.p-hero::-webkit-scrollbar-thumb {
  background: #2a2aff;
  border-radius: 10px;
  border: 2px solid #0e0e16;
}
.p-hero::-webkit-scrollbar-thumb:hover { background: #5a5aff; }