/**
 * 임원진 페이지 (about/executives.php)
 * 조직도: 세로 포트레이트 카드 + 하단 컬러 라벨
 */

/* ── 페이지 ── */
.wrap-content .sub-content.exec-page {
  padding-top: 32px;
  padding-bottom: 120px;
}

@media (max-width: 768px) {
  .wrap-content .sub-content.exec-page {
    padding-top: 30px;
    padding-bottom: 50px;
  }
}

/* ── 섹션 ── */
.exec-section {
  margin-bottom: 90px;
}

.exec-section:last-of-type {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .exec-section {
    margin-bottom: 48px;
  }
}

/* 제목 왼쪽 + 오른쪽으로 이어지는 구분선 */
.exec-section__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 30px;
  min-width: 0;
}

.exec-section__head::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: rgb(71, 64, 117, 0.5);
  min-width: 0;
}

.exec-section__tit {
  margin: 0;
  padding: 0;
  border: none;
  flex: 0 0 auto;
  text-align: left;
  font-size: 24px;
  font-weight: 700;
  color: #1B1735;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .exec-section__head {
    gap: 12px;
    margin-bottom: 20px;
  }

  .exec-section__tit {
    font-size: 18px;
  }
}

.exec-empty {
  margin: 0;
  padding: 24px;
  text-align: center;
  color: #8a8a8a;
  font-size: 15px;
}

.exec-cell--full {
  grid-column: 1 / -1;
}

/* ── 그리드 ── */
.exec-grid--advisors,
.exec-grid--directors {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.exec-grid--presidents {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

@media (max-width: 1100px) {
  .exec-grid--advisors,
  .exec-grid--directors {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .exec-grid--presidents {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .exec-grid--advisors,
  .exec-grid--directors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .exec-grid--presidents {
    gap: 16px 12px;
  }
}

.exec-cell {
  min-width: 0;
}

/* ── 카드: 상단 라운드 사진 + 하단 라운드 라벨 ── */
.exec-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
  cursor: pointer;
}

.exec-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #ececee;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.exec-page .exec-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1);
  transition: filter 0.35s ease;
}

@media (hover: hover) {
  .exec-page .exec-card:hover .exec-card__media img {
    filter: grayscale(0);
  }
}

.exec-card__caption {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 12px;
  box-sizing: border-box;
  text-align: center;
  border-radius: 0 0 10px 10px;
}

.exec-card__line {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
  word-break: keep-all;
}

.exec-card__line .exec-card__role,
.exec-card__line .exec-card__name {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

@media (max-width: 768px) {
  .exec-card__caption {
    min-height: 45px;
  }

  .exec-card__line {
    font-size: 13px;
  }
}

/* 회장단: 스크린샷과 유사한 퍼플 라벨 */
.exec-card--president .exec-card__caption {
  background: #4b457a;
}

/* 고문단: 짙은 회색 라벨 */
.exec-card--advisor .exec-card__caption {
  background: #8E8E92;
}

/* 이사진: 중간 회색 라벨 */
.exec-card--director .exec-card__caption {
  background: #8E8E92;
}
