.only-content{
    width: 80%;
    text-align: center;
    margin: 21px auto;
}

.only-content i{
    font-weight: 500;
    display: block;
    margin-bottom: 20px;
    margin-top: 35px;
}
.about {
  margin: auto;
}

.flex {
  width: 90%;
  /* max-width: 100rem; */
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 40px;
  justify-content: space-between;
  align-items: center;
}

.heading {
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.2;
  color: var(--primary-color);
  /* border-bottom: 2px solid #948979; */
  padding-bottom: 10px;
  margin-bottom: 21px;
  /* font-family: var(--secondary-font); */
  text-align: center;
  color: var(--black);
  position: relative;
  padding-bottom: 10px;
}

.heading::before {
  content: "";
  width: 145px;
  height: 5px;
  border-radius: 6px;
  background: var(--btn-bg-dark);
  bottom: 0;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  bottom: -10px;
  background: #948979;
}


.flex > div {
  flex: 1;
}

.image {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
}

img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.only-image {
  padding: 0px;
  height: 497px;
  margin-bottom: 47px;
}

.only-image img {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  /* align-items: center; */
  /* text-align: center; */
  margin: auto;
}

.card .title {
  text-align: center;
  margin-bottom: 19px;
  font-size: 26px;
}

.cards {
  background: #f5fbff;
  padding: 20px 30px;
  background-color: #fff;
  padding: 40px 20px;
  margin: 60px auto -120px;
  /* position: relative; */
  margin-bottom:0px;


}

.cards.border{
  border-radius: 15px;
  box-shadow: rgba(17, 17, 26, .1) 2px 1px 16px 3px, rgba(17, 17, 26, .05) 0 8px 32px;
  width: 94%;
  margin: auto;
  margin-bottom: 50px;
}

.cards .flex {
  /* margin: 0px; */
  padding: 26px 40px;
  align-items: center;
  justify-content: center;
  /* margin: 0px; */
  margin-top: 55px;
  width: 100%;
  gap: 30px;
}

.card {
  border: 1px solid #cdc8c8;
  padding: 10px;
  border-radius: 10px;
  padding: 1rem;
  transition: 0.3s linear;
  height: 315px;
  min-height:350px;
  padding: 20px;
  /* display: flex; */
  background-color: var(--bg-green-light);
  border-radius: 25px 0;
  /* border: 1px solid var(--botton_color); */
  /* height: 100%; */
  transition: .3s ease-in-out;
}

.card p {
  font-size: 15px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 11px 3px;
}

.card:nth-child(even){
  background: #82b6d72e;
}

.card:hover:nth-child(even) {

  border-bottom: 3px solid var(--fourth-color);
}

.card:nth-child(odd) {
  background: var(--secondry-light);
}

.card:hover:nth-child(odd) {
  border-bottom: 3px solid #c8b69b;
}




/* Media Queries */
@media (max-width:1000px) {
  .card {
    height: 500px;
  }
  /* .flex {
    flex-wrap: wrap;
  }

  .flex > div {
    flex: 0 0 100%;
  } */
}

@media (max-width: 930px) {
  .cards .flex {
    flex-wrap: wrap;
  }

  .card {
        /* height: 268px; */
        min-width: 300px;
        display: block;
        min-height: 294px;
        height: auto;
  }
}

@media (max-width: 800px) {
  .flex {
    padding: 3rem 1rem;
    gap: 3rem;
  }

  .flex {
    width: 98%;
    padding: 30px 30px;
    gap: 35px;
  }
}

@media (max-width: 700px) {
  .flex {
    flex-wrap: wrap;
  }

  .flex > div {
    flex: 0 0 100%;
  }

  .image {
    order: 2; /* Ensure .image comes after the content */
    height: 300px;
  }

  .content {
    order: 1; /* Ensure content comes before .image */
  }

  .card {
    height: auto;
    min-height:fit-content;
  }
}

@media (max-width: 500px) {
  .only-image {
    height: 290px;
  }

  .image {
    height: auto;
  }
}
