:root {
  --p: #7456e8;
  --pd: #5b40c9;
  --ps: #f1edff;
  --bg: #f8f8fb;
  --text: #22232a;
  --muted: #747580;
  --border: #e8e7ee;
  --green: #2d9867;
  --shadow: 0 18px 55px rgba(36, 31, 65, 0.09);
}

.explore-types{
  padding:56px 0;
  background:var(--bg);
}

.explore-types-head{
  text-align:center;
  max-width:520px;
  margin:0 auto 36px;
}
.explore-types-eyebrow{
  display:inline-block;
  font-size:13px;
  font-weight:700;
  color:var(--muted);
  letter-spacing:.4px;
}
.explore-types-head h2{
  font-size:26px;
  font-weight:800;
  color:var(--text);
  margin:2px 0 8px;
}
.explore-types-head h2::before{
  content:"";
}
.explore-types-head p{
  font-size:13px;
  color:var(--muted);
  margin:0;
}

/* ---- Grid: column COUNT changes responsively, card size stays fixed ---- */
.explore-types-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));
  gap:18px;
  max-width:980px;
  margin:0 auto;
}

/* ---- Individual card ---- */
.type-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:4px;
  padding:24px 12px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  text-decoration:none;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.type-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow);
  border-color:var(--p);
}

/* ---- Icon badge: FIXED size, never scales with viewport ----
   Holds either a custom <img> icon (own colours, kept as-is) or,
   for the 2 categories without a custom icon yet (Industries,
   Rent Query), a Bootstrap <i> icon styled via .type-icon-fallback. */
.type-icon{
  width:64px;
  height:64px;
  flex:0 0 64px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#f4f4f8;
  margin-bottom:10px;
  transition:transform .18s ease, box-shadow .18s ease;
}
.type-icon img{
  width:30px;
  height:30px;
  object-fit:contain;
}
/* Fallback Bootstrap-icon badges (Industries / Rent Query) keep the
   theme-purple treatment since they have no custom icon colour of
   their own. */
.type-icon.type-icon-fallback{
  background:var(--ps);
  color:var(--p);
  font-size:26px;
}
.type-card:hover .type-icon{
  transform:scale(1.06);
  box-shadow:0 6px 16px rgba(36,31,65,.10);
}
.type-card:hover .type-icon.type-icon-fallback{
  background:var(--p);
  color:#fff;
}

.type-card strong{
  font-size:14px;
  font-weight:700;
  color:var(--text);
}
.type-count{
  font-size:11px;
  color:var(--muted);
}

/* ---- Responsive tweaks (column count only, not card/icon size) ---- */
@media (max-width:991px){
  .explore-types-grid{ grid-template-columns:repeat(auto-fit, minmax(120px, 1fr)); gap:14px; }
}
@media (max-width:576px){
  .explore-types-grid{ grid-template-columns:repeat(3, 1fr); gap:12px; }
  .type-card{ padding:18px 8px; }
  .type-icon{ width:52px; height:52px; flex-basis:52px; }
  .type-icon img{ width:24px; height:24px; }
  .type-icon.type-icon-fallback{ font-size:22px; }
}
@media (max-width:400px){
  .explore-types-grid{ grid-template-columns:repeat(2, 1fr); }
}
