/* TradesFolks 18.4.105 — Explore Industries Premium Network
   Reference direction: deep blue/purple marketplace panel with compact white category tiles.
   Existing 21 category data is preserved. */

/* section canvas */
.tf-homepage .tf-home-v3-industries{
  position:relative!important;
  overflow:hidden!important;
  padding:18px 0 20px!important;
  background:
    radial-gradient(circle at 82% 18%,rgba(78,116,255,.28),transparent 28%),
    radial-gradient(circle at 18% 88%,rgba(119,92,246,.22),transparent 26%),
    linear-gradient(145deg,#18245f 0%,#252d86 46%,#4f55b8 100%)!important;
  border-top:1px solid rgba(255,255,255,.08)!important;
  border-bottom:1px solid rgba(13,30,75,.2)!important;
}

/* subtle network curves */
.tf-homepage .tf-home-v3-industries:before,
.tf-homepage .tf-home-v3-industries:after{
  content:""!important;
  position:absolute!important;
  pointer-events:none!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:50%!important;
}
.tf-homepage .tf-home-v3-industries:before{
  width:760px!important;
  height:760px!important;
  right:18%!important;
  top:-500px!important;
}
.tf-homepage .tf-home-v3-industries:after{
  width:520px!important;
  height:520px!important;
  left:-280px!important;
  bottom:-360px!important;
}

.tf-homepage .tf-home-v3-industries>.shell{
  position:relative!important;
  z-index:2!important;
  width:calc(100% - 24px)!important;
  max-width:none!important;
  margin-inline:auto!important;
  padding:0!important;
}

/* header */
.tf-homepage .tf-home-v3-industries .tf-home-v3-section-head{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:16px!important;
  margin:0 0 12px!important;
  padding:0!important;
}
.tf-homepage .tf-home-v3-industries .tf-home-v3-section-head>div{
  min-width:0!important;
}
.tf-homepage .tf-home-v3-industries .tf-home-v3-section-head>div>span{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  margin:0 0 4px!important;
  color:#9fc1ff!important;
  font-size:6.8px!important;
  font-weight:900!important;
  letter-spacing:.11em!important;
}
.tf-homepage .tf-home-v3-industries .tf-home-v3-section-head h2{
  margin:0!important;
  color:#fff!important;
  font-size:24px!important;
  font-weight:900!important;
  line-height:1.03!important;
  letter-spacing:-.04em!important;
}
.tf-homepage .tf-home-v3-industries .tf-home-v3-section-head p{
  margin:4px 0 0!important;
  color:rgba(255,255,255,.72)!important;
  font-size:7.5px!important;
  line-height:1.3!important;
}
.tf-homepage .tf-home-v3-industries .tf-home-v3-section-head>a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  flex:0 0 auto!important;
  min-height:30px!important;
  padding:0 11px!important;
  border:1px solid rgba(255,255,255,.75)!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#17326d!important;
  box-shadow:0 7px 18px rgba(5,16,58,.14)!important;
  font-size:6.7px!important;
  font-weight:900!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}

/* 21 categories => 7 x 3 desktop */
.tf-homepage .tf-home-v3-industries .tf-home-v3-category-grid{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:8px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
}

/* clean white cards */
.tf-homepage .tf-home-v3-industries .tf-home-v3-category-card{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  height:126px!important;
  min-height:126px!important;
  overflow:hidden!important;
  border:1px solid rgba(255,255,255,.2)!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 6px 18px rgba(4,15,54,.10)!important;
  color:#102342!important;
  text-decoration:none!important;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease!important;
}
.tf-homepage .tf-home-v3-industries .tf-home-v3-category-card:hover{
  transform:translateY(-2px)!important;
  border-color:#9fc1ff!important;
  box-shadow:0 12px 24px rgba(4,15,54,.17)!important;
}

/* image area */
.tf-homepage .tf-home-v3-industries .tf-home-v3-category-media{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:1 1 auto!important;
  width:100%!important;
  min-height:0!important;
  padding:7px 9px 2px!important;
  overflow:hidden!important;
  background:#fff!important;
}
.tf-homepage .tf-home-v3-industries .tf-home-v3-category-media img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}

/* title row like reference: image + centered category name, no visual clutter */
.tf-homepage .tf-home-v3-industries .tf-home-v3-category-body{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 32px!important;
  width:100%!important;
  min-height:32px!important;
  height:32px!important;
  max-height:32px!important;
  margin:0!important;
  padding:4px 7px 6px!important;
  overflow:hidden!important;
  border-top:1px solid #edf1f6!important;
  background:#fff!important;
  box-sizing:border-box!important;
}
.tf-homepage .tf-home-v3-industries .tf-home-v3-category-body>span{
  display:none!important;
}
.tf-homepage .tf-home-v3-industries .tf-home-v3-category-body>strong{
  display:block!important;
  width:100%!important;
  margin:0!important;
  overflow:hidden!important;
  color:#15243e!important;
  font-size:7.4px!important;
  font-weight:800!important;
  line-height:1.1!important;
  text-align:center!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}

/* popular subcategories strip */
.tf-homepage .tf-home-v3-industries .tf-home-v3-subcategories{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin-top:10px!important;
  min-width:0!important;
}
.tf-homepage .tf-home-v3-industries .tf-home-v3-subcategories>strong{
  flex:0 0 auto!important;
  color:#fff!important;
  font-size:6.8px!important;
  font-weight:900!important;
  white-space:nowrap!important;
}
.tf-homepage .tf-home-v3-industries .tf-home-v3-subcategories>div{
  display:flex!important;
  gap:5px!important;
  min-width:0!important;
  overflow-x:auto!important;
  scrollbar-width:none!important;
}
.tf-homepage .tf-home-v3-industries .tf-home-v3-subcategories>div::-webkit-scrollbar{
  display:none!important;
}
.tf-homepage .tf-home-v3-industries .tf-home-v3-subcategories a{
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  min-height:24px!important;
  padding:0 8px!important;
  border:1px solid rgba(255,255,255,.28)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.11)!important;
  color:#fff!important;
  font-size:6.2px!important;
  font-weight:700!important;
  text-decoration:none!important;
  backdrop-filter:blur(6px)!important;
}

/* large desktop */
@media(min-width:1536px){
  .tf-homepage .tf-home-v3-industries .tf-home-v3-category-card{
    height:132px!important;
    min-height:132px!important;
  }
}

/* laptop: 7 columns preserved, slightly tighter */
@media(min-width:1100px) and (max-width:1399px){
  .tf-homepage .tf-home-v3-industries .tf-home-v3-category-grid{
    gap:7px!important;
  }
  .tf-homepage .tf-home-v3-industries .tf-home-v3-category-card{
    height:116px!important;
    min-height:116px!important;
  }
  .tf-homepage .tf-home-v3-industries .tf-home-v3-category-body>strong{
    font-size:6.8px!important;
  }
}

/* tablet */
@media(min-width:700px) and (max-width:1099px){
  .tf-homepage .tf-home-v3-industries{
    padding:14px 0 16px!important;
  }
  .tf-homepage .tf-home-v3-industries .tf-home-v3-category-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:7px!important;
  }
  .tf-homepage .tf-home-v3-industries .tf-home-v3-category-card{
    height:120px!important;
    min-height:120px!important;
  }
}

/* mobile */
@media(max-width:699px){
  .tf-homepage .tf-home-v3-industries{
    padding:12px 0 14px!important;
  }
  .tf-homepage .tf-home-v3-industries>.shell{
    width:100%!important;
    padding:0 8px!important;
    box-sizing:border-box!important;
  }
  .tf-homepage .tf-home-v3-industries .tf-home-v3-section-head{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:end!important;
    gap:5px 7px!important;
    margin-bottom:9px!important;
  }
  .tf-homepage .tf-home-v3-industries .tf-home-v3-section-head h2{
    font-size:17px!important;
    line-height:1.05!important;
  }
  .tf-homepage .tf-home-v3-industries .tf-home-v3-section-head p{
    font-size:6.2px!important;
  }
  .tf-homepage .tf-home-v3-industries .tf-home-v3-section-head>a{
    min-height:27px!important;
    padding:0 8px!important;
    font-size:5.7px!important;
  }
  .tf-homepage .tf-home-v3-industries .tf-home-v3-category-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
  }
  .tf-homepage .tf-home-v3-industries .tf-home-v3-category-card{
    height:112px!important;
    min-height:112px!important;
    border-radius:10px!important;
  }
  .tf-homepage .tf-home-v3-industries .tf-home-v3-category-body{
    flex-basis:30px!important;
    min-height:30px!important;
    height:30px!important;
    max-height:30px!important;
  }
  .tf-homepage .tf-home-v3-industries .tf-home-v3-category-body>strong{
    font-size:6.7px!important;
  }
  .tf-homepage .tf-home-v3-industries .tf-home-v3-subcategories{
    display:block!important;
    margin-top:9px!important;
  }
  .tf-homepage .tf-home-v3-industries .tf-home-v3-subcategories>strong{
    display:block!important;
    margin-bottom:5px!important;
  }
}
