.member-card {
    height: 360px;                  
    overflow: hidden;               
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.plant-type-item {
    border: 1px solid #d9d9d9;
    background-color: #fff;
    color: #333;
}

.plant-type-item:hover {
    background-color: #f1fdf1;
    transform: scale(1.03);
}

.plant-type-item.active {
    background-image: linear-gradient(45deg, #08aeea 0, #2af598 100%);
    color: #fff !important;
    border-color: #27ae60 !important;
    box-shadow: 0 0 8px rgba(39, 174, 96, 0.5);
}

.plant-type-item.active img {
    border: 2px solid #fff;
}

.plant-type-item span {
    transition: color 0.2s;
}
.plant-type-item.active {
    transition: all 0.25s ease-in-out;
    transform: scale(1.05);
}

.certificate-item {
    border: 1px solid #d9d9d9;
    background-color: #fff;
    color: #333;
}

.certificate-item:hover {
    background-color: #f1fdf1;
    transform: scale(1.03);
}

.certificate-item.active {
    background-image: linear-gradient(45deg, #08aeea 0, #2af598 100%);
    color: #fff !important;
    border-color: #27ae60 !important;
    box-shadow: 0 0 8px rgba(39, 174, 96, 0.5);
}

.certificate-item span {
    transition: color 0.2s;
}
.certificate-item.active {
    transition: all 0.25s ease-in-out;
    transform: scale(1.05);
}
/* Mobile responsive fix */
@media (max-width: 768px) {
    #div_planttype_filter {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .plant-type-item {
        flex: 0 0 auto;
        display: inline-flex;
        padding: 5px 12px;
        margin-right: 4px;
        white-space: nowrap;
    }

    .plant-type-item img {
        width: 20px;
        height: 20px;
    }
}

.card-wrapper {
    position: relative;
    z-index: 0;
}

.card-wrapper .shape-bg {
    position: absolute;
    bottom: -0.4rem;
    right: -0.4rem;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    opacity: 0.5;
    z-index: 0;
    transition: transform 0.3s ease;
}

.card-wrapper .member-card {
    position: relative;
    z-index: 1;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

/* Hover hiệu ứng */
.card-wrapper:hover .shape-bg {
    transform: translate(-3px, -3px);
    opacity: 0.7;
}

.card-wrapper:hover .member-card {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Màu shape */
.bg-soft-primary { background: rgba(52, 152, 219, 0.25); }
.bg-soft-success { background: rgba(46, 204, 113, 0.25); }
.bg-soft-warning { background: rgba(241, 196, 15, 0.25); }
.bg-soft-info    { background: rgba(26, 188, 156, 0.25); }


