/* Panduan Dokumentasi — public page */

.panduan-page .panduan-section {
  background: var(--revit-surface, #f5f7fa);
  padding: 2rem 0 3rem;
}

.panduan-download-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #004282, #0066cc);
  color: #fff;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 8px 28px rgba(0, 66, 130, 0.2);
}

.panduan-download-bar .pdb-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.panduan-download-bar .pdb-text {
  flex: 1;
  min-width: 200px;
}

.panduan-download-bar .pdb-text strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.panduan-download-bar .pdb-text span {
  font-size: 0.85rem;
  opacity: 0.85;
}

.panduan-download-bar .btn-primary {
  background: #fff;
  color: #004282;
  border: none;
  font-weight: 700;
  white-space: nowrap;
}

.panduan-download-bar .btn-primary:hover {
  background: #f0f4f8;
  color: #003366;
}

.panduan-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 66, 130, 0.06);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.panduan-card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #004282;
  margin-bottom: 1rem;
}

.panduan-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.panduan-list {
  padding-left: 1.25rem;
  margin-bottom: 0;
  color: #475569;
  line-height: 1.65;
}

.panduan-list li {
  margin-bottom: 0.45rem;
}

.panduan-list.ordered {
  list-style: decimal;
}

.panduan-spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 576px) {
  .panduan-spec-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.spec-item {
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  border-left: 3px solid #0066cc;
}

.spec-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.spec-value {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

.panduan-note {
  background: #e0f2fe;
  border-left: 3px solid #0284c7;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  color: #0c4a6e;
  line-height: 1.55;
}

.panduan-note.alert-danger-soft {
  background: #fef2f2;
  border-left-color: #dc2626;
  color: #991b1b;
}

.panduan-tahap-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .panduan-tahap-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tahap-box {
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  border: 1px solid #e2e8f0;
}

.tahap-box h3 {
  font-size: 0.85rem;
  font-weight: 800;
  margin: 0.5rem 0 0.35rem;
}

.tahap-box p {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.tahap-badge {
  display: inline-block;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  color: #fff;
}

.tahap-before { background: #fef3c7; }
.tahap-before .tahap-badge { background: #d97706; }

.tahap-during { background: #dbeafe; }
.tahap-during .tahap-badge { background: #2563eb; }

.tahap-after { background: #d1fae5; }
.tahap-after .tahap-badge { background: #059669; }

.suasana-block {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #e2e8f0;
}

.suasana-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.suasana-block h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #004282;
  margin-bottom: 0.45rem;
}

.suasana-block ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.55;
}

.panduan-folder-tree {
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.78rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  white-space: pre-wrap;
}

.panduan-sidebar-card {
  z-index: 1;
}

@media (max-width: 991.98px) {
  .panduan-sidebar-card.sticky-top {
    position: static !important;
  }

  .panduan-download-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .panduan-download-bar .btn {
    width: 100%;
  }
}

.panduan-dash-card {
  border-left: 4px solid #0066cc;
}

.panduan-dash-card .btn-download-panduan {
  font-weight: 600;
}

/* Quick nav tabs */
.panduan-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 66, 130, 0.06);
}

.panduan-quick-nav .pqn-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.panduan-quick-nav .pqn-link:hover {
  background: #f1f5f9;
  color: #004282;
  text-decoration: none;
}

.panduan-quick-nav .pqn-link.active {
  background: #004282;
  color: #fff;
}

/* Tab panels */
.panduan-tab-content {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 66, 130, 0.08);
  padding: 1.5rem;
  margin-top: 0.25rem;
}

.panduan-tab-panel {
  display: none;
}

.panduan-tab-panel.active {
  display: block;
}

.panduan-tab-panel .panduan-media-head {
  margin-bottom: 1rem;
}

.panduan-tab-panel .panduan-media-head h2 {
  font-size: 1.15rem;
}

/* Media sections (legacy) */
.panduan-media-section {
  margin-top: 0;
}

.panduan-media-head {
  margin-bottom: 1.25rem;
}

.panduan-media-head h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #004282;
  margin-bottom: 0.35rem;
}

/* Media carousels */
.panduan-media-carousel {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 66, 130, 0.12);
  max-width: 900px;
  margin: 0 auto;
}

.panduan-media-carousel .carousel-inner {
  background: #0f172a;
}

.panduan-carousel-slide {
  width: 100%;
  aspect-ratio: 16 / 10;
  position: relative;
}

.panduan-video-carousel .panduan-carousel-slide {
  aspect-ratio: 16 / 9;
}

.panduan-video-carousel .panduan-video-slide .panduan-video-wrap {
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: auto;
}

.panduan-media-carousel .carousel-item {
  background: #0f172a;
}

.panduan-video-slide {
  width: 100%;
  height: 100%;
}

.panduan-carousel-zoom {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
}

.panduan-carousel-zoom img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #0f172a;
  pointer-events: none;
}

.panduan-zoom-hint {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.panduan-carousel-zoom:hover .panduan-zoom-hint,
.panduan-carousel-zoom:focus .panduan-zoom-hint {
  opacity: 1;
}

.panduan-media-carousel .carousel-caption {
  right: 0;
  left: 0;
  bottom: 0;
  padding: 0.65rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  pointer-events: none;
}

.panduan-media-carousel .carousel-caption span {
  font-size: 0.85rem;
  font-weight: 600;
}

.panduan-media-carousel .carousel-control-prev,
.panduan-media-carousel .carousel-control-next {
  width: 12%;
  opacity: 0.9;
  z-index: 5;
}

.panduan-media-carousel .carousel-indicators {
  z-index: 5;
  margin-bottom: 0.5rem;
}

.panduan-media-carousel .carousel-indicators li {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 4px;
  background-color: rgba(255, 255, 255, 0.45);
}

.panduan-media-carousel .carousel-indicators .active {
  background-color: #fff;
}

.panduan-carousel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 900px;
  margin: 0.85rem auto 0;
  padding: 0 0.25rem;
  font-weight: 700;
  color: #1e4d8c;
}

@media (max-width: 767px) {
  .panduan-carousel-slide {
    aspect-ratio: 4 / 3;
  }

  .panduan-video-carousel .panduan-carousel-slide {
    aspect-ratio: 16 / 10;
  }

  .panduan-zoom-hint {
    opacity: 1;
  }

  .panduan-media-carousel .carousel-indicators {
    margin-bottom: 0.35rem;
  }

  .panduan-carousel-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

.panduan-photo-modal .modal-body img {
  max-height: 80vh;
  width: auto;
  max-width: 100%;
}

/* Video carousel */
.panduan-video-wrap {
  background: #0f172a;
  aspect-ratio: 16 / 9;
}

.panduan-video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.panduan-video-lazy {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
}

.panduan-video-play {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.2s;
}

.panduan-video-play i {
  font-size: 2rem;
}

.panduan-video-play span {
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.9;
}

.panduan-video-lazy:hover .panduan-video-play {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.03);
}
