.page-node-type-laundry-resources-page .body-bg {
  background: #f1ede7;
  min-height: 100vh;
}

section.content {
  padding: 6rem 1.25rem 3.125rem;
  position: relative;
  background-image: url('../../../images/laundry/resources-wave.webp');
  background-repeat: no-repeat;
  background-position: 50% 120px;
}

section h1 {
  font-size: 2.625rem;
  color: #ea5c27;
  font-weight: bold;
}

.card-container {
  border-radius: 30px;
  background-color: #ffffff;
  aspect-ratio: 2 / 2.75;
  padding: 0.85rem;
  align-content: end;
  background-size: cover;
}

.card-container .content-ellipse {
  display: grid;
  grid-template-rows: auto 0fr;
  row-gap: 0;
  align-content: center;
  border-radius: 28px;
  background-color: #64ccec;
  padding: 0.75rem 1.5rem;
  text-align: center;
  min-height: 56px;
  overflow: hidden;
  transition:
    grid-template-rows 0.5s ease,
    row-gap 0.5s ease,
    background-color 0.3s ease;
}

.card-container .content-ellipse h2 {
  font-size: 1rem;
  text-wrap: balance;
  color: #ffffff;
  font-weight: bold;
  margin: 0;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.card-container .content-ellipse p {
  min-height: 0;        /* required so the row can collapse to 0 */
  overflow: hidden;
  margin: 0;
  line-height: 1.2;
  text-align: left;
  hyphens: none;
  color: #64ccec;
  opacity: 0;
  transition: opacity 0.4s ease;
  font-size: 0.9rem;
}

/* Hover state: expand the row and reveal the text */
.card-container:hover .content-ellipse {
  grid-template-rows: auto 1fr;
  row-gap: 0.9rem;
  background-color: #fff;
  padding: 1.5rem 1.5rem 2rem;
}

.card-container:hover .content-ellipse h2 {
  color: #64ccec;
}

.card-container:hover .content-ellipse p {
  opacity: 1;
}

/* Touch devices have no hover, so show the description by default */
@media (hover: none) {
  .card-container .content-ellipse {
    grid-template-rows: auto 1fr;
    row-gap: 0.9rem;
    background-color: #fff;
    padding: 1.5rem 1.5rem 2rem;
  }

  .card-container .content-ellipse p {
    opacity: 1;
  }

  .card-container .content-ellipse h2 {
    color: #64ccec;
  }
}

@media (min-width: 767px) {
  section.content {
    padding: 7rem 2.5rem 3.125rem;
  }

  section h1 {
    font-size: clamp(3.4rem, 3.3vw, 4rem);
  }

  .card-container {
    aspect-ratio: 2 / 2.5;
  }
}

@media (min-width: 992px) {
  section.content {
    padding: 7rem 3.5rem 3.125rem;
  }

  .card-container .content-ellipse h2 {
    font-size: 1.25rem;
  }

  .card-container .content-ellipse p {
    font-size: 1.063rem;
  }

  .card-container .content-ellipse {
    min-height: 68px;
  }

  .card-container {
    border-radius: 50px;
  }

  .card-container .content-ellipse {
    border-radius: 38px;
  }
}

@media (min-width: 1024px) {
  .content {
    padding-top: 10%;
  }
}

@media (min-width: 1200px) {
  section.content {
    padding: 9rem 6rem 3.125rem;
  }
}

@media (min-width: 1400px) {
  .card-container .content-ellipse h2 {
    font-size: 0.95rem;
  }

  .card-container {
    aspect-ratio: 2 / 2.8;
  }
}

@media (min-width: 1700px) {
  .card-container .content-ellipse h2 {
    font-size: 1.25rem;
  }

  .card-container {
    aspect-ratio: 2 / 2.5;
    padding: 1.25rem;
  }

  section.content {
    background-size: 100% 448px;
  }
}
