/* =========================================================
   BLOG PAGE
========================================================= */


/* =========================================================
   BLOG HERO
========================================================= */

.blog-hero {
    position: relative;

    padding: 70px 0 75px;

    overflow: hidden;

    background:
        linear-gradient(
            115deg,
            #ffffff 0%,
            #f5f9ff 60%,
            #eaf3ff 100%
        );
}

.blog-hero::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -80px;
    top: -100px;

    border-radius: 50%;

    border: 45px solid rgba(73,133,220,.06);
}

.blog-hero-content {
    max-width: 850px;

    margin: auto;

    text-align: center;
}

.blog-hero h1 {
    margin: 0 0 18px;

    color: #111b2b;

    font-size: 47px;

    line-height: 1.08;

    letter-spacing: -1.5px;
}

.blog-hero h1 span {
    display: block;

    color: #0a348b;
}

.blog-hero p {
    max-width: 650px;

    margin: auto;

    color: #657080;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   SEARCH
========================================================= */

.blog-hero-search {
    max-width: 580px;

    margin: 28px auto 0;
}

.blog-search-box {
    display: flex;

    align-items: center;

    height: 50px;

    padding: 5px;

    border: 1px solid #d4dfed;

    border-radius: 7px;

    background: #ffffff;

    box-shadow:
        0 8px 30px rgba(30,70,130,.07);
}

.search-icon {
    width: 45px;

    color: #7891b4;

    font-size: 22px;
}

.blog-search-box input {
    flex: 1;

    height: 100%;

    border: 0;

    outline: 0;

    color: #29364a;

    font-size: 12px;

    background: transparent;
}

.blog-search-box input::placeholder {
    color: #9aa5b3;
}

.blog-search-box button {
    height: 40px;

    padding: 0 22px;

    border: 0;

    border-radius: 5px;

    background: #082e87;

    color: #ffffff;

    font-size: 10px;

    font-weight: 600;

    cursor: pointer;
}


/* =========================================================
   CATEGORIES
========================================================= */

.blog-categories {
    padding: 18px 0;

    border-bottom: 1px solid #e1e7ef;

    background: #ffffff;
}

.category-list {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 8px;

    flex-wrap: wrap;
}

.category {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 34px;

    padding: 0 16px;

    border: 1px solid #dce4ee;

    border-radius: 5px;

    color: #536174;

    font-size: 10px;

    font-weight: 600;

    text-decoration: none;

    transition: .2s ease;
}

.category:hover,
.category.active {
    border-color: #0a348b;

    background: #0a348b;

    color: #ffffff;
}


/* =========================================================
   FEATURED
========================================================= */

.featured-blog {
    padding: 70px 0 40px;
}

.blog-heading {
    margin-bottom: 35px;
}

.featured-post {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    min-height: 400px;

    overflow: hidden;

    border: 1px solid #dce5f0;

    border-radius: 9px;

    background: #ffffff;

    box-shadow:
        0 10px 35px rgba(20,55,110,.06);
}

.featured-post-image {
    position: relative;

    min-height: 400px;

    overflow: hidden;

    background: #eaf2fc;
}

.featured-post-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.featured-label {
    position: absolute;

    left: 20px;
    top: 20px;

    padding: 7px 12px;

    border-radius: 4px;

    background: #082e87;

    color: #ffffff;

    font-size: 9px;

    font-weight: 700;

    text-transform: uppercase;
}

.featured-post-content {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 45px;
}

.post-meta {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 13px;
}

.post-meta span:first-child {
    color: #0a348b;

    font-size: 9px;

    font-weight: 700;

    text-transform: uppercase;
}

.post-meta span:last-child {
    color: #8b96a4;

    font-size: 9px;
}

.featured-post-content h2 {
    max-width: 550px;

    margin: 0 0 15px;

    color: #17243a;

    font-size: 27px;

    line-height: 1.25;
}

.featured-post-content > p {
    margin: 0 0 20px;

    color: #697483;

    font-size: 12px;

    line-height: 1.7;
}

.post-author {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 20px;
}

.post-author img {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    object-fit: cover;

    border: 1px solid #dbe4ef;
}

.post-author strong {
    display: block;

    color: #25334a;

    font-size: 10px;
}

.post-author span {
    display: block;

    margin-top: 3px;

    color: #8a94a1;

    font-size: 8px;
}

.read-more {
    align-self: flex-start;

    color: #0a348b;

    font-size: 10px;

    font-weight: 700;

    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}


/* =========================================================
   BLOG CONTENT
========================================================= */

.blog-content {
    padding: 40px 0 75px;

    background: #f9fbff;
}

.blog-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) 300px;

    gap: 35px;

    align-items: start;
}


/* =========================================================
   POSTS HEADER
========================================================= */

.posts-header {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-bottom: 25px;
}

.posts-header h2 {
    margin: 5px 0 0;

    color: #17243a;

    font-size: 25px;
}

.post-count {
    color: #7d8998;

    font-size: 10px;
}


/* =========================================================
   BLOG GRID
========================================================= */

.blog-grid {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 18px;
}

.blog-card {
    overflow: hidden;

    border: 1px solid #dce5f0;

    border-radius: 8px;

    background: #ffffff;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.blog-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 14px 30px rgba(20,55,110,.09);
}

.blog-card-image {
    position: relative;

    height: 155px;

    overflow: hidden;

    background: #e9f1fb;
}

.blog-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform .4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.04);
}

.blog-card-image > span {
    position: absolute;

    left: 12px;
    bottom: 12px;

    padding: 5px 8px;

    border-radius: 3px;

    background: rgba(8,46,135,.94);

    color: #ffffff;

    font-size: 8px;

    font-weight: 600;
}

.blog-card-body {
    padding: 18px;
}

.blog-card-meta {
    display: flex;

    justify-content: space-between;

    margin-bottom: 9px;

    color: #8a95a4;

    font-size: 8px;
}

.blog-card-body h3 {
    margin: 0 0 9px;

    color: #1d2a40;

    font-size: 15px;

    line-height: 1.35;
}

.blog-card-body p {
    margin: 0 0 14px;

    color: #6f7987;

    font-size: 10px;

    line-height: 1.6;
}

.blog-card-body > a {
    color: #0a348b;

    font-size: 9px;

    font-weight: 700;

    text-decoration: none;
}


/* =========================================================
   PAGINATION
========================================================= */

.blog-pagination {
    display: flex;

    justify-content: center;

    gap: 6px;

    margin-top: 35px;
}

.pagination {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #dce4ee;

    border-radius: 5px;

    background: #ffffff;

    color: #687586;

    font-size: 10px;

    text-decoration: none;
}

.pagination:hover,
.pagination.active {
    background: #0a348b;

    border-color: #0a348b;

    color: #ffffff;
}

.pagination.next {
    font-size: 15px;
}


/* =========================================================
   SIDEBAR
========================================================= */

.blog-sidebar {
    display: flex;

    flex-direction: column;

    gap: 18px;
}

.sidebar-box {
    padding: 22px;

    border: 1px solid #dce5f0;

    border-radius: 8px;

    background: #ffffff;
}

.sidebar-title {
    position: relative;

    margin-bottom: 18px;

    padding-bottom: 10px;

    color: #17243a;

    font-size: 13px;

    font-weight: 700;
}

.sidebar-title::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 28px;
    height: 2px;

    background: #0a348b;
}


/* =========================================================
   SIDEBAR ABOUT
========================================================= */

.sidebar-about {
    text-align: center;
}

.sidebar-about .sidebar-title {
    text-align: left;
}

.sidebar-about img {
    width: 80px;
    height: 80px;

    margin-bottom: 10px;

    border-radius: 50%;

    object-fit: cover;

    border: 3px solid #edf4ff;
}

.sidebar-about h3 {
    margin: 0 0 7px;

    color: #1b2940;

    font-size: 14px;
}

.sidebar-about p {
    margin: 0 0 12px;

    color: #707a88;

    font-size: 9px;

    line-height: 1.6;
}

.sidebar-link {
    color: #0a348b;

    font-size: 9px;

    font-weight: 700;

    text-decoration: none;
}


/* =========================================================
   POPULAR POSTS
========================================================= */

.popular-post {
    display: flex;

    gap: 10px;

    padding: 12px 0;

    border-bottom: 1px solid #edf0f4;
}

.popular-post:last-child {
    border-bottom: 0;

    padding-bottom: 0;
}

.popular-post > span {
    color: #b8c7da;

    font-size: 15px;

    font-weight: 700;
}

.popular-post a {
    display: block;

    color: #344158;

    font-size: 10px;

    font-weight: 600;

    line-height: 1.45;

    text-decoration: none;
}

.popular-post a:hover {
    color: #0a348b;
}

.popular-post small {
    display: block;

    margin-top: 4px;

    color: #9aa3af;

    font-size: 8px;
}


/* =========================================================
   SIDEBAR SERVICES
========================================================= */

.sidebar-services {
    list-style: none;

    margin: 0;

    padding: 0;
}

.sidebar-services li {
    border-bottom: 1px solid #edf0f4;
}

.sidebar-services li:last-child {
    border-bottom: 0;
}

.sidebar-services a {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 10px 0;

    color: #536073;

    font-size: 10px;

    text-decoration: none;
}

.sidebar-services a:hover {
    color: #0a348b;
}

.sidebar-services span {
    color: #0a348b;
}


/* =========================================================
   NEWSLETTER
========================================================= */

.newsletter-box {
    background:
        linear-gradient(
            145deg,
            #082e87,
            #123e9d
        );

    border: 0;

    color: #ffffff;
}

.newsletter-icon {
    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 12px;

    border-radius: 7px;

    background: rgba(255,255,255,.12);

    font-size: 16px;
}

.newsletter-box h3 {
    margin: 0 0 7px;

    color: #ffffff;

    font-size: 15px;
}

.newsletter-box p {
    margin: 0 0 15px;

    color: #d9e4fb;

    font-size: 9px;

    line-height: 1.6;
}

.newsletter-box form {
    display: flex;

    flex-direction: column;

    gap: 7px;
}

.newsletter-box input {
    height: 37px;

    padding: 0 10px;

    border: 0;

    outline: 0;

    border-radius: 4px;

    background: #ffffff;

    color: #25334a;

    font-size: 9px;
}

.newsletter-box button {
    height: 37px;

    border: 0;

    border-radius: 4px;

    background: #ffd95d;

    color: #172e66;

    font-size: 9px;

    font-weight: 700;

    cursor: pointer;
}


/* =========================================================
   BLOG CTA
========================================================= */

.blog-cta {
    padding: 0 0 55px;
}

.blog-cta-inner {
    position: relative;

    min-height: 175px;

    padding: 32px 60px;

    overflow: hidden;

    border-radius: 8px;

    background: #082e87;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.blog-cta-inner h2 {
    margin: 4px 0 7px;

    color: #ffffff;

    font-size: 27px;
}

.blog-cta-inner p {
    margin: 0 0 16px;

    color: #d8e4fb;

    font-size: 11px;
}

.blog-cta .section-tag {
    color: #a9c5f4;
}

.blog-cta-graphic {
    position: relative;

    width: 260px;
    height: 140px;
}

.blog-growth-chart {
    position: absolute;

    bottom: 10px;
    right: 20px;

    display: flex;

    align-items: flex-end;

    gap: 8px;
}

.blog-growth-chart i {
    display: block;

    width: 25px;

    border-radius: 3px 3px 0 0;

    background: #4d7dcc;
}

.blog-growth-chart i:nth-child(1) {
    height: 25px;
}

.blog-growth-chart i:nth-child(2) {
    height: 40px;
}

.blog-growth-chart i:nth-child(3) {
    height: 58px;
}

.blog-growth-chart i:nth-child(4) {
    height: 78px;
}

.blog-growth-chart i:nth-child(5) {
    height: 100px;
}

.blog-cta-graphic > span {
    position: absolute;

    right: 150px;
    top: 10px;

    color: #ffffff;

    font-size: 55px;

    transform: rotate(-20deg);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .blog-layout {
        grid-template-columns:
            minmax(0, 1fr) 260px;
    }

    .blog-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

    .blog-hero h1 {
        font-size: 40px;
    }

}


@media (max-width: 800px) {

    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-post-image {
        min-height: 300px;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        display: grid;

        grid-template-columns:
            repeat(2,1fr);
    }

    .newsletter-box {
        grid-column: span 2;
    }

    .blog-cta-inner {
        padding: 30px;
    }

}


@media (max-width: 600px) {

    .blog-hero {
        padding: 50px 0;
    }

    .blog-hero h1 {
        font-size: 31px;
    }

    .blog-search-box button {
        padding: 0 13px;
    }

    .category-list {
        justify-content: flex-start;
    }

    .featured-post-content {
        padding: 28px;
    }

    .featured-post-content h2 {
        font-size: 23px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .newsletter-box {
        grid-column: auto;
    }

    .blog-cta-inner {
        min-height: 210px;

        padding: 25px;
    }

    .blog-cta-inner h2 {
        font-size: 22px;
    }

    .blog-cta-graphic {
        position: absolute;

        right: -80px;

        opacity: .25;
    }

}