#team-grid.has-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.33%;
	align-items: stretch;
}

/* Tablet view: 2 per row */
@media (max-width: 900px) {
    #team-grid.has-results {
        grid-template-columns: 2fr;
    }
}

/* Mobile view: 1 per row */
@media (max-width: 760px) {
    #team-grid {
        grid-template-columns: 1fr;
    }
}

#team-grid.no-results {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 200px;
}

#modules-grid {
    width: 100%;
}

#team-members-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    flex-wrap: wrap;
}

#modules-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    text-align: center;
    background-color: #964F30;
    color: #f6f6f6; 
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    appearance: none;  /* hide default styles (Chrome, Safari, etc.) */
    -webkit-appearance: none;
    -moz-appearance: none;
    border: none;
    font-family: Yacote;
}

.filter-select option {
    width: 100%;
    text-align: center;
}

#filter-search-modules {
    min-height: 38px;
    font-size: 16px;
    width: 40%;
}

.team-card {
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.team-card h3 {
    margin-top: 10px;
    margin-bottom: 8px;
}

.team-card p {
    margin-top: 4px;
    margin-bottom: 4px;
    line-height: 1.2;
}

.team-card div {
    margin-top: 8px;
    margin-bottom: 10px;
}

.module-card {
    width: 100%;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    min-height: 300px;
    margin-bottom: 20px;
    column-gap: 40px;
    gap: 16px;
}

.module-card-left {
    flex: 3;
    text-align: left;
}

.module-card-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 760px) {
  .module-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .module-card-left,
  .module-card-right {
    max-width: 100%;
    flex: none;
  }

  .module-card-left h3 {
    text-align: center;
    margin-top: 16px;
  }

  .module-card-left p {
    text-align: center;
  }

  .goto-memberpage-button {
    margin-bottom: 16px;
  }
}

.module-item-button {
    text-align: center;
    background-color: #D2A74B;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    min-width: 200px;
}

.module-item-button-text {
    color: #f6f6f6;
    font-size: 16px;
    text-decoration: none;
}

.goto-memberpage-div {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    line-height: 1.6;
}

.goto-memberpage-a {
    text-decoration: none;
    justify-content: center;
}

.goto-memberpage-a:hover {
    text-decoration: none;
}

.goto-memberpage-button {
    text-align: center;
    background-color: #D2A74B;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

.goto-memberpage-button:hover {
    background-color: #A79A7A;
    text-decoration: none;
}

.goto-memberpage-button-text {
    color: #f6f6f6;
    font-size: 16px;
    text-decoration: none;
    margin-top: 4px;
    margin-bottom: 4px;
}

.goto-memberpage-button-text:hover {
    text-decoration: none;
}

.navigation-custom-hover:hover {
    color: #A79A7A;
    text-decoration: underline;
}

.navigation-custom-hover a {
    color: #A79A7A;
    font-size: 20px;
}

.job-title {
    text-align: center;
    margin: auto;
}