/* ================================================================ */
/* BLOG HERO */
/* ================================================================ */

.bloghero-section {
    width: 100%;
    padding: 30px;
    background: #f3f3f3;
}

.bloghero-inner {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 25px;
    overflow: hidden;
}

.bloghero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1499750310107-5fef28a66643?w=1600&q=80&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bloghero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}

.bloghero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bloghero-title {
    color: #fff;
    font-size: 90px;
    font-weight: 600;

}

@media (max-width: 768px) {
    .bloghero-section {
        padding: 20px;
    }

    .bloghero-inner {
        height: 300px;
    }

    .bloghero-title {
        font-size: 45px;
    }
}


/* ================================================================ */
/* BLOG SECTION (main grid: left cards + right sidebar)             */
/* ================================================================ */

.blog-section {
    max-width: 1400px;
    margin: auto;
    padding: 30px 70px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}


/* ================================================================ */
/* LEFT SIDE — card grid                                            */
/* ================================================================ */

.blog-left {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}


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

.blog-card {
    height: 478px;
    width: 340px;
    background: #f5f5f5;
    border-radius: 0;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

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

.blog-empty {
    grid-column: 1 / -1;
    background: #f5f5f5;
    padding: 35px 24px;
    color: #0b2c7d;
}

.blog-empty h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.blog-empty p {
    color: #222;
    font-size: 16px;
}

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

.blog-content {
    padding: 12px;
}

.category {
    display: inline-flex;
    align-items: center;
    background: #ffe000;
    color: #000;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 18px;
    line-height: 28px;
    color: #062b78;
    font-weight: 800;
}

.blog-desc {
    color: #222;
    line-height: 28px;
    font-size: 17px;
    margin-bottom: 14px;
}

.read-btn {
    display: table;
    background: linear-gradient(to right, #ff5a1f, #ff9b1f);
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .blog-section {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }

    .blog-left {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-title {
        font-size: 20px;
        line-height: 30px;
    }

    .blog-img {
        height: 250px;
    }
}


/* ================================================================ */
/* RIGHT SIDEBAR                                                    */
/* ================================================================ */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Popular Feeds title */
.sidebar-title {
    font-size: 28px;
    color: #0b2c7d;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 0;
}

/* Feed white card */
.feed-box {
    background: #fff;
    padding: 0 16px;
    border: 1px solid #ebebeb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.feed-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #e8e8e8;
}

.feed-item:last-child {
    border-bottom: none;
}

.feed-img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.feed-content h4 {
    font-size: 13px;
    line-height: 19px;
    color: #111;
    margin-bottom: 8px;
    font-weight: 700;
}

.feed-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .sidebar-title {
        font-size: 24px;
    }

    .feed-content h4 {
        font-size: 13px;
        line-height: 19px;
    }

    .feed-img {
        width: 70px;
        height: 70px;
    }
}


/* ================================================================ */
/* BLOG SIDEBAR BOX — wraps Blog Category AND Tags                  */
/* ================================================================ */

.blog-sidebar-box {
    margin-bottom: 30px;
}

/* Section heading: "Blog Category" / "Tags" */
.sidebar-heading {
    font-size: 22px;
    color: #0b2c7d;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 0;
    display: inline-block;
}


/* ================================================================ */
/* BLOG CATEGORY LIST                                               */
/* ================================================================ */

.category-box {
    background: #fff;
    padding: 10px 16px;
    border: 1px solid #ebebeb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}


.category-list li:last-child {
    border-bottom: none;
}

.category-list li a,
.category-list li a:hover,
.category-list li a:focus,
.category-list li a:visited {
    text-decoration: none !important;
    color: #222;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 4px;
    transition: color 0.25s, padding-left 0.25s;
    letter-spacing: 0.3px;
}

.category-list li a:hover {
    color: #0b2c7d;
    padding-left: 6px;
}

/* Yellow chevron arrow */
.category-list li a span {
    color: #f5c200;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}


/* ================================================================ */
/* TAGS                                                             */
/* ================================================================ */

.tags-box {
    background: #fff;
    padding: 16px;
    border: 1px solid #ebebeb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Individual tag pill */
.tag-item,
.tag-item:hover,
.tag-item:focus,
.tag-item:visited {
    text-decoration: none !important;
    /* background: #f5f5f5; */
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    /* border: 1px solid #ddd; */
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    white-space: nowrap;
}

.tag-item:hover {
    background: #ffe000;
    border-color: #ffe000;
    color: #111;
}


/* ================================================================ */
/* SIDEBAR BANNER — "Grow your business with us"                    */
/* ================================================================ */

.sidebar-banner {
    position: relative;
    width: 100%;
    min-height: 180px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=900&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    margin-bottom: 30px;
}

.sidebar-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 43, 120, 0.88) 0%, rgba(11, 44, 125, 0.80) 100%);
}

.sidebar-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 30px 20px;
}

.sidebar-banner-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 18px 0;
}

.sidebar-banner-btn {
    display: inline-block;
    background: linear-gradient(to right, #ff5a1f, #ff9b1f);
    color: #fff;
    text-decoration: none;
    padding: 11px 28px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: opacity 0.25s, transform 0.25s;
}

.sidebar-banner-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .sidebar-banner-title {
        font-size: 18px;
    }
}


/* ================================================================ */
/* RESPONSIVE                                                       */
/* ================================================================ */

@media (max-width: 1100px) {
    .blog-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar-heading {
        font-size: 20px;
    }

    .tag-item {
        font-size: 11px;
    }

    .category-list li a {
        font-size: 13px;
    }
}



/* ========================================================= */
/* RESPONSIVE - LARGE LAPTOP */
/* ========================================================= */

@media(max-width:1400px){

    .blog-section{
        padding: 30px 40px;
    }

    .blog-card{
        width: 100%;
    }

}



/* ========================================================= */
/* RESPONSIVE - TABLET */
/* ========================================================= */

@media(max-width:991px){

    .blog-section{
        grid-template-columns: 1fr;
        padding: 25px 20px;
    }

    .blog-left{
        grid-template-columns: repeat(2,1fr);
        gap: 20px;
    }

    .blog-card{
        width: 100%;
        height: auto;
    }

    .sidebar{
        margin-top: 20px;
    }

}



/* ========================================================= */
/* RESPONSIVE - MOBILE */
/* ========================================================= */

@media(max-width:768px){

    /* HERO */

    .bloghero-section{
        padding: 15px;
    }

    .bloghero-inner{
        height: 250px;
        border-radius: 15px;
    }

    .bloghero-title{
        font-size: 42px;
    }


    /* MAIN */

    .blog-section{
        padding: 20px 15px;
        gap: 25px;
    }

    .blog-left{
        grid-template-columns: 1fr;
        gap: 20px;
    }


    /* CARD */

    .blog-card{
        width: 100%;
        height: auto;
    }

    .blog-img{
        height: 220px;
    }

    .blog-content{
        padding: 15px;
    }

    .category{
        font-size: 12px;
        padding: 8px 12px;
    }

    .blog-title{
        font-size: 18px;
        line-height: 28px;
    }

    .blog-desc{
        font-size: 14px;
        line-height: 24px;
    }

    .read-btn{
        font-size: 13px;
        padding: 10px 20px;
    }


    /* SIDEBAR */

    .sidebar-title{
        font-size: 26px;
    }

    .sidebar-heading{
        font-size: 24px;
    }

    .feed-box,
    .category-box,
    .tags-box{
        padding: 15px;
    }

    .feed-item{
        gap: 12px;
        padding: 14px 0;
    }

    .feed-img{
        width: 65px;
        height: 65px;
    }

    .feed-content h4{
        font-size: 13px;
        line-height: 20px;
    }

    .feed-date{
        font-size: 12px;
    }


    /* CATEGORY */

    .category-list li a{
        font-size: 12px;
    }

    .category-list li a span{
        font-size: 16px;
    }


    /* TAG */

    /* .tag-item{
        font-size: 10px;
        padding: 5px 10px;
    } */
        .tags-box{
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .tag-item{
        width: 100%;
        /* text-align: center; */
    }

}



/* ========================================================= */
/* RESPONSIVE - SMALL MOBILE */
/* ========================================================= */

@media(max-width:480px){

    .bloghero-title{
        font-size: 34px;
    }

    .blog-img{
        height: 190px;
    }

    .blog-title{
        font-size: 16px;
        line-height: 24px;
    }

    .blog-desc{
        font-size: 13px;
        line-height: 22px;
    }

    .sidebar-title,
    .sidebar-heading{
        font-size: 22px;
    }

}
