:root {
    --bs-blue: #0d3f87;
    --bs-blue-deep: #082f69;
    --bs-blue-soft: #eaf1f8;
    --bs-green: #08a56f;
    --bs-green-dark: #07855c;
    --bs-text: #16365f;
    --bs-muted: #687f9b;
    --bs-soft: #f5f8fb;
    --bs-border: rgba(13,63,135,.12);
    --bs-white: #fff;
    --bs-shadow-soft: 0 8px 28px rgba(10,45,96,.06);
    --bs-font: var(--e-global-typography-text-font-family, inherit);
    --bs-font-heading: var(--e-global-typography-primary-font-family, var(--bs-font));
}

body.biosollo-blog-page {
    overflow-x: clip;
}

body.biosollo-blog-page .entry-title,
body.biosollo-blog-page .page-header,
body.biosollo-blog-page .elementor-widget-theme-post-title {
    display: none !important;
}

/*
 * O shortcode normalmente vive dentro de um container boxed do Elementor.
 * O bloco abaixo rompe esse limite e faz o blog ocupar a largura real da janela.
 */
body.biosollo-blog-page .biosollo-blog {
    position: relative;
    left: 50%;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

.biosollo-blog,
.biosollo-mini,
.biosollo-related {
    font-family: var(--bs-font);
    color: var(--bs-text);
}

.biosollo-blog *,
.biosollo-mini *,
.biosollo-related * {
    box-sizing: border-box;
}

.bs-container {
    width: min(1200px, calc(100% - 56px));
    margin-inline: auto;
}

/* HERO — full width, conteúdo alinhado ao site */
.bs-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
    background:
        radial-gradient(circle at 86% 26%, rgba(8,165,111,.20), transparent 30%),
        linear-gradient(118deg, #082f69 0%, #0d3f87 66%, #0a5578 100%);
    color: var(--bs-white);
}

.bs-hero::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -230px;
    width: 390px;
    height: 390px;
    border: 68px solid rgba(8,165,111,.08);
    border-radius: 50%;
    pointer-events: none;
}

.bs-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(420px, 1.14fr);
    gap: 46px;
    align-items: center;
    min-height: 350px;
    /* o cabeçalho do site é transparente/sobreposto; este offset mantém o conteúdo abaixo do menu */
    padding: 178px 0 48px;
}

.bs-hero--no-image .bs-hero__grid {
    grid-template-columns: minmax(0, 760px);
    min-height: 258px;
    padding-top: 168px;
    padding-bottom: 38px;
}

.bs-hero__copy {
    min-width: 0;
}

.bs-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--bs-green);
    font-family: var(--bs-font-heading);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.bs-kicker--light {
    color: #73e1bd;
}

.bs-hero h1,
.bs-featured h2,
.bs-section-head h2,
.bs-cta h2,
.bs-mini-head h2,
.bs-empty h2,
.bs-launch h2,
.bs-card__title {
    font-family: var(--bs-font-heading);
}

.bs-hero h1 {
    max-width: 620px;
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(34px, 3vw, 44px);
    line-height: 1.04;
    letter-spacing: -.025em;
}

.bs-hero__copy > p {
    max-width: 650px;
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 14.5px;
    line-height: 1.55;
}

.bs-search {
    max-width: 420px;
    margin-top: 18px;
}

.bs-search__row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 7px;
    align-items: center;
    padding: 4px 4px 4px 12px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(3,25,59,.16);
}

.bs-search__icon {
    color: #7590ad;
    font-size: 18px;
    line-height: 1;
}

.bs-search input {
    width: 100%;
    min-width: 0;
    padding: 9px 4px;
    border: 0 !important;
    outline: 0;
    background: transparent;
    color: var(--bs-text);
    box-shadow: none !important;
    font: inherit;
    font-size: 13.5px;
}

.bs-search input::placeholder {
    color: #8a9db2;
}

.bs-search button,
.bs-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    text-decoration: none !important;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.bs-search button,
.bs-button--green {
    background: var(--bs-green);
    color: #fff !important;
}

.bs-search button:hover,
.bs-button--green:hover {
    background: var(--bs-green-dark);
}

.bs-button--blue {
    background: var(--bs-blue);
    color: #fff !important;
}

.bs-search button:hover,
.bs-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.bs-hero__visual {
    position: relative;
    align-self: end;
    min-height: 248px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    box-shadow: 0 18px 42px rgba(3,25,59,.18);
}

.bs-hero__visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.bs-hero__visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,31,68,.67), transparent 58%);
}

.bs-hero__badge {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    color: #fff;
}

.bs-hero__badge span {
    color: #73e1bd;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em;
}

.bs-hero__badge strong {
    font-size: 14px;
    line-height: 1.2;
}

/* MAIN */
.bs-main {
    width: 100%;
    background: #fff;
    padding: 18px 0 34px;
}

.bs-categories {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 0 0 18px;
    scrollbar-width: thin;
}

.bs-chip {
    flex: 0 0 auto;
    padding: 7px 12px;
    border: 1px solid var(--bs-border);
    border-radius: 999px;
    background: #fff;
    color: var(--bs-text) !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 700;
    transition: .2s ease;
}

.bs-chip:hover,
.bs-chip.is-active {
    border-color: var(--bs-blue);
    background: var(--bs-blue);
    color: #fff !important;
}

/* FEATURED */
.bs-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    min-height: 300px;
    margin: 0 0 38px;
    overflow: hidden;
    border: 1px solid var(--bs-border);
    border-radius: 15px;
    background: var(--bs-soft);
    box-shadow: var(--bs-shadow-soft);
}

.bs-featured__media,
.bs-card__media {
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bs-blue), var(--bs-green));
}

.bs-featured__media img,
.bs-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.bs-featured:hover .bs-featured__media img,
.bs-card:hover .bs-card__media img {
    transform: scale(1.025);
}

.bs-featured__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 34px;
}

.bs-featured h2 {
    margin: 0 0 10px;
    color: var(--bs-blue);
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.1;
    letter-spacing: -.02em;
}

.bs-featured h2 a,
.bs-card__title a {
    color: inherit !important;
    text-decoration: none !important;
}

.bs-featured p {
    margin: 0 0 18px;
    color: var(--bs-muted);
    font-size: 14px;
    line-height: 1.6;
}

.bs-featured__footer {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bs-featured__footer time {
    color: var(--bs-muted);
    font-size: 11.5px;
}

/* ARTICLE GRID */
.bs-section-head,
.bs-mini-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.bs-section-head h2,
.bs-mini-head h2 {
    margin: 0;
    color: var(--bs-blue);
    font-size: clamp(24px, 2.4vw, 31px);
    line-height: 1.1;
}

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

.bs-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--bs-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(14,57,120,.035);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.bs-card:hover {
    transform: translateY(-3px);
    border-color: rgba(8,165,111,.28);
    box-shadow: var(--bs-shadow-soft);
}

.bs-card__media {
    aspect-ratio: 16 / 9;
}

.bs-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: rgba(255,255,255,.9);
    font-family: var(--bs-font-heading);
    font-size: 18px;
    font-weight: 800;
}

.bs-card__body {
    padding: 17px;
}

.bs-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 7px;
    color: var(--bs-green);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.bs-card__title {
    margin: 0 0 7px;
    color: var(--bs-blue);
    font-size: 17px;
    line-height: 1.25;
}

.bs-card__excerpt {
    margin: 0 0 13px;
    color: var(--bs-muted);
    font-size: 13px;
    line-height: 1.55;
}

.bs-link {
    color: var(--bs-blue) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 800;
}

.bs-link:hover {
    color: var(--bs-green) !important;
}

.bs-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-top: 30px;
}

.bs-pagination a {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--bs-border);
    border-radius: 8px;
    color: var(--bs-blue) !important;
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 800;
}

.bs-pagination a:hover,
.bs-pagination a.is-current {
    border-color: var(--bs-blue);
    background: var(--bs-blue);
    color: #fff !important;
}

/* CTA */
.bs-cta {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    margin-top: 30px;
    padding: 22px 26px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--bs-blue-deep), var(--bs-blue));
    color: #fff;
}

.bs-cta::after {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -105px;
    width: 220px;
    height: 220px;
    border: 42px solid rgba(8,165,111,.14);
    border-radius: 50%;
}

.bs-cta__icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: var(--bs-green);
    font-size: 17px;
    font-weight: 900;
}

.bs-cta__copy,
.bs-cta .bs-button {
    position: relative;
    z-index: 1;
}

.bs-cta h2 {
    margin: 0 0 2px;
    color: #fff;
    font-size: clamp(20px, 2.2vw, 25px);
    line-height: 1.1;
}

.bs-cta p {
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 13px;
}

/* EMPTY / LAUNCH */
.bs-empty {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 20px 22px;
    border: 1px solid var(--bs-border);
    border-radius: 14px;
    background: var(--bs-soft);
}

.bs-empty__icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 10px;
    background: var(--bs-blue-soft);
    color: var(--bs-blue);
    font-size: 20px;
}

.bs-empty h2,
.bs-launch h2 {
    margin: 0 0 3px;
    color: var(--bs-blue);
    font-size: 20px;
}

.bs-empty p,
.bs-launch p {
    margin: 0;
    color: var(--bs-muted);
    font-size: 13px;
    line-height: 1.55;
}

.bs-launch {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0 0;
    padding: 12px 15px;
    border: 1px solid rgba(13,63,135,.09);
    border-radius: 10px;
    background: #f8fafc;
}

.bs-launch__dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bs-green);
}

.bs-launch p {
    margin: 0;
    color: var(--bs-muted);
    font-size: 12.5px;
    line-height: 1.45;
}

.bs-launch strong {
    color: var(--bs-text);
    font-weight: 800;
}

/* MINI BLOG / RELATED */
.biosollo-mini,
.biosollo-related {
    width: 100%;
}

.bs-grid--mini .bs-card__title {
    font-size: 16.5px;
}

@media (max-width: 960px) {
    .bs-container {
        width: min(100% - 36px, 1200px);
    }

    .bs-hero__grid,
    .bs-featured {
        grid-template-columns: 1fr;
    }

    .bs-hero__grid,
    .bs-hero--no-image .bs-hero__grid {
        min-height: 0;
        gap: 22px;
        padding: 142px 0 36px;
    }

    .bs-hero__visual {
        min-height: 260px;
    }

    .bs-featured__media {
        min-height: 260px;
    }

    .bs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bs-cta {
        grid-template-columns: auto 1fr;
    }

    .bs-cta .bs-button {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .bs-container {
        width: min(100% - 26px, 1200px);
    }

    .bs-hero__grid,
    .bs-hero--no-image .bs-hero__grid {
        padding: 118px 0 30px;
        gap: 18px;
    }

    .bs-hero h1 {
        max-width: 100%;
        font-size: clamp(28px, 8.8vw, 35px);
    }

    .bs-hero__copy > p {
        font-size: 13.8px;
    }

    .bs-search {
        margin-top: 16px;
    }

    .bs-search__row {
        grid-template-columns: auto 1fr;
    }

    .bs-search button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .bs-hero__visual {
        min-height: 205px;
        border-radius: 12px;
    }

    .bs-main {
        padding: 14px 0 28px;
    }

    .bs-categories {
        padding-bottom: 14px;
    }

    .bs-featured {
        min-height: 0;
        margin-bottom: 30px;
        border-radius: 13px;
    }

    .bs-featured__media {
        min-height: 215px;
    }

    .bs-featured__content {
        padding: 22px 20px;
    }

    .bs-featured__footer,
    .bs-section-head,
    .bs-mini-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .bs-grid {
        grid-template-columns: 1fr;
    }

    .bs-card__body {
        padding: 16px;
    }

    .bs-cta {
        grid-template-columns: 1fr;
        gap: 11px;
        margin-top: 30px;
        padding: 21px 19px;
    }

    .bs-empty {
        grid-template-columns: 1fr;
        padding: 19px;
    }

    .bs-launch {
        padding: 12px 14px;
    }
}


/* Remove respiros do wrapper Elementor que contém exclusivamente o blog. */
body.biosollo-blog-page .elementor-widget-shortcode:has(.biosollo-blog),
body.biosollo-blog-page .elementor-widget-shortcode:has(.biosollo-blog) > .elementor-widget-container {
    margin: 0 !important;
    padding: 0 !important;
}

.bs-hero--has-image .bs-hero__copy {
    padding-bottom: 2px;
}

.bs-hero--has-image .bs-hero__visual {
    align-self: stretch;
    min-height: 245px;
    max-height: 278px;
}

@media (min-width: 961px) {
    .bs-hero--has-image .bs-hero__grid {
        grid-template-columns: minmax(0, .78fr) minmax(460px, 1.22fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .biosollo-blog *,
    .biosollo-mini *,
    .biosollo-related * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
