/* Daftar Bank Soal dan Paket Asesmen. Dimuat setelah tema utama. */
.collection-intro {
  align-items: center;
  margin-bottom: 26px;
  padding: 22px 24px;
  border: 1px solid #dbe7ef;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff 0%, #f7fbfe 100%);
  box-shadow: 0 10px 30px rgba(23, 67, 96, .06);
}
.collection-intro > div:first-child { min-width: 0; }
.collection-intro h2 { font-size: 1.45rem; }
.collection-intro p:not(.eyebrow) { max-width: 670px; line-height: 1.6; }
.collection-intro .row-actions { gap: 10px; }
.collection-intro .btn { min-height: 43px; border-radius: 11px; white-space: nowrap; }

.question-bank-grid,
.package-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 22px;
  align-items: stretch;
}
.bootstrap-theme .collection-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 430px;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d9e5ed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(25, 66, 92, .08);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bootstrap-theme .collection-card::before {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, #0a6aa0, #0d9a88);
}
.bootstrap-theme .collection-card:hover {
  transform: translateY(-4px);
  border-color: #b9d3e3;
  box-shadow: 0 18px 42px rgba(20, 71, 103, .13);
}
.collection-card-top {
  min-height: 58px;
  padding: 17px 20px 10px;
  gap: 12px;
}
.collection-card-top > span:first-child {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: #315b77;
  font-size: .68rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.collection-card-top > span:first-child i { color: #0a72a5; }
.collection-card-top .status { flex: 0 0 auto; }
.bootstrap-theme .collection-card-visual {
  height: 82px;
  margin: 0 20px 18px;
  padding: 0 16px;
  border: 1px solid #d8e9f1;
  border-radius: 15px;
  background: linear-gradient(135deg, #eaf6fb, #eefaf6);
  color: #087fa0;
}
.collection-card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  color: #087fa0;
  font-size: 1.25rem;
  box-shadow: 0 7px 18px rgba(11, 104, 137, .13);
}
.collection-card-visual small {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .78);
  color: #416878;
  font-size: .67rem;
}
.collection-card-body { padding: 0 20px; }
.bootstrap-theme .collection-card-body h3 {
  margin: 0 0 9px;
  color: #102d47;
  font: 800 1.08rem/1.4 "Plus Jakarta Sans", sans-serif;
  overflow-wrap: anywhere;
}
.bootstrap-theme .collection-card-body p {
  display: -webkit-box;
  min-height: 56px;
  margin: 0;
  overflow: hidden;
  color: #64798a;
  font-size: .75rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.question-indicator {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 17px 20px 0;
  padding: 11px 12px;
  border: 1px solid #e1eaf0;
  border-radius: 12px;
  background: #f7fafc;
}
.question-indicator > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e7f3f8;
  color: #0a72a5;
}
.question-indicator small,
.question-indicator b { display: block; }
.question-indicator small { color: #80909d; font-size: .5rem; font-weight: 900; letter-spacing: .11em; }
.question-indicator b { margin-top: 2px; color: #3c5669; font-size: .66rem; line-height: 1.35; overflow-wrap: anywhere; }
.bootstrap-theme .collection-card .package-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 17px 20px 0;
}
.bootstrap-theme .collection-card .package-stats span {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 6px;
  border: 1px solid #e1eaf0;
  border-radius: 10px;
  background: #f7fafc;
  color: #526d7e;
  font-size: .61rem;
  text-align: center;
}
.bootstrap-theme .collection-card .package-stats i { color: #0b8099; }
.bootstrap-theme .collection-card footer {
  min-height: 64px;
  margin-top: auto;
  padding: 13px 20px;
  border-top: 1px solid #e5edf2;
  background: #fbfcfd;
}
.collection-card-meta {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: #687e8d;
  font-size: .66rem;
}
.collection-card-actions { flex-wrap: nowrap; gap: 6px; }
.collection-card-actions form { margin: 0; }
.collection-card-actions .text-button,
.collection-card-actions .danger-link,
.collection-card-actions .collection-open {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: .63rem;
  font-weight: 900;
  white-space: nowrap;
}
.collection-card-actions .text-button { border: 1px solid #d8e4eb; background: #fff; color: #42677d; }
.collection-card-actions .collection-open { background: #0a6fa4; color: #fff; }
.collection-card-actions .collection-open:hover { background: #075d8b; color: #fff; }
.collection-card-actions .danger-link { border: 1px solid #efd9d5; background: #fff7f5; color: #b0493a; }
.collection-card-actions .danger-link:hover { background: #b0493a; color: #fff; text-decoration: none; }

@media (max-width: 900px) {
  .collection-intro { align-items: stretch; flex-direction: column; }
  .collection-intro .row-actions { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .collection-intro { padding: 18px; border-radius: 16px; }
  .collection-intro .row-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .collection-intro .btn { width: 100%; }
  .bootstrap-theme .collection-card { min-height: 0; }
  .bootstrap-theme .collection-card footer { align-items: stretch; flex-direction: column; }
  .collection-card-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .collection-card-actions .text-button,
  .collection-card-actions .danger-link,
  .collection-card-actions .collection-open { min-height: 36px; }
}
