.category-badges {
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 20px;
    margin-bottom: 30px;
}
.category-badge {
    padding: 5px !important;
    border: none !important;
    cursor: pointer;
    border-radius: 5px !important;
    font-family: 'Century Gothic', Arial, sans-serif;
    color: black !important;
    font-size: 1em !important;
}
.category-badge:hover {
    color: black !important;
    border: none !important;
}
.category-badge.active {
    border: none !important;
}
.valve-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.valve-item {
    width: 200px;
    height: 300px;
    background-size: cover;
    background-position: center;
    padding: 20px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.12);
    border-radius: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: black;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, opacity 0.3s ease-in-out;
    text-decoration: none;
    opacity: 1;
}
.valve-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    opacity: 0.5;
    z-index: -1;
    border-radius: 15px;
}
.valve-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.valve-header {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
.valve-number {
    font-weight: bold;
}
.valve-type {
    font-weight: bold;
}
.valve-title {
    font-size: 16px;
    font-weight: 200;
    text-align: center;
}
.valve-date {
    font-size: 12px;
    font-weight: 200;
    text-align: center;
    margin-top: 10px;
}
.new-badge {
    position: absolute;
    top: calc(80% + 20px);
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fa8080;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}
.hidden {
    display: none !important;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}
