/* =========================================================
   Boiron blog post (astra-child/single-post.php)
   Values measured from the Elementor single-post template (Nov 2026).
   Hero banner styles stay in boiron-us/blog.php.
   ========================================================= */

.boiron-post {
    font-family: Montserrat, sans-serif;
}

.boiron-post .bp-container {
    box-sizing: border-box;
    width: 100%;
    max-width: 1140px;
    margin: 50px auto 0;
    padding: 0 10px;
}

/* Astra's ".site .site-content #primary .ast-article-single" (from post_class)
   adds 20px padding, which pushed the title/body in from Share article /
   Related Products. Same ID-level selector + one class so this wins. */
.site .site-content #primary.boiron-post .bp-article {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
}

/* ---------- Title + meta ---------- */

.boiron-post .bp-title {
    margin: 0 0 5px;
    color: #231f20;
    font-size: 35px;
    font-weight: 600;
    line-height: 45px;
}

/* Black brush-stroke underline (same SVG as the Elementor template) */
.boiron-post .bp-title::after {
    content: "";
    display: block;
    height: 20px;
    margin: 10px 0 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 134 16'%3E%3Cpath d='m1 9.1v-4.6h132l-.5.8s-77 3.8-131.5 3.8z' fill='%23231f20'/%3E%3C/svg%3E") no-repeat 0 0 / contain;
}

.boiron-post .bp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    margin: 0 0 20px;
    color: #4b4f58;
    font-size: 17px;
    font-weight: 500;
    line-height: 18px;
}

.boiron-post .bp-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.boiron-post .bp-meta a {
    color: inherit;
    text-decoration: none;
}

.boiron-post .bp-meta a:hover {
    color: #0170b9;
}

.boiron-post .bp-icon {
    width: 14px;
    height: 14px;
    fill: #0170b9;
    flex: none;
}

.boiron-post .boiron-current-post-last-updated {
    display: block;
    margin: -10px 0 20px;
    color: #4b4f58;
    font-size: 14px;
}

/* ---------- Article body ---------- */

.boiron-post .bp-content {
    padding: 0;
    color: #4b4f58;
    font-size: 18px;
    line-height: 27px;
}

.boiron-post .bp-content p {
    margin: 0 0 1.75em;
}

.boiron-post .bp-content h2,
.boiron-post .bp-content h3,
.boiron-post .bp-content h4 {
    margin: 0 0 0.7em;
    color: #3a3a3a;
    font-weight: 600;
}

.boiron-post .bp-content h2 { font-size: 29px; line-height: 1.3; }
.boiron-post .bp-content h3 { font-size: 20px; line-height: 1.3; }
.boiron-post .bp-content h4 { font-size: 20px; line-height: 1.3; }

.boiron-post .bp-content ul,
.boiron-post .bp-content ol {
    margin: 0 0 1.75em 1.5em;
}

/* Space below product display boxes in blog posts */
.boiron-post .bp-content .boiron-product-display-grid {
  margin-bottom: 2.5em;
}

/* Links in the article body (must stay visible on white) */
/* Text links in post body only (paragraphs & lists) */
.boiron-post .bp-content p a:not(.button):not(.wp-element-button),
.boiron-post .bp-content li a:not(.button):not(.wp-element-button) {
  color: var(--ast-global-color-0);
  text-decoration: underline;
}
.boiron-post .bp-content p a:not(.button):not(.wp-element-button):hover,
.boiron-post .bp-content li a:not(.button):not(.wp-element-button):hover {
  color: var(--ast-global-color-1);
}

/* Product display titles keep their navy color, no underline */
.boiron-post .bp-content .boiron-product-display-title a {
  color: #2a3d93;
  text-decoration: none;
}

.boiron-post .bp-content img {
    max-width: 100%;
    height: auto;
}

.boiron-post .bp-image {
    margin: 0 0 1.75em;
    text-align: center;
}

.boiron-post .bp-image figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: #6b6f78;
}

.boiron-post .bp-video {
    position: relative;
    margin: 0 0 1.75em;
    aspect-ratio: 16 / 9;
}

.boiron-post .bp-video iframe,
.boiron-post .bp-video video {
    width: 100%;
    height: 100%;
    border: 0;
}

.boiron-post .bp-products {
    margin: 0 0 1.75em;
}

.boiron-post .bp-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.boiron-post .bp-col {
    flex: 1 1 calc(var(--bp-col, 100%) - 20px);
    min-width: 0;
}

.boiron-post .bp-button-wrap {
    text-align: center;
}

.boiron-post .bp-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    background: #0033ab;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
}

/* ---------- Dividers ---------- */

.boiron-post .bp-divider {
    /* width: 258px; */
    max-width: 100%;
    height: 0;
    margin: 15px 0;
    border: 0;
    border-top: 1px solid #555;
    background: none;
}

.boiron-post .bp-divider--inline {
    width: 100%;
}

/* ---------- Share ---------- */

.boiron-post .bp-share-title {
    margin: 0 0 10px;
    color: #000;
    font-size: 20px;
    font-weight: 600;
}

.boiron-post .bp-share {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
    margin: 0 0 30px;
}

.boiron-post .bp-share__btn {
    --bp-net: #000;
    display: inline-flex;
    align-items: stretch;
    overflow: hidden;
    border: 2px solid var(--bp-net);
    border-radius: 4.5px;
    color: #000;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.boiron-post .bp-share__btn--facebook  { --bp-net: #3b5998; }
.boiron-post .bp-share__btn--linkedin  { --bp-net: #0077b5; }
.boiron-post .bp-share__btn--pinterest { --bp-net: #bd081c; }
.boiron-post .bp-share__btn--email     { --bp-net: #ea4335; }

.boiron-post .bp-share__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    background: var(--bp-net);
}

.boiron-post .bp-share__icon svg {
    width: 15px;
    height: 15px;
    fill: #fff;
}

.boiron-post .bp-share__label {
    padding: 6px 14px;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 25px;
}

.boiron-post .bp-share__btn:hover,
.boiron-post .bp-share__btn:focus-visible {
    background: var(--bp-net);
    color: #fff;
}

/* ---------- Related articles ---------- */

.boiron-post .bp-related {
    margin: 30px 0 20px;
}

.boiron-post .bp-related__title {
    margin: 0 0 20px;
    color: #000;
    font-size: 28px;
    font-weight: 600;
    line-height: 45px;
}

.boiron-post .bp-related__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 35px 30px;
}

.boiron-post .bp-card__img {
    display: block;
    margin-bottom: 20px;
}

.boiron-post .bp-card__img img {
    display: block;
    width: 100%;
    height: 173px;
    object-fit: cover;
}

.boiron-post .bp-card__title {
    margin: 0 0 13px;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
}

.boiron-post .bp-card__title a {
    color: #000;
    text-decoration: none;
}

.boiron-post .bp-card__meta {
    margin-bottom: 13px;
    color: #adadad;
    font-size: 12px;
    line-height: 15.6px;
}

.boiron-post .bp-card__sep {
    margin: 0 4px;
}

.boiron-post .bp-card__more {
    color: #0170b9;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

/* ---------- Banners ---------- */

.boiron-post .bp-banner {
    margin: 20px 0;
    text-align: center;
}

.boiron-post .bp-banner img {
    max-width: 100%;
    height: auto;
}

/* =========================================================
   TABLET (≤1024px)
   ========================================================= */

@media (max-width: 1024px) {
    .boiron-post .bp-container {
        margin-top: 30px;
        padding: 0 20px;
    }

    .boiron-post .bp-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   MOBILE (≤767px)
   ========================================================= */

@media (max-width: 767px) {
    .boiron-post .bp-container {
        margin-top: 20px;
    }

    .boiron-post .bp-content h2 {
        font-size: 25px;
        line-height: 32.5px;
    }

    .boiron-post .bp-col {
        flex-basis: 100%;
    }

    .boiron-post .bp-related__grid {
        grid-template-columns: 1fr;
    }

    .boiron-post .bp-card__img img {
        height: auto;
        aspect-ratio: 3 / 2;
    }
}
