/* ==========================================================
   _add_programs.css
   programs/social.php · programs/health.php
   intro.php · sitemap.php
   인라인 style 대체 CSS
   ========================================================== */


/* ----------------------------------------------------------
   SHARED — scroll-padding-top (programs 페이지)
   ---------------------------------------------------------- */
.prog-scroll-root {
  scroll-padding-top: 11rem;
}


/* ----------------------------------------------------------
   SHARED — 부서 탭바 (사회복지과 ↔ 건강복지과)
   ---------------------------------------------------------- */
.prog-dept-bar {
  position: sticky;
  top: 112px;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  height: 52px;
  display: flex;
  align-items: stretch;
}

.prog-dept-bar .container-main {
  display: flex;
  align-items: stretch;
}

/* 부서 탭 링크 공통 */
.prog-dept-link {
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  font-size: var(--font-size-body-sm);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

/* 비활성 탭 */
.prog-dept-link--inactive {
  font-weight: 400;
  color: var(--color-light-600);
  border-bottom-color: transparent;
}

/* 활성 탭 */
.prog-dept-link--active {
  font-weight: 700;
  color: var(--color-primary-600);
  border-bottom-color: var(--color-primary-600);
}


/* ----------------------------------------------------------
   SHARED — 모바일 섹션 탭바
   ---------------------------------------------------------- */
.prog-mobile-tabs {
  display: none;
  position: sticky;
  top: calc(6.75rem + 52px);
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prog-mobile-tabs-inner {
  display: flex;
  align-items: stretch;
  white-space: nowrap;
  min-width: max-content;
  height: 44px;
}

/* 모바일 섹션 링크 */
.mob-sec-link {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  font-size: var(--font-size-body-sm);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  color: var(--color-light-600);
}

.mob-sec-link.is-active {
  font-weight: 700;
  color: var(--color-primary-600);
  border-bottom-color: var(--color-primary-600);
}

@media (max-width: 1024px) {
  .prog-mobile-tabs { display: block !important; }
}


/* ----------------------------------------------------------
   SHARED — 본문 2단 레이아웃
   ---------------------------------------------------------- */
.prog-layout {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.prog-aside {
  display: none;
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: calc(6.75rem + 52px + 1.5rem);
  align-self: flex-start;
}

@media (min-width: 1025px) {
  .prog-aside { display: block; }
}

.prog-main {
  flex: 1;
  min-width: 0;
}


/* ----------------------------------------------------------
   SHARED — Aside 내비게이션
   ---------------------------------------------------------- */
.prog-aside-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.prog-aside-link,
.aside-nav-link {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: var(--font-size-body-sm);
  text-decoration: none;
  transition: all 150ms ease;
  border-left: 4px solid transparent;
  color: var(--color-light-600);
}

.prog-aside-link.is-active,
.aside-nav-link.is-active {
  font-weight: 700;
  color: var(--color-primary-600);
  background-color: var(--color-primary-50);
  border-left-color: var(--color-primary-500);
}


/* ----------------------------------------------------------
   SHARED — 섹션 제목
   ---------------------------------------------------------- */
.prog-section-h2 {
  font-size: var(--font-size-heading-1);
  font-weight: 800;
  color: var(--color-light-900);
  margin-bottom: 2rem;
}

.prog-section-h3 {
  font-size: var(--font-size-heading-3);
  font-weight: 700;
  color: var(--color-light-900);
  margin: 0 0 0.875rem;
}

.prog-subsection-h3 {
  font-size: var(--font-size-heading-3);
  font-weight: 700;
  color: var(--color-light-800);
  margin-top: 2rem;
  margin-bottom: 1rem;
}


/* ----------------------------------------------------------
   SHARED — 인용 카드 (quote card)
   ---------------------------------------------------------- */
.prog-quote-card {
  padding: 2rem 1.75rem;
  text-align: center;
  margin-bottom: 2rem;
}

.prog-quote-text {
  font-size: var(--font-size-body);
  font-weight: 600;
  color: var(--color-primary-700);
  line-height: 1.8;
  margin: 0;
  word-break: keep-all;
}


/* ----------------------------------------------------------
   SHARED — 정보 테이블 행 (page-card 내부)
   ---------------------------------------------------------- */
.info-tbl-row {
  display: grid;
  grid-template-columns: 140px 1fr;
}

.info-tbl-row--border {
  border-bottom: 1px solid var(--color-border);
}

.info-tbl-label {
  padding: 0.875rem 1.25rem;
  background-color: var(--color-light-50);
  font-size: var(--font-size-body);
  font-weight: 700;
  color: var(--color-light-800);
  border-right: 1px solid var(--color-border);
}

.info-tbl-value {
  padding: 0.875rem 1.25rem;
  font-size: var(--font-size-body);
  color: var(--color-light-700);
}

/* 내용 값 — 줄마다 블록, '- ' 불릿 줄은 둘째 줄부터 들여쓰기(hanging indent) */
.info-tbl-value .tbl-line {
  display: block;
}
.info-tbl-value .tbl-line--bullet {
  padding-left: 1.2em;
  text-indent: -1.2em;
}
/* '- 제목 : 본문' — 본문 줄바꿈 시 접두부 폭만큼 들여써져 본문 시작점에 정렬 */
.info-tbl-value .tbl-line--split { display: flex; }
.info-tbl-value .tbl-line-pre  { flex-shrink: 0; white-space: nowrap; }
.info-tbl-value .tbl-line-body { flex: 1; min-width: 0; }

/* 모바일 — 들여쓰기 해제 (한 줄로 흐르게, 접두부 폭 정렬 제거) */
@media (max-width: 640px) {
  .info-tbl-value .tbl-line--bullet {
    padding-left: 0;
    text-indent: 0;
  }
  .info-tbl-value .tbl-line--split { display: block; }
  .info-tbl-value .tbl-line-pre,
  .info-tbl-value .tbl-line-body {
    display: inline;
    white-space: normal;
  }
}

.info-tbl-value p {
  margin: 0;
}

.info-tbl-value p + p {
  margin-top: 0.75rem;
}

/* 패널 하단 문의 행 */
.prog-panel-footer {
  padding: 0.75rem 1.25rem;
  background-color: var(--color-light-50);
}

.prog-panel-phone {
  font-size: var(--font-size-body-sm);
  font-weight: 700;
  color: var(--color-primary-600);
}


/* ----------------------------------------------------------
   SHARED — 테이블 헤더셀 (rowspan 구분 헤더)
   ---------------------------------------------------------- */
.td-cell-head {
  font-weight: 700;
  background: var(--color-light-50);
}

/* 프로그램표: 구분(카테고리) 그룹이 바뀌는 경계선만 강조 */
.prog-table tbody tr:has(> td.td-cell-head):not(:first-child) > td {
  border-top: 2px solid var(--color-light-400);
}

/* 성인/어린이 평생프로그램 표: 두 표 열 너비 동일하게 고정 */
.prog-table--life-fixed {
  table-layout: fixed;
}


/* ----------------------------------------------------------
   SHARED — page-card overflow/margin variants
   ---------------------------------------------------------- */
.prog-card-overflow {
  overflow: hidden;
}

.prog-card-table {
  overflow-x: auto;
  margin-bottom: 2.5rem;
}

.prog-card-table-last {
  overflow-x: auto;
}

.prog-list-card {
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.prog-list-card p {
  font-size: var(--font-size-body);
  color: var(--color-light-700);
  line-height: 1.85;
  margin: 0;
}


/* ----------------------------------------------------------
   SHARED — 반응형 테이블 (width/border-collapse)
   ---------------------------------------------------------- */
.prog-table {
  width: 100%;
  border-collapse: collapse;
  word-break: keep-all;
}


/* ----------------------------------------------------------
   SHARED — StepFlow 컴포넌트
   ---------------------------------------------------------- */
.sf-wrap {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 1.75rem 1rem 1.5rem;
}

.sf-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sf-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
}

.sf-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(24,91,218,0.22), 0 3px 10px rgba(24,91,218,0.28);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sf-h-con {
  flex: 1;
  height: 2px;
  background-image: radial-gradient(circle, #93c5fd 2px, transparent 2px);
  background-size: 10px 2px;
  background-repeat: repeat-x;
  background-position: left center;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1px;
}

.sf-h-arrow {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid #93c5fd;
  flex-shrink: 0;
}

.sf-v-con { display: none; }

.sf-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0.25rem;
}

.sf-pill {
  margin-top: 0.75rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.35rem 0.875rem;
  border-radius: 9999px;
  text-align: left;
  box-shadow: 0 2px 6px rgba(24,91,218,0.2);
  word-break: keep-all;
  max-width: 100%;
}

.sf-desc {
  margin-top: 0.5rem;
  width: 100%;
  background: var(--color-primary-50);
  border: 1px solid var(--color-primary-100);
  border-radius: 10px;
  padding: 0.5rem 0.625rem;
  font-size: 0.875rem;
  color: var(--color-light-600);
  line-height: 1;
  white-space: pre-line;
  text-align: left;
  min-height: 2.75rem;
}

.sf-desc-link {
  color: var(--color-primary-600);
  text-decoration: underline;
  word-break: break-all;
}

.sf-desc-ph {
  margin-top: 0.5rem;
  min-height: 2.75rem;
  width: 100%;
}

.sf-single-row {
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
}

.sf-single-row .sf-item {
  min-width: 90px;
  flex-shrink: 0;
}

.sf-single-row .sf-pill {
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
}

@media (max-width: 639px) {
  .sf-wrap:not(.sf-single-row) {
    flex-direction: column;
    padding: 1.25rem 1rem 1rem;
  }
  .sf-wrap:not(.sf-single-row) .sf-item {
    flex: none;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.875rem;
    width: 100%;
    padding-bottom: 1.75rem;
    position: relative;
  }
  .sf-wrap:not(.sf-single-row) .sf-item:last-child { padding-bottom: 0; }
  .sf-wrap:not(.sf-single-row) .sf-top {
    flex-direction: column;
    align-items: center;
    width: auto;
    flex-shrink: 0;
  }
  .sf-wrap:not(.sf-single-row) .sf-h-con { display: none; }
  .sf-wrap:not(.sf-single-row) .sf-v-con {
    display: block;
    position: absolute;
    left: 20px;
    top: 46px;
    bottom: 0;
    width: 2px;
    background-image: radial-gradient(circle, #93c5fd 2px, transparent 2px);
    background-size: 2px 10px;
    background-repeat: repeat-y;
    background-position: center top;
  }
  .sf-wrap:not(.sf-single-row) .sf-v-con::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #93c5fd;
  }
  .sf-wrap:not(.sf-single-row) .sf-body {
    flex: 1;
    align-items: flex-start;
    padding: 0;
  }
  .sf-wrap:not(.sf-single-row) .sf-pill {
    margin-top: 0.25rem;
    text-align: left;
  }
  .sf-wrap:not(.sf-single-row) .sf-desc {
    text-align: left;
    min-height: unset;
  }
  .sf-wrap:not(.sf-single-row) .sf-desc-ph { display: none; }
}


/* ----------------------------------------------------------
   social.php — 개요 섹션
   ---------------------------------------------------------- */

/* 4-col 이미지 그리드 */
.prog-service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 640px) {
  .prog-service-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 이미지 래퍼 */
.prog-card-img-wrap {
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
  aspect-ratio: 4 / 3;
}

/* 이미지 */
.prog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 이미지 카드 라벨 */
.prog-card-label {
  font-size: var(--font-size-body-sm);
  font-weight: 600;
  color: var(--color-light-700);
  text-align: center;
  margin: 0;
}

/* 설명 카드 */
.prog-info-desc {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.prog-info-p {
  font-size: var(--font-size-body);
  line-height: 1.9;
  color: var(--color-light-700);
  margin: 0;
}

.prog-highlight {
  color: var(--color-primary-600);
  font-weight: 600;
}


/* ----------------------------------------------------------
   social.php — 사례관리 섹션
   ---------------------------------------------------------- */

/* 사례관리 흐름 차트 래퍼 */
.case-flow-wrap {
  overflow-x: auto;
}

.case-flow-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 1.25rem 0.5rem;
}

/* 흐름 태그 */
.case-flow-pill {
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  background-color: var(--color-primary-50);
  border: 1.5px solid var(--color-primary-300);
  font-size: var(--font-size-body-sm);
  font-weight: 600;
  color: var(--color-primary-700);
  white-space: nowrap;
}

/* 구분 화살표 */
.case-flow-sep {
  color: var(--color-primary-400);
  font-size: 1.125rem;
  font-weight: 700;
  flex-shrink: 0;
}


/* ----------------------------------------------------------
   social.php / health.php — 탭 그리드 + 탭 버튼
   ---------------------------------------------------------- */

.prog-tab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .prog-tab-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 탭 버튼 공통 */
.prog-tab-btn {
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: var(--font-size-body-sm);
  cursor: pointer;
  transition: all 150ms ease;
  text-align: center;
  line-height: 1.4;
  border: 0;
}

/* 비활성 탭 버튼 */
.prog-tab-btn--inactive {
  background-color: var(--color-light-100);
  color: var(--color-light-700);
  font-weight: 500;
}

/* 활성 탭 버튼 */
.prog-tab-btn--active {
  background-color: var(--color-primary-500);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-card);
}


/* ----------------------------------------------------------
   health.php — 사업개요 Goals 목록
   ---------------------------------------------------------- */
.goals-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.goals-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.goals-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: var(--color-primary-600);
  color: #fff;
  font-size: var(--font-size-body-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.goals-text {
  font-size: var(--font-size-body);
  color: var(--color-light-700);
  line-height: 1.75;
  margin: 0;
  padding-top: 0.2rem;
}


/* ----------------------------------------------------------
   health.php — 수강신청안내 테이블 변형 셀
   ---------------------------------------------------------- */

/* 기존/신규 회원 등록 좌측 라벨 셀 */
.td-reg-label {
  font-weight: 700;
  background-color: var(--color-light-50);
  color: var(--color-light-800);
  white-space: nowrap;
  width: 120px;
  border-right: 1px solid var(--color-border);
  vertical-align: top;
}

/* 기존회원 접수기간 행 */
.reg-period-row {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-body);
  color: var(--color-light-700);
}

/* 내부 테이블 래퍼 */
.reg-inner-wrap {
  padding: 0.75rem 1rem;
}

/* 주석 행 (footnote) */
.reg-footnote-cell {
  background: var(--color-light-50);
  font-size: var(--font-size-body-sm);
  color: var(--color-light-600);
  text-align: left;
}

/* 신규회원 표 접수방법/기간/시간 헤더셀 */
.td-reg-subhead {
  font-weight: 600;
  background: var(--color-light-50);
  white-space: nowrap;
}

/* 신규회원 등록 단계 소제목 (1. 개강 전 / 2. 개강 후) */
.reg-step-title {
  font-weight: 700;
  text-align: left;
  margin: 1rem 0 0.5rem;
}
.reg-step-title:first-child {
  margin-top: 0;
}
/* 신규회원 등록 단계 표 상단 테두리 보강 */
.reg-inner-wrap table {
  border-top: 1px solid var(--color-border);
}

/* colspan 셀 좌측 정렬 */
.td-left {
  text-align: left;
}

/* 환불 안내 내 주석 span 들 */
.refund-note-sm {
  font-size: var(--font-size-body-sm);
  color: var(--color-light-500);
}

.refund-calc {
  font-size: var(--font-size-body-sm);
  color: var(--color-light-600);
}

/* 환불 테이블 환불시점 셀 */
.td-refund-label {
  font-weight: 600;
}

/* 환불 하단 주석 셀 */
.td-refund-footnote {
  background: var(--color-light-50);
  font-size: var(--font-size-body-sm);
  color: var(--color-light-600);
  text-align: left;
}

/* 환불 CTA 버튼 래퍼 */
.prog-refund-cta-wrap {
  text-align: center;
}

/* btn-primary 아이콘 포함 변형 */
.btn-primary--icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}


/* ----------------------------------------------------------
   health.php — education 마지막 섹션
   ---------------------------------------------------------- */
.section-education {
  padding-bottom: 3rem;
}


/* ----------------------------------------------------------
   intro.php — 전체 페이지 레이아웃
   ---------------------------------------------------------- */

/* 전체 배경 래퍼 */
.intro-bg {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0d2060 0%, #112a7a 45%, #0e4a6e 100%);
}

/* 배경 데코 원 공통 */
.intro-deco {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.intro-deco-1 {
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255,255,255,0.07);
  top: -160px;
  left: -160px;
  animation: drift-tl 18s ease-in-out infinite;
}

.intro-deco-2 {
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255,255,255,0.07);
  bottom: -100px;
  right: -100px;
  animation: drift-br 22s ease-in-out 3s infinite;
}

.intro-deco-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(100,160,255,0.10) 0%, transparent 70%);
  top: 30%;
  left: 10%;
  animation: drift-mid 14s ease-in-out 1.5s infinite;
}

.intro-deco-4 {
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,0.05);
  top: 8%;
  right: 6%;
  animation: drift-tr 20s ease-in-out 5s infinite;
}

.intro-deco-5 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(0,168,140,0.08) 0%, transparent 70%);
  bottom: 15%;
  left: 5%;
  animation: drift-bl 16s ease-in-out 2s infinite;
}

/* 로고 래퍼 */
.intro-logo-wrap {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
  animation: fadeDown 0.6s ease both;
}

/* 로고 이미지 */
.intro-logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* 카드 컨테이너 */
.intro-cards {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 880px;
}

@media (min-width: 640px) {
  .intro-cards { flex-direction: row; }
}

/* 카드 공통 */
.intro-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  background-color: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.30);
  padding: 2rem 2rem 0 2rem;
  min-height: 340px;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease;
}

.intro-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 32px 80px rgba(0,0,0,0.40);
}

/* 카드 상단 내용 래퍼 */
.intro-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* 카드 제목 */
.intro-card-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

/* 카드 설명 */
.intro-card-desc {
  font-size: 14px;
  color: var(--color-light-600);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* 바로가기 버튼 공통 */
.intro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  padding: 0.55rem 2rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  transition: background-color 0.2s ease, transform 0.15s ease;
  color: #fff;
}

.intro-btn:active {
  transform: scale(0.96);
}

/* 카드 1 버튼: 주황 */
.intro-btn--orange {
  background-color: #e8a020;
}

.intro-btn--orange:hover {
  background-color: #c98900;
}

/* 카드 2 버튼: 초록 */
.intro-btn--green {
  background-color: #2d6a4f;
}

.intro-btn--green:hover {
  background-color: #1b4332;
}

/* 카드 하단 이미지 행 */
.intro-card-img-row {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  height: 200px;
  margin-top: auto;
}

/* 카드 이미지 */
.card-img {
  height: 190px;
  width: auto;
  object-fit: contain;
  opacity: 0.92;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}

.intro-card:hover .card-img {
  transform: scale(1.1);
}

/* 호버 컬러 바 */
.intro-color-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}

.intro-card:hover .intro-color-bar {
  transform: scaleX(1);
}

/* 카드 1 컬러 바 */
.intro-color-bar--orange {
  background: linear-gradient(90deg, #e8a020, #f5c842);
}

/* 카드 2 컬러 바 */
.intro-color-bar--green {
  background: linear-gradient(90deg, #2d6a4f, #40916c);
}

/* 하단 안내 텍스트 */
.intro-footer-text {
  position: relative;
  z-index: 10;
  margin-top: 2.5rem;
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  animation: fadeIn 0.6s ease 0.5s both;
}

/* 배경 애니메이션 keyframes */
@keyframes drift-tl {
  0%,100% { transform: translate(0px,0px) scale(1); opacity: 0.7; }
  25%      { transform: translate(28px,18px) scale(1.04); opacity: 1; }
  50%      { transform: translate(14px,36px) scale(1.02); opacity: 0.8; }
  75%      { transform: translate(-10px,20px) scale(0.98); opacity: 0.9; }
}
@keyframes drift-br {
  0%,100% { transform: translate(0px,0px) scale(1); opacity: 0.7; }
  30%      { transform: translate(-24px,-16px) scale(1.05); opacity: 1; }
  60%      { transform: translate(-12px,-30px) scale(1.02); opacity: 0.75; }
  80%      { transform: translate(8px,-18px) scale(0.97); opacity: 0.9; }
}
@keyframes drift-mid {
  0%,100% { transform: translate(0px,0px); opacity: 0.6; }
  33%      { transform: translate(20px,-24px); opacity: 1; }
  66%      { transform: translate(-16px,18px); opacity: 0.7; }
}
@keyframes drift-tr {
  0%,100% { transform: translate(0px,0px) scale(1); opacity: 0.5; }
  40%      { transform: translate(-18px,22px) scale(1.06); opacity: 0.9; }
  70%      { transform: translate(-28px,8px) scale(1.02); opacity: 0.6; }
}
@keyframes drift-bl {
  0%,100% { transform: translate(0px,0px); opacity: 0.5; }
  50%      { transform: translate(22px,-20px); opacity: 0.9; }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* intro.php 카드 animate classes */
.animate-fade-up {
  animation: introFadeUp 0.5s ease both;
}
.delay-150 { animation-delay: 150ms; }
.delay-300 { animation-delay: 300ms; }

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


/* ----------------------------------------------------------
   sitemap.php
   ---------------------------------------------------------- */

/* 전체 섹션 */
.sitemap-section {
  background-color: #f8f9fb;
  padding: 4rem 0 5rem;
}

/* 헤더 영역 */
.sitemap-header {
  margin-bottom: 3rem;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.sitemap-header-text {
  /* 텍스트 그룹 블록 — 너비는 콘텐츠 기준 */
}

.sitemap-overline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #185bda;
  text-transform: uppercase;
  margin-bottom: 0.375rem;
}

.sitemap-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #181a22;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.sitemap-divider {
  flex: 1;
  height: 1px;
  background-color: #e2e6ef;
  margin-bottom: 0.4rem;
}

.sitemap-count {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 0.4rem;
  white-space: nowrap;
}

/* 카드 그리드 */
.sitemap-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(var(--sitemap-cols, 3), 1fr);
}

@media (max-width: 1024px) {
  .sitemap-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
  .sitemap-grid { grid-template-columns: 1fr !important; }
}

/* 카드 */
.sitemap-card {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8ecf4;
  box-shadow: 0 1px 3px rgba(24,26,34,0.06);
  display: flex;
  flex-direction: column;
  animation: sitemapFadeUp 0.4s ease both;
  animation-delay: var(--anim-delay, 0ms);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sitemap-card:hover {
  box-shadow: 0 8px 24px rgba(24,91,218,0.1), 0 2px 6px rgba(24,26,34,0.06);
  transform: translateY(-3px);
}

/* 카드 헤더 */
.sitemap-card-header {
  position: relative;
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid #f0f2f8;
}

/* 장식 번호 */
.sitemap-card-deco-num {
  position: absolute;
  top: 0.75rem;
  right: 1.25rem;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: #185bda;
  opacity: 0.06;
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
}

/* 영문 레이블 */
.sitemap-card-en {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #185bda;
  text-transform: uppercase;
  margin-bottom: 0.375rem;
}

/* 대메뉴 제목 링크 */
.sitemap-section-link {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 800;
  color: #181a22;
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.sitemap-section-link:hover {
  color: #185bda !important;
}

/* 하단 액센트 바 */
.sitemap-accent-bar {
  margin-top: 0.875rem;
  height: 3px;
  width: 2rem;
  border-radius: 2px;
  background-color: #185bda;
}

/* 링크 목록 */
.sitemap-link-list {
  padding: 1rem 0;
  flex: 1;
  list-style: none;
  margin: 0;
}

/* 링크 공통 */
.sitemap-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  position: relative;
}

.sitemap-link:hover {
  color: #185bda !important;
  background-color: #f0f5ff;
}

.sitemap-link:hover .sitemap-arrow {
  opacity: 1 !important;
  transform: translateX(2px);
}

/* depth2 링크 변형 */
.sitemap-link--depth2 {
  padding: 0.35rem 1.5rem 0.35rem 2.75rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: #94a3b8;
}

/* depth2 들여쓰기 기호 */
.sitemap-depth2-indicator {
  position: absolute;
  left: 1.875rem;
  color: #cbd5e1;
  font-size: 10px;
}

/* 화살표 아이콘 */
.sitemap-arrow {
  color: #185bda;
  font-size: 11px;
  opacity: 0.5;
  transition: opacity 0.15s, transform 0.15s;
  flex-shrink: 0;
}

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


/* ----------------------------------------------------------
   SHARED — 테이블 래퍼 overflow-x 변형
   ---------------------------------------------------------- */
.prog-card-scrollx {
  overflow-x: auto;
}

/* 수강신청 외부 테이블 */
.prog-card-scrollx-mb {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}


/* ----------------------------------------------------------
   health.php — 수강신청 내부 테이블 셀 override
   ---------------------------------------------------------- */

/* 기존/신규 등록 오른쪽 셀 (padding 제거) */
.td-no-padding {
  padding: 0;
}

/* 기존회원 온라인 내부표: 마지막 헤더셀 (우측 border 없음) */
.th-no-right {
  border-right: none;
}

/* 내부 표 셀: border-bottom 없음 */
.td-no-bottom {
  border-bottom: none;
}

/* 내부 표 셀: border-right 없음 */
.td-no-right {
  border-right: none;
}

/* 내부 표 셀: border-right·bottom 없음 */
.td-no-right-bottom {
  border-right: none;
  border-bottom: none;
}

/* 환불 테이블 헤더: 고정 너비 */
.th-refund-time {
  width: 150px;
}

/* 수강신청 온라인 열 너비 50% */
.th-w50 {
  width: 50%;
}


/* ----------------------------------------------------------
   health.php — 테이블 min-width 클래스
   ---------------------------------------------------------- */
.tbl-min-400 { min-width: 400px; }
.tbl-min-600 { min-width: 600px; }
.tbl-min-640 { min-width: 640px; }
.tbl-min-700 { min-width: 700px; }

/* 기존회원 내부 표 border 포함 */
.tbl-bordered {
  border: 1px solid var(--color-border);
}

@media (max-width: 768px) {
.info-tbl-row {
    grid-template-columns: 80px 1fr;
}
.tbl-bordered.mo-border-none{
  border: 0 !important;
}
.td-refund-label br{
  display: none !important;
}
}