/* Scope: only the top-level Service Providers category overview, term #37.
   Uses existing ListHive header/footer, existing HivePress terms and URLs. */
body.term-fixer.fix246-service-categories-ready .site-content > .container { display: none !important; }
body.term-fixer.fix246-service-categories-ready .site-content { padding: 0 0 3.2rem !important; background: #fff; }

/* Service Providers hero: use the original HivePress/ListingHive term image.
   ListingHive already generates the .header-hero background-image from the
   "Service Providers" category image in WordPress. Never override it here:
   replacing the term image in WP must also replace the hero automatically.
   The header block is moved out of ListingHive's centred grid by our JS. */
body.term-fixer .site-header .header-hero {
    position: relative;
    min-height: 0 !important;
    padding: 2.55rem 0 2.8rem !important;
    overflow: hidden;
    box-sizing: border-box;
    /* The background-image belongs to ListingHive; do not set it here. */
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #104291 !important;
}
/* Straight hero edge. Keep the theme's decorative after-element hidden,
   but draw our text-contrast gradient ABOVE the WordPress category image. */
body.term-fixer .site-header .header-hero::after { display: none !important; }
body.term-fixer .site-header .header-hero::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    pointer-events: none !important;
    background: linear-gradient(90deg,rgba(5,38,85,.86) 0%,rgba(8,54,113,.60) 51%,rgba(9,43,90,.08) 100%) !important;
}
body.term-fixer .header-hero__content { position:relative; z-index: 4; text-align: left !important; }
body.term-fixer .header-hero__content .container,
body.term-fixer .fix246-service-cat-content {
    box-sizing: border-box;
    width: min(calc(100% - 2 * clamp(1rem, 4.1vw, 3rem)), 75rem) !important;
    max-width: 75rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
}
body.term-fixer .header-hero__content .row { margin: 0 !important; }
body.term-fixer .header-hero__content .row > * { width: 100% !important; max-width: 100% !important; padding: 0 !important; margin: 0 !important; flex-basis: 100% !important; }
/* The theme normally centres this taxonomy header in an offset grid.
   Give it the same left edge as the category catalogue on both viewports. */
body.term-fixer .header-hero__content .container > .hp-listing-category__header,
body.term-fixer .header-hero .hp-listing-category__header {
    display:block !important;
    box-sizing:border-box !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    text-align:left !important;
    transform:none !important;
}
body.term-fixer .header-hero .hp-listing-category__count { display:none !important; }
body.term-fixer .header-hero .hp-listing-category__name {
    max-width: 39rem;
    margin: 0 0 .32rem !important;
    font-family: Poppins,sans-serif;
    font-size: clamp(2.1rem, 4.1vw, 3.2rem) !important;
    line-height: 1.17 !important;
    font-weight: 500 !important;
    letter-spacing: -.03em;
    color: #fff !important;
    text-align: left !important;
}
body.term-fixer .header-hero .hp-listing-category__name::before {
    content: "" !important;
    display: block !important;
    position: static !important;
    width: 2.7rem !important;
    height: .27rem !important;
    margin: 0 0 .9rem !important;
    border-radius: .3rem;
    background: #ffc107;
}
body.term-fixer .header-hero .hp-listing-category__description,
body.term-fixer .header-hero .hp-listing-category__description p {
    margin: 0 0 1rem !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: clamp(1.05rem,1.7vw,1.35rem) !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;
    text-align: left !important;
}
body.term-fixer .fix246-service-cat-search {
    display:flex; align-items:center; gap:.6rem;
    width:min(100%,32rem); min-height:3.25rem; box-sizing:border-box;
    margin:0; padding:.34rem .44rem .34rem .95rem;
    background:#fff !important; border:0 !important; border-radius: 1rem !important;
    color:#122a4d !important; box-shadow:0 .2rem .7rem rgba(0,0,0,.1);
    text-align:left; cursor:pointer; font-weight:400; font-family:inherit;
}
body.term-fixer .fix246-service-cat-search__icon { display:flex;flex:0 0 auto; color:#07275c; }
body.term-fixer .fix246-service-cat-search__hint { flex:1;min-width:0; font-size:.87rem; line-height:1.3; font-weight:400; color:#6b7890; }
body.term-fixer .fix246-service-cat-search__action {
    display:flex; align-items:center; justify-content:center;
    flex:0 0 auto; min-height:2.4rem; padding:0 1.15rem;
    border-radius:.75rem; background:#ffc107; color:#0b2648;
    font-size:.82rem; font-weight:600;
}
body.term-fixer .fix246-service-cat-search:focus-visible { outline:.18rem solid #ffc107 !important; outline-offset:.22rem; }

/* The actual categories, not a second copy of a listing archive. */
body.term-fixer .fix246-service-cat-content { padding-top: .65rem !important; }
body.term-fixer .fix246-service-cat-intro {
    display: block;
    margin: .65rem 0 1.1rem;
    color:#526078; font-size: .83rem; font-weight:400;
}
body.term-fixer .fix246-service-cat-group { margin:0 0 2.05rem; }
body.term-fixer .fix246-service-cat-group__header { margin:0 0 .95rem; }
body.term-fixer .fix246-service-cat-group__header h2 {
    color:#0a2859 !important;
    font-family:Poppins,sans-serif;
    font-weight:500 !important;
    font-size:clamp(1.4rem,2.3vw,1.85rem) !important;
    line-height:1.23 !important; letter-spacing:-.024em;
    margin:0 0 .25rem !important;
}
body.term-fixer .fix246-service-cat-group__header h2::before {
    content:"";display:block;width:2.65rem;height:.24rem;border-radius:2rem;
    background:#ffc107;margin:0 0 .7rem;
}
body.term-fixer .fix246-service-cat-group__header p { margin:0 !important; color:#52637d; font-size:.91rem; line-height:1.5; }
body.term-fixer .fix246-service-cat-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.72rem .82rem; }
body.term-fixer .fix246-service-cat-card {
    display:grid;grid-template-columns:38% minmax(0,1fr) 1.1rem;
    align-items:center;column-gap:.66rem;
    min-height:5.35rem;overflow:hidden;
    padding:0 .8rem 0 0;
    border:1px solid #e9eef5;border-radius:.72rem;
    background:#fff;box-shadow:0 .25rem .95rem rgba(13,41,80,.085);
    color:#0b285a !important;text-decoration:none !important;
    transition:box-shadow .16s ease,border-color .16s ease,transform .16s ease;
}
body.term-fixer .fix246-service-cat-card:hover { box-shadow:0 .4rem 1.2rem rgba(13,41,80,.14);border-color:#cedced;transform:translateY(-.07rem); }
body.term-fixer .fix246-service-cat-card:focus-visible { outline:.19rem solid #ffc107;outline-offset:.15rem; }
body.term-fixer .fix246-service-cat-card img {
    display:block;width:100%;height:100%;min-height:5.35rem;max-height:5.6rem;
    border:0 !important;border-radius:.65rem 0 0 .65rem !important;
    object-fit:cover; object-position:center;
}
body.term-fixer .fix246-service-cat-card__name {
    display:block;min-width:0; font-family:Poppins,sans-serif;
    font-size:.88rem;font-weight:500;line-height:1.27;
    overflow-wrap:break-word;hyphens:auto;
}
body.term-fixer .fix246-service-cat-card__arrow { color:#0b285a;justify-self:end; }

/* A separate, wide 970x250-format ad slot. The entire tinted stripe is
   removed for no-fill, and revealed only after the engine confirms a creative.
   It remains measurable while pending so Trident can render its own canvas. */
body.term-fixer .fix246-service-cat-ad {
    box-sizing:border-box;
    position:absolute;left:-10000px;top:auto;
    width:min(100% - 2rem, 75rem);
    visibility:hidden;
    background:#f3f7fc;
    margin:0 0 2.15rem;
    padding:1.5rem 1.1rem 1.05rem;
    border-radius:.6rem;
}
body.term-fixer .fix246-service-cat-ad.fix246-service-cat-ad--filled {
    position:relative;left:auto;top:auto;visibility:visible;
    width:100%;
}
body.term-fixer .fix246-service-cat-ad[hidden] { display:none !important; }
body.term-fixer .fix246-service-cat-ad__inner { width:100%;max-width:60.625rem;margin:0 auto;text-align:center; }
body.term-fixer .fix246-service-cat-ad__disclosure { text-transform:uppercase;font-size:.66rem;font-weight:500;letter-spacing:.14em;color:#718096;margin:0 0 .45rem; }
body.term-fixer .fix246-service-cat-ad__creative { display:flex;align-items:center;justify-content:center;width:100%;max-width:60.625rem;margin:0 auto;min-height:0; }
body.term-fixer .fix246-service-cat-ad__creative .fix246-ad-slot { width:100%;max-width:60.625rem;margin:0 auto; }
body.term-fixer .fix246-service-cat-ad__creative .fix246-ad-creative { max-width:60.625rem;margin:0 auto; }
body.term-fixer .fix246-service-cat-ad__creative .fix246-ad-creative__label,
body.term-fixer .fix246-service-cat-ad__creative .fix246-ad-slot__trident-disclosure { display:none !important; }
body.term-fixer .fix246-service-cat-ad__cta { margin:.9rem 0 0;color:#5e6f82;font-size:.79rem;line-height:1.55; }
body.term-fixer .fix246-service-cat-ad__cta a { display:inline-block;color:#104291 !important;font-weight:500;text-decoration:underline;text-underline-offset:.16rem; }

@media (max-width: 61rem) and (min-width: 48rem) {
    body.term-fixer .fix246-service-cat-card { grid-template-columns:33% minmax(0,1fr) 1rem;column-gap:.4rem; }
    body.term-fixer .fix246-service-cat-card__name { font-size:.77rem; }
}
@media (max-width:47.99rem) {
    body.term-fixer .site-header .header-hero {
        padding:1.3rem 0 1.7rem !important;
        background-size:cover !important;
        background-position:center center !important;
    }
    body.term-fixer .header-hero__content .container,
    body.term-fixer .fix246-service-cat-content { width:calc(100% - 2rem) !important; }
    body.term-fixer .header-hero .hp-listing-category__name { font-size:clamp(1.58rem,7vw,2.15rem) !important;margin-bottom:.3rem !important; }
    body.term-fixer .header-hero .hp-listing-category__name::before { width:2.2rem !important;margin-bottom:.62rem !important; }
    body.term-fixer .header-hero .hp-listing-category__description,
    body.term-fixer .header-hero .hp-listing-category__description p { font-size:.99rem !important;margin-bottom:.75rem !important; }
    body.term-fixer .fix246-service-cat-search { min-height:2.95rem;padding:.3rem .35rem .3rem .65rem;border-radius:.8rem !important;gap:.45rem; }
    body.term-fixer .fix246-service-cat-search__hint { font-size:.77rem; }
    body.term-fixer .fix246-service-cat-search__action { min-height:2.22rem;padding:0 .8rem;font-size:.73rem;border-radius:.6rem; }
    body.term-fixer .fix246-service-cat-content { padding-top:.15rem !important; }
    body.term-fixer .fix246-service-cat-intro {font-size:.73rem;margin:.3rem 0 1.1rem;}
    body.term-fixer .fix246-service-cat-group { margin-bottom:1.5rem; }
    body.term-fixer .fix246-service-cat-group__header { margin-bottom:.78rem; }
    body.term-fixer .fix246-service-cat-group__header h2 { font-size:clamp(1.14rem,5.5vw,1.45rem) !important;line-height:1.26 !important; }
    body.term-fixer .fix246-service-cat-group__header h2::before {width:2.1rem;height:.22rem;margin-bottom:.5rem;}
    body.term-fixer .fix246-service-cat-group__header p { font-size:.78rem;line-height:1.4; }
    body.term-fixer .fix246-service-cat-grid { grid-template-columns:minmax(0,1fr);gap:.52rem; }
    body.term-fixer .fix246-service-cat-card {grid-template-columns:29% minmax(0,1fr) 1rem;gap:.6rem;min-height:4.2rem;padding-right:.72rem;border-radius:.7rem;}
    body.term-fixer .fix246-service-cat-card img {min-height:4.2rem;max-height:4.4rem;}
    body.term-fixer .fix246-service-cat-card__name {font-size:.8rem;line-height:1.23;}
    body.term-fixer .fix246-service-cat-ad { margin-bottom:1.65rem;padding:1rem .55rem .75rem;border-radius:.6rem; }
    body.term-fixer .fix246-service-cat-ad__cta {font-size:.72rem;}
}
@media (max-width:22rem) {
    body.term-fixer .fix246-service-cat-search__action { padding:0 .6rem; }
    body.term-fixer .fix246-service-cat-search__hint { font-size:.7rem; }
    body.term-fixer .fix246-service-cat-card__name {font-size:.74rem;}
}
@media (prefers-reduced-motion:reduce) {body.term-fixer .fix246-service-cat-card {transition:none;} }
