.back-customtext-3 {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1400px;
  min-height: 22em;
  margin: 0;
  margin-top: 1em;
  color: #1c2947;
}

.back-customtext-3 .pad-text-3 {
  display: grid;
  grid-template-rows: auto auto;
  row-gap: 1em;
  
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  padding: 3em 0;
  flex: 0 0 30%;
}

.cards-container-3 {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 15px;
  align-items: center;
}

.card-customtext-3 {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 180px;
  height: 240px;
  padding-bottom: 1rem;
  color: #fff;
  text-align: center;
  font-size: 1.3rem;
  line-height: 1.4rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  background-size: cover;
  background-position: center;
}

.card-customtext-3 .card-caption {
  background: rgba(0, 0, 0, 0.5);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.2rem;
  z-index: 2;
}

/* .card-customtext-3 a {
  text-decoration: none;
  width: 180px;
  margin-top: 130px;
  color: white;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 2;
} */

.card-customtext-3::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0);
  transition: background 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.card-customtext-3:hover::before {
  background: rgba(255,255,255,0.4);
}

.line-back {
  width: 100%;
  height: 1px;
  background-color: #1c2947;
  margin-top: 1em;
}

.back-customtext-3 p {
  font-weight: 400;
  line-height: 1.5;
}

.back-customtext-3 p.home-intro-text {
  font-weight: 400;
  font-size: 2rem;
  line-height: 2.4rem;
  color: #1b2a5a;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.back-customtext-3 span {
  font-weight: 700;
}

@media (max-width: 1080px) {
  .back-customtext-3 {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    height: auto;
  }

  .back-customtext-3 .pad-text-3 {
    flex: 0 0 100%;
  }

  .back-customtext-3 p.home-intro-text {
    font-size: 1.5rem;
    text-align: center;
  }

  .cards-container-3 {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .back-customtext-3 {
    display: grid;
    justify-content: center;
    height: auto;
    padding: 1em;
    flex-direction: column;
    align-items: flex-start;
  }

  .back-customtext-3 .pad-text-3 {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .back-customtext-3 .pad-text-3 h2 {
    text-align: center;
  }

  .cards-container-3 {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
}
