/* =========================================================
   CIAT BLOG PAGE
========================================================= */

:root {
    --blog-green: #009c27;
    --blog-blue: #0864fe;
    --blog-black: #111111;
    --blog-white: #ffffff;
    --blog-light: #f7f8fa;
}


/* =========================================================
   PAGE
========================================================= */

.blog-page {
    width: 100%;
    background: #ffffff;
}


/* =========================================================
   BANNER
========================================================= */

.blog-banner {
    position: relative;
}


/* =========================================================
   BLOG SECTION
========================================================= */

.blog-section {
    width: 100%;
    padding: 95px 0 110px;
    background: #ffffff;
}


.blog-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}


/* =========================================================
   HEADING
========================================================= */

.blog-heading {
    display: grid;

    grid-template-columns: 1fr 1.35fr;

    align-items: center;

    margin-bottom: 60px;
}


.blog-small-title {
    font-family: "Nunito Sans", sans-serif;

    font-size: 17px;

    font-weight: 700;

    color: #111111;

    position: relative;

    padding-left: 22px;
}


.blog-small-title::before {
    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    width: 7px;
    height: 7px;

    background: var(--blog-green);

    border-radius: 50%;

    transform: translateY(-50%);
}


.blog-heading h1 {
    margin: 0;

    font-family: "DM Sans", sans-serif;

    font-size: clamp(38px, 4vw, 58px);

    line-height: 1.08;

    font-weight: 600;

    letter-spacing: -1.8px;

    color: var(--blog-black);
}


.blog-heading h1 strong {
    color: var(--blog-blue);

    font-weight: 500;
}


/* =========================================================
   BLOG GRID
========================================================= */

.blog-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px;
}


/* =========================================================
   BLOG CARD
========================================================= */

.blog-card {
    background: #ffffff;

    border-radius: 16px;

    overflow: hidden;

    border: 1px solid rgba(0, 0, 0, 0.07);

    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


.blog-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   BLOG IMAGE
========================================================= */

.blog-image {
    width: 100%;

    height: 245px;

    overflow: hidden;

    background: #f2f2f2;
}


.blog-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.55s ease;
}


.blog-card:hover .blog-image img {
    transform: scale(1.05);
}


/* =========================================================
   BLOG CONTENT
========================================================= */

.blog-content {
    padding: 25px 22px 27px;
}


.blog-content h2 {
    margin: 0 0 13px;

    font-family: "DM Sans", sans-serif;

    font-size: 21px;

    line-height: 1.3;

    font-weight: 600;

    color: #111111;
}


.blog-content p {
    margin: 0 0 22px;

    font-family: "Nunito Sans", sans-serif;

    font-size: 15px;

    line-height: 1.7;

    color: #666666;
}


/* =========================================================
   READ MORE
========================================================= */

.read-more {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 10px 18px;

    border-radius: 30px;

    background: var(--blog-blue);

    color: #ffffff;

    text-decoration: none;

    font-family: "Nunito Sans", sans-serif;

    font-size: 14px;

    font-weight: 700;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}


.read-more:hover {
    background: var(--blog-green);

    transform: translateX(3px);
}


.read-more i {
    font-size: 12px;
}


/* =========================================================
   LARGE LAPTOP
========================================================= */

@media (max-width: 1150px) {

    .blog-section {
        padding-top: 80px;
    }

    .blog-heading {
        grid-template-columns: 0.7fr 1.3fr;

        margin-bottom: 50px;
    }

    .blog-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 20px;
    }

    .blog-image {
        height: 220px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .blog-section {
        padding: 70px 0 80px;
    }

    .blog-container {
        width: 90%;
    }

    .blog-heading {
        display: block;

        margin-bottom: 40px;
    }

    .blog-small-title {
        margin-bottom: 20px;
    }

    .blog-heading h1 {
        font-size: 46px;
    }

    .blog-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }

    .blog-image {
        height: 220px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .blog-section {
        padding: 55px 0 65px;
    }

    .blog-container {
        width: 92%;
    }

    .blog-small-title {
        font-size: 15px;

        margin-bottom: 17px;
    }

    .blog-heading h1 {
        font-size: 36px;

        letter-spacing: -1px;
    }

    .blog-grid {
        grid-template-columns: 1fr;

        gap: 22px;
    }

    .blog-image {
        height: 220px;
    }

    .blog-content {
        padding: 22px 20px 24px;
    }

    .blog-content h2 {
        font-size: 20px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .blog-heading h1 {
        font-size: 32px;
    }

    .blog-image {
        height: 200px;
    }

}