/* Compact, accessible category cards. Browse Categories (page 200) only. */
body.page-id-200 #directorist .directorist-categories > .directorist-row { row-gap:16px!important; }
body.page-id-200 #directorist .directorist-categories__single {
  position:relative; min-height:170px; border-radius:13px!important;
  box-shadow:0 2px 12px rgba(11,32,59,.045)!important;
}
body.page-id-200 #directorist .directorist-categories__single figure { display:none!important; }
body.page-id-200 #directorist .directorist-categories__single .cat-box {
  position:relative; padding:22px 22px 18px!important;
}
body.page-id-200 #directorist .directorist-categories__single .fab-category-symbol {
  display:flex; align-items:center; justify-content:center;
  width:44px; height:44px; margin:0 0 16px;
  border-radius:11px; color:#0b203b; background:#eef2f7;
  transition:background .2s ease,color .2s ease;
}
body.page-id-200 #directorist .directorist-categories__single .fab-category-symbol svg { width:25px; height:25px; }
body.page-id-200 #directorist .directorist-categories__single .cat-box__top { margin:0 0 12px!important; }
body.page-id-200 #directorist .directorist-categories__single .cat-name {
  font-size:17px!important; line-height:1.35!important; font-weight:750!important;
  letter-spacing:-.015em!important; padding-right:8px;
}
body.page-id-200 #directorist .directorist-categories__single .cat-count { font-size:13px!important; font-weight:500!important; color:#66758a!important; }
body.page-id-200 #directorist .directorist-categories__single .cat-box__bottom::after {
  width:28px; height:28px; font-size:17px; background:#f6f8fb; color:#b71e37;
}
body.page-id-200 #directorist .directorist-categories__single:hover,
body.page-id-200 #directorist .directorist-categories__single:focus-visible {
  transform:translateY(-2px); border-color:#aebed0!important;
  box-shadow:0 10px 24px rgba(11,32,59,.095)!important;
}
body.page-id-200 #directorist .directorist-categories__single:hover .fab-category-symbol,
body.page-id-200 #directorist .directorist-categories__single:focus-visible .fab-category-symbol { background:#0b203b; color:#fff; }
body.page-id-200 #directorist .directorist-categories__single.fab-category-empty .cat-count { color:#8b97a8!important; }
@media(min-width:992px) {
  body.page-id-200 #directorist .directorist-categories > .directorist-row > [class*="directorist-col-"] {
    flex:0 0 25%!important; max-width:25%!important;
  }
}
@media(min-width:768px) and (max-width:991px) {
  body.page-id-200 #directorist .directorist-categories > .directorist-row > [class*="directorist-col-"] {
    flex:0 0 33.333333%!important; max-width:33.333333%!important;
  }
}
@media(max-width:767px) {
  body.page-id-200 #directorist .directorist-categories > .directorist-row { row-gap:12px!important; }
  body.page-id-200 #directorist .directorist-categories > .directorist-row > [class*="directorist-col-"] {
    flex:0 0 50%!important; max-width:50%!important;
  }
  body.page-id-200 #directorist .directorist-categories__single { min-height:160px; }
  body.page-id-200 #directorist .directorist-categories__single .cat-box { padding:16px 14px 14px!important; }
  body.page-id-200 #directorist .directorist-categories__single .fab-category-symbol { width:38px; height:38px; margin-bottom:13px; }
  body.page-id-200 #directorist .directorist-categories__single .fab-category-symbol svg { width:22px; height:22px; }
  body.page-id-200 #directorist .directorist-categories__single .cat-name { font-size:15px!important; }
  body.page-id-200 #directorist .directorist-categories__single .cat-count { font-size:12px!important; }
}
@media(max-width:380px) {
  body.page-id-200 #directorist .directorist-categories > .directorist-row > [class*="directorist-col-"] { flex:0 0 100%!important; max-width:100%!important; }
  body.page-id-200 #directorist .directorist-categories__single { min-height:135px; }
}

/* v2: enforce a genuinely uniform grid, including multi-line category names. */
body.page-id-200 #directorist .directorist-categories > .directorist-row {
  align-items:stretch!important;
  row-gap:16px!important;
}
body.page-id-200 #directorist .directorist-categories > .directorist-row > [class*="directorist-col-"] {
  align-self:stretch!important;
  margin-bottom:0!important;
}
body.page-id-200 #directorist .directorist-categories__single {
  height:196px!important;
  min-height:196px!important;
  max-height:196px!important;
}
body.page-id-200 #directorist .directorist-categories__single .cat-box {
  box-sizing:border-box!important;
  height:100%!important;
  width:100%!important;
  flex:1 1 auto!important;
  padding:20px 20px 17px!important;
  align-items:center!important;
  text-align:center!important;
}
body.page-id-200 #directorist .directorist-categories__single .fab-category-symbol {
  flex:0 0 44px!important;
  margin:0 auto 12px!important;
}
body.page-id-200 #directorist .directorist-categories__single .cat-box__top {
  width:100%!important;
  margin:0!important;
  min-height:50px!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:center!important;
}
body.page-id-200 #directorist .directorist-categories__single .cat-name {
  width:100%!important;
  padding:0!important;
  margin:0!important;
  text-align:center!important;
  font-size:16px!important;
  line-height:1.35!important;
  overflow-wrap:break-word!important;
}
body.page-id-200 #directorist .directorist-categories__single .cat-box__bottom {
  width:100%!important;
  margin-top:auto!important;
  padding-top:9px!important;
  justify-content:space-between!important;
}
@media(max-width:767px) {
  body.page-id-200 #directorist .directorist-categories__single {
    height:184px!important;
    min-height:184px!important;
    max-height:184px!important;
  }
  body.page-id-200 #directorist .directorist-categories__single .cat-box { padding:16px 12px 13px!important; }
  body.page-id-200 #directorist .directorist-categories__single .fab-category-symbol { flex-basis:38px!important; margin-bottom:10px!important; }
  body.page-id-200 #directorist .directorist-categories__single .cat-name { font-size:14px!important; }
  body.page-id-200 #directorist .directorist-categories__single .cat-box__top { min-height:56px!important; }
}
