body {
  font-family: Arial, sans-serif;
  margin: 20px;
}

.faculty-title {
  font-size: 40;
  margin-bottom: 12px;
  text-align: center;
}

.faculty-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1400px; /* ✅ limit row width */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}


.faculty-card {
  width: 320px;           /* Fixed width */
  flex: 0 0 320px;        /* ✅ This is the critical fix */
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  text-align: center;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
}

/* ✅ Responsive behavior */
@media (max-width: 1300px) {
  .faculty-card {
    flex: 0 0 45%;
  }
}

@media (max-width: 768px) {
  .faculty-card {
    flex: 0 0 100%;
  }
}
#facultyContainer h2 {
  text-align: center;
  margin-top: 40px;
  font-size: 22px;
}

.faculty-photo {
  width: 100%;
  border-radius: 50%;
  height: auto;
}

/* Research Field buttons*/
  .filter-columns {
    display: flex;
    gap: 40px;
    justify-content: center; /* ✅ centers the columns */
    margin-bottom: 20px;
    flex-wrap: wrap;
  }

  .filter-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
  }

  .filter-column h4 {
    margin-bottom: 8px;
    font-size: 16px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 4px;
  }


  .filter-title {
    font-size: 20px;
    margin-bottom: 12px;
    text-align: center;
  }

/* The application domain buttons*/
.button-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* ✅ center each row */
  gap: 12px 20px;
  margin: 0 auto 24px auto;
  max-width: 800px;          /* optional width constraint */
}
.button-flex label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: #f0f0f0;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  gap: 6px;
  min-width: 140px;
  text-align: center;
}

/* Lab Links*/
.lab-link {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 10px;
  background-color: #e0f0ff;
  color: #004080;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, font-weight 0.2s ease;
}

.lab-link:hover {
  background-color: #cce5ff;
  font-weight: 700; /* ✅ bold on hover */
}
.lab-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 10px;
  background-color: #e0f0ff;
  color: #004080;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, font-weight 0.2s ease;
}

