.hsp-program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
  max-width: 100%;
}

.hsp-program-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8d2c7;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(30, 24, 15, 0.08);
}

.hsp-program-image-wrap {
  background: #f5f1ea;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.hsp-program-image-link {
  display: block;
  height: 100%;
}

.hsp-program-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hsp-program-content {
  padding: 1.15rem;
}

.hsp-program-title {
  margin: 0 0 0.45rem;
  color: #2b2118;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.25;
}

.hsp-program-title a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.hsp-program-title a:hover,
.hsp-program-title a:focus {
  color: #6c3f16;
}

.hsp-program-date {
  margin: 0.35rem 0;
  color: #6c3f16;
  font-weight: 700;
}

.hsp-program-location,
.hsp-program-cost {
  margin: 0.4rem 0;
  color: #3d352d;
  font-weight: 600;
}

.hsp-program-description {
  margin: 0.8rem 0;
  color: #342d26;
  line-height: 1.55;
}

.hsp-program-description > :first-child {
  margin-top: 0;
}

.hsp-program-description > :last-child {
  margin-bottom: 0;
}

.hsp-registration-button {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  background: #6c3f16;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.hsp-registration-button:hover,
.hsp-registration-button:focus {
  background: #4f2d0e;
  color: #fff;
  text-decoration: none;
}

.hsp-program-title a:focus,
.hsp-program-image-link:focus,
.hsp-registration-button:focus {
  outline: 3px solid #c7903d;
  outline-offset: 3px;
}

.hsp-programs-empty {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid #d8d2c7;
  border-radius: 8px;
  background: #faf7f1;
  color: #342d26;
}

@media (max-width: 1024px) {
  .hsp-program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hsp-program-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hsp-program-content {
    padding: 1rem;
  }
}
