.home-container {
  max-width: 90%;
  margin: 0 auto 40px;
  padding: 20px;
  text-align: center;
}

.home-container h2 {
  font-size: 46px;
  font-weight: 700;
  color: #0f395c;
  margin-bottom: 2rem;
  margin-top: 3rem;
}

.card-container {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
}

.direct-mail-card {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  padding: 20px;
  text-align: left;
}

.card-features {
  flex: 1;
}

.card-media {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.direct-mail-card h3 {
  font-size: 32px;
  font-weight: 700;
  color: #0f395c;
  text-align: center;
  margin-bottom: 20px;
}

.direct-mail-card h4 {
  font-size: 26px;
  font-weight: 700;
  color: #0f395c;
  margin-bottom: 20px;
  line-height: 1.2;
  text-align: center;
}

.card-features h5 {
  font-size: 22px;
  font-weight: 700;
  color: #067577;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.card-features p {
  font-size: 18px;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.card-main-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.video-wrapper-top {
  width: 100%;
  text-align: center;
}

.video-description-small {
  font-weight: 700;
  font-size: 20px;
  color: #1a629e;
  max-width: 70%;
  margin: 0 auto 10px;
}

.responsive-video-top {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background-color: #000;
}

.wave-container {
  height: 740px;
}

#waveSection2 {
  background-image:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 70%,
      rgba(255, 255, 255, 1) 100%
    ),
    url("/static/images/about_us/wave-image.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 400px;
  width: 100%;
  color: white;
  position: relative;
  top: -10%;
}

.collage-description {
  text-align: center;
  margin: 0;
  padding: 16rem 13rem 2rem;
  position: relative;
  z-index: 3;
  color: #044c4e;
}

#collage-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0rem auto;
  top: -10%;
}

#top-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 180px;
}

.collage-image {
  width: 25%;
  height: auto;
}

#overlapping-image-1 {
  position: absolute;
  width: 30%;
  left: 6%;
  top: 36%;
  z-index: 1;
}
#overlapping-image-2 {
  position: absolute;
  width: 30%;
  right: 36%;
  top: 56%;
  z-index: 1;
}
#overlapping-image-3 {
  position: absolute;
  right: 13%;
  top: 83%;
  z-index: 3;
}

.card-with-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

.video-text-container {
  text-align: center;
  padding-bottom: 3rem;
}

.video-section {
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.responsive-video {
  height: 350px;
  border-radius: 10px;
  width: 470px;
}

.action-button {
  color: white;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 20px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
  background: linear-gradient(270deg, #1d9097 0%, rgba(9, 47, 49, 0.8) 100%);
  display: inline-block;
}
.action-button:hover {
  background: linear-gradient(270deg, #1d9097 0%, rgba(9, 47, 49, 1) 100%);
  transform: scale(1.05);
}

@media (max-width: 992px) {
  .direct-mail-card {
    flex-direction: column;
    text-align: center;
  }
  .direct-mail-card h3,
  .direct-mail-card h4 {
    text-align: center;
  }
}

@media (min-width: 992px) {
  .card-container {
    max-width: 100%;
  }
}
