/* Add these new styles to your existing CSS file */

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.filter-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.member-filter {
    padding: 8px;
    border: 2px solid #3498db;
    border-radius: 3px;
    background-color: white;
    color: #333;
}

.member-filter:focus {
    outline: none;
    border-color: #2c82c9;
}

.member-directory-controls {
    margin-bottom: 20px;
}

#member-search {
    padding: 8px;
    margin-right: 10px;
    width: 100%;
}

.filter-buttons button {
    background-color: #3498db;
    color: white;
    padding: 10px 15px;
    margin: 5px 10px 5px 0;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

.filter-buttons button:hover {
    background-color: #2c82c9;
}

.filter-buttons {
    margin-bottom: 20px;
}

.member {
    margin-bottom: 10px;
    border-radius: 3px;
    overflow: hidden;
}

.member-name-btn {
    background-color: white;
    color: #3498db;
    padding: 10px 15px;
    border: 3px solid #3498db;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: left;
    transition: background-color 0.3s ease;
    border-radius: 3px;
}

.member-name-btn:hover {
    color: #2c82c9;
    background-color: white;
}

.toggle-sign {
    margin-right: 10px;
    display: inline-block;
    transition: transform 0.3s ease;
    border: 2px solid #3498db;
    border-radius: 3px;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
}

.member-logo, .member-logo-link {
    max-width: 200px;
    max-height: 90px;
    width: auto;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    margin: 10px 10px 10px 0;
}

.member-logo img {
  max-width: 200px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  aspect-ratio: auto;
  display: block;
}


.member-details {
  display: none; /* Selle lisad või jätad alles */
  padding: 0 10px;
  border: 3px solid #3498db;
  border-top: none;
  transition: all 0.3s ease; /* optional */
}


.member-name-btn.expanded {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom: none;
    margin-bottom: -2px;
    background-color: white;
}

.member-name-btn.expanded + .member-details {
    padding-top: 10px;
    padding-bottom: 10px;
    border-color: #3498db;
    border-top: none;
    border-radius: 3px;
}

.member-description {
    margin-top: 10px;
}

.member-url {
    margin-top: 20px;
}

.member-url a {
    color: #0073aa;
}

.activities-label {
    font-weight: bold;
    margin-right: 5px;
}

.member-activities {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
}

.activity {
    margin-right: 30px;
    margin-bottom: 5px;
}