/* =========================================================
   BLOG HERO
========================================================= */

.blog-hero {
    padding: 38px 20px 28px;
    text-align: center;
    position: relative;
}

.blog-hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.blog-hero h1 {
    margin: 0 0 12px;

    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;

    letter-spacing: -1px;

    color: #172033;
}

.blog-hero p {
    margin: 0 auto;

    max-width: 760px;

    font-size: 16px;
    line-height: 1.75;

    color: #64748b;
}


/* =========================================================
   BLOG SECTION
========================================================= */

.blog-section {
    padding: 5px 20px 70px;
}

.blog-container {
    max-width: 1250px;
    margin: 0 auto;
}


/* =========================================================
   BLOG TOP BANNER
========================================================= */

.blog-top-ad {
    width: 100%;
    min-height: 90px;

    margin-bottom: 28px;

    border-radius: 16px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eef2ff
        );

    border: 1px solid rgba(15, 23, 42, 0.07);

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 15px;
}

.blog-top-ad-label {
    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: #94a3b8;
}


/* =========================================================
   BLOG LAYOUT
========================================================= */

.blog-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        300px;

    gap: 30px;

    align-items: start;
}


/* =========================================================
   POSTS AREA
========================================================= */

.blog-post-area {
    min-width: 0;
}


/* =========================================================
   POSTS GRID
========================================================= */

.blog-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 25px;
}


/* =========================================================
   BLOG CARD
========================================================= */

.blog-card {
    position: relative;

    overflow: hidden;

    border-radius: 18px;

    background: #ffffff;

    border: 1px solid rgba(15, 23, 42, 0.07);

    box-shadow:
        0 4px 18px rgba(15, 23, 42, 0.04);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.blog-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.10);

    border-color: rgba(13, 110, 253, 0.18);
}


/* =========================================================
   IMAGE LINK
========================================================= */

.blog-image-link {
    display: block;

    position: relative;

    overflow: hidden;
}


/* =========================================================
   BLOG IMAGE
========================================================= */

.blog-image {
    display: block;

    width: 100%;
    height: 225px;

    object-fit: cover;

    transition:
        transform .45s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}


/* =========================================================
   NO IMAGE
========================================================= */

.blog-no-image {
    height: 225px;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 50px;

    background:
        linear-gradient(
            135deg,
            #f1f5f9,
            #e2e8f0
        );

    color: #94a3b8;
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.blog-image-overlay {
    position: absolute;

    left: 15px;
    bottom: 15px;

    padding: 6px 11px;

    border-radius: 20px;

    background: rgba(15, 23, 42, 0.70);

    color: #ffffff;

    font-size: 12px;

    backdrop-filter: blur(6px);
}

.blog-image-overlay i {
    margin-right: 5px;
}


/* =========================================================
   CARD BODY
========================================================= */

.blog-card-body {
    padding: 23px;
}


/* =========================================================
   DATE
========================================================= */

.blog-date {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 11px;

    font-size: 12px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: .4px;

    color: #94a3b8;
}

.blog-date i {
    font-size: 11px;

    color: #64748b;
}


/* =========================================================
   CARD TITLE
========================================================= */

.blog-card h2 {
    margin: 0 0 12px;

    font-size: 21px;

    font-weight: 750;

    line-height: 1.4;

    color: #172033;
}

.blog-card h2 a {
    color: inherit;

    text-decoration: none;

    transition:
        color .2s ease;
}

.blog-card:hover h2 a {
    color: #0d6efd;
}


/* =========================================================
   CARD EXCERPT
========================================================= */

.blog-card p {
    margin: 0 0 20px;

    font-size: 14px;

    line-height: 1.75;

    color: #64748b;

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   READ MORE
========================================================= */

.blog-read-more {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    color: #0d6efd;

    transition:
        gap .2s ease;
}

.blog-read-more:hover {
    gap: 12px;
}

.blog-read-more i {
    font-size: 13px;
}


/* =========================================================
   SIDEBAR
========================================================= */

.blog-sidebar {
    width: 300px;

    position: sticky;

    top: 20px;
}


/* =========================================================
   SIDEBAR AD
========================================================= */

.blog-sidebar-ad {
    width: 100%;

    min-height: 300px;

    border-radius: 18px;

    background: #ffffff;

    border: 1px solid rgba(15, 23, 42, 0.07);

    box-shadow:
        0 4px 18px rgba(15, 23, 42, 0.04);

    overflow: hidden;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 15px;

    text-align: center;
}

.blog-sidebar-ad-title {
    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: #94a3b8;

    margin-bottom: 12px;
}

.blog-sidebar-ad-content {
    width: 100%;

    min-height: 250px;

    display: flex;

    align-items: center;

    justify-content: center;
}


/* =========================================================
   SIDEBAR INFO / LATEST ARTICLES
========================================================= */

.blog-sidebar-box {
    margin-top: 20px;

    padding: 22px;

    border-radius: 18px;

    background: #ffffff;

    border: 1px solid rgba(15, 23, 42, 0.07);

    box-shadow:
        0 4px 18px rgba(15, 23, 42, 0.04);
}


/* =========================================================
   SIDEBAR HEADING
========================================================= */

.blog-sidebar-box h3 {
    display: flex;

    align-items: center;

    gap: 8px;

    margin: 0 0 14px;

    font-size: 17px;

    font-weight: 750;

    color: #172033;
}

.blog-sidebar-box h3 i {
    color: #0d6efd;

    font-size: 15px;
}


/* =========================================================
   OLD SIDEBAR PARAGRAPH
========================================================= */

.blog-sidebar-box p {
    margin: 0;

    font-size: 14px;

    line-height: 1.7;

    color: #64748b;
}


/* =========================================================
   LATEST BLOG ITEM
========================================================= */

.latest-blog-item {
    padding: 13px 0;

    border-bottom:
        1px solid rgba(15, 23, 42, 0.08);
}

.latest-blog-item:first-child {
    padding-top: 4px;
}

.latest-blog-item:last-child {
    border-bottom: none;

    padding-bottom: 0;
}


/* =========================================================
   LATEST BLOG TITLE
========================================================= */

.latest-blog-title {
    display: block;

    color: #172033;

    text-decoration: none;

    font-size: 14px;

    font-weight: 650;

    line-height: 1.5;

    transition:
        color .2s ease;
}

.latest-blog-title:hover {
    color: #0d6efd;
}


/* =========================================================
   LATEST BLOG DATE
========================================================= */

.latest-blog-date {
    margin-top: 6px;

    display: flex;

    align-items: center;

    gap: 5px;

    font-size: 11px;

    color: #94a3b8;
}

.latest-blog-date i {
    font-size: 10px;
}


/* =========================================================
   PAGINATION
========================================================= */

.blog-pagination {
    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 45px;
}

.blog-pagination a {
    min-width: 42px;

    height: 42px;

    padding: 0 13px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    border-radius: 10px;

    border:
        1px solid rgba(15, 23, 42, 0.09);

    background: #ffffff;

    color: #475569;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.blog-pagination a:hover {
    transform: translateY(-2px);

    border-color: #0d6efd;

    color: #0d6efd;
}

.blog-pagination a.active {
    background: #0d6efd;

    border-color: #0d6efd;

    color: #ffffff;

    font-weight: 700;

    box-shadow:
        0 5px 15px rgba(13, 110, 253, 0.25);
}


/* =========================================================
   EMPTY BLOG
========================================================= */

.blog-empty {
    text-align: center;

    padding: 80px 20px;

    border-radius: 18px;

    background: #ffffff;

    border:
        1px solid rgba(15, 23, 42, 0.07);
}

.blog-empty i {
    display: block;

    font-size: 55px;

    margin-bottom: 20px;

    color: #94a3b8;
}

.blog-empty h2 {
    margin-bottom: 10px;

    font-size: 24px;

    color: #172033;
}

.blog-empty p {
    margin: 0;

    color: #64748b;
}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1200px) {

    .blog-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        width: 100%;

        position: static;
    }

    .blog-sidebar-ad {
        min-height: 250px;
    }

    .blog-sidebar-ad-content {
        min-height: 200px;
    }

    .blog-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .blog-hero {
        padding: 34px 20px 25px;
    }

    .blog-hero h1 {
        font-size: 36px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .blog-hero {
        padding: 32px 15px 25px;
    }

    .blog-hero h1 {
        font-size: 30px;

        line-height: 1.25;

        letter-spacing: -.5px;
    }

    .blog-hero p {
        font-size: 15px;

        line-height: 1.65;
    }


    .blog-section {
        padding: 5px 15px 55px;
    }


    .blog-top-ad {
        min-height: 75px;

        margin-bottom: 22px;

        border-radius: 13px;
    }


    .blog-layout {
        gap: 22px;
    }


    .blog-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .blog-image {
        height: 210px;
    }


    .blog-no-image {
        height: 210px;
    }


    .blog-card {
        border-radius: 15px;
    }


    .blog-card-body {
        padding: 19px;
    }


    .blog-card h2 {
        font-size: 20px;
    }


    .blog-card p {
        font-size: 14px;

        -webkit-line-clamp: 3;
    }


    .blog-sidebar-ad {
        min-height: 300px;

        border-radius: 15px;
    }


    .blog-sidebar-box {
        padding: 19px;

        border-radius: 15px;
    }


    .blog-sidebar-box h3 {
        font-size: 16px;
    }


    .latest-blog-title {
        font-size: 14px;
    }


    .blog-pagination {
        margin-top: 35px;

        gap: 6px;
    }


    .blog-pagination a {
        min-width: 38px;

        height: 38px;

        padding: 0 10px;

        font-size: 13px;
    }


    .pagination-prev,
    .pagination-next {
        padding: 0 12px !important;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .blog-hero {
        padding: 28px 13px 22px;
    }

    .blog-hero h1 {
        font-size: 27px;
    }

    .blog-hero p {
        font-size: 14px;
    }


    .blog-image {
        height: 190px;
    }


    .blog-no-image {
        height: 190px;
    }


    .blog-pagination .pagination-prev,
    .blog-pagination .pagination-next {
        font-size: 0;
    }


    .blog-pagination .pagination-prev i,
    .blog-pagination .pagination-next i {
        font-size: 15px;
    }

}