/* ══════════════════════════════════════
   management.css — pages/management.php
   Staggered org-chart layout, portrait photos
   ══════════════════════════════════════ */

/* ── P1 Hero Banner ── */
.morg-hero-wrap {
  display: flex;
  justify-content: center;
  background: #fff;
  padding: 2rem 1rem 0;
}
.morg-hero {
  display: block;
  width: 100%;
  max-width: 1600px;
  height: 680px;
  overflow: hidden;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.13);
  transition: filter .2s;
}
.morg-hero:hover { filter: brightness(.95); }

.morg-hero-photo {
  width: 100%; height: 100%;
}
.morg-hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
}
.morg-hero-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #a8c4a8; font-size: 9rem; background: #c8dac8;
}
.morg-hero-info { display: none; }

/* ── Page background ── */
body,
.inner-page-body { background: #fff !important; }

/* ── Wrapper ── */
.mgmt-org-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 2rem 4rem;
  background: #fff;
}

/* ── Two-column zigzag (P2-P4) ── */
.morg-two-col {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  width: fit-content;
  margin-left: calc(50% - 10.9rem);
  margin-bottom: 2rem;
}
.morg-left-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
/* P3 offset = half of P2 height (600px/2=300px) + gap(2rem) */
.morg-right-stack {
  padding-top: calc(300px + 2rem);
  flex-shrink: 0;
}

/* ── Rows ── */
.morg-row {
  display: flex;
  margin-bottom: 2rem;
}
.morg-row--center       { justify-content: center; }
.morg-row--center-left  { justify-content: center; padding-right: 15%; }
.morg-row--right        { justify-content: flex-end; padding-right: 8%; }
.morg-row--split        { justify-content: space-between; padding: 0 4%; }

/* ── Card ── */
.morg-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 350px;
  transition: transform .22s;
  cursor: pointer;
}
.morg-card:hover { transform: translateY(-5px); }
.morg-card--featured { width: 350px; }

/* ── Portrait photo (no background, no border) ── */
.morg-photo {
  width: 350px; height: 600px;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  border: none;
  outline: none;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.morg-card--featured .morg-photo {
  width: 350px; height: 600px;
  background: transparent;
  border: none;
  outline: none;
}
.morg-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  transition: transform .35s;
}
.morg-card:hover .morg-photo img { transform: scale(1.04); }
.morg-ph-icon {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #bbb; font-size: 5rem;
  background: #f0f0f0;
}
.morg-card--featured .morg-ph-icon { font-size: 6rem; }

/* ── Hide text label ── */
.morg-info { display: none; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .morg-hero { height: 420px; }
}
@media (max-width: 800px) {
  .morg-hero-wrap { padding: 1rem .5rem 0; }
  .morg-hero { height: 260px; border-radius: 8px; }
  .mgmt-org-wrap { padding: 2rem 1rem 3rem; }
  .morg-two-col { flex-direction: column; padding-right: 0; gap: 1.5rem; align-items: center; margin-left: 0; }
  .morg-right-stack { padding-top: 0; }
  .morg-left-stack { align-items: center; }
  .morg-row--center-left { padding-right: 0; }
  .morg-row--right  { padding-right: 0; justify-content: center; }
  .morg-row--split  { padding: 0; gap: 1rem; justify-content: center; }
  .morg-card { width: 200px; }
  .morg-photo { width: 200px; height: 343px; }
  .morg-card--featured .morg-photo { width: 200px; height: 343px; }
}

/* ── Extra persons (sort_order 7+) ─────────────────── */
.mgmt-extra-wrap {
  background: #f8faf8;
  padding: 2.5rem 2rem 3rem;
  border-top: 3px solid #e8f0e8;
}
.mgmt-extra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.mgmt-extra-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform .2s;
}
.mgmt-extra-card:hover { transform: translateY(-4px); }
.mgmt-extra-photo {
  width: 110px; height: 110px;
  border-radius: 50%;
  overflow: hidden;
  background: #dce8dc;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
  border: 4px solid #fff;
  margin-bottom: .6rem;
}
.mgmt-extra-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}
.mgmt-extra-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #a8c4a8; font-size: 2.5rem;
}
.mgmt-extra-info { text-align: center; }
.mgmt-extra-name { font-size: .83rem; font-weight: 500; color: #1e321e; line-height: 1.4; }
.mgmt-extra-pos  { font-size: .75rem; color: #6a8a6a; font-weight: 300; margin-top: .15rem; line-height: 1.4; }

@media (max-width: 600px) {
  .mgmt-extra-wrap { padding: 1.5rem 1rem 2rem; }
  .mgmt-extra-grid { gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .mgmt-extra-photo { width: 90px; height: 90px; }
}
