/* ปรับ Badge ให้เด่นชัดขึ้น */
.new-badge {
    animation: pulse 1.5s infinite, float 3s ease-in-out infinite;
    background-color: #dc3545 !important;
    /* สีแดงสด */
    color: white !important;
    /* ข้อความสีขาว */
    font-weight: bold;
    font-size: 0.8em;
    padding: 4px 8px;
    margin-left: 8px;
    position: relative;
    border: 1px solid #b02a37;
    /* เส้นขอบสีแดงเข้ม */
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(220, 53, 69, 0.5);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(220, 53, 69, 0.8);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(220, 53, 69, 0.5);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }

    100% {
        transform: translateY(0);
    }
}

.list-item {
    transition: all 0.3s ease;
    position: relative;
}

.list-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ปรับสีและรูปแบบตัวหนังสือ */
.list-item a {
    color: #212529;
    /* สีดำเข้ม */
    font-weight: 600;
    /* ตัวหนา */
    text-decoration: none;
    transition: all 0.2s ease;
}

.list-item a:hover {
    color: #0d6efd;
    /* สีน้ำเงินเมื่อโฮเวอร์ */
    text-decoration: underline;
}

.date-text {
    display: block;
    color: #6c757d;
}

.project-info span {
    display: inline-block;
    margin-right: 15px;
}

.view-all-btn {
    display: block;
    margin: 20px auto;
    max-width: 200px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* เพิ่มสไตล์สำหรับหมวดหมู่เมื่อแสดงทั้งหมด */
.category-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #0d6efd;
}

.category-section h4,
.category-section h5 {
    color: #0d6efd;
    padding-bottom: 10px;
    border-bottom: 1px dashed #dee2e6;
}