/* =========================================================
   GreenLinks Blog — Listing & Single Post Styles
   Uses site variables/colors already defined in style.css
   ========================================================= */

.blog-banner-sub {
    max-width: 700px;
    margin: 10px auto 0;
    font-size: 17px;
    opacity: .95;
}

/* ---------- Blog Listing ---------- */
.blog-listing-section {
    background: #fafafa;
}

.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.blog-card-img-link {
    display: block;
}

.blog-card-img {
    width: 100%;
    height: 220px;
    background-color: #e6e6e6;
    background-size: cover;
    background-position: center;
}

.blog-card-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.btn.btn-primary{
    color: #000;
}
.blog-card-category {
    display: inline-block;
    color: #459947;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.blog-card-title {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 12px;
}

.blog-card-title a {
    color: #1c1c1c;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: #459947;
}

.blog-card-excerpt {
    color: #666;
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.blog-card-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 14px;
}

.blog-card-readmore {
    color: #459947;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    align-self: flex-start;
}

.blog-card-readmore:hover {
    text-decoration: underline;
}

/* ---------- CTA Strip ---------- */
.blog-cta-strip {
    background: #459947;
    padding: 60px 20px;
    color: #fff;
    text-align: center;
}

.blog-cta-strip h3 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
}

.blog-cta-strip p {
    margin-bottom: 24px;
    opacity: .95;
}

.blog-cta-strip .btn-primary {
    background: #fff;
    color: #459947;
    border: none;
    font-weight: 700;
}

.blog-cta-strip .btn-primary:hover {
    background: #08151D;
    color: #fff;
}

/* ---------- Single Post ---------- */
.blog-single-category {
    display: inline-block;
    background: #459947;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 14px;
}

.blog-single-meta {
    font-size: 14px;
    opacity: .9;
    margin-top: 8px;
}

.blog-single-feature-img {
    width: 100%;
    height: 380px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-color: #e6e6e6;
    margin-bottom: 30px;
}

.blog-single-content h3 {
    color: #1c1c1c;
    font-size: 22px;
    margin-top: 34px;
    margin-bottom: 14px;
    font-weight: 700;
}

.blog-single-content p {
    color: #444;
    font-size: 16px;
    line-height: 1.85;
    margin-bottom: 18px;
}

.blog-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.blog-share span {
    font-weight: 600;
    margin-right: 6px;
    color: #333;
}

.blog-share .btn-square {
    background: #459947;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.blog-share .btn-square:hover {
    background: #08151D;
}

.blog-back-link {
    margin-top: 26px;
}

.blog-back-link a {
    color: #459947;
    font-weight: 600;
    text-decoration: none;
}

.blog-back-link a:hover {
    text-decoration: underline;
}

/* ---------- Sidebar ---------- */
.blog-sidebar-block {
    background: #fafafa;
    border-radius: 10px;
    padding: 26px;
    margin-bottom: 26px;
}

.blog-sidebar-block h5 {
    font-weight: 700;
    margin-bottom: 20px;
    color: #1c1c1c;
}

.sidebar-post {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    text-decoration: none;
    align-items: center;
}

.sidebar-post:last-child {
    margin-bottom: 0;
}

.sidebar-post-img {
    flex: 0 0 70px;
    width: 70px;
    height: 60px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #e6e6e6;
}

.sidebar-post-info h6 {
    font-size: 14px;
    line-height: 1.4;
    color: #1c1c1c;
    margin-bottom: 4px;
}

.sidebar-post:hover h6 {
    color: #459947;
}

.sidebar-post-info small {
    color: #999;
    font-size: 12px;
}

.blog-sidebar-cta {
    background: #459947;
    color: #fff;
}

.blog-sidebar-cta h5 {
    color: #fff;
}

.blog-sidebar-cta p {
    font-size: 14px;
    opacity: .95;
    margin-bottom: 18px;
}

.blog-sidebar-cta .btn-primary {
    background: #fff;
    color: #459947;
    border: none;
    font-weight: 700;
}

.blog-sidebar-cta .btn-primary:hover {
    background: #08151D;
    color: #fff;
}

/* ---------- Responsive ---------- */
@media only screen and (max-width: 767px) {
    .blog-single-feature-img {
        height: 220px;
    }
    .blog-card-img {
        height: 190px;
    }
}
