.members-page {
  background-image: url('Xxx.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  position: relative;
  z-index: 0;
}

.members-page::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: -1;
}

.container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 1s ease-in;
}

.logo {
  max-width: 400px;
  width: 90%;
  margin-bottom: 30px;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.logo:hover {
  transform: scale(1.05) rotate(1deg);
  filter: drop-shadow(0 0 10px white);
}

.btn {
  padding: 12px 24px;
  background: linear-gradient(45deg, #444, #777);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: bold;
  transition: background 0.3s, transform 0.3s;
}
.btn:hover {
  background: linear-gradient(45deg, #666, #999);
  transform: scale(1.1);
}

.footer {
  margin-top: 40px;
  font-size: 14px;
  opacity: 0.6;
  animation: fadeIn 2s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.member-container {
  margin: 40px auto;
  max-width: 900px;
  text-align: center;
  animation: fadeIn 1s ease-in;
  padding: 20px;
}

.search-box {
  padding: 12px;
  width: 100%;
  max-width: 400px;
  margin: 20px auto;
  border-radius: 10px;
  border: none;
  font-size: 16px;
  box-shadow: 0 0 10px #222;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: #111;
  border-radius: 16px;
  padding: 20px;
  transition: 0.3s ease;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 0 15px rgba(0,200,255,0.6);
}

.card-name {
  font-size: 18px;
  font-weight: bold;
  color: white;
  margin-bottom: 10px;
}

.card-link {
  color: #00ccff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}
.card-link:hover {
  color: #33e0ff;
}

body {
  background-color: #2b2b2b; /* เทาเข้มฟีล modern */
  color: white;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
}

.list-wrapper {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}

h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.search-bar input {
  padding: 10px 16px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  width: 300px;
}

.search-bar button {
  background-color: #223;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.member-list-style {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.member-card {
  display: flex;
  align-items: center;
  background-color: #0000009a;            
  padding: 15px 20px;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.3s;
}

.member-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 8px #0000009a;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  object-fit: cover;
  margin-right: 20px;
}

.member-info {
  flex: 1;
  text-align: left;
}

.member-name {
  font-size: 18px;
  font-weight: bold;
}

.member-link {
  font-size: 14px;
  opacity: 0.8;
}

.fb-icon {
  background-color: #0d8ddb;
  color: white;
  font-weight: bold;
  font-size: 20px;
  padding: 6px 12px;
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.2s;
}

.fb-icon:hover {
  background-color: #0ba4fc;
}
