.project-page-wrap{
    padding-bottom: 48px;
}

.project-toolbar-card,
.project-list-card{
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 30px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.project-toolbar-card{
    margin-top: -48px;
    position: relative;
    z-index: 5;
}

.project-toolbar-body{
    padding: 1.2rem;
}

.project-filter-label{
    font-size: .88rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: .4rem;
}

.project-toolbar-card .form-control,
.project-toolbar-card .form-select{
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: none;
}

.project-toolbar-card .form-control:focus,
.project-toolbar-card .form-select:focus{
    border-color: rgba(13, 110, 253, .45);
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .12);
}

.project-btn{
    min-height: 46px;
    border-radius: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.project-summary{
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    padding: 0 1.2rem 1.2rem;
}

.project-chip{
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .9rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    line-height: 1;
}

.project-chip.orange{
    background: rgba(255, 153, 0, 0.12);
    color: #d97706;
}

.project-chip.blue{
    background: rgba(13, 110, 253, 0.10);
    color: #0d6efd;
}

.project-chip.green{
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.project-chip.purple{
    background: rgba(111, 66, 193, 0.12);
    color: #6f42c1;
}

.project-list-card{
    margin-top: 1.2rem;
    overflow: hidden;
}

.project-list-head{
    padding: 1.2rem 1.25rem 0;
}

.project-list-title{
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.project-list-subtitle{
    margin: .4rem 0 0;
    font-size: .95rem;
    color: #64748b;
}

.project-table-wrap{
    padding: 1rem 1.2rem 1.3rem;
}

.project-table-scroll{
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
}

.project-table{
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
}

.project-table thead th{
    background: #f8fafc;
    color: #334155;
    font-size: .82rem;
    font-weight: 800;
    padding: .9rem .75rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.project-table thead th:first-child{
    border-top-left-radius: 16px;
}

.project-table thead th:last-child{
    border-top-right-radius: 16px;
}

.project-table tbody td{
    padding: .95rem .75rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    vertical-align: top;
    background: #fff;
}

.project-table tbody tr:hover td{
    background: #fcfdff;
}

.project-table tbody tr:last-child td{
    border-bottom: none;
}

.project-index{
    width: 56px;
    text-align: center;
    font-weight: 700;
    color: #64748b;
}

.project-school-main{
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.project-school-sub{
    margin-top: .2rem;
    font-size: .82rem;
    color: #64748b;
}

.project-title-main{
    font-weight: 600;
    color: #0f172a;
    line-height: 1.45;
    margin-bottom: .2rem;
}

.project-title-en{
    font-size: .84rem;
    color: #64748b;
    line-height: 1.45;
}

.project-meta-badge{
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    padding: .42rem .72rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.project-meta-badge.category{
    background: rgba(13, 110, 253, 0.10);
    color: #0d6efd;
}

.project-meta-badge.student{
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.project-meta-badge.advisor{
    background: rgba(111, 66, 193, 0.12);
    color: #6f42c1;
}

.project-date{
    font-size: .86rem;
    color: #334155;
    line-height: 1.4;
    white-space: nowrap;
}

.project-empty{
    text-align: center;
    padding: 2.2rem 1rem 2.4rem;
    color: #64748b;
}

.project-empty i{
    font-size: 2rem;
    color: #cbd5e1;
    margin-bottom: .7rem;
    display: block;
}

.project-pagination{
    padding: 0 1.2rem 1.3rem;
}

.project-pagination .page-link{
    border-radius: 12px !important;
    margin: 0 .15rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #0d6efd;
    font-weight: 700;
    min-width: 42px;
    text-align: center;
}

.project-pagination .page-item.active .page-link{
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

@media (max-width: 991.98px){
    .project-toolbar-card{
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px){
    .project-toolbar-body,
    .project-list-head,
    .project-table-wrap,
    .project-pagination{
        padding-left: .95rem;
        padding-right: .95rem;
    }

    .project-summary{
        padding-left: .95rem;
        padding-right: .95rem;
    }
}
.project-title-main{
    font-weight: 600;   /* 🔥 จาก 800 → 600 */
}

.project-list-title{
    font-weight: 700;
}

.project-table thead th{
    font-weight: 700;
}