/* Flexible Content layout: steps_with_images — template-parts/flexible/sections/steps_with_images.php */
.steps-with-images {
  background-color: var(--fs-color-gray-light);
  padding: 58px 0;
  color: var(--fs-color-navy);
}

.steps-with-images__title {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 24px;
  color: var(--fs-color-navy);
  line-height: 112%;
}

.steps-with-images__text {
  font-size: 16px;
  margin-bottom: 46px;
}

.steps-with-images__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.steps-with-images__card {
  display: flex;
  flex-direction: column;
}

.steps-with-images__card:last-child .steps-with-images__card-heading svg {
  display: none;
}
.steps-with-images__card-heading svg path {
  fill: none;
}
.steps-with-images__card-heading,
.steps-with-images__card-heading>div {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  justify-content: space-between;
}
.steps-with-images__card-heading-text {
  margin-bottom: 24px;
}

.steps-with-images__card-number {
  flex: 0 0 32px;
  background-color: var(--fs-color-blue);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--fs-color-white-soft);
  font-size: 14px;
  line-height: 140%;
  width: 32px;
  height: 32px;
}

.steps-with-images__card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 140%;
}

.steps-with-images__card-text {
  font-size: 14px;
  line-height: 140%;
  width: 100%;
  max-width: 272px;
}

.steps-with-images__card-image {
  margin: 0;
  border-radius: 20px;
  width: 100%;
  max-width: 368px;
  aspect-ratio: 368/230;
}

.steps-with-images .steps-with-images__button {
  display: none;
  background-color: var(--fs-color-navy);
  padding: 16px 47px;
  font-size: 16px;
  line-height: 140%;
  width: 100%;
  max-width: fit-content;
  border: none;
}

@media (max-width: 768px) {
  .steps-with-images {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .steps-with-images__text {
    font-size: 16px;
    margin-bottom: 24px;
  }
  .steps-with-images__cards {
    display: none;
  }
  .steps-with-images .container {
    padding: 48px 24px 42px;
    background-color: rgba(var(--fs-color-blue-rgb), 0.1);
    border-radius: 20px;
  }
  .steps-with-images .steps-with-images__button {
    display: flex;
  }
}

@media (max-width: 500px) {
  .steps-with-images {
    padding: 64px 20px 32px;
  }
  .steps-with-images .steps-with-images__button {
    max-width: 100%;
  }
  .steps-with-images__text {
    max-width: 90%;
  }
}
