/* ============================================================
   ABOUT PAGE — PROFESSIONAL REDESIGN v2
   about-redesign.css  |  Link AFTER c4y-layout.css
   ============================================================ */

/* ──────────────────────────────────────────────────────────
   1. GLOBAL TEXT — refined scale
   ────────────────────────────────────────────────────────── */
.c4y-body-text {
  font-size: .9rem;
  line-height: 1.75;
  margin-bottom: 14px;
  text-align: left;
}

.c4y-section-title {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  margin-bottom: 6px;
}

/* ──────────────────────────────────────────────────────────
   2. TAB PANEL
   ────────────────────────────────────────────────────────── */
.c4y-tab-panel {
  padding: 0 0 40px;
}

.c4y-tab-panel > .c4y-container {
  padding-top: 12px;
}

/* ──────────────────────────────────────────────────────────
   3. TEAM SECTION HEADER
   ────────────────────────────────────────────────────────── */
.c4y-team-section {
  padding-top: 4px;
  padding-bottom: 36px;
}

.c4y-team-head {
  margin-top: 4px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c4y-border);
}

.c4y-team-head__eyebrow {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c4y-accent);
  margin-bottom: 6px;
  background: rgba(244,163,0,.08);
  padding: 3px 10px;
  border-radius: 20px;
}

.c4y-team-head .c4y-section-title {
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  margin-bottom: 4px;
}

.c4y-team-head .c4y-divider {
  margin: 6px 0 8px;
  width: 36px;
  height: 3px;
}

.c4y-team-head .c4y-body-text {
  font-size: .82rem;
  line-height: 1.55;
  margin-bottom: 0;
  color: var(--c4y-muted);
  max-width: 620px;
  text-align: left;
}

/* ──────────────────────────────────────────────────────────
   4. GOVERNING BOARD GRID — exactly 4 per row
   ────────────────────────────────────────────────────────── */
#governingBoardGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 0;
}

@media (max-width: 900px) {
  #governingBoardGrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  #governingBoardGrid { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────────────
   5. PEOPLE GRID — exactly 3 per row (6 people)
   ────────────────────────────────────────────────────────── */
#PeopleTeamGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 0;
}

@media (max-width: 900px) {
  #PeopleTeamGrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  #PeopleTeamGrid { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────────────
   6. LEADER CARD — passport photo style, no cropping
   ────────────────────────────────────────────────────────── */
.c4y-leader-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,102,177,.08);
  border: 1px solid rgba(0,102,177,.07);
  transition: transform .28s ease, box-shadow .28s ease;
  display: flex;
  flex-direction: column;
  /* reset any grid-based layout from original */
  grid-template-columns: unset;
  padding: 0;
  gap: 0;
}

.c4y-leader-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,102,177,.14);
}

/* Photo container — fixed height, light bg, no overflow crop */
.c4y-leader-card__image {
  width: 100%;
  height: 180px;
  background: var(--c4y-light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.c4y-leader-card__image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform .4s ease;
}

.c4y-leader-card:hover .c4y-leader-card__image img {
  transform: scale(1.03);
}

/* Content area */
.c4y-leader-card__content {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* NAME — comes first, prominent */
.c4y-leader-card__name {
  font-family: var(--font-display);
  font-size: .9rem;
  line-height: 1.3;
  color: #14213d;
  font-weight: 700;
  margin-bottom: 3px;
}

/* ROLE — comes second, muted label */
.c4y-leader-card__role {
  font-size: .60rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--c4y-accent);
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Short bio — always shown, clamped to 3 lines */
.c4y-leader-card__bio {
  font-size: .74rem;
  line-height: 1.55;
  color: #5b6578;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

/* Profile button — outline pill */
.c4y-profile-btn {
  display: inline-block;
  margin-top: auto;
  padding: 5px 13px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .5px;
  border-radius: 999px;
  border: 1.5px solid var(--c4y-accent);
  background: transparent;
  color: var(--c4y-accent);
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
  align-self: flex-start;
}

.c4y-profile-btn:hover {
  background: var(--c4y-accent);
  color: #fff;
}

/* ──────────────────────────────────────────────────────────
   7. VOLUNTEER / INTERN / EXPERT GRID — smaller, consistent
   ────────────────────────────────────────────────────────── */
.c4y-volunteer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
  margin-top: 0;
}

.c4y-volunteer-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  border: 1px solid rgba(0,102,177,.06);
  transition: transform .28s ease, box-shadow .28s ease;
}

.c4y-volunteer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,.10);
}

/* Square photo with contain so face is never cropped */
.c4y-volunteer-card__image {
  width: 100%;
  height: 120px;
  background: var(--c4y-light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.c4y-volunteer-card__image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform .4s ease;
}

.c4y-volunteer-card:hover .c4y-volunteer-card__image img {
  transform: scale(1.04);
}

.c4y-volunteer-card__body {
  padding: 8px 10px 10px;
  text-align: center;
}

.c4y-volunteer-card__name {
  font-size: .78rem;
  font-weight: 700;
  color: #14213d;
  margin-bottom: 3px;
  line-height: 1.25;
}

.c4y-volunteer-card__role {
  font-size: .65rem;
  color: var(--c4y-accent);
  font-weight: 600;
  line-height: 1.2;
}

/* ──────────────────────────────────────────────────────────
   8. FELLOWS — compact, justified text, no <br> gaps
   ────────────────────────────────────────────────────────── */
.c4y-fellow-cohort {
  margin-top: 28px;
}

.c4y-fellow-cohort__head {
  margin-bottom: 18px;
}

.c4y-fellow-cohort__badge {
  font-size: .76rem;
  padding: 5px 13px;
}

.c4y-fellow-featured {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 1px solid rgba(0,102,177,.06);
  transition: transform .28s ease, box-shadow .28s ease;
}

.c4y-fellow-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
}

.c4y-fellow-featured__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--c4y-light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.c4y-fellow-featured__image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.c4y-fellow-featured__name {
  font-size: 1rem;
  font-weight: 700;
  color: #14213d;
  margin-bottom: 5px;
}

.c4y-fellow-featured__designation {
  font-size: .76rem;
  font-weight: 600;
  color: var(--c4y-accent);
  margin-bottom: 5px;
}

.c4y-fellow-featured__institution {
  font-size: .78rem;
  color: var(--c4y-muted);
  margin-bottom: 8px;
  line-height: 1.5;
}

.c4y-fellow-featured__bio {
  font-size: .8rem;
  line-height: 1.7;
  color: #444;
  text-align: justify;
}

.c4y-fellow-featured__bio p {
  margin-bottom: 8px;
}

/* Strip any <br> that sneak through in bio */
.c4y-fellow-featured__bio br {
  display: none;
}

@media (max-width: 640px) {
  .c4y-fellow-featured {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ──────────────────────────────────────────────────────────
   9. PROFILE MODAL — photo as portrait (not stretched)
   ────────────────────────────────────────────────────────── */
.c4y-profile-modal__content {
  width: min(800px, 94vw);
  max-height: 88vh;
  overflow: hidden;
  padding: 0;
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,.22);
}

/* Close button */
.c4y-profile-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,.08);
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease;
}

.c4y-profile-modal__close:hover {
  background: #e33;
  color: #fff;
}

/* Two-column: left = photo panel (fixed width), right = scrollable text */
.c4y-profile-modal__body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  height: 100%;
  min-height: 0;
}

/* Left photo panel — light bg, photo centred and contained, NOT stretched */
.c4y-profile-modal__image {
  background: var(--c4y-light-bg);
  border-radius: 20px 0 0 20px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;        /* photo aligns to top, natural height */
  justify-content: center;
  padding: 28px 16px 20px;
  flex-shrink: 0;
}

.c4y-profile-modal__image img {
  width: 100%;
  height: auto;                   /* natural aspect ratio — no stretching */
  max-height: 260px;              /* cap so very tall portraits don't dominate */
  object-fit: contain;
  border-radius: 10px;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

/* Right: scrollable info column */
.c4y-profile-modal__info {
  padding: 28px 28px 24px;
  overflow-y: auto;
  max-height: 88vh;
  scrollbar-width: thin;
  scrollbar-color: var(--c4y-border) transparent;
}

.c4y-profile-modal__info::-webkit-scrollbar { width: 4px; }
.c4y-profile-modal__info::-webkit-scrollbar-thumb {
  background: var(--c4y-border);
  border-radius: 4px;
}

.c4y-profile-modal__role {
  font-size: .64rem;
  letter-spacing: 1.8px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c4y-accent);
  margin-bottom: 6px;
  background: rgba(244,163,0,.09);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
}

.c4y-profile-modal__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #14213d;
  margin-bottom: 10px;
  line-height: 1.25;
}

.c4y-profile-modal__name + .c4y-divider {
  margin: 0 0 14px;
  width: 32px;
  height: 3px;
}

.c4y-profile-modal__text {
  font-size: .82rem;
  line-height: 1.8;
  color: #4f5d75;
  text-align: justify;
}

.c4y-profile-modal__text p {
  margin-bottom: 12px;
}

/* Strip stray <br> in modal bio text */
.c4y-profile-modal__text br {
  display: none;
}

/* Mobile: stack vertically */
@media (max-width: 680px) {
  .c4y-profile-modal__body {
    grid-template-columns: 1fr;
    overflow-y: auto;
    max-height: 88vh;
  }

  .c4y-profile-modal__image {
    border-radius: 20px 20px 0 0;
    padding: 20px 16px 12px;
    align-items: center;
  }

  .c4y-profile-modal__image img {
    max-height: 180px;
    width: auto;
    max-width: 160px;
    margin: 0 auto;
  }

  .c4y-profile-modal__info {
    max-height: none;
    overflow-y: visible;
    padding: 18px 18px 20px;
  }

  .c4y-profile-modal__content {
    max-height: 92vh;
    overflow-y: auto;
  }
}

/* ──────────────────────────────────────────────────────────
   10. VISION / SERVICES tab polish
   ────────────────────────────────────────────────────────── */
.c4y-checklist { gap: 10px; margin-top: 8px; }
.c4y-checklist__icon { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.c4y-checklist__text { font-size: .85rem; line-height: 1.6; text-align: justify; }

.c4y-tag { font-size: .78rem; padding: 8px 12px; min-height: 44px; }

/* ──────────────────────────────────────────────────────────
   11. DIVIDER POLISH
   ────────────────────────────────────────────────────────── */
.c4y-divider { width: 36px; height: 3px; margin: 8px 0 20px; }

/* ──────────────────────────────────────────────────────────
   12. FOOTPRINTS — both images same fixed size side by side
   ────────────────────────────────────────────────────────── */

/* Override the original 1fr / 1.6fr grid — equal columns */
.c4y-footprint {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}

/* Both image containers: same fixed height, same style */
.c4y-footprint__map,
.c4y-footprint__details {
  width: 100%;
}

.c4y-footprint__map img,
.c4y-footprint__details .c4y-footprint__map img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--c4y-light-bg);
  border: 1px solid var(--c4y-border);
  border-radius: var(--radius-md);
  display: block;
}

/* Project office label */
.c4y-footprint__group-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c4y-blue);
  margin-bottom: 10px;
  padding: 5px 12px;
  background: var(--c4y-light-bg);
  border-left: 3px solid var(--c4y-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

@media (max-width: 720px) {
  .c4y-footprint {
    grid-template-columns: 1fr;
  }

  .c4y-footprint__map img,
  .c4y-footprint__details .c4y-footprint__map img {
    height: 220px;
  }
}