.section-padding {
    padding: 100px 0;
}

.members-filter {
    margin-bottom: 40px;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-tabs li {
    padding: 8px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 30px;
    background-color: #f5f5f5;
    transition: all 0.3s ease;
}

.filter-tabs li.active,
.filter-tabs li:hover {
    background-color: #6f42c1;
    color: #fff;
}

.member-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    height: 100%;
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Horizontal card layout */
.member-card.horizontal {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.member-card.horizontal .member-image {
    width: 200px;
    min-width: 200px;
    height: auto;
    border-right: 1px solid #f0f0f0;
    border-bottom: none;
    padding: 15px;
}

.member-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    height: 150px;
}

.member-image img {
    max-height: 110px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.member-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.member-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.member-title a {
    color: #333;
    transition: all 0.3s ease;
}

.member-title a:hover {
    color: #6f42c1;
}

.member-info {
    flex-grow: 1;
}

.member-website {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.member-website i {
    margin-right: 8px;
    color: #6f42c1;
}

.member-website a {
    color: #666;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    display: inline-block;
}

.member-sectors-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.member-sectors {
    margin-bottom: 15px;
    flex: 1 1 45%;
    min-width: 250px;
}

.member-sectors h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

.sector-tags {
    display: flex;
    flex-wrap: wrap;
}

.sector-tag {
    background-color: #f5f5f5;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
    color: #666;
}

.more-tag {
    background-color: #e0e0e0;
    color: #555;
}

.member-block {
    margin-bottom: 20px;
    display: none;
}

.member-block.show {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .section-padding {
        padding: 70px 0;
    }

    .filter-tabs li {
        padding: 6px 15px;
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 50px 0;
    }

    .member-card.horizontal {
        flex-direction: column;
    }

    .member-card.horizontal .member-image {
        width: 100%;
        height: 150px;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .member-image img {
        max-height: 100px;
    }

    .member-title {
        font-size: 18px;
    }

    .member-sectors-container {
        flex-direction: column;
        gap: 10px;
    }

    .member-sectors {
        flex: 1 1 100%;
        min-width: auto;
    }
}
