.blog-section{
    padding:80px 0;
    background:#f8fafc;
}

.container{
    max-width:1400px;
    margin:auto;
    padding:0 20px;
}

.blog-heading{
    text-align:center;
    margin-bottom:60px;
}

.blog-tag{
    display:inline-block;
    background:#eef2ff;
    color:#2563eb;
    padding:8px 18px;
    border-radius:50px;
    font-size:14px;
    font-weight:600;
    margin-bottom:20px;
}

.blog-heading h1{
    font-size:52px;
    margin-bottom:20px;
}

.blog-heading p{
    max-width:800px;
    margin:auto;
    color:#6b7280;
    line-height:1.8;
}

.blog-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.blog-card{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 35px rgba(0,0,0,.08);
    transition:.3s;
}

.blog-card:hover{
    transform:translateY(-8px);
}

.blog-image img{
    width:100%;
    height:250px;
    object-fit:cover;
}

.blog-content{
    padding:25px;
}

.blog-content h2{
    font-size:24px;
    line-height:1.4;
    margin-bottom:15px;
}

.blog-content p{
    color:#6b7280;
    line-height:1.8;
    margin-bottom:20px;
}

.read-more{
    color:#2563eb;
    text-decoration:none;
    font-weight:600;
}

.pagination{
    text-align:center;
    margin-top:60px;
}

.pagination a{
    display:inline-block;
    width:45px;
    height:45px;
    line-height:45px;
    text-decoration:none;
    background:#fff;
    margin:0 5px;
    border-radius:8px;
    color:#111;
}

.pagination a.active{
    background:#2563eb;
    color:#fff;
}

@media(max-width:992px){

.blog-grid{
    grid-template-columns:1fr;
}

.blog-heading h1{
    font-size:36px;
}

}

.blog-wrapper{
    display:flex;
    gap:30px;
    max-width:1200px;
    margin:50px auto;
    padding:0 20px;
}

.blog-content{
    flex:3;
}

.blog-content h1{
    font-size:42px;
    margin-bottom:20px;
}

.featured-image{
    width:100%;
    height:auto;
    border-radius:10px;
    margin-bottom:20px;
}

.content{
    line-height:1.8;
    font-size:18px;
}

.sidebar{
    flex:1;
    background:#fff;
    padding:20px;
    border-radius:10px;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

.sidebar h3{
    margin-bottom:20px;
}

.sidebar-box{
    background:#fff;
    padding:20px;
    border-radius:10px;
}

.recent-blog{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:15px;
    text-decoration:none;
}

.recent-blog img{
    width:90px;
    height:70px;
    object-fit:cover;
    border-radius:6px;
}

.recent-content h4{
    margin:0;
    font-size:16px;
    color:#222;
    line-height:1.4;
}

@media(max-width:768px){

    .blog-wrapper{
        flex-direction:column;
    }

    .sidebar{
        width:100%;
    }
}
.sidebar{
    flex:1;
    position:sticky;
    top:120px; /* adjust according to header height */
    align-self:flex-start;
}
@media(max-width:768px){

    .blog-wrapper{
        flex-direction:column;
    }

    .sidebar{
        display:none;   /* ✅ HIDE SIDEBAR ON MOBILE */
    }

    .blog-content{
        flex:100%;
        width:100%;
    }

}