.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.1);
    height: 100%;
    /* ให้การ์ดมีความสูงเท่ากันทั้งหมด */
}

.project-card img {
    transition: transform 0.3s ease-in-out;
}

.project-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card .card-body {
    text-align: center;
    flex: 1;
    /* ให้ส่วนของเนื้อหายืดเต็มที่และดันปุ่มลงล่าง */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card .btn {
    border-radius: 12.5px;
    font-weight: bold;
    margin-top: auto;
    /* ดันปุ่มลงล่าง */
}

.project-card .card-title {
    font-size: 1.2rem;
    color: #007bff;
}

.project-card .card-text {
    font-size: 0.9rem;
    color: #6c757d;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 9999;
}

.fixed-image-container {
    width: 100%;
    height: 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fixed-size-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}