.member-area {
    width: 100%;
    height: auto;              /* was fixed 160vh — now sizes to content since there are fewer cards */
    padding-bottom: 60px;

    background-color: #fdffe6;

    display: flex;
    flex-direction: column;

    position: relative;
    overflow: hidden;
}

.member-area .member-greeting {
  width: 100%;
  padding: 50px 5% 20px;
  text-align: center;
}

.member-area .member-greeting h2 {
  font-size: 30px;
  font-weight: bold;
  letter-spacing: -0.02em;
}

.member-area .member-greeting h2::after {
  content: "";
  display: block;
  width: 80%;
  max-width: 900px;         /* optional cap so it doesn't get too wide on huge screens */
  height: 1px;
  background-color: #b7beb0;
  margin: 20px auto 0;      /* auto left/right centers it, 20px pushes it below the text */
}

.member-area .member-grid {
  display: grid;
  grid-template-columns: 1fr;

  width: 80%;
  margin: 20px auto;       /* auto centers it horizontally */
  gap: 24px;
}

.member-area .member-grid .grid-item {
  display: flex;
  flex-direction: row;         /* back to horizontal: image beside text */
  align-items: center;
  text-align: left;
  gap: 18px;

  border-radius: 20px;
  padding: 24px;
}

.member-area .member-grid .grid-item img {
  width: 150px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 50%;
}

.member-area .member-grid .grid-item .member-name {
  display: flex;
  flex-direction: column;
  align-items: center;      /* center text so it matches the oval shape */
  justify-content: center;
  gap: 2px;

  padding: 10px 26px;       /* gives the oval room to breathe around the text */
  border-radius: 50px;      /* fixed px value, not % — reliable pill shape */
  background: #64beff;
  width: fit-content;
}

.member-area .member-grid .grid-item h3 {
  font-size: 17px;
  font-weight: bold;
  margin: 0;
  color: #222;
}

.member-area .member-grid .grid-item .member-name h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin: 0;
}

.member-area .member-grid .grid-item p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #555;
}
/* --- member quote --- */
.member-area .member-quote {
  width: 100%;
  background-color: #fdffe6;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 20px 0 0;
}

.member-area .member-quote .quote-question {
  font-size: 24px;
  font-weight: bold;
  width: 40%;
  text-align: center;
}

.member-area .member-quote .quote-grid {
  width: 60%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.member-area .member-quote .quote-grid .quote-item {
  position: relative;
  padding-top: 50px;
}

.member-area .member-quote .quote-grid img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  object-fit: cover;
}

.member-area .member-quote .quote-grid .quote-rectangle {
  width: 100%;
  height: 300px;
  border-radius: 10%;
  background-image: url('../images/blue_yellow.jpg');
  overflow-y: auto;
  padding: 70px 0.5rem 0.5rem;
}

.member-area .member-quote .quote-grid h3 {
  font-size: 17px;
  font-weight: bold;
  margin: 12px 5%;
}

.member-area .member-quote .quote-grid p {
  font-size: 12px;
  margin: 12px 5%;
}

@media (max-width: 768px) {
  .member-area {
    height: auto;
    padding-bottom: 40px;
  }

  .member-area .member-greeting {
    padding: 20px 5%;
  }

  .member-area .member-greeting h2 {
    font-size: 1.5rem;
  }

  .member-area .member-grid {
    grid-template-columns: 1fr; /* stack cards on mobile */
    width: 88%;
    margin: 20px 6%;
    gap: 24px;
  }

  .member-area .member-grid .grid-item img {
    width: 110px;
  }

  .member-area .member-quote {
    flex-direction: column;
    padding: 20px 0;
  }

  .member-area .member-quote .quote-question {
    width: 90%;
    margin: 0 auto 20px;
  }

  .member-area .member-quote .quote-grid {
    width: 90%;
    margin: 0 auto;
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .member-area .member-quote .quote-grid img {
    width: 90px;
    height: 90px;
  }
  .member-area .member-quote .quote-grid .quote-item {
    padding-top: 40px;
  }

  .member-area .member-quote .quote-grid .quote-rectangle {
    height: auto;
    min-height: 150px;
    padding: 50px 0.5rem 0.5rem;
  }
}