/* =========================================================
   PRIME CNC BLOG PAGE
   Namespace: blg-
========================================================= */


/* =========================
   GLOBAL SAFETY
========================= */


img {
    max-width: 100%;
}


/* =========================
   BLOG SECTION
========================= */

.blg-blog-section {
    width: 100%;
    max-width: 100%;
    padding: 80px 4% 90px;
    background: #ffffff;
    overflow: hidden;
}


/* =========================
   CONTAINER
========================= */

.blg-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    min-width: 0;
}


/* =========================
   BLOG GRID
========================= */

.blg-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 30px;
    row-gap: 40px;
    align-items: start;
}


/* =========================
   BLOG POST
========================= */

.blg-post {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}


/* =========================
   IMAGE LINK
========================= */

.blg-image-link {
    display: block;
    width: 100%;
    text-decoration: none;
    overflow: hidden;
}


/* =========================
   IMAGE BOX
========================= */

.blg-image-box {
    position: relative;
    width: 100%;
    height: 238px;
    overflow: hidden;
    background: #eeeeee;
}


/* =========================
   BLOG IMAGE
========================= */

.blg-image-box img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}


/* Image Hover */

.blg-image-link:hover .blg-image-box img {
    transform: scale(1.04);
}


/* =========================
   BLOG CONTENT
========================= */

.blg-content {
    width: 100%;
    min-width: 0;
    padding-top: 27px;
}


/* =========================
   BLOG TITLE
========================= */

.blg-title {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 500;
    color: #111111;
    overflow-wrap: anywhere;
}

.blg-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.blg-title a:hover {
    color: #990000;
}


/* =========================
   META
========================= */

.blg-meta {
    margin-top: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 400;
    color: #a4a4a4;
}


/* =========================
   READ MORE
========================= */

.blg-read-more {
    display: inline-block;
    margin-top: 18px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;

    color: #222334;
    text-decoration: none;

    transition:
        color 0.25s ease,
        background 0.25s ease;
}

.blg-read-more:hover {
    color: #990000;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

    .blg-blog-section {
        padding: 65px 30px 75px;
    }

    .blg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 28px;
        row-gap: 42px;
    }

    .blg-image-box {
        height: 235px;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 650px) {

    .blg-blog-section {
        padding: 55px 20px 65px;
    }

    .blg-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 45px;
    }

    .blg-image-box {
        height: auto;
        aspect-ratio: 1.52 / 1;
    }

    .blg-content {
        padding-top: 22px;
    }

    .blg-title {
        font-size: 16px;
        line-height: 1.5;
    }

    .blg-meta {
        font-size: 12px;
    }
}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 400px) {

    .blg-blog-section {
        padding: 45px 15px 55px;
    }

    .blg-grid {
        gap: 40px;
    }

    .blg-image-box {
        aspect-ratio: 1.5 / 1;
    }
}