/* TradesFolks 18.4.102 — Featured Product Name Alignment Fix
   Keeps the same grid/card layout. Fixes product names riding on the yellow band edge. */

.tf-homepage .marketplace-products .tf-featured-opportunity-body{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  flex-basis:44px!important;
  min-height:44px!important;
  height:44px!important;
  max-height:44px!important;
  margin:0!important;
  padding:6px 8px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}

.tf-homepage .marketplace-products .tf-featured-opportunity-body h3{
  position:static!important;
  inset:auto!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  min-height:14px!important;
  max-height:16px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  transform:none!important;
  float:none!important;
  color:#0b2343!important;
  font-size:8.7px!important;
  font-weight:900!important;
  line-height:1.15!important;
  text-align:center!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
  vertical-align:middle!important;
}

.tf-homepage .marketplace-products .tf-featured-opportunity-body:after{
  position:static!important;
  display:block!important;
  width:20px!important;
  height:2px!important;
  margin:4px auto 0!important;
  border-radius:999px!important;
  transform:none!important;
}

/* 1280–1535 */
@media(min-width:1280px) and (max-width:1535px){
  .tf-homepage .marketplace-products .tf-featured-opportunity-body{
    flex-basis:42px!important;
    min-height:42px!important;
    height:42px!important;
    max-height:42px!important;
    padding:5px 7px!important;
  }
  .tf-homepage .marketplace-products .tf-featured-opportunity-body h3{
    font-size:8.2px!important;
  }
}

/* 1024–1279 */
@media(min-width:1024px) and (max-width:1279px){
  .tf-homepage .marketplace-products .tf-featured-opportunity-body{
    flex-basis:40px!important;
    min-height:40px!important;
    height:40px!important;
    max-height:40px!important;
  }
  .tf-homepage .marketplace-products .tf-featured-opportunity-body h3{
    font-size:7.8px!important;
  }
}

/* Tablet */
@media(min-width:700px) and (max-width:1023px){
  .tf-homepage .marketplace-products .tf-featured-opportunity-body{
    flex-basis:38px!important;
    min-height:38px!important;
    height:38px!important;
    max-height:38px!important;
  }
}

/* Mobile: preserve existing 2-column layout */
@media(max-width:699px){
  .tf-homepage .marketplace-products .tf-featured-opportunity-body{
    flex-basis:36px!important;
    min-height:36px!important;
    height:36px!important;
    max-height:36px!important;
    padding:4px 5px!important;
  }
  .tf-homepage .marketplace-products .tf-featured-opportunity-body h3{
    min-height:12px!important;
    max-height:13px!important;
    font-size:6.9px!important;
    line-height:1.12!important;
  }
  .tf-homepage .marketplace-products .tf-featured-opportunity-body:after{
    width:17px!important;
    height:2px!important;
    margin-top:3px!important;
  }
}
