/* ==========================================================================
   Resources — "Zdroje a dokumentace"
   ========================================================================== */

.resources { padding: 80px 0; }
/* Four cards in a balanced 2×2 (was a cramped single row of 4). */
.resources__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.resource-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 32px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.resource-card:hover,
.resource-card:focus-within { border-color: var(--gray-6b); }
.resource-card__decor {
  position: absolute; right: -30px; bottom: -40px;
  width: 127px; height: auto; opacity: .7; pointer-events: none;
  transition: transform .3s ease;
}
.resource-card:hover .resource-card__decor { opacity: .85; }
.resource-card__tag { color: var(--red); font-size: 16px; font-weight: 700; line-height: 26px; }
.resource-card h3 { font-size: 24px; font-weight: 600; color: var(--heading); line-height: 26px; }
.resource-card p { font-size: 16px; line-height: 26px; color: var(--text-soft); position: relative; z-index: 1; }
.resource-card .link-arrow { margin-top: auto; }
/* Stretch the card's link over the whole card → the entire card is clickable.
   z-index:2 to sit above the paragraph (z-index:1) and the decorative image. */
.resource-card .link-arrow::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--radius); }
