.category-hero{

    position:relative;
    height:420px;
    border-radius:22px;
    overflow:hidden;
    margin-bottom:50px;

}

.hero-cover{

    width:100%;
    height:100%;
    object-fit:cover;

}

.hero-overlay{

    position:absolute;
    inset:0;

    background:linear-gradient(
        to top,
        rgba(10,15,25,.88),
        rgba(10,15,25,.35)
    );

    display:flex;
    flex-direction:column;
    justify-content:flex-end;

    padding:50px;

}

.back-link{

    position:absolute;

    top:30px;
    left:30px;

    display:inline-flex;
    align-items:center;
    gap:8px;

    color:#fff;

    text-decoration:none;

    padding:10px 18px;

    border-radius:999px;

    background:rgba(255,255,255,.12);

    backdrop-filter:blur(10px);

}

.back-link:hover{

    background:rgba(255,255,255,.2);

}

.category-badge{

    display:inline-flex;

    width:max-content;

    padding:8px 18px;

    border-radius:999px;

    background:var(--primary);

    color:#fff;

    font-size:13px;

    font-weight:600;

    margin-bottom:15px;

}

.hero-overlay h1{

    font-size:52px;

    margin-bottom:12px;

}

.hero-overlay p{

    max-width:760px;

    color:#ddd;

    line-height:1.8;

    margin-bottom:25px;

}

.hero-stats{

    display:flex;
    gap:20px;

}

.hero-stats div{

    padding:16px 26px;

    border-radius:14px;

    background:rgba(255,255,255,.08);

    backdrop-filter:blur(12px);

}

.hero-stats strong{

    display:block;

    font-size:34px;

}

.hero-stats span{

    color:#ccc;

}

.project-grid{

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(340px,1fr));

    align-items:stretch;

    gap:28px;

}

.project-card{

    display:flex;
    flex-direction:column;

    height:420px;

    overflow:hidden;

    background:var(--surface);
    border:1px solid var(--border);
    border-radius:18px;

}

.project-card:hover{

    transform:translateY(-8px);

    border-color:var(--primary);

    box-shadow:0 18px 40px rgba(0,0,0,.35);

}

.project-card img{

    width:100%;
    height:180px;

    object-fit:cover;

}

.project-card:hover img{

    transform:scale(1.08);

}

.project-content{

    padding:18px;

    display:flex;
    flex-direction:column;

    flex:1;

}

.project-top{

    display:flex;

    justify-content:flex-end;

    margin-bottom:15px;

}

.project-content h3{

    font-size:20px;

    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;

    overflow:hidden;

}

.project-content p{

    color:var(--muted);
    font-size:13px;
    line-height:1.5;

    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;

    overflow:hidden;

    margin-top:6px;

}

.project-footer{

    margin-top:auto;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding-top:12px;
    border-top:1px solid var(--border);

}

.project-footer span{

    display:flex;

    align-items:center;

    gap:8px;

}

.empty-state{

    grid-column:1/-1;

    text-align:center;

    padding:80px 20px;

    border:1px dashed var(--border);

    border-radius:18px;

}

.empty-state i{

    font-size:70px;

    color:var(--primary);

    margin-bottom:20px;

}

.empty-state h3{

    margin-bottom:10px;

}

.empty-state p{

    color:var(--muted);

}

.pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    margin:50px 0;
}

.pagination a{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    border-radius:10px;
    background:#1f1f1f;
    color:#fff;
    transition:.2s;
}

.pagination a:hover{
    background:#2d2d2d;
}

.pagination a.active{
    background:#0d6efd;
}