/* ===========================================================================
   Blog hub (page-id 76)
   Hero uses the same service-main-hero-bg.webp as the other hub pages,
   flush-start treatment. Card grid content comes from src/blogs.json via
   the {{BLOG_CARDS}} token, generated by build.py's blog_cards().
   =========================================================================== */
body.sts-page-76 .site-content {
    padding-top: 0;
    padding-bottom: 0;
}

.sts-76 .sts-page-header .entry-thumbnail img {
    object-position: center center;
}

.sts-76 .sts-page-header .overlay {
    background-image: linear-gradient(0deg, #000000, #00000000);
}

/* ------------------------------------------------------------- filter ---- */
.sts-76 .sts-element.sts-element-bl-filter {
    --display: block;
    --padding-top: 140px;
    --padding-bottom: 32px;
}

.sts-blog-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid #ffffff14;
}

.sts-blog-filter__search {
    position: relative;
    flex: 1 1 260px;
    max-width: 360px;
}

.sts-blog-filter__search .states-side-svg-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff80;
    pointer-events: none;
}

.sts-blog-filter__search input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid #ffffff1f;
    border-radius: 999px;
    background: #ffffff08;
    color: #fff;
    font-size: 14.5px;
    outline: none;
    transition: border-color .2s ease, background-color .2s ease;
}

.sts-blog-filter__search input::placeholder {
    color: #ffffff66;
}

.sts-blog-filter__search input:focus {
    border-color: var(--color-primary, #f25b09);
    background: #ffffff0f;
}

.sts-blog-filter__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sts-blog-filter__tab {
    padding: 13px 24px;
    border: 1px solid #ffffff1f;
    border-radius: 999px;
    background: transparent;
    color: var(--e-global-color-text, #b8b8b8);
    font-size: 15px;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.sts-blog-filter__tab:hover {
    border-color: #ffffff4d;
    color: #fff;
}

.sts-blog-filter__tab.is-active {
    background: var(--color-primary, #f25b09);
    border-color: var(--color-primary, #f25b09);
    color: #0a0a0a;
    font-weight: 600;
}

/* --------------------------------------------------------------- grid ---- */
.sts-76 .sts-element.sts-element-bl-grid {
    --display: block;
    --padding-top: 30px;
    --padding-bottom: 100px;
}

.sts-blog-card[hidden] { display: none; }

.sts-blog-grid__empty {
    text-align: center;
    color: var(--e-global-color-text, #b8b8b8);
    font-size: 16px;
    padding: 60px 0;
}

.sts-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.sts-blog-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid #ffffff14;
    background: #ffffff08;
    text-decoration: none;
    transition: border-color .25s ease, background-color .25s ease;
}

.sts-blog-card:hover {
    border-color: #ffffff33;
    background: #ffffff0f;
}

.sts-blog-card__img {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
}

.sts-blog-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sts-blog-card__category {
    color: var(--color-primary, #f25b09);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sts-blog-card__title {
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: .5px;
    color: #fff;
}

.sts-blog-card__excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--e-global-color-text, #b8b8b8);
    flex-grow: 1;
}

.sts-blog-card__meta {
    font-size: 13px;
    color: #ffffff80;
}

.sts-blog-card__btn {
    align-self: flex-start;
    margin-top: 8px;
    pointer-events: none;
}

/* ---------------------------------------------------------- closing cta -- */
.sts-76 .sts-element.sts-element-bl-cta {
    --display: flex;
    --flex-direction: column;
    --padding-top: 60px;
    --padding-bottom: 140px;
}

/* same size as the .sts-closing-cta component other hub pages use
   (sts-closing-cta.css) - this page builds the same heading/copy/button
   pattern with its own bl-cta-* naming instead, so the size has to be
   matched by hand here */
.sts-76 .sts-element.sts-element-bl-cta-h .states-side-heading {
    font-size: clamp(38px, 5.6vw, 92px);
    line-height: .98em;
    text-align: center;
    white-space: normal;
}

.sts-76 .sts-element.sts-element-bl-cta-b .states-side-heading {
    text-align: center;
    white-space: normal;
    max-width: 760px;
    margin-inline: auto;
}

/* the button widget isn't a .states-side-heading, so the rule above never
   touched it - it was rendering flush left under a centred heading/copy */
.sts-76 .sts-element.sts-element-bl-cta-btn {
    text-align: center;
}

@media (max-width: 1024px) {
    .sts-76 .sts-element.sts-element-bl-filter { --padding-top: 96px; }
    .sts-76 .sts-element.sts-element-bl-grid { --padding-bottom: 70px; }
    .sts-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .sts-76 .sts-element.sts-element-bl-filter { --padding-top: 70px; --padding-bottom: 24px; }
    .sts-blog-filter { flex-direction: column; align-items: stretch; }
    .sts-blog-filter__search { max-width: 100%; }
    .sts-76 .sts-element.sts-element-bl-grid { --padding-bottom: 50px; }
    .sts-blog-grid { grid-template-columns: 1fr; gap: 18px; }
    .sts-76 .sts-element.sts-element-bl-cta { --padding-bottom: 80px; }
}
