/* ==========================================================================
   COURSE LIST — halaman daftar kursus (ui.md + design-v2)
   ========================================================================== */

.course-list-page {
  padding: 48px 24px 88px;
}

.course-list-page .wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.course-list-page .page-header {
  margin-bottom: 32px;
}

.course-list-page .ds-breadcrumb {
  margin-bottom: 12px;
}

.course-list-page .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.course-list-page .grid.sm\:grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.course-list-page .grid.lg\:grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-list-page .poster-badges {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}

.course-list-page .poster-badges-top {
  top: 12px;
  left: 12px;
}

.course-list-page .poster-badges-bottom {
  right: 12px;
  bottom: 12px;
}

.course-list-page .poster-view-btn {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(12, 22, 38, .64);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.course-list-page .poster-view-btn:hover {
  background: rgba(12, 22, 38, .82);
  transform: translateY(-1px);
}

.course-list-page .poster-view-btn svg {
  width: 14px;
  height: 14px;
}

.course-list-page .card-instructor {
  color: var(--ds-ink-3);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.course-list-page .schedule {
  margin-bottom: 12px;
}

.course-list-page .schedule svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: .8;
}

.course-poster-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 12, 24, .8);
  backdrop-filter: blur(8px);
}

.course-poster-modal.is-open {
  display: flex;
}

.course-poster-modal-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 94vw;
  max-height: 92vh;
}

.course-poster-modal-img {
  display: block;
  width: auto;
  max-width: 94vw;
  max-height: 92vh;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .5);
}

.course-poster-modal-close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(15, 26, 43, .92);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}

.course-poster-modal-close:hover {
  background: rgba(23, 37, 58, 1);
}

@media (max-width: 1023px) {
  .course-list-page .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .course-list-page {
    padding: 24px 16px 60px;
  }

  .course-list-page .grid {
    grid-template-columns: 1fr;
  }

  .course-list-page .card-foot {
    align-items: flex-end;
  }

  .course-list-page .btn-detail {
    width: auto;
  }

}
