.ways-to-pay {
  /* background-color: #007Dc5; */
  /* padding: 36px 12px; */
  box-sizing: border-box;
}

.call-to-action-images span {
  font-size: 2rem;
}

.ways-to-pay .call-to-action-content {
  width: 100%;
  margin-bottom: 32px;
}

.ways-to-pay .call-to-action-text {
  font-size: xx-large;
  text-align: center;
  color: white;
  font-weight: lighter;
  margin-bottom: 0;
}

.ways-to-pay .call-to-action-images {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 37.5% 62.5%;
  gap: 32px;
  max-width: 100%;
  margin: 0 auto;
  row-gap: 0;
  height: 19.2rem;
  /* background-color: white; */
}

/* Assign cards to columns */
.ways-to-pay .call-to-action-content-1 a.cta-btn,
.ways-to-pay .call-to-action-content-2 a.cta-btn,
.ways-to-pay .call-to-action-content-3 a.cta-btn,
.ways-to-pay .call-to-action-content-4 a.cta-btn {
    color: white !important;
    border-radius: 0.43269rem;
    background: #09F;
    padding-top: .5em;
    padding-bottom: .5em;
    font-weight: bold;
    display: block;
}
.ways-to-pay .call-to-action-content-1 a.cta-btn ,
.ways-to-pay .call-to-action-content-2 a.cta-btn ,
.ways-to-pay .call-to-action-content-3 a.cta-btn ,
.ways-to-pay .call-to-action-content-4 a.cta-btn {
    color: white !important;
    padding-left: 1em;
    padding-right: 1em;
    text-align: center;
}
.ways-to-pay .call-to-action-content-1 a.cta-btn:hover,
.ways-to-pay .call-to-action-content-2 a.cta-btn:hover,
.ways-to-pay .call-to-action-content-3 a.cta-btn:hover,
.ways-to-pay .call-to-action-content-4 a.cta-btn:hover {
  text-decoration: none !important;
}
/* Card effect for each image-content pair */
.ways-to-pay .call-to-action-content-1 {
  grid-column: 1;
  grid-row: 2;
}
.ways-to-pay .call-to-action-content-2 {
  grid-column: 2;
  grid-row: 2;
}
.ways-to-pay .call-to-action-images > a:nth-of-type(1) {
  grid-column: 1; grid-row: 1;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: end;
  border-radius: 20px 20px 0 0;
}
.ways-to-pay .call-to-action-images > a:nth-of-type(2) {
  grid-column: 2; grid-row: 1;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: end;
  border-radius: 20px 20px 0 0;
}
.ways-to-pay .call-to-action-content-3 {
  grid-column: 3;
  grid-row: 2;
}
.ways-to-pay .call-to-action-content-4 {
  grid-column: 4;
  grid-row: 2;
}
.ways-to-pay .call-to-action-images > a:nth-of-type(3) {
  grid-column: 3; grid-row: 1;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: end;
  border-radius: 20px 20px 0 0;
}
.ways-to-pay .call-to-action-images > a:nth-of-type(4) {
  grid-column: 4; grid-row: 1;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: end;
  border-radius: 20px 20px 0 0;
}
/* The 'card' structure: The image and content visually merge */
.ways-to-pay .call-to-action-image-1,
.ways-to-pay .call-to-action-image-2 {
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.ways-to-pay img.call-to-action-image-1,
.ways-to-pay img.call-to-action-image-2,
.ways-to-pay img.call-to-action-image-3,
.ways-to-pay img.call-to-action-image-4 {
  display: block;
  /* width: 55%; */
  height: 5.5em;
  /* object-fit: cover; */
  border-radius: 20px 20px 0 0;
  margin: 0;
  aspect-ratio: 125 / 88;
  /* Use aspect-ratio for more consistent card layout */
}
.ways-to-pay .call-to-action-content-1 img,
.ways-to-pay .call-to-action-content-2 img,
.ways-to-pay .call-to-action-content-3 img,
.ways-to-pay .call-to-action-content-4 img {
  width: 75%;
  /* Use aspect-ratio for more consistent card layout */
}

/* The bottom of the card */
.ways-to-pay .call-to-action-content-1,
.ways-to-pay .call-to-action-content-2,
.ways-to-pay .call-to-action-content-3,
.ways-to-pay .call-to-action-content-4 {
  background: #fff;
  color: #00518a;
  border-radius: 0 0 20px 20px;
  /* box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10); */
  margin: 0 auto 2em auto;
  padding: 18px 20px;
  text-align: center;
  /* font-size: large; */
  width: 100%;
  max-width: 100%;
  word-break: break-word;
  box-sizing: border-box;
  border-top: none;
}

/* Make image & content together look like a single card by visually merging shadows (optional) */
.ways-to-pay .call-to-action-image-1,
.ways-to-pay .call-to-action-content-1,
.ways-to-pay .call-to-action-image-2,
.ways-to-pay .call-to-action-content-2 {
  /* box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10); */
}

/* Remove gap between image and content */
.ways-to-pay .call-to-action-content-1,
.ways-to-pay .call-to-action-content-2 {
  margin-top: 0;
}

/* Responsive styles */
/* @media (max-width: 900px) {
  .ways-to-pay .call-to-action-images {
    max-width: 96vw;
    gap: 18px;
  }
  .ways-to-pay .call-to-action-content {
    max-width: 96vw;
  }
} */

@media (max-width: 900px) {
  .ways-to-pay .call-to-action-images {
    grid-template-columns: 1fr;
    grid-template-rows: unset;
    gap: 24px;
    max-width: 98vw;
    height: auto !important;
  }

  .ways-to-pay .call-to-action-content {
    max-width: 98vw;
  }
  .ways-to-pay .call-to-action-images {
    grid-template-columns: 1fr ;
    row-gap: 0;
  }
  .ways-to-pay .call-to-action-content-1 {
    grid-column: 1; grid-row: 2;
  }
  .ways-to-pay .call-to-action-content-2 {
    grid-column: 1; grid-row: 4;
  }
  .ways-to-pay .call-to-action-images > a:nth-of-type(1) {
    grid-column: 1; grid-row: 1;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: end;
    border-radius: 20px 20px 0 0;
    padding-top: 2em;
  }
  .ways-to-pay .call-to-action-images > a:nth-of-type(2) {
    grid-column: 1; grid-row: 3;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: end;
    border-radius: 20px 20px 0 0;
    padding-top: 2em;
  }
  .ways-to-pay .call-to-action-content-3 {
    grid-column: 1; grid-row: 6;
  }
  .ways-to-pay .call-to-action-content-4 {
    grid-column: 1; grid-row: 8;
  }
  .ways-to-pay .call-to-action-images > a:nth-of-type(3) {
    grid-column: 1; grid-row: 5;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: end;
    border-radius: 20px 20px 0 0;
    padding-top: 2em;
  }
  .ways-to-pay .call-to-action-images > a:nth-of-type(4) {
    grid-column: 1; grid-row: 7;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: end;
    border-radius: 20px 20px 0 0;
    padding-top: 2em;
  }
}

/* Make sure nothing breaks the box */
.ways-to-pay .call-to-action-images > * {
  max-width: 100%;
  box-sizing: border-box;
}