.membrances {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    max-width: 100%;
    margin: 0.5rem auto;
    gap: 10px;
}

.membrances-item {
    position: relative;
    border: 1px solid #888;
    padding: 5px;
    margin: 0;
    width: calc(25% - 20px);
    background-color: #f7f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    text-align: center; /* Ensure the content inside stays centered */
}

.membrances-item:hover {
    transform: translateY(-5px);
}

.membrances-item h4 {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    margin-top: 8px;
    color: #004f9f;
}

.membrances-item p {
    color: #333;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0;
}

.membrances-item div {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.membrances-item img {
    width: auto;
    height: auto;
    max-width: 100px; /* Maximum width for the image */
    max-height: 120px; /* Maximum height for the image */
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .membrances-item {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .membrances-item {
        width: calc(100% - 20px);
    }
}
