.blog-section {
    width: 100%;
    padding: 100px 6%;
    background: #ffffff;
}

.blog-section .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}


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

.section-heading {
    max-width: 760px;
    margin: 0 auto 65px;
    text-align: center;
}

.section-tag {
    display: inline-flex;
    align-items: center;

    padding: 8px 18px;

    background: #eef5ff;
    color: #3d72bf;

    border-radius: 50px;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.4px;

    margin-bottom: 20px;

    margin-top: 20px;
}

.section-heading h2 {
    margin: 0 0 20px;

    color: #1e4262;

    font-size: 46px;
    line-height: 1.18;

    font-weight: 700;

    letter-spacing: -1px;
}

.section-heading p {
    max-width: 650px;
    margin: 0 auto;

    color: #707b86;

    font-size: 16px;
    line-height: 1.8;
}


/* =========================================
   BLOG GRID
========================================= */

.blog-grid {
    width: 100%;

    display: grid;

    /*
     * Automatically creates 1, 2 or 3 columns
     * depending on available screen width.
     */
    grid-template-columns: repeat(auto-fit,
            minmax(300px, 1fr));

    gap: 28px;

    align-items: stretch;
}


/* =========================================
   BLOG CARD
========================================= */

.blog-card {
    position: relative;

    width: 100%;
    min-width: 0;
    max-width: none;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border: 1px solid #e8edf2;
    border-radius: 20px;

    overflow: hidden;

    opacity: 0;
    transform: translateY(30px);

    box-shadow:
        0 8px 30px rgba(25, 55, 80, 0.06);

    transition:
        opacity 0.5s ease,
        transform 0.4s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


.blog-card.active {
    opacity: 1;
    transform: translateY(0);
}


.blog-card:hover {
    transform: translateY(-6px);

    border-color: #dce5ed;

    box-shadow:
        0 16px 40px rgba(25, 55, 80, 0.12);
}


/* =========================================
   BLOG IMAGE
========================================= */

.blog-image {
    width: 100%;
    height: 230px;
    flex-shrink: 0;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}

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


/* =========================================
   BLOG CONTENT
========================================= */

.blog-content {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 25px 26px 28px;
}


/* =========================================
   META
========================================= */

.meta {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 16px;

    min-height: 30px;
}

.category {
    display: inline-flex;
    align-items: center;

    padding: 7px 13px;

    border-radius: 8px;

    background: #edf5ff;
    color: #3d7fd4;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.3px;

    white-space: nowrap;
}

.blog-info {
    color: #8b959f;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;

    white-space: nowrap;
}

.meta>span:last-child {
    color: #8b959f;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;

    white-space: nowrap;
}


/* =========================================
   BLOG TITLE
========================================= */

.blog-content h3 {
    /* margin: 0 0 16px; */

    color: #244d70;

    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;

    letter-spacing: -0.3px;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}


/* =========================================
   BLOG DESCRIPTION
========================================= */

.blog-content p {
    /* margin: 0 0 22px; */

    color: #7f8b96;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.blog-author-meta {
    font-size: 14px;
    padding-top: 0px;
    margin-top: 0px;
}

.blog-date {
    font-size: 14px;
    color: #1a4c6f;
    font-weight: 500;
}


/* =========================================
   READ BUTTON
========================================= */

.read-btn {
    margin-top: 16px;

    padding-top: 10px;

    display: inline-flex;
    align-items: center;
    width: fit-content;

    color: #397bc6;

    font-size: 15px;
    font-weight: 700;

    text-decoration: none;

    border-top: 0.1px solid #7f8b96;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.read-btn:hover {
    color: #7f8b96;
    transform: translateX(3px);
}


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

@media (max-width: 1000px) {

    .blog-grid {
        gap: 24px;
    }

    .blog-card {
        flex: 0 1 calc((100% - 24px) / 2);
        max-width: 390px;
    }

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

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


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

@media (max-width: 700px) {

    .blog-section {
        padding: 70px 5%;
    }

    .blog-grid {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .blog-card {
        width: 100%;
        max-width: 390px;
        flex: 0 0 auto;
    }

    .blog-image {
        height: 220px;
    }

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

    .blog-content h3 {
        font-size: 21px;
        line-height: 1.35;
    }

    .blog-content p {
        font-size: 15px;
        line-height: 1.65;
    }
}


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

@media (max-width: 430px) {

    .blog-section {
        padding: 60px 18px;
    }

    .blog-grid {
        gap: 20px;
    }

    .blog-card {
        width: 100%;
    }

    .blog-image {
        height: 200px;
    }

    .blog-content {
        padding: 21px 20px 24px;
    }

    .meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

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

    .blog-content p {
        font-size: 14px;
    }
}

/* =========================================
   BLOG CATEGORY FILTER
========================================= */
.blog-category-filter {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: -25px auto 45px;
}

.category-filter-btn {
    appearance: none;
    border: 1px solid #dce6ef;
    background: #fff;
    color: #526575;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: all .25s ease;
}

.category-filter-btn:hover {
    border-color: #3d72bf;
    color: #3d72bf;
    background: #f4f8ff;
}

.category-filter-btn.active {
    background: #3d72bf;
    border-color: #3d72bf;
    color: #fff;
    box-shadow: 0 6px 16px rgba(61, 114, 191, .18);
}

.no-blogs-found {
    width: 100%;
    text-align: center;
    padding: 45px 20px;
    color: #7f8b96;
    font-size: 16px;
}

@media (max-width: 700px) {
    .blog-category-filter {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 4px 2px 10px;
        margin: -20px auto 35px;
        scrollbar-width: none;
    }

    .blog-category-filter::-webkit-scrollbar {
        display: none;
    }

    .category-filter-btn {
        flex: 0 0 auto;
        padding: 9px 17px;
        font-size: 13px;
    }
}

/* =========================================
   DYNAMIC BLOG GRID WIDTH
========================================= */

/* -----------------------------------------
   1 BLOG
----------------------------------------- */

.blog-grid.blog-count-1 .blog-card {
    flex: 0 1 100%;
    max-width: 100%;
}


/* -----------------------------------------
   2 BLOGS
----------------------------------------- */

.blog-grid.blog-count-2 .blog-card {
    flex: 0 1 calc((100% - 28px) / 2);
    max-width: none;
}


/* -----------------------------------------
   3 OR MORE BLOGS
----------------------------------------- */

.blog-grid.blog-count-3 .blog-card {
    flex: 0 1 calc((100% - 56px) / 3);
    max-width: 100%;
}