/* =========================================================
   PBM BLOG PAGE
========================================================= */

:root {
    --pbm-green: #075c32;
    --pbm-green-dark: #064a29;
    --pbm-light: #f4f6f5;
    --pbm-text: #151a18;
    --pbm-muted: #626b66;
}


/* =========================================================
   BLOG HERO
========================================================= */

.blog-hero {
    background: var(--pbm-green);
    color: #fff;
    padding: 90px 30px;
}

.blog-hero-inner {
    width: min(1100px, 100%);
    margin: 0 auto;
}

.blog-hero-title {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

.blog-hero-text {
    max-width: 850px;
    margin: 0;
    color: #fff;
    font-size: 19px;
    line-height: 1.7;
}


/* =========================================================
   INTRO
========================================================= */

.blog-intro {
    padding: 75px 30px 55px;
    text-align: center;
}

.blog-intro-title {
    margin: 0 0 18px;
    color: var(--pbm-green);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
}

.blog-intro-text {
    max-width: 800px;
    margin: 0 auto;
    color: var(--pbm-muted);
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   POSTS AREA
========================================================= */

.blog-posts-section {
    background: var(--pbm-light);
    padding: 30px 30px 90px;
}

.pbm-blog-query {
    width: min(1200px, 100%);
    margin: 0 auto;
}


/* =========================================================
   GRID
========================================================= */

.blog-post-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   ARTICLE CARD
========================================================= */

.blog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;

    margin: 0 !important;
    padding: 0 !important;

    background: #fff;
    border-radius: 18px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 16px 42px rgba(0, 0, 0, 0.11);
}


/* =========================================================
   FEATURED IMAGE
========================================================= */

.blog-card-image {
    width: 100%;
    height: 240px;
    margin: 0 !important;
    overflow: hidden;
}

.blog-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-card-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;

    object-fit: cover;
    object-position: center;

    transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.035);
}


/* =========================================================
   CARD CONTENT
========================================================= */

.blog-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    flex: 1;

    padding: 27px 28px 30px !important;
}


/* CATEGORY */

.blog-card-category {
    margin: 0 0 14px !important;

    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-card-category a {
    display: inline-block;

    padding: 7px 12px;

    color: var(--pbm-green);
    background: #eaf4ee;

    border-radius: 100px;

    text-decoration: none;
}


/* TITLE */

.blog-card-title {
    margin: 0 0 14px !important;

    font-size: 23px;
    line-height: 1.35;
    font-weight: 800;
}

.blog-card-title a {
    color: var(--pbm-text);
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--pbm-green);
}


/* EXCERPT */

.blog-card-excerpt {
    margin: 0 0 24px !important;

    color: var(--pbm-muted);

    font-size: 15px;
    line-height: 1.7;
}

.blog-card-excerpt p {
    margin: 0;
}


/* =========================================================
   READ ARTICLE
========================================================= */

.blog-card-link {
    display: inline-flex;
    align-items: center;

    margin-top: auto !important;

    color: var(--pbm-green) !important;

    font-size: 15px;
    font-weight: 700;

    text-decoration: none !important;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.blog-card-link:hover {
    color: var(--pbm-green-dark) !important;
    transform: translateX(3px);
}


/* =========================================================
   PAGINATION
========================================================= */

.blog-pagination {
    margin-top: 55px !important;
    gap: 10px;
}

.blog-pagination a,
.blog-pagination .page-numbers {
    text-decoration: none;
    color: var(--pbm-green);
    font-weight: 700;
}

.blog-pagination .page-numbers.current {
    color: #fff;
    background: var(--pbm-green);

    padding: 8px 13px;
    border-radius: 8px;
}


/* =========================================================
   NO POSTS
========================================================= */

.blog-no-posts {
    padding: 50px 20px;
    color: var(--pbm-muted);
    font-size: 17px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {

    .blog-post-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

    .blog-hero {
        padding: 75px 25px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .blog-hero {
        padding: 60px 20px;
    }

    .blog-hero-text {
        font-size: 16px;
    }

    .blog-intro {
        padding: 55px 20px 40px;
    }

    .blog-posts-section {
        padding: 20px 18px 65px;
    }

    .blog-post-grid {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }

    .blog-card-image {
        height: 220px;
    }

    .blog-card-content {
        padding: 23px 22px 26px !important;
    }

    .blog-card-title {
        font-size: 21px;
    }

}