.main-container {
  padding: 24px 120px 48px;
  color: white;

  @media (min-width: 1440px) {
  }

  @media (min-width: 1200px) and (max-width: 1439px) {
  }

  @media (min-width: 767px) and (max-width: 1199px) {
  }

  @media (min-width: 375px) and (max-width: 766px) {
    padding: 2.4rem;
  }
}

.narrow-card-container {
  position: relative;
  width: 100%;
  border-radius: 40px;
  overflow: hidden;
  background: #ccc;

  @media (min-width: 1440px) {
    height: 490px;
    width: 385px;
  }

  @media (min-width: 1200px) and (max-width: 1439px) {
    height: 490px;
    width: 385px;
  }

  @media (min-width: 767px) and (max-width: 1199px) {
    height: 490px;
    width: 647px;
  }

  @media (min-width: 375px) and (max-width: 766px) {
    height: 490px;
    width: 100%;
  }
}

.narrow-card-bg {
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;

  picture {
    width: 100%;
    height: 100%;
    display: block;
  }

  img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
  }
}

.card-container {
  width: 100%;
  margin-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;

  @media (min-width: 1440px) {
  }

  @media (min-width: 1200px) and (max-width: 1439px) {
  }

  @media (min-width: 767px) and (max-width: 1199px) {
    flex-direction: column;
  }

  @media (max-width: 766px) {
    flex-direction: column;
  }
}

.heading-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: black;
  text-align: center;

  h2 {
    font-size: 40px;
    font-weight: 500;

    @media (min-width: 375px) and (max-width: 766px) {
      font-size: 28px;
      line-height: 32px;
    }
  }

  p {
    font-size: 16px;
    line-height: 20px;

    @media (min-width: 767px) and (max-width: 1199px) {
      max-width: 650px;
    }

    @media (min-width: 375px) and (max-width: 766px) {
      max-width: 385px;
    }
  }

  @media (min-width: 375px) and (max-width: 766px) {
    padding: 0 16px 0 16px;
  }
}

.narrow-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  justify-content: flex-start;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-height: 0;

  h3 {
    font-size: 28px;
    font-weight: 700;
    line-height: 31px;
  }

  p {
    font-size: 16px;
    line-height: 20px;
  }
}

#paragraph {
  display: -webkit-box;
  /*-webkit-line-clamp: 3;*/
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  margin-top: 8px;
  font-weight: 400;
}

.bottom-container {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-height: 0;
}

.bottom-bar {
  display: flex;
}

.l-box {
  width: 100%;
  align-items: center;
}

.r-box {
  width: 100%;
  justify-items: end;
  align-content: center;
}

.container {
  max-width: 100%;
  max-height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  @media (min-width: 375px) and (max-width: 766px) {
    width: 100%;
  }
}
