/* ==========================================================
   REGISTRATION CARDS — Volunteer & Player
   Professional • Accessible • Tournament Red
========================================================== */

.registration-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 1.75rem;
  margin: 2.5rem auto;
  max-width: 1000px;
  padding: 0 1rem;
}

/* Individual card */
.registration-card {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #fff5f5 100%
  );
  border-radius: 18px;
  padding: 2.2rem 2rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  border-top: 6px solid var(--color-primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover / focus elevation */
.registration-card:hover,
.registration-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

/* Heading */
.registration-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-dark);
  text-align: center;
}

/* Subtle divider */
.registration-card h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin: 0.6rem auto 0;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  border-radius: 3px;
}

/* Description text */
.registration-card p {
  text-align: center;
  margin: 1.2rem 0 1.8rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Call-to-action button alignment */
.registration-card .btn {
  align-self: center;
  margin-top: auto;
  min-width: 220px;
  text-align: center;
}

.registration-card:focus-within {
  outline: 3px solid rgba(255, 215, 0, 0.6);
  outline-offset: 4px;
}

/* ==========================================================
   LARGE TEXT MODE SUPPORT
========================================================== */
html[data-large="true"] .registration-card h3 {
  font-size: 1.7rem;
}

html[data-large="true"] .registration-card p {
  font-size: 1.25em;
  line-height: 1.8;
}

/* ==========================================================
   HIGH CONTRAST MODE
========================================================== */
html[data-contrast="true"] .registration-card {
  background: #000;
  border-top-color: #ffd700;
  box-shadow: none;
}

html[data-contrast="true"] .registration-card h3,
html[data-contrast="true"] .registration-card p {
  color: #fff;
}

/* ==========================================================
   MOBILE STACKING
========================================================== */
@media (max-width: 768px) {
  .registration-cards {
    grid-template-columns: 1fr;
  }

  .registration-card {
    padding: 1.6rem 1.4rem;
  }
}

@media (hover: hover) {
  .registration-card:hover {
    transform: translateY(-6px);
  }
}
