/* Foundations category card covers. Scoped to avoid changing other cards. */
.cards-grid .card-link-wrap .foundations-cover {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 16 / 9;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5%, 34px);
  overflow: hidden;
  isolation: isolate;
  background: #063751 url("../img/category-01-deep-ocean-blue-1920x1080.jpg") center / cover no-repeat;
}
.cards-grid .card-link-wrap .foundations-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 13, 26, .37), rgba(0, 15, 31, .22));
  z-index: -1;
}
.cards-grid .card-link-wrap .foundations-cover-title {
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(1.1rem, 1.6vw, 1.55rem);
  font-weight: 700;
  line-height: 1.28;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 8px rgba(0,0,0,.55);
}
/* Accessible semantic heading retained, but not visually duplicated. */
.cards-grid .card-link-wrap .foundations-screen-reader-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
@media(max-width: 600px) {
  .cards-grid .card-link-wrap .foundations-cover-title { font-size: clamp(1.15rem, 4.6vw, 1.55rem); }
}
