/* Fees cards matched to the supplied SIDH Learning reference. */
.fee-cards-section {
  --fee-red: #ff2f3c;
  --fee-blue: #00a3ff;
  background: #f5f6fa;
}

.fee-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 26px;
}

.fee-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 26px 26px;
  border-top: 5px solid;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 20px 38px rgba(23, 35, 57, .10);
  text-align: left;
}

.fee-card-blue { border-top-color: var(--fee-blue); }
.fee-card-red { border-top-color: var(--fee-red); }

.fee-card h2 {
  margin: 0 0 20px;
  color: #101827;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.fee-hourly {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  line-height: 1.2;
}

.fee-hourly strong {
  color: var(--fee-red);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -.04em;
}

.fee-hourly span {
  color: #6b7585;
  font-size: 1.1rem;
}

.fee-rate-label {
  margin: 12px 0 0;
  color: #7b879b;
  font-size: 1rem;
  line-height: 1.5;
}

.fee-package {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid #e5e7ec;
}

.fee-package-price {
  margin: 0;
  color: var(--fee-blue);
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.fee-package-duration {
  margin: 12px 0 0;
  color: #53606e;
  font-size: 1.35rem;
  line-height: 1.4;
}

.fee-contact-price {
  margin: 4px 0 16px;
  color: var(--fee-red);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.fee-contact-description {
  margin: 0 0 24px;
  color: #53606e;
  font-size: 1.08rem;
  line-height: 1.6;
}

.fee-contact-btn {
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 24px;
  background: var(--fee-red);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: 0 12px 24px rgba(255, 47, 60, .18);
}

.fee-contact-btn:hover { background: #e92632; }
.fee-contact-btn:focus-visible {
  outline: 3px solid var(--fee-blue);
  outline-offset: 4px;
}

#contact { scroll-margin-top: 110px; }

@media (max-width: 1023px) {
  .fee-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  .fee-cards-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 22px; }
  .fee-card { padding: 26px 24px 24px; }
  .fee-card h2 { font-size: 1.3rem; }
  .fee-contact-btn { margin-top: 0; }
}
