.tf-collection {
  padding-bottom: 160px;
}

@media only screen and (max-width: 530px) {
  .tf-collection-inner .top-option {
    flex-direction: column;
    justify-content: left;
    align-items: flex-start;
  }
  .tf-collection-inner .filter-content {
    padding: 12px;
  }
  .tf-collection-inner .top-option .heading {
    margin-bottom: 10px;
  }
  .tf-collection-inner .filter-content li a {
    padding: 7px 6px;
    margin-right: 5px;
  }
  .tf-collection-inner .filter-content li a i {
    margin-left: 5px;
  }
}

/* Created by Tivotal */

/* Google Fonts(Poppins) */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #151837;
} */

.tbm_wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tbm_wrapper .image {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: 15px;
  /* background: url(img.jpg); */
  background-size: contain;
}

.tbm_wrapper .image::before {
  position: absolute;
  content: "";
  width: 20px;
  height: 20px;
  background: transparent;
  border-radius: 50%;
  bottom: 0;
  right: 50%;
  box-shadow: 10px 10px 0 #151837;
}

.tbm_wrapper .image::after {
  position: absolute;
  content: "";
  width: 20px;
  height: 20px;
  background: transparent;
  border-radius: 50%;
  right: 0;
  bottom: 70px;
  box-shadow: 10px 10px 0 #151837;
}

.tbm_wrapper .content {
  position: relative;
  width: 100%;
  height: 150px;
  background: #fff;
  border-radius: 15px;
  border-top-right-radius: 0px;
}

.tbm_wrapper .content .name {
  position: absolute;
  height: 80px;
  width: 50%;
  background: #fff;
  top: -80px;
  right: 0;
  border-top: 10px solid #151837;
  border-left: 10px solid #151837;
  border-top-left-radius: 25px;
  cursor: pointer;
  /*  display: flex;
   justify-content: center;
   align-items: center; */
}


.tbm_wrapper .content .name::before {
  position: absolute;
  content: "";
  width: 25px;
  height: 25px;
  background: transparent;
  border-radius: 50%;
  right: 0;
  box-shadow: 10px -10px 0 #151837;
}

.tbm_wrapper .content .name::after {
  position: absolute;
  content: "";
  width: 25px;
  height: 25px;
  background: transparent;
  border-radius: 50%;
  bottom: 0;
  left: -25px;
  box-shadow: 10px 10px 0 #fff;
}

.tbm_wrapper .content .name span {
  background: #151837;
  color: #fff;
  padding: 10px 5px;
  margin: 15px;
  display: block;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
}

.tbm_wrapper .content .text {
  /* height: 100%; */
  color: #151837;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 15px;
  gap: 5px;
}

.tbm_wrapper .content .text .heading {
  color: #333 !important;
  font-size: 20px !important;
}
.tbm_wrapper .content .text p {
  color: #333 !important;
  font-size: 14px;
  max-lines: 3;
  /* overflow: hidden; */
  text-overflow: ellipsis;
}


@media (max-width: 900px) {
  .tbm_wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .tbm_wrapper .image {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 15px;
    /* background: url(img.jpg); */
    background-size: contain;
  }

  .tbm_wrapper .content .name span {
    background: #151837;
    color: #fff;
    /* padding: 10px 5px; */
    margin: 5px;
    display: block;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
  }
  .tbm_wrapper .content .text {
    padding: 0%;
    padding-top: 5px;
  }
  .tbm_wrapper .content .text .heading {
    color: #333 !important;
    font-size: 12px !important;
    margin: 0% !important;
    padding: 0% !important;
   
  }

  .tbm_wrapper .content .text p {
    color: #333 !important;
    font-size: 10px;
    max-lines: 3;
    /* overflow: hidden; */
    text-overflow: ellipsis;
  }

  .tbm_wrapper .content .name {
    position: absolute;
    height: 80px;
    width: 50%;
    background: #fff;
    top: -79px;
    right: 0;
    border-top: 10px solid #151837;
    border-left: 10px solid #151837;
    border-top-left-radius: 25px;
    cursor: pointer;
    
    /*  display: flex;
     justify-content: center;
     align-items: center; */
  }
  
}