
/* BLOG FONT */
.blog-hero,
.blog-featured,
.blog-list,
.blog-cta,
.blog-hero *,
.blog-featured *,
.blog-list *,
.blog-cta * {
    font-family: "Kanit", sans-serif;
}

/* =========================================================
   CGB HOME BUILDER
   BLOG HOME
   assets/css/blog.css
   ========================================================= */


/* =========================================================
   BLOG HERO
   ========================================================= */

.blog-hero {
    position: relative;
    padding: 150px 0 110px;
    background: #0B2942;
    color: #ffffff;
    overflow: hidden;
}

.blog-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -180px;
    top: -180px;
    border: 1px solid rgba(53, 191, 167, 0.25);
    border-radius: 50%;
}

.blog-hero .container {
    position: relative;
    z-index: 1;
}

.blog-hero .eyebrow {
    display: block;
    margin-bottom: 20px;
    color: #35BFA7;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
}

.blog-hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.blog-hero p {
    max-width: 580px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 18px;
    line-height: 1.8;
}


/* =========================================================
   SECTION
   ========================================================= */

.blog-featured,
.blog-list {
    padding: 110px 0;
}

.blog-featured {
    background: #ffffff;
}

.blog-list {
    background: #E8F8F4;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.blog-featured .section-heading,
.blog-list .section-heading {
    margin-bottom: 45px;
}

.blog-featured .section-heading .eyebrow,
.blog-list .section-heading .eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #35BFA7;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.blog-featured .section-heading h2,
.blog-list .section-heading h2 {
    margin: 0;
    color: #0B2942;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.2;
    font-weight: 500;
}


/* =========================================================
   FEATURED ARTICLES
   ========================================================= */

.blog-slider {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}


/* Featured card */

.blog-featured-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(11, 41, 66, 0.08);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.blog-featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(11, 41, 66, 0.12);
}

.blog-featured-card a {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}


/* Featured image */

.blog-featured-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-featured-card:hover img {
    transform: scale(1.04);
}


/* Featured content */

.blog-featured-content {
    padding: 28px 28px 30px;
}

.blog-category {
    display: inline-block;
    margin-bottom: 13px;
    color: #35BFA7;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.blog-featured-content h3 {
    margin: 0;
    color: #0B2942;
    font-size: 23px;
    line-height: 1.45;
    font-weight: 600;
}

.blog-featured-content p {
    margin: 15px 0 22px;
    color: #64717b;
    font-size: 15px;
    line-height: 1.8;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    color: #0B2942;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.25s ease;
}

.blog-featured-card:hover .blog-read-more,
.blog-card:hover .blog-read-more {
    color: #35BFA7;
}


/* =========================================================
   ARTICLE GRID
   ========================================================= */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.blog-card {
    overflow: hidden;
    background: #ffffff;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(11, 41, 66, 0.10);
}

.blog-card a {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}


/* Card image */

.blog-card-image {
    overflow: hidden;
}

.blog-card-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.04);
}


/* Card content */

.blog-card-content {
    padding: 24px 25px 28px;
}

.blog-card-content h3 {
    margin: 0;
    color: #0B2942;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 600;
}

.blog-card-content .blog-read-more {
    margin-top: 18px;
}


/* =========================================================
   CTA
   ========================================================= */

.blog-cta {
    padding: 110px 0;
    background: #0B2942;
    color: #ffffff;
    text-align: center;
}

.blog-cta .container {
    max-width: 760px;
}

.blog-cta .eyebrow {
    display: block;
    margin-bottom: 15px;
    color: #35BFA7;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
}

.blog-cta h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.25;
    font-weight: 500;
}

.blog-cta p {
    max-width: 580px;
    margin: 22px auto 30px;
    color: rgba(255, 255, 255, 0.70);
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .blog-hero {
        padding: 120px 0 90px;
    }

    .blog-slider,
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-featured,
    .blog-list,
    .blog-cta {
        padding: 85px 0;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    /* -----------------------------------------
       Hero
       ----------------------------------------- */

    .blog-hero {
        padding: 100px 0 75px;
    }

    .blog-hero h1 {
        font-size: 46px;
    }

    .blog-hero p {
        margin-top: 20px;
        font-size: 16px;
        line-height: 1.7;
    }


    /* -----------------------------------------
       Sections
       ----------------------------------------- */

    .blog-featured,
    .blog-list {
        padding: 70px 0;
    }

    .blog-featured .section-heading,
    .blog-list .section-heading {
        margin-bottom: 30px;
    }


    /* -----------------------------------------
       Featured
       Mobile = 1 large featured article
       ----------------------------------------- */

    .blog-slider {
        display: block;
    }

    .blog-featured-card {
        width: 100%;
    }

    .blog-featured-card:not(:first-child) {
        display: none;
    }

    .blog-featured-content {
        padding: 23px 22px 25px;
    }

    .blog-featured-content h3 {
        font-size: 20px;
    }


    /* -----------------------------------------
       Article list
       Mobile = 2 columns
       ----------------------------------------- */

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .blog-card-content {
        padding: 16px 14px 18px;
    }

    .blog-card-content .blog-category {
        margin-bottom: 8px;
        font-size: 12px;
    }

    .blog-card-content h3 {
        font-size: 16px;
        line-height: 1.45;
    }

    .blog-card-content .blog-read-more {
        margin-top: 12px;
        font-size: 12px;
    }


    /* -----------------------------------------
       CTA
       ----------------------------------------- */

    .blog-cta {
        padding: 75px 20px;
    }

    .blog-cta h2 {
        font-size: 32px;
    }

    .blog-cta p {
        font-size: 15px;
    }

}