/* =========================================================
   Blog Pages
========================================================= */

.blog-page{
    background:linear-gradient(180deg,#f4f8fb 0%,#ffffff 100%);
    padding:70px 0 90px;
}

/* =========================================================
   Hero
========================================================= */

.blog-show-page{
    background:linear-gradient(180deg,#f4f8fb 0%,#ffffff 100%);
    padding:0px 0 90px;
}

.blog-show-hero{
    max-width:920px;
    margin-bottom:34px;
}

.blog-category-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#e8f3f7;
    color:#0f477d;
    padding:8px 15px;
    border-radius:999px;
    font-size:13px;
    font-weight:900;
    text-decoration:none;
    margin-bottom:16px;
}

.blog-category-badge.small{
    font-size:12px;
    padding:6px 12px;
    margin-bottom:14px;
}

.blog-show-hero h1{
    color:#0f477d;
    font-size:clamp(2rem,4vw,4.2rem);
    line-height:1.15;
    font-weight:950;
    margin:0 0 16px;
}

.blog-date{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#436991;
    font-weight:800;
    margin-bottom:18px;
}

.blog-show-hero p{
    color:#436991;
    font-size:18px;
    line-height:1.9;
    max-width:780px;
}

.blog-cover-content h1 {
    text-transform: capitalize;
}

/* =========================================================
   Main Image
========================================================= */

.blog-main-image{
    border-radius:30px;
    overflow:hidden;
    margin-bottom:34px;
    box-shadow:0 22px 55px rgba(15,39,68,.10);
}

.blog-main-image img{
    width:100%;
    max-height:620px;
    object-fit:cover;
    display:block;
}

/* =========================================================
   Content
========================================================= */

.blog-content{
    background:#fff;
    padding:42px;
    border-radius:28px;
    color:#173657;
    line-height:2;
    font-size:17px;
    box-shadow:0 16px 45px rgba(15,39,68,.06);
}

.blog-content p{
    margin-bottom:20px;
}

.blog-content img{
    max-width:100%;
    border-radius:18px;
    margin:18px 0;
}

/* =========================================================
   Gallery
========================================================= */

.blog-gallery-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
    margin-top:34px;
}

.blog-gallery-item{
    display:block;
    height:240px;
    border-radius:22px;
    overflow:hidden;
}

.blog-gallery-item img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.35s ease;
}

.blog-gallery-item:hover img{
    transform:scale(1.06);
}

/* =========================================================
   Related Blogs
========================================================= */

.related-blog-section{
    margin-top:70px;
}

.related-blog-grid{
    display:flex;
    gap:22px;
    margin-top:34px;
    overflow-x:auto;
    padding-bottom:12px;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
}

.related-blog-grid::-webkit-scrollbar{
    display:none;
}

.related-blog-card{
    flex:0 0 calc(33.333% - 15px);
    min-width:calc(33.333% - 15px);
    scroll-snap-align:start;

    background:#fff;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 16px 45px rgba(15,39,68,.07);

    display:flex;
    flex-direction:column;
}

.related-blog-img{
    height:220px;
    display:block;
    overflow:hidden;
}

.related-blog-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.35s ease;
}

.related-blog-card:hover .related-blog-img img{
    transform:scale(1.06);
}

.related-blog-body{
    padding:24px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.related-blog-body h3{
    font-size:21px;
    line-height:1.45;
    font-weight:900;
    margin-bottom:14px;
}

.related-blog-body h3 a{
    color:#0f477d;
    text-decoration:none;
}

.related-blog-body p{
    color:#436991;
    line-height:1.7;
    margin-bottom:20px;
}

.related-blog-body .main-btn{
    margin-top:auto;
    width:100%;
}

/* =========================================================
   Blog Cards
========================================================= */

.hub-card{
    background:#fff;
    border-radius:26px;
    overflow:hidden;
    box-shadow:0 14px 40px rgba(15,39,68,.06);
    height:100%;
    display:flex;
    flex-direction:column;
}

.hub-card-image{
    display:block;
    height:250px;
    overflow:hidden;
}

.hub-card-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.35s ease;
}

.hub-card:hover .hub-card-image img{
    transform:scale(1.06);
}

.hub-card-body{
    padding:24px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.hub-card-meta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:16px;
}

.hub-date{
    color:#6f89a5;
    font-size:13px;
    font-weight:700;
}

.hub-card-body h3{
    font-size:22px;
    line-height:1.45;
    margin-bottom:14px;
    font-weight:900;
}

.hub-card-body h3 a{
    color:#0f477d;
    text-decoration:none;
}

.hub-card-body p{
    color:#436991;
    line-height:1.8;
    margin-bottom:18px;
}

/* =========================================================
   Featured Blog
========================================================= */

.hub-featured-card{
    background:#fff;
    border-radius:32px;
    overflow:hidden;
    margin-bottom:32px;
    box-shadow:0 22px 55px rgba(15,39,68,.08);
}

.hub-featured-image{
    display:block;
    height:100%;
    min-height:420px;
}

.hub-featured-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.hub-featured-content{
    padding:42px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    height:100%;
}

.hub-featured-content h3{
    font-size:42px;
    line-height:1.2;
    color:#0f477d;
    font-weight:950;
    margin:12px 0 18px;
}

.hub-featured-content p{
    color:#436991;
    line-height:1.9;
    font-size:17px;
}

/* =========================================================
   Mobile
========================================================= */

@media(max-width:991.98px){

    .blog-show-page{
        padding:0px 0 70px;
    }

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

    .blog-show-hero p{
        font-size:15px;
        line-height:1.8;
    }

    .blog-main-image{
        border-radius:22px;
    }

    .blog-main-image img{
        max-height:360px;
    }

    .blog-content{
        padding:24px;
        border-radius:22px;
        font-size:15px;
        line-height:1.9;
    }

    .blog-gallery-grid{
        display:flex;
        overflow-x:auto;
        gap:14px;
        padding-bottom:10px;
        scroll-snap-type:x mandatory;
        scrollbar-width:none;
    }

    .blog-gallery-grid::-webkit-scrollbar{
        display:none;
    }

    .blog-gallery-item{
        flex:0 0 82%;
        min-width:82%;
        height:240px;
        scroll-snap-align:start;
    }

    .related-blog-card{
        flex:0 0 86%;
        min-width:86%;
    }

    .hub-featured-image{
        min-height:260px;
    }

    .hub-featured-content{
        padding:24px;
    }

    .hub-featured-content h3{
        font-size:30px;
    }

    .hub-card-body{
        padding:20px;
    }

    .hub-card-body h3{
        font-size:20px;
    }

}

@media (max-width: 991.98px) {
    .main-container, .navbar>.container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}



/* =========================================================
   New Cover Hero
========================================================= */

.blog-cover-hero{
    position:relative;
    height:72vh;
    min-height:620px;
    overflow:hidden;
    margin-bottom:34px;
}

.blog-cover-image{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.blog-cover-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(7,26,38,.82),
        rgba(7,26,38,.22)
    );
}

.blog-cover-content{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    z-index:3;
    padding:55px;
    max-width:900px;
}

.blog-cover-content h1{
    color:#fff;
    font-size:clamp(2.4rem,5vw,5rem);
    line-height:1.08;
    font-weight:950;
    margin:16px 0;
}

.blog-cover-content .blog-date{
    color:#fff;
    opacity:.95;
}

.blog-intro-text{
    max-width:900px;
    margin:0 auto 38px;
    color:#436991;
    font-size:20px;
    line-height:2;
}

/* remove old white box */

.blog-content{
    background:transparent;
    padding:0;
    border-radius:0;
    box-shadow:none;
    max-width:920px;
    margin:auto;
}

/* related blogs cleaner */

.related-blog-body{
    padding:20px;
}

.related-blog-body h3{
    margin-bottom:0;
    font-size:20px;
}

/* =========================================================
   Mobile
========================================================= */

@media(max-width:991.98px){

    .blog-cover-hero{
        height:60vh;
        min-height:420px;
        border-radius:0px;
    }

    .blog-cover-content{
        padding:26px;
    }

    .blog-cover-content h1{
        font-size:34px;
        line-height:1.15;
    }

    .blog-intro-text{
        font-size:16px;
        line-height:1.9;
        margin-bottom:28px;
    }

}




