/* ===========================
   BLOG PAGE
=========================== */



.page-title{
    font-size:40px;
    font-weight:700;
    margin-bottom:30px;
    color:#1b1b1b;
}

/* Search */

.blog-search{
    display:flex;
    margin-bottom:40px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    border-radius:10px;
    overflow:hidden;
}

.blog-search input{
    flex:1;
    border:none;
    padding:18px;
    font-size:15px;
    outline:none;
}

.blog-search button{
    border:none;
    background:#0066ff;
    color:#fff;
    padding:0 30px;
    cursor:pointer;
    font-size:15px;
    transition:.3s;
}

.blog-search button:hover{
    background:#004ecc;
}

/* Layout */

.blog-container{
    display:grid;
    grid-template-columns:2fr 360px;
    gap:35px;
}

/* Blog Grid */

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

/* Card */

.blog-card{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
    transition:.35s;
}

.blog-card:hover{
    transform:translateY(-6px);
    box-shadow:0 15px 35px rgba(0,0,0,.12);
}

.blog-card img{
    width:100%;
    height:240px;
    object-fit:cover;
}

.blog-content{
    padding:22px;
}

.blog-content h3{
    margin-bottom:12px;
    font-size:22px;
}

.blog-content h3 a{
    text-decoration:none;
    color:#111;
}

.blog-content h3 a:hover{
    color:#0066ff;
}

.blog-content p{
    color:#666;
    line-height:1.8;
    margin-bottom:18px;
}

.blog-meta{
    display:flex;
    justify-content:space-between;
    font-size:14px;
    color:#888;
}

/* Sidebar */

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

.sidebar-box{
    background:#fff;
    border-radius:10px;
    padding:25px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.sidebar-box h4{
    margin-bottom:20px;
    font-size:22px;
    border-left:4px solid #0066ff;
    padding-left:10px;
}

.sidebar-box ul{
    list-style:none;
}

.sidebar-box ul li{
    border-bottom:1px solid #eee;
}

.sidebar-box ul li:last-child{
    border:none;
}

.sidebar-box ul li a{
    display:block;
    padding:12px 0;
    color:#444;
    text-decoration:none;
    transition:.3s;
}

.sidebar-box ul li a:hover{
    color:#0066ff;
    padding-left:8px;
}

/* Pagination */

.pagination{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:40px;
}

.pagination a,
.pagination span{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#fff;
    text-decoration:none;
    color:#333;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.pagination .active span{
    background:#0066ff;
    color:#fff;
}

/* Responsive */

@media(max-width:992px){

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

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

.sidebar{
    order:-1;
}

}

@media(max-width:576px){

.page-title{
    font-size:30px;
}

.blog-search{
    flex-direction:column;
}

.blog-search button{
    padding:15px;
}

.blog-card img{
    height:220px;
}

}

/*============================
CATEGORY PAGE
=============================*/

.category-header{
    text-align:center;
    margin:40px 0;
}

.category-header h1{
    font-size:42px;
    color:#222;
    margin-bottom:10px;
}

.category-header p{
    color:#777;
    font-size:16px;
}

/*==========================
BLOG LAYOUT
==========================*/

.blog-layout{
    display:grid;
    grid-template-columns:2fr 350px;
    gap:40px;
}

.blog-sidebar{
    position:sticky;
    top:30px;
    align-self:start;
}

.sidebar-widget{
    background:#fff;
    border-radius:10px;
    padding:25px;
    margin-bottom:30px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
}

.sidebar-widget h4{
    margin-bottom:20px;
    font-size:22px;
    border-left:4px solid #0d6efd;
    padding-left:10px;
}

.sidebar-widget form{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.sidebar-widget input{
    padding:12px;
    border:1px solid #ddd;
    border-radius:5px;
}

.sidebar-widget button{
    padding:12px;
    background:#0d6efd;
    color:#fff;
    border:none;
    border-radius:5px;
    cursor:pointer;
}

.sidebar-widget button:hover{
    background:#084298;
}

.sidebar-widget ul{
    list-style:none;
    padding:0;
    margin:0;
}

.sidebar-widget ul li{
    border-bottom:1px solid #eee;
}

.sidebar-widget ul li:last-child{
    border:none;
}

.sidebar-widget ul li a{
    display:block;
    padding:12px 0;
    color:#444;
    text-decoration:none;
}

.sidebar-widget ul li a:hover{
    color:#0d6efd;
    padding-left:8px;
}

.latest-post{
    display:flex;
    gap:15px;
    margin-bottom:20px;
}

.latest-post img{
    width:90px;
    height:70px;
    object-fit:cover;
    border-radius:8px;
}

.latest-post a{
    font-weight:600;
    color:#222;
    text-decoration:none;
    display:block;
    margin-bottom:5px;
}

.latest-post a:hover{
    color:#0d6efd;
}

.latest-post span{
    font-size:13px;
    color:#777;
}

@media(max-width:992px){

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

.blog-sidebar{
    position:static;
}

}