/* =================================
   BLOG HERO
================================= */

.blog-hero {
    background: url('../images/page-banner1.jpg.jpeg') no-repeat center/cover;
    height: 40vh;
    min-height: 250px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    position: relative;

    color: #fff;
    padding: 4rem 0;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
}

.blog-hero .container {
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, .7);
}

.blog-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.blog-subtitle {
    max-width: 700px;
    margin: auto;
    opacity: .9;
}


/* =================================
   BLOG GRID
================================= */

.blog-section {
    padding: 40px 20px;
    background: #f7f9f6;
}

.blog-grid {
    display: grid;
    gap: 40px;
    max-width: 1500px;
    margin: auto;
}

@media(min-width:1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(min-width:768px) and (max-width:1023px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:767px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}


/* =================================
   BLOG CARD
================================= */

.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    transition: .3s;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .1);
}

.blog-image {
    background: #f4f4f4;
    padding: 10px;
    display: flex;
    justify-content: center;
}

.blog-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
}

.blog-body {
    padding: 20px;
}

.blog-body h2 {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 5px;
}

.blog-body h2 a {
    text-decoration: none;
    color: inherit;
}

.blog-body h2 a:hover {
    color: #1f6b54;
}

.blog-date {
    font-size: .8rem;
    color: #777;
    margin-bottom: 8px;
}

.blog-content {
    line-height: 1.6;
    max-height: 85px;
    overflow: hidden;
    margin-bottom: 12px;
}


/* =================================
   SINGLE POST
================================= */

.single-post {
    max-width: 900px;
    margin: 20px auto;
}

.single-post h1 {
    margin-bottom: 20px;
}

.post-featured-image img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 10px;
   
}

.post-intro p,
#post-content p {
    line-height: 1.7;
    margin-bottom: 12px;
}


/* =================================
   TABLE OF CONTENTS
================================= */

.blog-toc {

    max-width: 420px;
    width: 100%;

    background: #f4f6f8;

    border: 1px solid #ddd;
    border-radius: 10px;

    padding: 16px 18px;

    margin: 30px 0;
}

.blog-toc h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.blog-toc li {
    margin: 6px 0;
    font-size: 14px;
}

.blog-toc a {
    text-decoration: none;
    color: #1f6b54;
}

.blog-toc a:hover {
    text-decoration: underline;
}

html {
    scroll-behavior: smooth;
}


/* =================================
   SHARE BUTTONS
================================= */

.share-post {
    margin-top: 50px;
    text-align: center;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-buttons a {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #1f6b54;
    color: #fff;

    font-size: 18px;

    transition: .25s;
}

.share-buttons a:hover {
    transform: scale(1.1);
    background: #184f3d;
}


/* =================================
   RELATED POSTS
================================= */

#related-posts-section {
    margin-top: 80px;
}

.related-title {
    font-size: 2rem;
    margin-bottom: 35px;
    text-align: center;
    color: var(--accent);
}

/* DESKTOP */

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* TABLET */

@media(max-width:1024px) {

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* MOBILE */

@media(max-width:600px) {

    .related-grid {
        grid-template-columns: 1fr;
    }

}

.related-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transition: .35s;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .12);
}

.related-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #f7f7f7;
    padding: 12px;
}

.related-body {
    padding: 18px;
}

.related-body h3 {
    font-size: 1.05rem;
    color: var(--accent);
}

.related-card a {
    text-decoration: none;
    color: inherit;
}


/* =================================
   PREVIOUS / NEXT NAV
================================= */

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}

.post-navigation a {
    padding: 12px 22px;
    background: #1f6b54;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
}

.post-navigation a:hover {
    background: #184f3d;
}


/* =================================
   PROGRESS BAR
================================= */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;

    height: 4px;
    width: 0;

    background: #1f6b54;
    z-index: 9999;
}


/* =================================
   MOBILE OPTIMIZATION
================================= */

@media(max-width:600px) {

    .single-post h1 {
        font-size: 1.6rem;
    }

    .post-navigation a {
        padding: 8px 14px;
        font-size: .85rem;
    }

    .related-card img {
        height: 160px;
    }

    .related-body h3 {
        font-size: .95rem;
    }

}

/* Blogger image wrapper fix */

.separator {
    padding: 0;
    text-align: center;
}

.separator img {
   width:100%;
   max-width:900px;
   height:auto;          
   display:block;
   margin:auto;
   border-radius:10px;
   object-fit:cover;

}

.separator+p {
    margin-top: 10px;
}