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

:root{
    --primary:#0f172a;
    --text:#222;
    --text-light:#666;
    --border:#e6e6e6;
    --bg:#f5f5f5;
    --white:#fff;
}

.category-page{
    background:var(--bg);
    padding-bottom:70px;
}

.container{
    width:min(1400px,95%);
    margin:auto;
}

/*==========================================
BREADCRUMB
==========================================*/

.breadcrumb-section{
    background:#fff;
    border-bottom:1px solid var(--border);
}

.breadcrumb{
    display:flex;
    align-items:center;
    gap:12px;
    padding:18px 0;
    font-size:14px;
}

.breadcrumb a{
    color:var(--primary);
    text-decoration:none;
    font-weight:600;
}

.breadcrumb span{
    color:#777;
}

/*==========================================
CATEGORY HEADER
==========================================*/

.category-header{
    padding:45px 0;
    background:#fff;
    margin-bottom:35px;
    border-bottom:1px solid var(--border);
}

.category-header h1{
    font-size:42px;
    margin-bottom:15px;
    color:var(--text);
}

.category-header p{
    max-width:850px;
    color:#666;
    line-height:1.8;
    font-size:17px;
}

/*==========================================
SUB CATEGORY
==========================================*/

.subcategory-section{
    margin-bottom:55px;
}

.subcategory-heading{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.subcategory-heading h2{
    font-size:30px;
    color:#111;
    position:relative;
    padding-left:18px;
}

.subcategory-heading h2::before{
    content:"";
    position:absolute;
    left:0;
    top:3px;
    width:6px;
    height:35px;
    background:var(--primary);
}

.subcategory-heading a{
    color:var(--primary);
    font-weight:700;
    text-decoration:none;
    transition:.25s;
}

.subcategory-heading a:hover{
    letter-spacing:.5px;
}

/*==========================================
MAIN GRID
==========================================*/

.subcategory-wrapper{

    display:grid;
    grid-template-columns:2fr 1fr;
    gap:30px;
    align-items:stretch;
}

/*==========================================
FEATURED ARTICLE
==========================================*/

.featured-post{

    background:#fff;
    border:1px solid var(--border);
    overflow:hidden;
    transition:.3s;
    height:100%;
}

.featured-post:hover{
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.featured-post a{
    color:inherit;
    text-decoration:none;
    display:flex;
    flex-direction:column;
    height:100%;
}

.featured-post img{

    width:100%;
    height:420px;
    object-fit:cover;
    transition:.5s;
}

.featured-post:hover img{
    transform:scale(1.06);
}

.featured-content{

    padding:30px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.category-tag{

    display:inline-block;
    align-self:flex-start;
    background:var(--primary);
    color:#fff;
    font-size:13px;
    font-weight:700;
    padding:6px 14px;
    margin-bottom:18px;
}

.featured-content h3{

    font-size:30px;
    line-height:1.35;
    margin-bottom:18px;
}

.featured-content p{

    color:#666;
    line-height:1.8;
    margin-bottom:auto;
}

.featured-content time{

    margin-top:25px;
    color:#888;
    font-size:14px;
}

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

.sidebar-posts{

    display:flex;
    flex-direction:column;
    gap:18px;
    height:100%;
}

.sidebar-post{

    flex:1;
    background:#fff;
    border:1px solid var(--border);
    transition:.3s;
}

.sidebar-post:hover{

    transform:translateX(5px);
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.sidebar-post a{

    display:flex;
    gap:15px;
    padding:14px;
    height:100%;
    color:inherit;
    text-decoration:none;
}

.sidebar-post img{

    width:140px;
    min-width:140px;
    height:100%;
    object-fit:cover;
}

.sidebar-post div{

    display:flex;
    flex-direction:column;
    justify-content:center;
}

.sidebar-post h4{

    font-size:17px;
    line-height:1.45;
    margin-bottom:10px;
    color:#222;
}

.sidebar-post time{

    font-size:13px;
    color:#888;
}

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

@media(max-width:1200px){

    .featured-post img{

        height:350px;
    }

}

@media(max-width:992px){

    .subcategory-wrapper{

        grid-template-columns:1fr;
    }

    .sidebar-post{

        height:130px;
    }

}

@media(max-width:768px){

    .category-header{

        padding:35px 0;
    }

    .category-header h1{

        font-size:32px;
    }

    .subcategory-heading{

        flex-direction:column;
        align-items:flex-start;
        gap:12px;
    }

    .featured-content{

        padding:22px;
    }

    .featured-content h3{

        font-size:24px;
    }

}

@media(max-width:576px){

    .sidebar-post{

        height:auto;
    }

    .sidebar-post a{

        flex-direction:column;
    }

    .sidebar-post img{

        width:100%;
        height:200px;
    }

    .featured-post img{

        height:260px;
    }

}