section#cards {
  position: relative;
}

section#cards .background-image {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  position: absolute;
}
.background-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.background-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#cards .header-section,
#cards .container {
  position: relative;
}

.top-headers {
  position: absolute;
  top: -50px;
}

#cards .header-section {
  width: fit-content;
  padding-left: 150px;
  padding-right: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  border-radius: 0px 50px 50px 0px;
  box-shadow: var(--box-shadow);
  margin-bottom: 25px;
}

.button-card {
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
}

a.card-link:hover .button-card {
  transform: scale(1.05);
  height: 350px;
  overflow: hidden;
  transition: 600ms ease;
}
a.card-link {
  color: var(--white);
  text-decoration: none;
  text-align: center;
}

.title-section h3 {
  font-family: "Cachet";
  font-size: 32px;
  text-transform: uppercase;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.title-section {
  background: var(--gradient-medium-green);
  max-width: 80%;
  margin: auto;
  justify-content: center;
  align-items: center;
  height: 65px;
  margin: -35px auto;
  z-index: 2;
  position: relative;
  border-radius: 7px;
  box-shadow: var(--box-shadow);
}

.container.button-cards {
  padding: 140px 0px 100px;
}

img.hover-card {
  border-radius: 0px;
  height: 500px;
  object-fit: cover;
  object-position: center;
  /* border: 3px solid var(--light-green); */
}
.hover-card {
  position: relative;
}
.hover-container {
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  box-shadow: var(--box-shadow);
  transition: 500ms ease-in;
  border: 5px solid var(--light-green);
}

.hover-card-text {
  background: #006b6bd9;
  color: #fff;
  text-align: center;
  overflow: hidden;
  position: absolute;
  padding: 50px;
  left: 0;
  right: 0;
  bottom: -100px;
  height: 0px;
  transition: 500ms ease-in;
}

.hover-card:hover .hover-card-text {
  height: 500px;
  padding: 50px;
  bottom: 0px;
}

.hover-card-text p {
  font-size: 18px;
  line-height: 28px;
}

.hover-card-text h3 {
  font-size: 28px;
  line-height: 32px;
}

.hover-card .title {
  height: 100px;
  overflow: hidden;
  color: #fff;
  background: var(--gradient-dark-green);
  /* width: 80%; */
  text-align: center;
  position: absolute;
  z-index: 1;
  bottom: -50px;
  left: 10%;
  right: 10%;
  border-radius: 7px;
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.hover-card .outline-btn {
  display: none;
}

.hover-card:hover .outline-btn {
  display: block;
}

h3.hover-card-title {
  font-size: 22px;
  line-height: 1.2;
}
.hover-card:hover h3.hover-card-title {
  display: none;
}

.outline-btn {
  font-size: 25px;
  font-family: "Cachet";
  text-transform: uppercase;
  width: 95%;
  border: 3px solid var(--white);
  padding: 9px;
  border-radius: 5px;
  position: relative;
  line-height: 1;
}

.outline-btn svg {
  height: 25px;
}
.outline-icon {
  position: absolute;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  right: 20px;
  top: 0;
}

.cards-container {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 100px;
}

#cards .header-section h2 {
  display: inline;
  justify-content: center;
  align-items: center;
}

#cards .header-section h2 span {
  /* margin-right: 5px; */
  display: inline;
  justify-content: center;
  font-size: 42px;
  /*align: ;*/
}

#cards .buttons-container {
  padding: 100px;
  padding-top: 100px;
  padding-bottom: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}

@media screen and (max-width: 1200px) {
  .featured-page {
    margin-bottom: 50px;
  }

  .flex-cards .card {
    margin-bottom: 100px;
  }

  .hover-card-col {
    margin-bottom: 100px;
  }
}

@media screen and (max-width: 992px) {
  .top-headers {
    position: relative;
    top: -100px;
  }

  #cards .header-section {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    /* display: flex; */
    justify-content: center;
    align-items: center;
    height: fit-content;
    border-radius: 0px;
    box-shadow: var(--box-shadow);
    margin-bottom: 0;
    text-align: center;
  }

  .container.button-cards {
    padding: 0px 0px 50px;
  }
  .cards-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 0px;
  }

  .button-card {
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    max-width: 90%;
    display: block;
    margin: auto;
  }

  .title-section {
    background: var(--gradient-medium-green);
    max-width: 80%;
    margin: auto;
    justify-content: center;
    align-items: center;
    height: 65px;
    margin: -35px auto;
    z-index: 2;
    position: relative;
    border-radius: 7px;
    box-shadow: var(--box-shadow);
  }
}
