/* Blog post layout, shared by every page in Pages/Blogs. The hero is in page-hero.css; the
   Related Posts cards are in home.css and blogs.css. */

/* Post titles are longer than page names, so the hero title is a little smaller and wider. */
.bd-hero-info {
    max-width: 900px;
}

.bd-hero-title {
    font-size: 56px;
    line-height: 64px;
}

.bd-section {
    padding: 100px 0;
    background: #fff;
}

/* ---------- Article ---------- */
.bd-cover {
    position: relative;
    border-radius: 16px;
}

.bd-cover img {
    display: block;
    width: 100%;
    height: 460px;
    border-radius: 16px;
    object-fit: cover;
}

.bd-cover-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    padding: 8px 18px;
    border-radius: 30px;
    background: var(--brand-lime);
    color: var(--brand-green);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin: 28px 0 0;
    padding: 0 0 20px;
    border-bottom: 1px solid rgba(26, 86, 50, 0.12);
    list-style: none;
}

.bd-meta li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(26, 86, 50, 0.8);
    font-size: 15px;
}

.bd-meta .bi {
    color: var(--brand-green);
}

.bd-title {
    margin: 24px 0 0;
    color: var(--brand-green);
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 400;
    line-height: 46px;
}

.bd-body {
    margin-top: 20px;
}

.bd-body p {
    margin: 16px 0 0;
    color: rgba(26, 86, 50, 0.82);
    font-size: 17px;
    line-height: 29px;
}

.bd-body .bd-lead {
    color: var(--brand-green);
    font-size: 19px;
    line-height: 31px;
}

.bd-body h3 {
    margin: 36px 0 0;
    color: var(--brand-green);
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    line-height: 36px;
}

.bd-body h4 {
    margin: 26px 0 0;
    color: var(--brand-green);
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 400;
    line-height: 28px;
}

.bd-body .bd-note {
    margin-top: 24px;
    padding: 18px 22px;
    border-left: 4px solid var(--brand-green);
    border-radius: 0 12px 12px 0;
    background: #f1f6e4;
    font-size: 16px;
    line-height: 26px;
}

.bd-list {
    margin: 16px 0 0;
    padding-left: 20px;
}

.bd-list li {
    color: rgba(26, 86, 50, 0.82);
    font-size: 17px;
    line-height: 28px;
}

.bd-list li + li {
    margin-top: 10px;
}

.bd-list li::marker {
    color: var(--brand-green);
}

.bd-list strong {
    color: var(--brand-green);
}

.bd-quote {
    position: relative;
    margin: 36px 0 0;
    padding: 36px 36px 32px 100px;
    border-left: 4px solid var(--brand-green);
    border-radius: 16px;
    background: #f1f6e4;
}

.bd-quote > .bi {
    position: absolute;
    top: 30px;
    left: 30px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-green);
    color: var(--brand-lime);
    font-size: 26px;
}

.bd-quote p {
    margin: 0;
    color: var(--brand-green);
    font-family: var(--font-heading);
    font-size: 24px;
    line-height: 34px;
}

.bd-quote cite {
    display: block;
    margin-top: 12px;
    color: rgba(26, 86, 50, 0.7);
    font-size: 15px;
    font-style: normal;
}

.bd-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.bd-gallery img {
    width: 100%;
    height: 240px;
    border-radius: 14px;
    object-fit: cover;
}

.bd-checks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.bd-checks li {
    display: flex;
    gap: 10px;
    color: var(--brand-green);
    font-size: 16px;
    line-height: 24px;
}

.bd-checks .bi {
    flex: none;
    font-size: 20px;
    line-height: 24px;
}

.bd-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(26, 86, 50, 0.12);
}

.bd-tags,
.bd-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.bd-tags span,
.bd-share span {
    margin-right: 4px;
    color: var(--brand-green);
    font-family: var(--font-heading);
    font-size: 18px;
}

.bd-tags a {
    padding: 6px 14px;
    border: 1px solid rgba(26, 86, 50, 0.25);
    border-radius: 30px;
    color: var(--brand-green);
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.bd-tags a:hover {
    background: var(--brand-green);
    color: #fff;
}

.bd-share a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #eef4ea;
    color: var(--brand-green);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.bd-share a:hover {
    background: var(--brand-green);
    color: #fff;
}

/* ---------- Sidebar ---------- */
/* Kept compact so the whole sidebar fits on a laptop screen while it stays in view. */
.bd-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bd-box {
    padding: 20px 22px;
    border-radius: 14px;
    background: #f4f7f5;
}

.bd-box h4,
.bd-help h4 {
    margin: 0 0 14px;
    color: var(--brand-green);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    line-height: 28px;
}

.bd-recent {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bd-recent a {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--brand-green);
    font-family: var(--font-heading);
    font-size: 17px;
    line-height: 23px;
    text-decoration: none;
}

.bd-recent img {
    flex: none;
    width: 66px;
    height: 66px;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bd-recent a:hover img {
    transform: scale(1.05);
}

.bd-recent small {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    color: rgba(26, 86, 50, 0.7);
    font-family: var(--font-body);
    font-size: 13px;
}

.bd-help {
    padding: 20px 22px;
    border-radius: 14px;
    background: var(--brand-lime);
}

.bd-help h4 {
    margin-bottom: 10px;
}

.bd-help p {
    margin: 0;
    color: rgba(26, 86, 50, 0.85);
    font-size: 16px;
    line-height: 24px;
}

.bd-help-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 12px 22px;
    border: 1px solid var(--brand-green);
    border-radius: 30px;
    background: #fff;
    color: var(--brand-green);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.bd-help-btn:hover {
    background: var(--brand-green);
    color: #fff;
}

/* ---------- Related posts ---------- */
.bd-related {
    margin-top: 90px;
}

.bd-related-title {
    margin: 0 0 40px;
    color: var(--brand-green);
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 400;
    line-height: 52px;
    text-align: center;
}

/* Side by side: the sidebar stays in view below the fixed header (85px) until the article ends. */
@media (min-width: 992px) {
    .bd-side {
        position: sticky;
        top: 109px;
    }
}

@media (max-width: 991.98px) {
    .bd-section {
        padding: 70px 0;
    }

    .bd-hero-title {
        font-size: 44px;
        line-height: 52px;
    }

    .bd-side {
        margin-top: 20px;
    }

    .bd-related {
        margin-top: 70px;
    }
}

@media (max-width: 767.98px) {
    .bd-cover img {
        height: 300px;
    }

    .bd-title {
        font-size: 30px;
        line-height: 38px;
    }

    .bd-gallery,
    .bd-checks {
        grid-template-columns: 1fr;
    }

    .bd-quote {
        padding: 90px 24px 26px;
    }

    .bd-related-title {
        font-size: 34px;
        line-height: 42px;
    }
}

@media (max-width: 575.98px) {
    .bd-hero-title {
        font-size: 34px;
        line-height: 42px;
    }
}
