/* =================================================================
   About Pages CSS - 소개 메뉴 페이지들 공통 스타일
   법인소개, 복지관소개, ESG복지경영, 시설안내/기관현황, 오시는길 페이지에서 공통 사용
   
   📍 구현된 페이지들:
   • 법인소개 (organization) - 기본 테이블 레이아웃
   • 복지관소개 (about_us) - 탭 시스템, 4대 돌봄 카드, ESG 테이블, 연혁 아코디언
   • ESG복지경영 (about_esg) - SDGs 카드 플립 기능
   • 시설안내/기관현황 (about_facilities) - 시설 레이아웃, 프로세스 플로우
   • 오시는길 (about_location) - 지도 + 정보 테이블 레이아웃
   ================================================================= */

/* =================================================================
   NOTE: 공통 컴포넌트는 base.css에서 로드됩니다
   ================================================================= */

/* =================================================================
   About 페이지 공통 스타일
   ================================================================= */

/* 공통 제목 스타일 */
.about-page-title {
  text-align: center;
  font-size: var(--text-7xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-10);
}

/* 공통 설명 스타일 */
.about-page-description {
  text-align: center;
  font-size: var(--text-3xl);
  font-weight: var(--font-regular);
  color: var(--color-neutral-500);
  line-height: var(--leading-relaxed);
  letter-spacing: -0.05em;
  margin: 0 auto;
  margin-bottom: var(--space-12);
}

/* =================================================================
   법인소개 페이지 스타일
   ================================================================= */

.organization-hero {
  padding: var(--space-32) 0 var(--space-12);
}

.organization-image {
  margin: 0 auto;
  margin-bottom: var(--space-24);
  max-width: 332px;
  height: 258px;
  overflow: hidden;
}

.organization-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.organization-table {
  max-width: var(--size-content-max);
  margin: 0 auto;
  margin-bottom: var(--space-32);
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 3fr;
  border-bottom: 1px solid var(--color-neutral-350);
  min-height: var(--height-about-table-row);
}

.table-row:nth-child(2) {
  border-top: 1px solid var(--color-neutral-350);
}

.table-row:last-child {
  border-bottom: 2px solid var(--color-neutral-350);
}

.table-header {
  padding: var(--space-8);
  font-size: var(--text-4xl);
  font-weight: var(--font-semibold);
  display: flex;
  align-items: center;
}

.table-content {
  padding: var(--space-6) var(--space-8);
  display: flex;
  align-items: center;
  font-size: var(--text-xl);
  font-weight: var(--font-medium);
  color: var(--color-neutral-500);
  line-height: var(--leading-relaxed);
}

.table-content-date {
  font-size: var(--text-3xl);
}

.motto {
  text-align: left;
  font-size: var(--text-7xl);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  line-height: var(--leading-tight);
}

/* =================================================================
   복지관소개 페이지 스타일
   ================================================================= */

/* 복지관소개 컨테이너 */
.about-us-container {
  max-width: var(--size-content-max);
  margin: 0 auto;
  padding: var(--space-32) var(--space-5) var(--space-12);
  text-align: center;
}

.orange-line {
    width: var(--size-content-max);
    height: 0.125rem;
    background-color: var(--color-primary);
    margin: var(--space-12) auto;
    padding: 0 var(--space-5);
}

/* 복지관소개 히어로 섹션 */
.about-us-hero {
  padding-top: var(--space-16);
  text-align: center;
}

.about-us-hero-image {
  max-width: var(--size-content-max);
  overflow: hidden;
  margin: var(--space-24) auto ;
  display: flex;
  justify-content: center; /* 가로 중앙 */
  align-items: center;     /* 세로 중앙 */
}

.about-us-hero-image img {
  height: 100%;
  max-height: 17.5rem; /* 280px */
  width: auto;
}

/* 복지관 가치 테이블 - 특별 스타일링 */
.about-us-hero + section .organization-table .table-row:first-child {
  grid-template-columns: 1fr; /* 미션은 한 열로 */
}

/* 복지관소개 페이지의 table-content 리스트 스타일 */
.table-content ul, .care-card-content ul {
  margin: 0;
  padding-left: var(--space-6);
  list-style-type: disc;
}

.about-us-section-bg {
    margin-top: var(--space-8);
    margin-bottom: var(--space-32);
}    

.about-us-section-bg img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* 연혁 탭 스타일 */
.history-accordion {
  max-width: var(--size-content-max);
  margin: 0 auto;
  padding: 0 var(--space-5) var(--space-32);
}

.history-item {
  border-bottom: 1px solid var(--color-neutral-350);
  margin-bottom: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.history-item:last-child {
  border-bottom: 2px solid var(--color-neutral-350);
}

.history-item:hover {
    background: linear-gradient(180deg, #FFFFFF 86%, #F5F5F5 100%);
}
  
.history-header {
  display: grid;
  grid-template-columns: 18.75rem 2rem 1fr; /* 300px, 32px, 나머지 */
  align-items: flex-start;
  padding: 0;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: all var(--transition-normal);
}
.history-header.collapsed {
  background: none;
}

.history-year {
  padding: var(--space-10) var(--space-5);
  font-size: var(--text-8xl);
  font-weight: var(--font-semibold);
  text-align: center;
  align-self: flex-start;
  height: 100%;
}

.history-toggle-icon {
  width: 0;
  height: 0;
  border-left: 6px solid var(--color-neutral-400);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: all var(--transition-normal);
  transform: rotate(0deg);
  margin: 0 auto;
  align-self: flex-start;
  margin-top: var(--space-18);
}

.history-header[aria-expanded="true"] .history-toggle-icon {
  transform: rotate(90deg);
  border-left-color: var(--color-primary);
}

.history-content-area {
  padding: var(--space-8) 0;
  position: relative;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* 닫힌 상태: 이미지 일부만 보임 */
.history-header.collapsed .history-content-area {
  max-height: 12rem; /* 192px */
}

/* 열린 상태: 이미지 전체 보임 */
.history-header:not(.collapsed) .history-content-area {
  max-height: none;
}

.history-main-image {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.3s ease;
}

/* 4대 돌봄 카드 스타일 */
.care-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
  margin-bottom: var(--space-32);
}

.care-card {
  background: var(--color-white);
  border: 3px solid var(--color-border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition-normal);
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.care-card:hover {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
  transform: translateY(-0.125rem);
}

.care-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.care-card-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-primary);
  margin: 0;
}

.care-card-icon {
  width: var(--size-icon-6xl);
  height: var(--size-icon-6xl);
  object-fit: contain;
}

.care-card-content {
  font-size: var(--text-xl);
  font-weight: var(--font-regular);
  line-height: var(--leading-snug);
  text-align: left;
}

.care-card-button {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  text-decoration: none;
  transition: all var(--transition-normal);
  width: 7.5rem;  /* 120px */
  height: 2.8125rem;  /* 45px */
  display: flex;
  align-items: center;
  justify-content: center;
}

.care-card-button:hover {
  background: var(--color-primary-hover);
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-0.125rem);
}

/* ESG 테이블 특별 스타일 */
.esg-table .table-row:not(:first-child) {
  grid-template-columns: 18fr 30fr 72fr;
}

.esg-table .table-row:first-child {
  grid-template-columns: 1fr; /* 첫 번째 행은 하나의 셀로 통합 */
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  padding-bottom: var(--space-6);
}

.esg-title-text {
  letter-spacing: 0em;
}

.text-orange {
  color: var(--color-primary);
}

.esg-table .esg-icon-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.esg-table .table-header {
  font-size: var(--text-3xl);
}

.esg-table .table-content {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.esg-table .esg-icon {
  width: var(--size-icon-6xl);
  height: var(--size-icon-6xl);
  object-fit: contain;
}


/* ================================================================
   조직도 탭 스타일 (인터랙티브)
   ================================================================ */

/* 인터랙티브 조직도 섹션 */
.org-chart-section {
  margin: var(--space-20) auto;
}

.org-chart-container {
  max-width: var(--size-content-max);
  margin: 0 auto;
  text-align: center;
}

/* 조직도 구조 */
.org-structure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: var(--space-8) var(--space-16);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  position: relative;
  min-height: 500px;
}

/* 재단명 스타일 */
.org-foundation-name {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--color-primary);
  margin-bottom: var(--space-1);
  text-align: center;
}

/* 조직도 레벨별 스타일 */
.org-level {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
}

.org-level.level-1, .org-level.level-2 {
  justify-content: center;
  
}

.org-level.level-3 {
  position: relative;
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.org-level.level-4-grid {
  display: none;
}

.org-level.level-4 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  max-width: 1200px;
  margin: var(--space-20) auto 0;
  justify-items: center;
}

  /* 십자가 교차선 */
.cross-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.horizontal-cross-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  max-width: 700px;
  height: 2px;
  background: var(--color-neutral-300);
  transform: translate(-60%, -50%);
}

.vertical-cross-line {
  position: absolute;
  left: 50%;
  top: -50px;
  bottom: -48px;
  width: 2px;
  background: var(--color-neutral-300);
  transform: translateX(-50%);
}

/* 위원회 오른쪽 그룹 */
.org-committees-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}

/* 위원회에서 팀으로 가는 연결선 */
/* .vertical-line-to-committees {
  width: 2px;
  height: 30px;
  background: var(--color-neutral-300);
  margin: 0 auto;
} */

/* 조직도 박스 스타일 */
.org-box {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  text-align: center;
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  position: relative;
  z-index: 10;
}

/* 각 레벨별 특별 스타일 */
.org-box.chairman {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  font-size: var(--text-xl);
  letter-spacing: 0.05em;
  min-width: 180px;
  padding: var(--space-3) var(--space-8);
}

.org-box.director {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--text-xl);
  border: 3px solid var(--color-primary-inactive);
  letter-spacing: 0.1em;
  min-width: 180px;
  padding: var(--space-3) var(--space-8);
}

.org-box.director:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
  background: var(--color-primary);
}

.org-box.committee {
  background: var(--color-neutral-230);
  color: var(--color-neutral-500);
  border: 2px solid var(--color-neutral-400);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  min-width: 150px;
  padding: var(--space-3) var(--space-6);
  position: relative;
  z-index: 10;
}

.org-box.team-box {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.3;
  min-width: 150px;
  padding: var(--space-3) var(--space-6);
}

.org-box.team-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
  background: var(--color-primary);
}

.org-box.team-box.active {
  background: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.5);
}

/* ================================================================
   연결선 스타일
   ================================================================ */

/* 기본 연결선 스타일 */
.org-connector {
  position: relative;
  z-index: 1;
}

/* 이사장-관장 수직 연결선 */
.vertical-line {
  width: 2px;
  height: 40px;
  background: var(--color-neutral-300);
  margin: 0 auto;
}

/* 팀 연결선 구조 */
.teams-connector {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: var(--space-12) auto 0;
  z-index: 1;
}

/* .vertical-line-to-teams {
  width: 2px;
  height: 30px;
  background: var(--color-neutral-300);
  margin: 0 auto;
} */

.horizontal-line-teams {
  width: 100%;
  max-width: 920px;
  height: 2px;
  background: var(--color-neutral-300);
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
  padding-right: 40px;
  box-sizing: border-box;
}

/* Add vertical caps to team horizontal line */
.horizontal-line-teams::before,
.horizontal-line-teams::after {
  content: '';
  position: absolute;
  top: 0;
  width: 2px;
  height: 80px;
  background: var(--color-neutral-300);
}

.horizontal-line-teams::before {
  left: 0;
  transform: translateX(-50%);
}

.horizontal-line-teams::after {
  right: 0;
  transform: translateX(50%);
}

.team-connectors {
  position: relative;
  width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-6);
}

.team-line:nth-child(1) { transform: translateX(30px); }
.team-line:nth-child(2) { transform: translateX(15px); }
.team-line:nth-child(3) { transform: translateX(5px); }
.team-line:nth-child(4) { transform: translateX(-5px); }
.team-line:nth-child(5) { transform: translateX(-15px); }
.team-line:nth-child(6) { transform: translateX(-30px); }

/* 팀별 격자 박스 연결선 */
.team-grid-box {
  width: 130px;
  height: 20px;
  border: 2px solid var(--color-neutral-300);
  position: relative;
  margin-bottom: 0;
  background: transparent;
}

.team-grid-box::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 4px;
  background: var(--color-neutral-300);
}

/* ================================================================
   직원 정보 섹션 스타일
   ================================================================ */

.staff-info-section {
  margin-bottom: var(--space-32);
  display: none;
}

/* 카테고리 탭 스타일 (notices.html과 동일) */
.category-tabs-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0px;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
}

.category-tab {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  height: 55px;
  background: var(--color-neutral-230);
  border: none;
  border-radius: 0;
  font-weight: var(--font-regular);
  font-size: var(--text-lg);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0 12px;
  position: relative;
}

.category-tab:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 30px;
  background-color: var(--color-border-form);
}

.category-tab.active {
  color: var(--color-primary);
  font-weight: var(--font-bold);
}

.category-tab:hover:not(.active) {
  color: var(--color-primary);
}

/* 직원 정보 콘텐츠 */
.staff-info-content {
  margin: 0 auto;
}

.staff-team-content {
  display: none;
}

.staff-team-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 직원 테이블 스타일 - data-table과 동일한 디자인 */

/* 테이블 바디 */
.data-table tbody tr {
  transition: background-color 0.2s ease;
}

.data-table tbody tr:hover {
  background: var(--color-neutral-100);
}

.data-table td {
  height: 50px;
  padding: 0 var(--space-4);
  text-align: center;
}

/* 총괄팀용 (3컬럼: 성명, 직위, 업무내용) */
.data-table.general-team th:nth-child(1), .data-table.general-team td:nth-child(1) { width: 23.75%; }   /* 성명 */
.data-table.general-team th:nth-child(2), .data-table.general-team td:nth-child(2) { width: 23.75%; }   /* 직위 */
/* .data-table.general-team th:nth-child(3), .data-table.general-team td:nth-child(3) { width: 52.5%; } */    /* 업무내용 */
.data-table.general-team th:nth-child(4), .data-table.general-team td:nth-child(4) { width: 23.75%; }   /* 직통번호 등 */

/* 기타팀용 (3컬럼: 직위, 업무내용, 직통번호) */
.data-table:not(.general-team) th:nth-child(1), .data-table:not(.general-team) td:nth-child(1) { width: 23.75%; }     /* 직위 */
/* .data-table:not(.general-team) th:nth-child(2), .data-table:not(.general-team) td:nth-child(2) { width: 52.5%; } */      /* 업무내용 */
.data-table:not(.general-team) th:nth-child(3), .data-table:not(.general-team) td:nth-child(3) { width: 25%; }     /* 직통번호 */
.data-table:not(.general-team) th:nth-child(4), .data-table:not(.general-team) td:nth-child(4) { width: 25%; }   /* 직통번호 등 */

/* 빈 직원 정보 스타일 */
.data-empty {
  text-align: center;
  padding: var(--space-16);
  background: var(--color-neutral-50);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--color-neutral-300);
}

.data-empty p {
  font-size: var(--text-xl);
  color: var(--color-neutral-500);
  margin: 0;
}
  
/* =================================================================
   반응형 디자인
   ================================================================= */

@media (max-width: 768px) {
  .about-page-title {
    font-size: var(--text-4xl);
  }

  .about-page-description,
  .section-description {
    font-size: var(--text-xl);
    padding: 0 var(--space-4);
  }

  .table-row {
    grid-template-columns: 1fr;
  }

  .table-header,
  .table-content {
    padding: var(--space-4);
  }

  .motto {
    font-size: var(--text-2xl);
  }

  /* 복지관소개 모바일 */
  .about-us-container {
    padding: var(--space-16) var(--space-3) var(--space-12);
  }

  .about-us-hero-image {
    margin: var(--space-8) auto;
  }

  .care-cards-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .care-card {
    padding: var(--space-5);
  }

  .care-card-icon {
    width: 80px;
    height: 80px;
  }

  /* ESG 테이블 모바일 */
  .esg-table .table-row:not(:first-child) {
    display: grid;
    grid-template-columns: 1fr 3fr; /* 첫 줄: 2칸 */
    column-gap: var(--space-2);
  }
  
  .esg-table .table-row:not(:first-child) > *:nth-child(3) {
    grid-column: 1 / -1; /* 첫 열부터 마지막 열까지 차지 */
  }
  

  .esg-table .esg-icon-cell {
    justify-content: flex-start;
    padding: var(--space-3);
  }

  .esg-table .table-header {
    text-align: left;
    padding: var(--space-3);
  }

  .esg-table .table-content {
    padding: var(--space-3);
  }

  .about-us-section-bg {
    height: 300px;
  }

  /* 연혁 탭 모바일 */
  .history-accordion {
    padding: 0 var(--space-3);
  }

  .history-header {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
    gap: var(--space-0);
  }

  .history-year {
    font-size: var(--text-3xl);
    padding: var(--space-5) var(--space-3);
  }

  .history-toggle-icon {
    margin: 0 auto;
  }

  .history-content-preview {
    padding: var(--space-6) var(--space-3);
    height: 6rem; /* 모바일에서 더 작게 */
  }

  /* 조직도 탭 모바일 */
  .org-chart-section {
    margin: var(--space-16) auto;
  }

  .org-chart-container {
    padding: 0 var(--space-3);
  }

  .org-structure {
    padding: 0 var(--space-8);
    min-height: 500px;
  }

  .org-foundation-name {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
  }

  .org-level.level-3 {
    /* flex-direction: column; */
    gap: var(--space-4);
    align-items: center;
    width: 95%;
    margin: 30px auto var(--space-6);
  }

  .org-committees-right {
    gap: var(--space-3);
  }

  .org-level.level-4-grid {
    display: none;
  }

  .org-level.level-4 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: var(--space-4);
    max-width: 100%;
    margin: var(--space-3) auto 0;
}

  .org-box {
    min-width: 100px;
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
  }

  .org-box.chairman {
    min-width: 120px;
    font-size: var(--text-base);
    padding: var(--space-4) var(--space-6);
  }

  .org-box.director {
    min-width: 120px;
    font-size: var(--text-base);
    padding: var(--space-4) var(--space-6);
  }

  .org-box.committee {
    min-width: 100px;
    font-size: var(--text-xs);
    padding: var(--space-3) var(--space-4);
  }

  .org-box.team-box {
    min-width: 115px;
    font-size: var(--text-xs);
    padding: var(--space-3) var(--space-4);
  }

  /* 모바일 연결선 조정 */
  .teams-connector {
    max-width: 400px;
    margin: var(--space-6) auto 0;
  }

  .horizontal-line-teams {
    padding-left: 20px;
    padding-right: 20px;
  }

  .team-connectors {
    width: 350px;
    grid-template-columns: repeat(3, 1fr);
    /* grid-template-rows: repeat(2, 1fr); */
  }

  .horizontal-line-teams::before,
  .horizontal-line-teams::after {
    height: 40px;
  }

  /* 모바일에서 팀 연결선 위치 조정 */
  .team-line:nth-child(1) {
    transform: translateX(10px);
  }

  .team-line:nth-child(2) {
    transform: translateX(0px);
  }

  .team-line:nth-child(3) {
    transform: translateX(-10px);
  }

  .team-line:nth-child(4) {
    transform: translateX(10px);
  }

  .team-line:nth-child(5) {
    transform: translateX(0px);
  }

  .team-line:nth-child(6) {
    transform: translateX(-10px);
  }

  .team-connectors {
    width: 300px;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .team-line {
    width: 2px;
    background: var(--color-neutral-300);
  }

  .team-grid-box {
    width: 100px;
    height: 50px;
    border: 2px solid var(--color-neutral-300);
  }

  /* .vertical-line-to-teams, */
  /* .vertical-line-to-committees {
    height: 20px;
    width: 2px;
    background: var(--color-neutral-300);
  } */


  .category-tabs-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .category-tab {
    flex: none;
    font-size: var(--text-sm);
    height: 45px;
    padding: 0 var(--space-4);
    border: 1px solid var(--color-white);
  }

  .category-tab:not(:last-child)::after {
    display: none;
  }

  .data-empty {
    padding: var(--space-12);
  }

  .data-empty p {
    font-size: var(--text-lg);
  }

  .horizontal-cross-line {
    max-width: 320px;
    width: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 480px) {
  .data-table td {
    padding: var(--space-1) 0;
  }
  /* 기타팀용 (3컬럼: 직위, 업무내용, 직통번호) */
  .data-table:not(.general-team) th:nth-child(1), .data-table:not(.general-team) td:nth-child(1) { width: 23%; }     /* 직위 */
  /* .data-table:not(.general-team) th:nth-child(2), .data-table:not(.general-team) td:nth-child(2) { width: 52.5%; } */      /* 업무내용 */
  .data-table:not(.general-team) th:nth-child(3), .data-table:not(.general-team) td:nth-child(3) { width: 35%; }     /* 직통번호 */
  .data-table:not(.general-team) th:nth-child(4), .data-table:not(.general-team) td:nth-child(4) { width: 25%; }   /* 직통번호 등 */
}

/* =================================================================
   ESG복지경영 페이지 스타일
   ================================================================= */
.about-esg-hero-image {
    max-width: var(--size-content-max);
    overflow: hidden;
    margin: var(--space-24) auto var(--space-12);
    display: flex;
    justify-content: center; /* 가로 중앙 */
    align-items: center;     /* 세로 중앙 */
}

.about-esg-hero-image img {
    width: 100%;
    max-height: 32.5rem;  /* 520px */
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* ESG 실천 텍스트 스타일 */
.esg-practice-title {
    font-size: var(--text-8xl);
    font-weight: var(--font-regular);
    line-height: var(--leading-normal);
}

.esg-practice-text {
    font-size: var(--text-5xl); 
    font-weight: var(--font-regular);
    line-height: var(--leading-normal);
}

/* SDGs 섹션 */
.sdgs-section {
  padding-top: var(--space-24);
  margin: var(--space-32) auto;
}

.sdgs-section .about-page-description {
  font-weight: var(--font-regular);
  text-align: left;
  font-size: var(--text-xl);
  letter-spacing: -0.07em;
}

/* ================================================================
   SDGs 그리드 레이아웃
   ================================================================ */

.sdgs-grid {
  display: grid;
  grid-template-columns: repeat(4, var(--size-logo));
  grid-template-rows: repeat(3, var(--size-logo));
  gap: 0;
  max-width: 100%;
  margin: 0 auto;
  justify-content: center;
}

.sdgs-column {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ================================================================
   SDGs 카드 기본 구조
   ================================================================ */

/* 카드 컨테이너 */
.sdgs-card {
  border: 1px solid var(--color-border-form);
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  width: var(--size-logo);
  height: var(--size-logo);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* 빈 카드 */
.sdgs-card-empty {
  background: transparent;
  border: none;
  cursor: default;
  width: var(--size-logo);
  height: var(--size-logo);
}

.sdgs-card-empty:hover {
  box-shadow: none;
  transform: none;
}

/* 카드 내부 구조 */
.sdgs-card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ================================================================
   SDGs 카드 기본 상태 (앞면)
   ================================================================ */

.sdgs-card-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--size-logo);
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
}

/* SDGs 아이콘 */
.sdgs-icon {
  width: 7.5rem;
  height: 7.5rem;
  overflow: hidden;
  margin-bottom: var(--space-4);
  transition: all 0.4s ease;
}

.sdgs-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* SDGs 제목 */
.sdgs-title {
  color: var(--color-white);
  font-weight: var(--font-medium);
  font-size: var(--text-xl);
  line-height: var(--leading-normal);
  letter-spacing: -0.07em;
  text-align: center;
  margin: 0;
  transition: all 0.4s ease;
}

/* 토글 아이콘 */
.sdgs-toggle-icon {
  color: var(--color-white);
  position: absolute;
  bottom: var(--space-5);
  width: 0.75rem;
  height: 0.75rem;
  transition: all 0.4s ease;
  transform: rotate(0deg);
}

.sdgs-card:hover .sdgs-toggle-icon {
  opacity: 0.8;
}
  
/* ================================================================
   SDGs 카드 확장 상태 (뒤면)
   ================================================================ */

/* 확장된 카드 */
.sdgs-card.expanded {
  height: var(--size-logo);
}

/* 확장된 앞면 (헤더) */
.sdgs-card.expanded .sdgs-card-front {
  height: 5rem;
  justify-content: center;
}

.sdgs-card.expanded .sdgs-card-front .sdgs-icon {
  display: none;
}

.sdgs-card.expanded .sdgs-toggle-icon {
  transform: rotate(180deg);
  bottom: var(--space-1);
}

/* 확장된 뒤면 (콘텐츠) */
.sdgs-card-back {
  display: none;
  width: 100%;
  height: 13.75rem;
  background: var(--color-white);
  transition: all 0.4s ease;
  overflow-y: auto;
}

.sdgs-card.expanded .sdgs-card-back {
  display: flex;
  animation: slideDown 0.4s ease;
  align-items: center;
}
  
/* SDGs 로고 이미지 (2칸 차지) */
.sdgs-logo-container {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 37.5rem;
  height: var(--size-logo);
  background: var(--color-white);
  border: 1px solid var(--color-neutral-300);
}

.sdgs-logo-image {
  width: 31.25rem;
  height: 5rem;
  object-fit: contain;
}

/* ================================================================
   SDGs 콘텐츠 스타일
   ================================================================ */

.sdgs-content {
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding: 0 var(--space-4);
  font-size: var(--text-lg);
}

.sdgs-content ul {
  list-style: disc;
  padding-left: var(--space-4);
  margin: 0;
}

/* ================================================================
   SDGs 애니메이션
   ================================================================ */

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 13.75rem;
  }
}

/* ================================================================
   SDGs 목표별 색상 테마
   ================================================================ */

.sdgs-card[data-goal="1"] { background-color:  #EA1E2C; }   /* 빈곤퇴치 */
.sdgs-card[data-goal="2"] { background-color:  #D19F29; }   /* 기아종식 */
.sdgs-card[data-goal="3"] { background-color:  #2B9A47; }   /* 건강과 웰빙 */
.sdgs-card[data-goal="4"] { background-color:  #C11E32; }   /* 양질의 교육 */
.sdgs-card[data-goal="7"] { background-color:  #FDB714; }   /* 깨끗한 에너지 */
.sdgs-card[data-goal="10"] { background-color:  #E01983; }  /* 불평등 감소 */
.sdgs-card[data-goal="11"] { background-color:  #F99D25; }  /* 지속가능 도시 */
.sdgs-card[data-goal="12"] { background-color:  #CE8C29; }  /* 책임있는 소비 */
.sdgs-card[data-goal="13"] { background-color:  #49773C; }  /* 기후행동 */
.sdgs-card[data-goal="17"] { background-color:  #183668; }  /* 파트너십 */
  
/* ================================================================
   ESG 페이지 반응형 디자인
   ================================================================ */

/* ================================================================
   반응형 스타일 - 단계적 그리드 레이아웃
   ================================================================ */

/* 대형 태블릿 (1200px 이하) - 3×4 그리드 */
@media (max-width: 1200px) {
  .sdgs-grid {
    grid-template-columns: repeat(3, var(--size-logo));
    grid-template-rows: repeat(4, var(--size-logo));
  }
  
  .sdgs-logo-container {
    grid-column: span 3;
    width: calc(var(--size-logo) * 3);
  }
}

/* 중형 태블릿 (768px 이하) - 2×6 그리드 */
@media (max-width: 768px) {
  /* ESG 히어로 */
  .about-esg-hero-image {
    margin: var(--space-16) auto 0;
  }

  .esg-practice-title {
    font-size: var(--text-4xl);
  }

  .esg-practice-text {
    font-size: var(--text-2xl);
  }

  .sdgs-section {
    padding: 0;
    margin: 0;
  }
  /* SDGs 그리드 */
  .sdgs-grid {
    grid-template-columns: repeat(2, var(--size-logo));
    grid-template-rows: repeat(6, var(--size-logo));
  }
  
  .sdgs-logo-container {
    grid-column: span 2;
    width: calc(var(--size-logo) * 2);
  }
}

/* 소형 모바일 (480px 이하) - 1×12 그리드 */
@media (max-width: 480px) {
  .sdgs-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(12, var(--size-logo));
    max-width: var(--size-logo);
  }
  
  .sdgs-logo-container {
    grid-column: span 1;
    width: 100%;
    height: var(--size-logo);
  }
  
  .sdgs-card,
  .sdgs-card-empty {
    width: 100%;
    height: var(--size-logo);
  }
} 

/* ================================================================
   시설안내/기관현황 페이지 스타일
   ================================================================ */

.about-facilities .list-section {
    margin: var(--space-32) 0;
}

/* 시설안내 레이아웃 */
.facilities-layout {
  display: flex;
  gap: var(--space-8);
  align-items: flex-start;
  margin-bottom: var(--space-10);
}

.facilities-image {
  flex: 0 0 41.6%;
  width: 41.6%;
  height: 100%;
}

.facilities-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facilities-info {
  flex: 1;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--color-neutral-350);
  border-bottom: 1px solid var(--color-neutral-350);
  padding: var(--space-4) var(--space-8);
  min-height: 22.8125rem;
}

.facilities-text p {
  font-size: var(--text-xl);
  font-weight: var(--font-regular);
  line-height: 2.5em;
  margin: 0;
}

/* ================================================================
   기관방문안내 & 시설대관 공통 스타일
   ================================================================ */

/* 정보 리스트 */
.info-list {
  list-style: disc;
  padding-left: var(--space-10);
  margin: 0;
  margin-bottom: var(--space-5);
}

.info-list .info-item {
  font-size: var(--text-lg);
  font-weight: var(--font-regular);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-2);
}

/* ================================================================
   프로세스 플로우 스타일
   ================================================================ */

/* 주의사항 스타일 */
.info-list .text-orange {
  margin: 0;
  line-height: var(--leading-normal);
}


/* ================================================================
   다운로드 버튼 스타일
   ================================================================ */

.download-section {
  display: flex;
  padding-left: var(--space-10);
  margin-bottom: var(--space-8);
}

.download-button {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border: 0.125rem solid var(--color-primary);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  width: 13.75rem;
  height: 2.5rem;
  justify-content: center;
}

.download-button:hover {
  background: var(--color-primary-light);
  transform: translateY(-0.0625rem);
  text-decoration: none;
}

.download-button span {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--color-primary);
}

.download-button i {
  font-size: var(--text-lg);
  color: var(--color-primary);
}

/* ================================================================
   반응형 디자인 - 시설안내
   ================================================================ */

@media (max-width: 768px) {
  /* 시설안내 레이아웃 */
  .facilities-layout {
    flex-direction: column;
    gap: var(--space-6);
  }

  .facilities-image {
    flex: none;
    width: 100%;
    max-width: 25rem;
    height: 18.75rem;
    margin: 0 auto;
  }

  .facilities-info {
    width: 100%;
    min-height: auto;
    padding: var(--space-4);
  }

  .facilities-text p {
    line-height: var(--leading-relaxed);
  }

  /* 정보 리스트 */
  .info-list {
    padding-left: var(--space-5);
  }

  .info-list .info-item {
    font-size: var(--text-base);
  }

  /* 주의사항 */
  .notice-title {
    font-size: var(--text-lg);
  }

  .notice-list li {
    font-size: var(--text-base);
  }

  .download-section {
    padding: 0;
    justify-content: center;
  }

} 

/* =================================================================
   오시는길 페이지 스타일
   ================================================================= */

.location-container .list-section {
  margin: var(--space-32) 0;
}

.location-main-content {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  max-width: var(--size-content-max);
  margin: 0 auto;
}

/* 지도 영역 */
.location-map {
  flex: 0 0 43.75rem; /* 700px */
  height: 25rem; /* 400px */
  overflow: hidden;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 정보 테이블 영역 */
.location-info {
  flex: 1;
  display: flex;
  align-items: flex-start;
}

.location-info-table {
  max-width: var(--size-content-max);
  margin: 0 auto;
  border-top: 2px solid var(--color-neutral-350);
  border-bottom: 1px solid var(--color-neutral-350);
}

.location-info-table .table-row {
  display: grid;
  grid-template-columns: 9.375rem 1fr; /* 150px, 나머지 */
  border-bottom: 1px solid var(--color-neutral-350);
  min-height: 6.25rem; /* 100px */
}

.location-info-table .table-row:first-child {
  border-bottom: none;
}

.location-info-table .table-header {
  padding: var(--space-3);
  font-size: var(--text-4xl);
  font-weight: var(--font-semibold);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.location-info-table .table-content {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: var(--text-lg);
  font-weight: var(--font-regular);
}

/* 복사 가능한 셀 스타일 */
.copyable:hover {
  cursor: pointer;
}

/* =================================================================
   반응형 디자인 - 오시는길
   ================================================================= */

@media (max-width: 1100px) {
  .location-main-content {
    flex-direction: column;
    gap: var(--space-6);
  }

  .location-map {
    flex: none;
    width: 100%;
    height: 18.75rem; /* 300px */
    border:1px solid #ccc
  }

  .location-info, .location-info-table {
    width: 100%;
  }
}


@media (max-width: 768px) {
  .location-map {
    height: 15.625rem; /* 250px */
    border:1px solid #ccc
  }

  .location-info-table .table-row {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .location-info-table .table-header {
    font-size: var(--text-xl);
    border-bottom: 1px solid var(--color-neutral-200);
  }

  .location-info-table .table-content {
    padding: var(--space-3);
    font-size: var(--text-base);
  }
} 
 