/* Question Bank folder cards, inspired by the Study Guides' Memory Vault. */
.question-bank-section .question-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px 22px;
  padding-top: 20px;
}
.question-bank-section .question-card {
  --folder-tint: #c9eeeb;
  --tab-tint: #69c9c6;
  --tab-highlight: #c3efea;
  --folder-edge: #8fcfce;
  --folder-ink: #075e63;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--folder-edge);
  border-radius: 0 19px 19px 19px;
  background: radial-gradient(ellipse at 10% 0%, #fffd 0%, transparent 48%),
    linear-gradient(145deg, #fff 5%, var(--folder-tint));
  box-shadow: inset 0 2px #fff, 0 6px 18px #50347512;
}
/* Stagger the accents while keeping the same folder shape. */
.question-bank-section .question-card:nth-child(4n + 2) {
  --folder-tint: #e4d1f7;
  --tab-tint: #b992e1;
  --tab-highlight: #ebdcfa;
  --folder-edge: #c7a7e4;
  --folder-ink: #653890;
}
.question-bank-section .question-card:nth-child(4n + 3) {
  --folder-tint: #ffe9ac;
  --tab-tint: #efc365;
  --tab-highlight: #fff0ba;
  --folder-edge: #e0c578;
  --folder-ink: #765008;
}
.question-bank-section .question-card:nth-child(4n + 4) {
  --folder-tint: #f9d9e3;
  --tab-tint: #e9a1b7;
  --tab-highlight: #fce0e8;
  --folder-edge: #e3adbc;
  --folder-ink: #85465e;
}
.question-bank-section .question-card::before {
  content: "";
  position: absolute;
  inset: -16px auto auto -1px;
  width: 84px;
  height: 16px;
  border: 1px solid var(--folder-edge);
  border-bottom: 0;
  border-radius: 10px 12px 0 0;
  background: linear-gradient(120deg, var(--tab-highlight), var(--tab-tint));
  box-shadow: inset 0 2px #fffc;
}
.question-bank-section .question-card h3 { color: #231932; }
.question-bank-section .question-card p { color: #34303b; }
.question-bank-section .question-card .eyebrow,
.question-bank-section .question-card .folder-label { color: var(--folder-ink); }
.question-bank-section .question-card .folder-label { margin-top: auto; padding-top: 9px; }
.question-bank-section .question-card:hover { box-shadow: inset 0 2px #fff, 0 10px 22px #50347525; }
.question-bank-section .question-card:focus-visible { outline: 3px solid #7043a2; outline-offset: 4px; }
@media (max-width: 950px) {
  .question-bank-section .question-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .question-bank-section .question-grid { grid-template-columns: minmax(0, 1fr); gap: 33px; }
}
@media (prefers-reduced-motion: reduce) {
  .question-bank-section .question-card { transition: none; }
  .question-bank-section .question-card:hover { transform: none; }
}
