@import url("https://fonts.googleapis.com/css2?family=Gowun+Dodum&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap");

/* 조직도 및 직원소개 페이지 전용 CSS. 공통 헤더/푸터 스타일은 포함하지 않습니다. */
:root {
  --org-green: #26734d;
  --org-green-dark: #174d35;
  --org-green-soft: #eaf5ed;
  --org-orange: #f2a65a;
  --org-text: #24352c;
  --org-muted: #68786f;
  --org-line: #dce8df;
  --org-bg: #f7faf7;
  --org-container: 1120px;
}

.organization-page,
.organization-page * {
  box-sizing: border-box;
}

.organization-page {
  overflow: hidden;
  color: var(--org-text);
  background: var(--org-bg);
  font-family: "Noto Sans KR", "Gowun Dodum", sans-serif;
  line-height: 1.7;
}

.organization-page a {
  color: inherit;
}
.organization-container {
  width: min(var(--org-container), calc(100% - 48px));
  margin-inline: auto;
}

/* Hero */
.organization-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 58px 0 68px;
  background: linear-gradient(120deg, #eaf5ec 0%, #f6faf2 58%, #fff7e9 100%);
}
.organization-hero::before,
.organization-hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  border: 1px solid rgba(38, 115, 77, 0.13);
  border-radius: 50%;
  pointer-events: none;
}
.organization-hero::before {
  width: 300px;
  height: 300px;
  right: -95px;
  top: -140px;
}
.organization-hero::after {
  width: 190px;
  height: 190px;
  right: 15%;
  bottom: -130px;
  background: rgba(255, 255, 255, 0.35);
}

.organization-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  color: #708077;
  font-size: 13px;
}
.organization-breadcrumb a {
  text-decoration: none;
}
.organization-breadcrumb a:hover {
  color: var(--org-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.organization-breadcrumb__current {
  color: var(--org-green-dark);
  font-weight: 700;
}

.organization-hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  align-items: center;
  gap: 38px;
}
.organization-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--org-green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.organization-eyebrow::before {
  width: 24px;
  height: 2px;
  background: var(--org-orange);
  content: "";
}
.organization-hero h1 {
  margin: 0;
  color: var(--org-green-dark);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.organization-hero__description {
  max-width: 650px;
  margin: 17px 0 0;
  color: #56685d;
  font-size: 16px;
  line-height: 1.9;
  word-break: keep-all;
}
.organization-hero__art {
  display: grid;
  place-items: center;
  min-height: 190px;
}
.organization-art-card {
  display: grid;
  place-items: center;
  width: 190px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 42% 58% 53% 47% / 49% 44% 56% 51%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 45px rgba(28, 67, 43, 0.08);
  color: var(--org-green);
}
.organization-art-card svg {
  width: 112px;
  height: 112px;
}
.organization-art-spark {
  position: absolute;
  color: #e7a14e;
  font-size: 25px;
}
.organization-hero__art {
  position: relative;
}
.organization-art-spark--one {
  top: 9px;
  right: 23px;
}
.organization-art-spark--two {
  bottom: 13px;
  left: 18px;
  font-size: 19px;
}

/* Section heading */
.organization-section {
  padding: 62px 0 0;
}
.organization-section-heading {
  margin: 0 auto 34px;
  text-align: center;
}
.organization-section-heading__label {
  margin: 0 0 8px;
  color: var(--org-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.organization-section-heading h2 {
  margin: 0;
  color: var(--org-text);
  font-size: clamp(25px, 3vw, 33px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.04em;
  word-break: keep-all;
}
.organization-section-heading p {
  margin: 12px auto 0;
  max-width: 660px;
  color: var(--org-muted);
  font-size: 15px;
  word-break: keep-all;
}

/* Organization chart */
.organization-chart-wrap {
  padding: 34px 24px 40px;
  border: 1px solid #e6eee7;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(28, 67, 43, 0.04);
}
.organization-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.organization-node {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: min(100%, 250px);
  min-height: 76px;
  padding: 14px 20px;
  border: 1px solid var(--org-line);
  border-radius: 13px;
  background: #fff;
  text-align: center;
}
.organization-node__title {
  color: var(--org-green-dark);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}
.organization-node__caption {
  margin-top: 3px;
  color: var(--org-muted);
  font-size: 12px;
}
.organization-node--chair {
  border-color: var(--org-green-dark);
  background: var(--org-green-dark);
  box-shadow: 0 9px 20px rgba(23, 77, 53, 0.16);
}
.organization-node--chair .organization-node__title {
  color: #fff;
}
.organization-node--chair .organization-node__caption {
  color: rgba(255, 255, 255, 0.78);
}
.organization-node--office {
  border-color: #cfe5d3;
  background: var(--org-green-soft);
}
.organization-chart__connector {
  width: 2px;
  height: 26px;
  background: #b9d7c0;
}
.organization-chart__branch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 800px);
  padding-top: 25px;
}
.organization-chart__branch::before {
  position: absolute;
  top: 0;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: #b9d7c0;
  content: "";
}
.organization-chart__branch-item {
  position: relative;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.organization-chart__branch-item::before {
  position: absolute;
  top: -25px;
  width: 2px;
  height: 25px;
  background: #b9d7c0;
  content: "";
}
.organization-chart__branch-item .organization-node {
  width: 100%;
  min-height: 82px;
}
.organization-chart__note {
  margin: 22px 0 0;
  color: #78877e;
  font-size: 12px;
  text-align: center;
}

/* Staff list */
.organization-staff-section {
  padding: 70px 0 82px;
}
.organization-staff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.organization-staff-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px 23px 23px;
  border-radius: 17px;
  /* border: 1px solid #e5eee6;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 67, 43, 0.035); */
  border: 1px solid #b9d8c1;
  background: linear-gradient(145deg, #ffffff, #f0f7f1);
  box-shadow: 0 10px 28px rgba(23, 77, 53, 0.09);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.organization-staff-card:hover {
  transform: translateY(-3px);
  border-color: #c9dfce;
  box-shadow: 0 14px 28px rgba(28, 67, 43, 0.075);
}
.organization-staff-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid #edf2ee;
}
.organization-staff-card__avatar {
  display: grid;
  flex: 0 0 62px;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: var(--org-green-soft);
  color: var(--org-green);
}
.organization-staff-card__avatar svg {
  width: 30px;
  height: 30px;
}
.organization-staff-card__role {
  margin: 0 0 2px;
  color: var(--org-green);
  font-size: 12px;
  font-weight: 800;
}
.organization-staff-card__name {
  margin: 0;
  color: var(--org-text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
}
.organization-staff-card__name small {
  margin-left: 5px;
  color: var(--org-muted);
  font-size: 12px;
  font-weight: 500;
}
.organization-staff-card__details {
  display: grid;
  gap: 10px;
  padding-top: 18px;
}
.organization-staff-card__detail {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 8px;
  font-size: 13px;
}
.organization-staff-card__detail dt {
  color: #7a8980;
}
.organization-staff-card__detail dd {
  min-width: 0;
  margin: 0;
  color: #3c5044;
  overflow-wrap: anywhere;
}
.organization-staff-card__detail--tasks dd {
  word-break: keep-all;
}

.organization-contact-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 32px;
  padding: 25px 29px;
  border-radius: 16px;
  background: #edf6ee;
}
.organization-contact-banner__text h3 {
  margin: 0;
  color: var(--org-green-dark);
  font-size: 18px;
  font-weight: 800;
}
.organization-contact-banner__text p {
  margin: 5px 0 0;
  color: #607367;
  font-size: 13px;
  word-break: keep-all;
}
.organization-contact-banner__link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 17px;
  border-radius: 9px;
  background: var(--org-green-dark);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.organization-contact-banner__link:hover {
  background: var(--org-green);
}

/* Tablet */
@media (max-width: 1024px) {
  .organization-hero {
    padding: 48px 0 55px;
  }
  .organization-hero__content {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 20px;
  }
  .organization-art-card {
    width: 165px;
  }
  .organization-chart-wrap {
    padding-inline: 18px;
  }
  .organization-staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 767px) {
  .organization-container {
    width: min(100% - 36px, var(--org-container));
  }
  .organization-hero {
    padding: 27px 0 38px;
  }
  .organization-breadcrumb {
    gap: 7px;
    margin-bottom: 22px;
    font-size: 12px;
  }
  .organization-hero__content {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .organization-hero__copy {
    text-align: center;
  }
  .organization-eyebrow {
    justify-content: center;
    font-size: 11px;
  }
  .organization-hero h1 {
    font-size: clamp(30px, 8vw, 37px);
  }
  .organization-hero__description {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.8;
  }
  .organization-hero__art {
    min-height: 130px;
  }
  .organization-art-card {
    width: 125px;
  }
  .organization-art-card svg {
    width: 78px;
    height: 78px;
  }
  .organization-art-spark--one {
    top: 0;
    right: calc(50% - 70px);
  }
  .organization-art-spark--two {
    bottom: 3px;
    left: calc(50% - 72px);
  }
  .organization-section {
    padding-top: 43px;
  }
  .organization-section-heading {
    margin-bottom: 24px;
  }
  .organization-section-heading h2 {
    font-size: 25px;
  }
  .organization-section-heading p {
    font-size: 13px;
    line-height: 1.8;
  }
  .organization-chart-wrap {
    padding: 22px 14px 24px;
    border-radius: 14px;
  }
  .organization-node {
    min-height: 65px;
    padding: 10px 8px;
    border-radius: 10px;
  }
  .organization-node__title {
    font-size: 14px;
  }
  .organization-node__caption {
    font-size: 10px;
  }
  .organization-chart__connector {
    height: 20px;
  }
  .organization-chart__branch {
    gap: 8px;
    padding-top: 20px;
  }
  .organization-chart__branch::before {
    left: calc(100% / 6);
    right: calc(100% / 6);
  }
  .organization-chart__branch-item::before {
    top: -20px;
    height: 20px;
  }
  .organization-chart__branch-item .organization-node {
    min-height: 75px;
  }
  .organization-chart__note {
    font-size: 11px;
    line-height: 1.7;
  }
  .organization-staff-section {
    padding: 50px 0 55px;
  }
  .organization-staff-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }
  .organization-staff-card {
    padding: 19px 17px;
    border-radius: 13px;
  }
  .organization-staff-card__top {
    gap: 12px;
    padding-bottom: 15px;
  }
  .organization-staff-card__avatar {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
  .organization-staff-card__name {
    font-size: 18px;
  }
  .organization-staff-card__details {
    gap: 8px;
    padding-top: 14px;
  }
  .organization-contact-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 15px;
    margin-top: 22px;
    padding: 20px 17px;
  }
  .organization-contact-banner__text h3 {
    font-size: 16px;
  }
  .organization-contact-banner__text p {
    font-size: 12px;
    line-height: 1.8;
  }
  .organization-contact-banner__link {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .organization-container {
    width: calc(100% - 28px);
  }
  .organization-chart-wrap {
    padding-inline: 9px;
  }
  .organization-chart__branch {
    gap: 5px;
  }
  .organization-node__title {
    font-size: 12px;
  }
  .organization-node__caption {
    font-size: 9px;
  }
  .organization-staff-card__detail {
    grid-template-columns: 58px minmax(0, 1fr);
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .organization-staff-card {
    transition: none;
  }
  .organization-staff-card:hover {
    transform: none;
  }
}

/* ========================= */
/* 이미지 모달 */
/* ========================= */
.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.88);
  justify-content: center;
  align-items: center;
  padding: 30px;
  cursor: zoom-out;
}

.image-modal.active {
  display: flex;
}

.image-modal img {
  max-width: 95%;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  cursor: default;
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 42px;
  cursor: pointer;
}

/* ========================= */
/* 조직도 인원 구조도*/
/* ========================= */
.organization-staff-card__avatar {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  overflow: hidden;
  border-radius: 50%;
  background: #edf2ed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.organization-staff-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.organization-staff-card__avatar .no-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #829286;
}

.organization-staff-card__avatar .no-image-placeholder svg {
  width: 42px;
  height: 42px;
}

.organization-staff-card__avatar.no-image::after {
  content: "PROFILE";
  position: absolute;
  font-size: 10px;
  font-weight: 700;
  color: #829286;
}

/*  */
/*  */

/* =====================================
   직원 조직도 계층형 레이아웃
===================================== */

.organization-staff-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.organization-staff-level {
  position: relative;
  display: grid;
  width: 100%;
  gap: 20px;
  align-items: stretch;
}

.organization-staff-level--single {
  grid-template-columns: minmax(0, 360px);
  justify-content: center;
}

.organization-staff-level--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1000px;
}

.organization-staff-level--two {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1000px;
}

.organization-staff-level .organization-staff-card {
  width: 100%;
  min-width: 0;
}

.organization-staff-connector {
  width: 2px;
  height: 32px;
  flex: 0 0 32px;
  background: #b9d7c0;
}

/* 최상위 직책 */
.organization-staff-card--chair {
  border: 1px solid #b9d8c1;
  background: linear-gradient(145deg, #ffffff, #f0f7f1);
  box-shadow: 0 10px 28px rgba(23, 77, 53, 0.09);
}

.organization-staff-card--chair .organization-staff-card__role {
  color: #26734d;
}

/* 분과위원 영역 */
.organization-staff-committee {
  width: 100%;
  padding: 28px;
  border: 1px solid #dce8df;
  border-radius: 18px;
  background: #f7faf7;
}

.organization-staff-committee__heading {
  margin-bottom: 24px;
  text-align: center;
}

.organization-staff-committee__heading h3 {
  margin: 0;
  color: #174d35;
  font-size: 22px;
  font-weight: 800;
}

.organization-staff-committee__heading p {
  margin: 6px 0 0;
  color: #68786f;
  font-size: 13px;
}

.organization-staff-committee .organization-staff-level {
  max-width: none;
}

/* 마지막 행도 왼쪽부터 배치 */
.organization-staff-level--three {
  justify-content: start;
}

@media (max-width: 1024px) {
  .organization-staff-level--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .organization-staff-level {
    gap: 13px;
  }

  .organization-staff-level--single,
  .organization-staff-level--two,
  .organization-staff-level--three {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
  }

  .organization-staff-connector {
    height: 22px;
    flex-basis: 22px;
  }

  .organization-staff-committee {
    padding: 19px 14px;
  }

  .organization-staff-committee__heading h3 {
    font-size: 19px;
  }
}
