/* =========================================================
   BLOG PAGE
========================================================= */

.blog-page {
    padding: 55px 0 70px;
}

/* =========================================================
   BLOG CARD
========================================================= */
.blog-card {
    background: var(--bs-white);
    border: 1px solid #e8edf3;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow:
        0 6px 22px rgba(16, 44, 82, 0.055);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    scroll-margin-top: 110px;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 14px 35px rgba(16, 44, 82, 0.10);
}

/* =========================================================
   BLOG ROW
========================================================= */
.blog-card .row {
    align-items: flex-start;
}

/* =========================================================
   BLOG IMAGE
========================================================= */
.blog-card-image {
    width: 100%;
    overflow: hidden;
    background: #eef1f5;
}

.blog-card-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.03);
}

/* =========================================================
   BLOG CONTENT
========================================================= */
.blog-card-body {
    padding: 25px 25px 23px;
}

/* =========================================================
   META
========================================================= */
.blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 13px;
    color: var(--bs-dark-grey);
    font-size: 12px;
}

.blog-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.blog-meta-item i {
    color: var(--bs-gold);
    font-size: 14px;
}

/* =========================================================
   CATEGORY
========================================================= */
.blog-category {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background: var(--bs-navy);
    color: var(--bs-white);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* =========================================================
   TITLE
========================================================= */
.blog-card-title {
    margin: 0 0 10px;
    color: var(--bs-navy);
    font-size: 21px;
    line-height: 1.3;
    font-weight: 700;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   DESCRIPTION
========================================================= */
.blog-card-description {
    color: #667085;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 17px;
}

/* =========================================================
   FULL BLOG CONTENT
========================================================= */
.blog-full-content {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--bs-grey);
    color: #667085;
    font-size: 14px;
    line-height: 1.8;
}

.blog-full-content p {
    margin-bottom: 14px;
}

.blog-full-content img {
    max-width: 100%;
    height: auto;
}

/* =========================================================
   READ MORE
========================================================= */
.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bs-navy);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: color .25s ease;
}

.blog-read-more i {
    color: var(--bs-gold);
    font-size: 17px;
    transition:
        transform .25s ease,
        color .25s ease;
}

.blog-read-more:hover {
    color: var(--bs-navy);
}

.blog-read-more:hover i {
    transform: translateX(4px);
}

.blog-read-more.expanded i {
    transform: rotate(180deg);
}

.blog-read-more.expanded:hover i {
    transform: rotate(180deg) translateX(4px);
}


/* =========================================================
   SIDEBAR
========================================================= */
:root {
    --navbar-height: 70px;
}

.blog-sidebar {
    position: sticky;
    top: calc(var(--navbar-height) + 20px);
    z-index: 10;
}

/* =========================================================
   NEWSLETTER
========================================================= */
.newsletter-card {
    position: relative;
    overflow: hidden;
    padding: 27px 25px;
    margin-bottom: 22px;
    border-radius: 10px;
    background:
        linear-gradient(
            135deg,
            #071f42 0%,
            var(--bs-navy) 100%
        );
    box-shadow:
        0 10px 30px rgba(11, 40, 80, 0.14);
}

.newsletter-card::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    right: -75px;
    top: -75px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08);
}

.newsletter-content {
    position: relative;
    z-index: 2;
}

.newsletter-card h3 {
    color: var(--bs-white);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.newsletter-card p {
    color: rgba(255,255,255,.78);
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 18px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form .form-control {
    height: 42px;
    border: 0;
    border-radius: 5px;
    font-size: 13px;
    box-shadow: none;
}

.newsletter-btn {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 5px;
    background: #dce3ed;
    color: var(--bs-navy);
    font-size: 12px;
    font-weight: 700;
    transition: all .25s ease;
}

.newsletter-btn:hover {
    background: #07142d;
	color: #fff;
}

/* =========================================================
   RECENT POSTS
========================================================= */
.recent-posts-card {
    background: var(--bs-white);
    border: 1px solid #e8edf3;
    border-radius: 10px;
    padding: 25px;
    box-shadow:
        0 6px 22px rgba(16, 44, 82, 0.055);
}

/* Header */
.recent-posts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 17px;

    padding-bottom: 14px;

    border-bottom: 1px solid var(--bs-grey);
}

.recent-posts-header h3 {
    position: relative;
    color: var(--bs-navy);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.recent-posts-header h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -15px;
    width: 35px;
    height: 2px;
    background: var(--bs-gold);
}

.recent-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bs-navy);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.recent-view-all i {
    color: var(--bs-navy);
}

/* Recent item */
.recent-post {
    display: flex;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid var(--bs-grey);
}

.recent-post:last-of-type {
    border-bottom: 0;
}

.recent-post-image {
    flex: 0 0 105px;
    width: 105px;
    height: 70px;
    overflow: hidden;
    border-radius: 6px;
    background: #eef1f5;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.recent-post:hover img {
    transform: scale(1.05);

}

.recent-post-content {
    min-width: 0;
}

.recent-post-title {
    display: block;
    color: var(--bs-navy);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 8px;
}

.recent-post-title:hover {
    color: var(--bs-navy);
}

.recent-post-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--bs-dark-grey);
    font-size: 11px;
}

.recent-post-date i {
    color: var(--bs-navy);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 991.98px) {

    .blog-sidebar {
        position: static;
        margin-top: 35px;
    }

    .blog-card-image {
        height: 220px;
    }

}


@media (max-width: 767.98px) {

    .blog-page {
        padding: 45px 0 60px;
    }

    .blog-card-body {
        padding: 21px;
    }

    .blog-card-title {
        font-size: 19px;
    }

    .blog-card-image {
        height: 220px;
    }

    .newsletter-form {
        display: block;
    }

    .newsletter-form .form-control {
        margin-bottom: 8px;
    }

    .newsletter-btn {
        width: 100%;
    }

}


@media (max-width: 575.98px) {

    .blog-card {
        margin-bottom: 15px;
    }

    .blog-card-image {
        height: 200px;
    }

    .blog-meta {
        gap: 10px;
    }

    .recent-post-image {
        flex-basis: 90px;
        width: 90px;
        height: 65px;
    }

}