/* Grid wrapper & container queries (unchanged) */
.fts-window-card-grid-wrap {
  container: link-card-wrap / inline-size;
}
.fts-window-card-grid-group {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 10px;
}
@container link-card-wrap (min-width: 42.8125rem) {
  .fts-window-card-grid-group { grid-template-columns: repeat(3, 1fr); }
}
@container link-card-wrap (min-width: 53.125rem) {
  .fts-window-card-grid-group { grid-template-columns: repeat(4, 1fr); }
}

/* Make sure we target the correct card class */
.fts-window-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  aspect-ratio: 3/2;
  text-decoration: none !important;

  /* fallback default color */
  background-color: #005776;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Image overlay */
.fts-window-card.bgWindowImg::before {
  content: "";
  position: absolute;
  inset: 0;
  /* dark at bottom (80%), transparent at top (20%) */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 20%,
    rgba(0, 0, 0, 0) 80%
  );
  z-index: 1;
}

/* If there is an image, sthe inline style (background-image) will override the color above */

/* Window */
.fts-window-card-inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px; 
  margin: 10px;
  border: 2px solid #fff;
  padding: 16px;
  box-sizing: border-box;
  z-index: 2;
}

/* Title */
.fts-window-card-inner-title {
  margin: 0;
  color: #ffffff !important;
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.035em;
  line-height: 1.1em;
  text-decoration: none;
  /* text-shadow: 0 2px 4px rgba(0,0,0,0.6); */
  transition: 0.25s;
  cursor: pointer;
}

.fts-window-card-inner-title:hover {
  color: #00AEC7 !important;
}

.fts-window-card-inner p {
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.2;
  text-decoration: none !important;
}

.fts-window-card-inner a {
  text-decoration: none !important;
}

/* Optional CTA under the title */
.fts-window-card-cta {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
}
