/* TradesFolks 18.4.104
   Featured cards: force the product-name band to match Trending cards.
   Fixes title sitting on the image/footer divider. Grid remains unchanged. */

.tf-homepage .marketplace-products .tf-featured-opportunity-card{
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}

/* Important: remove old flex/absolute title behavior from the Featured card */
.tf-homepage .marketplace-products .tf-featured-opportunity-body{
  position:relative!important;
  flex:none!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:48px!important;
  min-height:48px!important;
  max-height:48px!important;
  margin:0!important;
  padding:6px 10px 7px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}

.tf-homepage .marketplace-products .tf-featured-opportunity-body h3,
.tf-homepage .marketplace-products .tf-featured-opportunity-body .tf-featured-opportunity-title{
  position:relative!important;
  inset:auto!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  transform:none!important;
  translate:none!important;
  flex:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:18px!important;
  min-height:18px!important;
  max-height:18px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  font-size:10px!important;
  font-weight:800!important;
  line-height:18px!important;
  text-align:center!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}

/* same small white underline used by Trending */
.tf-homepage .marketplace-products .tf-featured-opportunity-body:after{
  content:""!important;
  position:relative!important;
  inset:auto!important;
  flex:none!important;
  display:block!important;
  width:22px!important;
  height:3px!important;
  margin:5px auto 0!important;
  border-radius:999px!important;
  background:#fff!important;
  transform:none!important;
}

/* Prevent title from being pulled upward by any older card rules */
.tf-homepage .marketplace-products .tf-featured-opportunity-media + .tf-featured-opportunity-body{
  margin-top:0!important;
}

@media(max-width:699px){
  .tf-homepage .marketplace-products .tf-featured-opportunity-body{
    height:46px!important;
    min-height:46px!important;
    max-height:46px!important;
    padding:5px 7px 6px!important;
  }

  .tf-homepage .marketplace-products .tf-featured-opportunity-body h3,
  .tf-homepage .marketplace-products .tf-featured-opportunity-body .tf-featured-opportunity-title{
    height:17px!important;
    min-height:17px!important;
    max-height:17px!important;
    font-size:9px!important;
    line-height:17px!important;
  }

  .tf-homepage .marketplace-products .tf-featured-opportunity-body:after{
    width:20px!important;
    height:3px!important;
    margin-top:4px!important;
  }
}
