/* Categories widget – fixed light card with blue title */
.global-before-footer-wrap .widget_categories{
  --cat-accent:#3f51b5;
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px;
  box-shadow:0 2px 10px rgba(0,0,0,.04);
}

/* Title */
.global-before-footer-wrap .widget_categories > .widget-title{
  display:flex;align-items:center;gap:10px;justify-content:flex-start;
  margin:0 0 12px;padding-bottom:8px;line-height:1.2;
  font-weight:800;font-size:clamp(1.25rem,1.2vw + .9rem,1.6rem);
  color:var(--cat-accent) !important; /* keep blue on white card */
  position:relative;padding-left:0;border:0;
}
.global-before-footer-wrap .widget_categories > .widget-title::before{
  content:"🏷️";font-size:1.1em;line-height:1;
}
.global-before-footer-wrap .widget_categories > .widget-title::after{
  content:"";position:absolute;left:0;bottom:0;width:90px;height:4px;
  background:var(--cat-accent);border-radius:2px;transition:width .25s;opacity:.9;
}
.global-before-footer-wrap .widget_categories > .widget-title:hover::after{ width:150px; }

/* List */
.global-before-footer-wrap .widget_categories ul{ list-style:none;margin:0;padding:0; }
.global-before-footer-wrap .widget_categories li{ margin:0;padding:0; }

.global-before-footer-wrap .widget_categories li > a{
  text-decoration:none;font-weight:500;color:var(--brand);
}
.global-before-footer-wrap .widget_categories li > a:hover{
  transform:translateY(-1px);
  color:#ff0000;
  border-color:var(--cat-accent);
  background:#eef2ff;
}

/* Count chip */
.global-before-footer-wrap .widget_categories li .count{
  margin-left:auto;padding:.1rem .45rem;border-radius:999px;
  background:#eef2ff;color:#3730a3;font-weight:700;font-size:.8rem;
}

@media (max-width:540px){
  .global-before-footer-wrap .widget_categories ul{ grid-template-columns:1fr; }
}
