.fade-cards {
  padding: 60px 0; /* CARD WRAPPER */
}

.fade-cards .main-title{
    color: var(--white-color);
}

.fade-cards .description-text{
    color: var(--white-color);
    margin-bottom: 30px;
}

.fade-cards .fade-card-image {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  aspect-ratio: 1/1;
}

/* DARK OVERLAY */
.fade-card-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(66, 97, 129, 0.59);
  z-index: 1;
}

.fade-card-image > * {
  position: relative;
  z-index: 2;
}

/* ========================= MAIN CARD TITLE ========================= */
/* .fade-cards .card-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  font-family: var(--figtree-font);
  font-size: var(--font-48);
  font-weight: 300;
  line-height: 1em;
  color: #fff;
  opacity: 1;
  z-index: 3;
  transition: 0.5s ease all;


  transform: scale(1);
    left: 0;
    top: 50%;
} */



.fade-cards .card-title {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  text-align: center;

  transform: translateY(-50%);
  
  font-family: var(--figtree-font);
  font-size: var(--font-48);
  font-weight: 300;
  line-height: 1em;
  color: #fff;
  opacity: 1;
  z-index: 3;
  transition: 0.5s ease all;
}


/* MOVE + SHRINK + HIDE */
.fade-cards .fade-card-image:hover .card-title {
  top: 26px;
  transform: translateX(-50%);
  /* font-size: var(--font-20); */

   transform: scale(0.5);


  opacity: 0;

}

/* ========================= OVERLAY ========================= */
.fade-cards .card-overlay {
  position: absolute;
  inset: 0;
  background: #F2F2F2;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  text-align: center;
  box-shadow: 0px 4px 4px 0px #00000040;
  transition: opacity 0.45s ease 0.25s, visibility 0.45s ease 0.25s;
}

.fade-cards .card-overlay .btn-primary{
  padding: 15px;
}

.fade-cards .fade-card-image:hover .card-overlay {
  opacity: 1;
  visibility: visible;
}

/* ========================= DESCRIPTION TITLE (MERGE TARGET) ========================= */
.fade-cards .description-title {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  font-family: var(--figtree-font);
  font-size: var(--font-20);
  font-weight: 500;
  color: var(--text-color);
  opacity: 0;
  z-index: 4;
  transition: 0.3s;
}

.fade-cards .fade-card-image:hover .description-title {
  opacity: 1;
}

/* ========================= DESCRIPTION TEXT ========================= */
.fade-cards .card-description {
  font-family: var(--secondary-font);
  font-size: var(--font-18);
  line-height: 1.4;
  color: var(--text-color);
  margin-top: 40px;
      align-self: start;

          /* display: flex;
    justify-content: end;
    flex-direction: column;
    height: 100%; */
}

.fade-cards .card-description img{
  margin-bottom: 0;
}

.fade-cards .card-description h5 {
  font-size: var(--font-24);
  font-weight: 500;
  text-align: center;
  margin-bottom: 30px;
}

.fade-cards .card-description p {
  text-align: left;
}




@media screen and (max-width: 1440px){

  .fade-cards .card-overlay{
    padding: 20px;
  }

  .fade-cards .description-title{
      top: 20px;
  }
  .fade-cards .card-description{
    margin-top: 35px;
  }
}

@media screen and (max-width: 1399px){
  .card-row{
    max-width: 850px;
  }
}

@media screen and (max-width: 991px){
    .card-row {
        max-width: 750px;
    }
}

@media screen and (max-width: 767px){
    .card-row {
        max-width: 500px;
    }
}

@media screen and (max-width: 575px){
    .card-row {
        max-width: 400px;
    }
}