/* Scope the catalogue styling to its own content, away from active exam questions. */
.free-exam-catalog { min-width: 0; }
.free-exam-heading { max-width: 800px; margin: 8px 0 24px; }
.free-exam-heading h1 { margin: 0 0 14px; font-size: clamp(26px, 3vw, 32px); line-height: 1.25; }
.free-exam-heading p { margin: 0; color: #536d85; font-size: 16px; line-height: 1.75; }
.free-exam-info { margin: 0 0 28px; padding: 18px 22px; border-radius: 12px; background: #eaf0fa; }
.free-exam-info strong { display: block; margin: 0 0 6px; color: #354984; font-size: 15px; }
.free-exam-info p { margin: 0; max-width: 95ch; font-size: 14px; line-height: 1.7; }
.free-exam-catalog .free-exam-back { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 20px; font-size: 14px; }
.free-exam-categories { margin-bottom: 24px; gap: 12px; }
.free-exam-categories > a.button { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; max-width: 100%; padding: 8px 12px; }
.free-exam-categories .koers-icon-badge { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; }
.free-exam-categories .koers-site-icon { width: 20px; height: 20px; }
.free-exam-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; align-items: stretch; gap: 18px; }
.free-exam-grid.is-single { grid-template-columns: minmax(0, 480px); }
.free-exam-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #cdd9ea; border-radius: 16px; background: #fff; }
.free-exam-card > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.free-exam-card-content { display: flex; flex-direction: column; align-items: flex-start; flex: 1; min-width: 0; padding: 20px; }
.free-exam-badge { padding: 5px 9px; border-radius: 6px; background: #edf2fa; color: #354984; font-size: 12px; font-weight: 700; line-height: 1.4; }
.free-exam-card h2 { margin: 14px 0 10px; color: #173547; font-size: 19px; line-height: 1.35; }
.free-exam-description { margin: 0 0 20px; color: #536d85; font-size: 14px; line-height: 1.75; }
.free-exam-card-actions { width: 100%; margin-top: auto; }
.free-exam-catalog .free-exam-start { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 12px 10px; border: 1px solid #354984; border-radius: 9px; background: #354984; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.45; text-align: center; white-space: normal; }
.free-exam-start > span:last-child[aria-hidden] { flex-shrink: 0; }
.free-exam-catalog .free-exam-start:hover:not(:disabled) { background: #293a6e; border-color: #293a6e; }
.free-exam-catalog .free-exam-start:disabled { opacity: .6; }
.free-exam-start[aria-busy="true"] { cursor: wait; }
.free-exam-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 28px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #d3deea; }
.free-exam-footer > p { flex: 1 1 300px; max-width: 580px; margin: 0; color: #536d85; font-size: 14px; line-height: 1.7; }
.free-exam-catalog .free-exam-offer { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; max-width: 100%; padding: 12px 18px; border-color: #354984; border-radius: 9px; color: #354984; font-size: 15px; font-weight: 700; line-height: 1.5; text-align: center; }
.free-exam-catalog .free-exam-offer:hover, .free-exam-catalog .free-exam-back:hover { background: #eaf0fa; border-color: #354984; }
@media (max-width: 1100px) { .free-exam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .free-exam-grid, .free-exam-grid.is-single { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .free-exam-info { padding: 16px 18px; }
  .free-exam-footer { align-items: stretch; flex-direction: column; }
  .free-exam-footer > p { flex: none; }
  .free-exam-catalog .free-exam-offer { width: 100%; }
}
