:root {
  --dark: #4a1d1d;
  --accent: #8a5f68;
  --muted: #5b4c4c;
  --light-bg: #f6f2f3;
  --card-bg: #faf7f8;
  --white: #fff;
}

/* BASE */
.governance-section {
  background: var(--light-bg);
  padding: 70px 20px;
  font-family: 'Prata', serif;
}

/* CONTAINERS */
.profiles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 420px));
  column-gap: 40px;
  row-gap: 70px;
  justify-content: center;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.profiles-container + .profiles-container {
  margin-top: 80px; /* gap between founders and trustees */
}

/* CARDS */
.profile-card {
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 420px;
}

.profile-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

/* ✅ IMPROVED RESPONSIVE HEADSHOT IMAGES */
.profile-image {
  width: 100%;
  height: 400px; /* ✅ increased for more visible head area */
  overflow: hidden;
  position: relative;
  background: #ddd;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%; /* ✅ show more head and shoulders */
  display: block;
  transform: translateZ(0);
  image-rendering: auto;
}

/* TEXT CONTENT */
.profile-content {
  padding: 25px 22px 30px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.profile-content h2 {
  color: var(--dark);
  font-size: 1.4rem;
  margin: 0;
  line-height: 1.2;
}

.profile-content h4 {
  color: var(--accent);
  font-size: 1rem;
  margin: 0 0 12px;
  font-weight: 600;
}

.profile-content p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.68;
  text-align: justify;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .profiles-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    column-gap: 30px;
    row-gap: 50px;
  }

  .profile-card {
    max-width: 100%;
  }

  .profile-image {
    height: 350px; /* ✅ still bigger than before */
  }

  .profile-image img {
    object-position: 50% 25%;
  }
}

@media (max-width: 768px) {
  .governance-section {
    padding: 50px 15px;
  }

  .profiles-container {
    column-gap: 20px;
    row-gap: 40px;
  }

  .profile-content h2 {
    font-size: 1.25rem;
  }

  .profile-content p {
    font-size: 0.95rem;
  }

  .profile-image {
    height: 300px; /* ✅ taller mobile version */
  }

  .profile-image img {
    object-position: 50% 30%;
  }
}

@media (max-width: 480px) {
  .profiles-container {
    grid-template-columns: 1fr;
    row-gap: 30px;
  }

  .profile-image {
    height: 260px; /* ✅ more height for tiny screens */
  }

  .profile-image img {
    object-position: 50% 34%;
  }
}
