/* ============================================
   사회복지법인 전원 - 리뉴얼 CSS
   한국 복지기관 스타일 (따뜻하고 부드러운 디자인)
   ============================================ */

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #4a9d51;
  --color-primary-light: #7cc584;
  --color-primary-dark: #2e7d32;
  --color-secondary: #ff8f00;
  --color-accent: #eef7ef;
  --color-warm: #fff8e1;
  --color-bg: #fafafa;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  --color-border: #e0e0e0;
  --color-border-light: #f0f0f0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-family: 'SUIT', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container-width: 1200px;
  --header-height: 80px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Header === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 48px;
  width: auto;
  max-width: min(260px, 50vw);
  object-fit: contain;
}

/* 로고 PNG에 문구 포함 — 옛 헤더의 logo-text 중복 방지 */
.logo-text {
  display: none !important;
}

.main-nav .gnb {
  display: flex;
  list-style: none;
  gap: 0;
}

.main-nav .gnb > li {
  position: relative;
}

.main-nav .gnb > li > a {
  display: block;
  padding: 28px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.2s;
}

.main-nav .gnb > li > a:hover {
  color: var(--color-primary);
}

.main-nav .gnb > li .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  list-style: none;
  padding: 8px 0;
  z-index: 100;
}

.main-nav .gnb > li:hover .sub-menu {
  display: block;
}

.main-nav .gnb > li .sub-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--color-text-light);
  transition: all 0.2s;
}

.main-nav .gnb > li .sub-menu li a:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

.nav-balance {
  display: none;
}

/* === Sub Hero (서브 페이지 상단 배너) === */
.sub-hero {
  margin-top: var(--header-height);
  position: relative;
  background: linear-gradient(135deg, #3d8a45 0%, #5cab63 50%, #8fce96 100%);
  padding: 40px 0 32px;
  overflow: hidden;
}

.sub-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.08)"/><circle cx="50" cy="70" r="1.5" fill="rgba(255,255,255,0.12)"/><circle cx="10" cy="80" r="2.5" fill="rgba(255,255,255,0.06)"/><circle cx="90" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: 200px 200px;
  opacity: 0.5;
}

.sub-hero--with-image {
  background: none;
  padding: 0;
}

.sub-hero--with-image .sub-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
}

.sub-hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.sub-hero__eyebrow {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-weight: 400;
}

.sub-hero__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.sub-hero__desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 12px;
  line-height: 1.6;
}

.breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

/* === Sub Body (서브 페이지 본문) === */
.sub-body {
  padding: 44px 0 90px;
  background: var(--color-bg);
}

.sub-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

/* === Side Navigation === */
.sub-side {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.sub-side__label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  padding: 16px 20px;
  border-bottom: 2px solid var(--color-primary);
  margin-bottom: 0;
}

.sub-side__nav {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sub-side__nav a {
  display: block;
  padding: 14px 20px;
  font-size: 0.95rem;
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-border-light);
  transition: all 0.2s;
  position: relative;
}

.sub-side__nav a:last-child {
  border-bottom: none;
}

.sub-side__nav a:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  padding-left: 28px;
}

.sub-side__nav a.is-active {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  padding-left: 28px;
}

.sub-side__nav a.is-active::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--color-white);
  border-radius: 50%;
}

/* === Sub Content === */
.sub-content {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  min-height: 400px;
}

.sub-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-primary);
  position: relative;
}

.sub-content h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--color-secondary);
  border-radius: 2px;
}

.sub-content h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 36px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--color-primary);
}

.sub-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 16px;
}

.sub-content .sign {
  text-align: right;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 40px;
  color: var(--color-primary-dark);
}

/* === Greeting Page (인사말) === */
.greeting-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.greeting-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--header-height) + 100px);
}

.greeting-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.greeting-quote {
  background: var(--color-accent);
  border-left: 4px solid var(--color-primary);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--color-primary-dark);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* === Info Table === */
.info-table {
  margin: 20px 0 32px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.info-table .row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--color-border-light);
}

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

.info-table .th {
  background: var(--color-accent);
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
}

.info-table .td {
  padding: 14px 20px;
  font-size: 0.95rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  background: var(--color-white);
}

/* === Organization Chart === */
.org-chart {
  text-align: center;
  padding: 40px 20px;
}

.org-chart__top {
  margin-bottom: 24px;
}

.org-node {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}

.org-node--ceo {
  background: #33475b;
  color: var(--color-white);
  font-size: 1.1rem;
  padding: 18px 40px;
  box-shadow: var(--shadow-md);
}

.org-chart__branch {
  margin-bottom: 24px;
  position: relative;
}

.org-chart__branch::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 50%;
  width: 2px;
  height: 24px;
  background: #cbd5de;
}

.org-node--office {
  background: #55677a;
  color: var(--color-white);
  border: none;
}

.org-chart__bottom {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  padding-top: 24px;
}

.org-chart__bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 24px;
  background: #cbd5de;
}

.org-node--member {
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary-light);
  min-width: 0;
  padding: 12px 18px;
  font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
}

.org-node--member span {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-top: 4px;
}

/* === History Timeline === */
.history-timeline {
  position: relative;
  padding-left: 40px;
}

.history-timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-primary-light));
  border-radius: 2px;
}

.history-year-block {
  position: relative;
  margin-bottom: 32px;
}

.history-year-block::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 8px;
  width: 14px;
  height: 14px;
  background: var(--color-primary);
  border: 3px solid var(--color-accent);
  border-radius: 50%;
  z-index: 1;
}

.datetit {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.datehistory p {
  padding: 8px 16px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 0.9rem;
  border-left: 3px solid var(--color-primary-light);
}

.history_date {
  font-weight: 600;
  color: var(--color-primary);
  margin-right: 12px;
  min-width: 80px;
  display: inline-block;
}

.history_tit {
  color: var(--color-text);
}

/* === Location === */
.location-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.location-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid var(--color-border);
}

.location-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.location-btn--kakao {
  background: #fee500;
  color: #191919;
  border-color: #fee500;
}

.location-btn--google {
  background: var(--color-white);
  color: var(--color-text);
}

.location-btn--route {
  background: var(--color-white);
  color: var(--color-text);
  border-color: var(--color-border);
}

.location-btn--route:hover {
  background: #f5f5f5;
  border-color: #bdbdbd;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}

.location-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.location-map-note {
  padding: 12px 16px;
  background: var(--color-bg);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.location-map-note a {
  color: var(--color-primary);
  text-decoration: underline;
}

.location-info {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 32px;
}

.location-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border-light);
}

.location-info__item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.location-info__icon {
  width: 44px;
  height: 44px;
  background: #eef5ee;
  border: 1px solid #dce8dc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #6b9a6e;
  font-size: 1.05rem;
  opacity: 0.95;
}

.location-info__text dt {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.location-info__text dd {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
}

/* === Business Page === */
.business-intro {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-warm) 100%);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 32px;
  border: 1px solid var(--color-border-light);
}

.business-intro p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-weight: 600;
  padding: 8px 16px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-primary-light);
  transition: all 0.2s;
  margin-top: 8px;
}

.inline-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* === Mini Stats === */
.mini-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0 32px;
}

.mini-stats > div {
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  text-align: center;
  min-width: 100px;
  border: 1px solid var(--color-border-light);
  transition: all 0.2s;
}

.mini-stats > div:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
}

.mini-stats > div b {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.mini-stats > div span {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* === Board (게시판) === */
.subpage--board .sub-body {
  padding-top: 0;
}

.sub-body--board {
  padding: 40px 0 100px;
}

.board-tabs-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 0;
  margin-top: var(--header-height);
}

.board-tabs {
  display: flex;
  gap: 0;
}

.board-tabs__item {
  display: block;
  padding: 18px 32px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-light);
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.board-tabs__item:hover {
  color: var(--color-primary);
}

.board-tabs__item.is-active {
  color: var(--color-primary);
  font-weight: 700;
  border-bottom-color: var(--color-primary);
}

.sub-content--board {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.board-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-primary);
}

.board-total {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.board-total strong {
  color: var(--color-primary);
  font-weight: 700;
}

.board-table-wrap {
  overflow-x: auto;
}

.board-table {
  width: 100%;
  border-collapse: collapse;
}

.board-table thead th {
  padding: 14px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-light);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.board-table thead th.col-title {
  text-align: left;
}

.board-table tbody tr {
  transition: background 0.15s;
}

.board-table tbody tr:hover {
  background: var(--color-accent);
}

.board-table tbody td {
  padding: 16px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border-light);
  text-align: center;
}

.board-table tbody td.col-title {
  text-align: left;
}

.board-table tbody td.col-title a {
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.2s;
}

.board-table tbody td.col-title a:hover {
  color: var(--color-primary);
}

.board-table .col-no {
  width: 60px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.board-table .col-date {
  width: 120px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.board-table .col-hit {
  width: 80px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* === Gallery Grid (활동앨범 카드형) === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.gallery-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  border: 1px solid var(--color-border-light);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-card__thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-bg);
}

.gallery-card__body {
  padding: 20px;
}

.gallery-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.gallery-card__date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* === Coming Soon === */
.coming-soon {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  padding: 60px 20px;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

/* === Footer === */
.site-footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.8);
}

.site-footer__main {
  padding: 60px 0 40px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.site-footer__name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}

.site-footer__tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.site-footer__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-footer__links {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.site-footer__links li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.site-footer__links li a:hover {
  color: var(--color-white);
}

.site-footer__info {
  font-size: 0.85rem;
}

.site-footer__info-row {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.site-footer__info-row dt {
  color: rgba(255,255,255,0.5);
  min-width: 40px;
}

.site-footer__info-row dd {
  color: rgba(255,255,255,0.8);
}

.site-footer__info-row dd a {
  color: rgba(255,255,255,0.8);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}

.site-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.designed {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* === Feature Cards (사업 소개 카드) === */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--color-border-light);
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.feature-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* === Vision Section === */
.vision-section {
  background: var(--color-accent);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  margin: 40px 0 8px;
  text-align: center;
}

.vision-section h4 {
  border-left: none;
  padding-left: 0;
  text-align: center;
  color: var(--color-primary-dark);
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.vision-keywords {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.vision-keyword {
  background: var(--color-white);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-primary-light);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .sub-grid {
    grid-template-columns: 200px 1fr;
    gap: 32px;
  }
  
  .location-grid {
    grid-template-columns: 1fr;
  }
  
  .greeting-layout {
    grid-template-columns: 1fr;
  }
  
  .greeting-photo {
    position: static;
    max-width: 280px;
    margin: 0 auto 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }
  
  .sub-hero {
    padding: 30px 0 24px;
  }
  
  .sub-hero__title {
    font-size: 1.4rem;
  }
  
  .sub-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  
  .sub-side {
    position: static;
  }
  
  .sub-side__nav {
    flex-direction: row;
    flex-wrap: wrap;
    border-radius: var(--radius-sm);
  }
  
  .sub-side__nav a {
    flex: 1;
    text-align: center;
    min-width: 80px;
    border-bottom: none;
    border-right: 1px solid var(--color-border-light);
  }
  
  .sub-content {
    padding: 24px;
  }
  
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .board-tabs__item {
    padding: 14px 20px;
    font-size: 0.9rem;
  }
  
  .board-table thead {
    display: none;
  }
  
  .board-table tbody tr {
    display: block;
    padding: 16px;
    border-bottom: 1px solid var(--color-border-light);
  }
  
  .board-table tbody td {
    display: block;
    text-align: left;
    padding: 4px 0;
    border-bottom: none;
  }
  
  .board-table tbody td::before {
    content: attr(data-label) ': ';
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.8rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  
  .feature-cards {
    grid-template-columns: 1fr;
  }
  
  .mini-stats {
    gap: 8px;
  }
  
  .mini-stats > div {
    min-width: 80px;
    padding: 12px 16px;
  }
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sub-content {
  animation: fadeInUp 0.5s ease-out;
}

.sub-hero__inner {
  animation: fadeInUp 0.6s ease-out;
}

/* === Utility === */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }



/* === Main index & Admin === */
/* === Main Page (index) === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  scroll-snap-align: start;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  max-width: 900px;
}

.hero-copy p {
  margin: 0 0 0.35em;
  font-size: clamp(1.35rem, 2.8vw, 2.15rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-copy p:last-child {
  margin-bottom: 0;
}

.sound-toggle {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s;
}

.sound-toggle:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.7);
}

.sound-toggle.is-on {
  background: rgba(46, 125, 50, 0.75);
  border-color: rgba(255, 255, 255, 0.6);
}

.second-page {
  min-height: 100vh;
  scroll-snap-align: start;
  background: var(--color-bg);
}

.main-section {
  padding: 40px 0;
}

.main-section--partners {
  padding-bottom: 48px;
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.main-banner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 250px;
  padding: 30px 28px 26px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 우상단 은은한 빛 + 좌하단 큰 원 장식 */
.main-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.7), transparent 45%),
    radial-gradient(circle at -10% 115%, rgba(255, 255, 255, 0.45), transparent 40%);
  pointer-events: none;
}

/* 오른쪽 하단 워터마크 아이콘 */
.main-banner__icon {
  position: absolute;
  right: -6px;
  bottom: -18px;
  font-size: 7.5rem;
  line-height: 1;
  opacity: 0.14;
  transform: rotate(-8deg);
  pointer-events: none;
  filter: grayscale(15%);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.main-banner:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.main-banner:hover .main-banner__icon {
  transform: rotate(-2deg) scale(1.06);
  opacity: 0.2;
}

.business-banner {
  background: linear-gradient(150deg, #eaf6ec 0%, #d8eddc 55%, #c4e2cb 100%);
  color: #23422c;
}

.donation-banner {
  background: linear-gradient(150deg, #fff6e8 0%, #ffeacd 55%, #ffdcae 100%);
  color: #6b4a1f;
}

.gallery-banner {
  background: linear-gradient(150deg, #eef3f8 0%, #dde8f2 55%, #cfdeed 100%);
  color: #2d4358;
}

.main-banner .badge {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  position: relative;
  z-index: 1;
}

.business-banner .badge {
  background: rgba(46, 125, 50, 0.14);
  color: #2e6b3c;
}

.donation-banner .badge {
  background: rgba(230, 137, 0, 0.16);
  color: #a05f10;
}

.gallery-banner .badge {
  background: rgba(52, 92, 133, 0.13);
  color: #3c5f84;
}

.main-banner h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.main-banner p {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.9;
  margin-bottom: 22px;
  max-width: 24em;
}

.main-banner strong {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-size: 0.88rem;
  font-weight: 700;
  color: inherit;
  transition: gap 0.25s ease, background 0.25s ease;
}

.main-banner strong::after {
  content: '\2192';
  font-weight: 700;
  transition: transform 0.25s ease;
}

.main-banner:hover strong {
  gap: 12px;
  background: rgba(255, 255, 255, 0.95);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.board-box {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--color-primary);
}

.board-head h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.board-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.board-more:hover {
  color: var(--color-primary);
}

.board-list {
  list-style: none;
}

.board-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.board-list li:last-child {
  border-bottom: none;
}

.board-list li a {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-list li a:hover {
  color: var(--color-primary);
}

.board-list .date {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.board-empty-item {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  padding: 8px 0 !important;
  border-bottom: none !important;
}

/* 유관기관 (메인) */
.partner-panel {
  background: var(--color-white);
  border: 1px solid #dce8dc;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.partner-panel__head {
  padding: 18px 24px;
  border-bottom: 1px solid #e8f0e8;
  background: linear-gradient(90deg, #edf5ed 0%, #f7fbf7 100%);
}

.partner-panel__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  padding-left: 14px;
  position: relative;
}

.partner-panel__title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: var(--color-primary-light);
  border-radius: 2px;
}

.partners {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 20px;
}

.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 12px;
  border: 1px solid #e0ebe0;
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-primary-dark);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.partner:hover {
  transform: translateY(-2px);
  border-color: #b8d4b8;
  box-shadow: var(--shadow-md);
  background: #f8fbf8;
}

.partner__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 72px;
  padding: 8px 10px;
  background: #e8f5fc;
  border: 1px solid #c5e3f5;
  border-radius: var(--radius-sm);
}

.partner__logo.is-dark {
  background: linear-gradient(135deg, #d6effa 0%, #b8e0f5 100%);
  border: 1px solid #a8d4eb;
}

.partner__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 1100px) {
  .partners {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .banner-grid,
  .board-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .main-banner {
    min-height: 240px;
    padding: 32px 24px;
  }

  .main-section {
    padding: 28px 0;
  }

  body.home-page .second-page > .main-section:first-child {
    padding-top: 20px;
  }

  body.home-page .main-section--partners {
    padding-bottom: 36px;
  }

  .sound-toggle {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 640px) {
  .partners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 16px;
  }

  .partner {
    padding: 10px 8px;
  }

  .partner__logo {
    height: 56px;
  }

  .board-box {
    padding: 20px 18px;
  }

  .board-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* === Admin === */
body.admin-page {
  background: #f4f6f4;
  color: var(--color-text);
}

.admin-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-wrap.is-collapsed {
  grid-template-columns: 0 1fr;
}

.admin-wrap.is-collapsed .admin-sidebar {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  background: linear-gradient(180deg, #2e5c32 0%, #1b3d1f 100%);
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.25s, opacity 0.25s;
  overflow-y: auto;
  z-index: 20;
}

.admin-side-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
  color: #fff;
}

.admin-brand__logo {
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.admin-login-logo {
  text-align: center;
  margin: 0 0 16px;
}

.admin-login-logo img {
  height: 48px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

.admin-side-close {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  cursor: pointer;
}

.admin-user {
  font-size: 0.9rem;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.75);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.admin-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-nav a.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 700;
}

.admin-nav a,
.admin-nav-toggle {
  cursor: pointer;
}

.admin-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-nav-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: 8px;
}

.admin-nav-group.is-open .admin-nav-caret {
  transform: rotate(225deg);
}

.admin-nav-sub {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0 6px;
  padding-left: 12px;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
}

.admin-nav-group.is-open .admin-nav-sub {
  display: flex;
}

.admin-nav-sub a {
  padding: 7px 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}

.admin-nav-sub a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-nav-sub a.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 700;
}

.admin-side-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.admin-main {
  min-width: 0;
  padding: 24px 28px 48px;
}

.admin-main-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.admin-main-top h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.admin-side-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-side-btn-outline {
  background: transparent;
  color: var(--color-primary);
}

.admin-sidebar .admin-side-btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.admin-sidebar .admin-side-btn {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.admin-section {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.admin-section h2 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  color: var(--color-primary-dark);
}

.admin-input,
.admin-textarea,
.admin-input-inline {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  margin-bottom: 10px;
}

.admin-input-inline {
  width: auto;
  min-width: 160px;
  margin-bottom: 0;
}

.admin-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text-light);
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border-light);
  text-align: left;
}

.admin-table th {
  background: #f7faf7;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.admin-actions {
  white-space: nowrap;
}

.admin-action-form {
  display: inline-block;
  margin: 0;
}

.admin-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  margin-right: 6px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  border: 1px solid transparent;
  background: none;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.admin-action-btn--edit {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: #fff;
}

.admin-action-btn--edit:hover {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.admin-action-btn--delete {
  color: #c62828;
  border-color: #c62828;
  background: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
}

.admin-action-btn--delete:hover {
  background: #c62828;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.admin-link-btn {
  border: none;
  background: none;
  color: #c62828;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.admin-flash {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.admin-flash-success {
  background: #e8f5e9;
  color: #4a9d51;
}

.admin-flash-error {
  background: #ffebee;
  color: #c62828;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.admin-check {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.admin-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-box {
  max-width: 400px;
  margin: 12vh auto;
  padding: 36px 32px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
}

.admin-box h1 {
  margin: 0 0 20px;
  font-size: 1.35rem;
  color: var(--color-primary-dark);
}

.admin-box form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (max-width: 920px) {
  .admin-wrap {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(280px, 88vw);
    transform: translateX(-105%);
    opacity: 1;
    pointer-events: auto;
    box-shadow: var(--shadow-lg);
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
  }

  .admin-side-close {
    display: inline-block;
  }

  #admin-side-open {
    display: inline-flex;
  }
}

@media (min-width: 921px) {
  #admin-side-open {
    display: none;
  }
}

/* 메인 페이지: 리뉴얼 헤더 높이에 맞춤 */
body.home-page .hero {
  margin-top: 0;
  padding-top: var(--header-height, 80px);
  min-height: calc(100vh);
  box-sizing: border-box;
}
body.home-page .hero-copy {
  padding-top: clamp(120px, 18vh, 220px);
}
body.home-page .second-page {
  padding-top: var(--header-height, 80px);
  scroll-snap-type: y proximity;
}

body.home-page .second-page > .main-section:first-child {
  padding-top: 28px;
}

body.home-page .main-section + .main-section {
  padding-top: 0;
}
body.home-page {
  scroll-snap-type: y mandatory;
  height: 100vh;
  overflow-y: auto;
  padding-top: 0;
}

/* ============================================
   2026 홈페이지 재개편 추가 스타일
   (법인소개·CI·중점사업·참여마당·조직도)
   ============================================ */

/* === 설립목적 === */
.purpose-box {
  background: var(--color-accent);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  margin-bottom: 8px;
}

.purpose-box p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
}

.purpose-ref {
  display: block;
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* === 미션 & 비전 === */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 8px;
}

.mv-card {
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.mv-card--mission {
  background: linear-gradient(155deg, #f6faf6 0%, #e9f2e9 100%);
  border: 1px solid #d7e6d7;
}

.mv-card--vision {
  background: var(--color-primary);
  color: var(--color-white);
}

.mv-card__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  background: rgba(46, 125, 50, 0.12);
  color: var(--color-primary-dark);
}

.mv-card--vision .mv-card__label {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.mv-card__text {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.7;
  margin: 0;
}

/* === 핵심 운영가치 === */
.core-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.core-value {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.core-value__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
}

.core-value__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.core-value__list li {
  position: relative;
  padding: 8px 0 8px 22px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.core-value__list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary-light);
}

/* === CI 페이지 === */
.ci-intro p {
  font-size: 1.08rem;
  line-height: 1.8;
}

.ci-symbol {
  text-align: center;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 48px 24px;
  margin: 24px 0 8px;
}

.ci-symbol img {
  max-width: 260px;
  width: 60%;
  height: auto;
  margin: 0 auto;
}

.ci-meanings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ci-meaning {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ci-meaning:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ci-meaning__icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.ci-meaning__title {
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

.ci-meaning__desc {
  font-size: 0.93rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin: 0;
}

/* === 조직도 확장 === */
.org-chart__committees {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 24px;
  position: relative;
}

.org-chart__committees::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 50%;
  width: 2px;
  height: calc(100% + 24px);
  background: #cbd5de;
}

.org-node--committee {
  background: var(--color-white);
  border: 1.5px dashed #b8c4cf;
  color: #55677a;
  position: relative;
  z-index: 1;
}

.org-node--facility {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 14px 36px;
}

.org-node--facility span {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.9;
  margin-top: 4px;
}

/* === 중점사업 === */
.focus-block {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 28px 32px;
  margin-bottom: 24px;
}

.focus-block__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.focus-block__num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary-light);
  letter-spacing: 0.04em;
}

.focus-block__head h4 {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.focus-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.focus-list li {
  position: relative;
  padding: 9px 0 9px 24px;
  color: var(--color-text-light);
  line-height: 1.6;
  border-bottom: 1px dashed var(--color-border-light);
}

.focus-list li:last-child {
  border-bottom: none;
}

.focus-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* === 후원/자원봉사 절차 === */
.donation-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.donation-step {
  flex: 1 1 0;
  min-width: 150px;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.donation-step__num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  background: var(--color-accent);
  border-radius: 999px;
  padding: 5px 12px;
}

.donation-step__title {
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  color: var(--color-text);
}

.donation-step__arrow {
  align-self: center;
  color: var(--color-primary-light);
  font-size: 1.4rem;
  font-weight: 700;
}

.download-btn {
  display: inline-block;
  margin-top: auto;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.download-btn:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.download-btn--mail {
  background: var(--color-secondary);
  word-break: break-all;
}

.download-btn--mail:hover {
  background: #e65100;
}

/* === 후원 계좌 === */
.account-box {
  background: var(--color-warm);
  border: 1px solid #ffe082;
  border-radius: var(--radius-md);
  padding: 28px 32px;
  text-align: center;
}

.account-box__bank {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.account-box__bank strong {
  color: var(--color-primary-dark);
  letter-spacing: 0.02em;
}

.account-box__holder {
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.account-box__note {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* === 후원자 혜택 === */
.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.benefit-list li {
  position: relative;
  padding: 12px 16px 12px 44px;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.benefit-list li::before {
  content: '♥';
  position: absolute;
  left: 18px;
  color: var(--color-primary-light);
}

/* === 4열 카드 (후원 방법) === */
.feature-cards--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* === 반응형 === */
@media (max-width: 1024px) {
  .feature-cards--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ci-meanings {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mv-grid,
  .core-values,
  .feature-cards--four {
    grid-template-columns: 1fr;
  }

  .donation-steps {
    flex-direction: column;
    align-items: stretch;
  }

  .donation-step {
    min-width: 0;
  }

  .donation-step__arrow {
    transform: rotate(90deg);
  }

  .org-chart__committees {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

/* ============================================
   게시판 상세보기 (view.php) 디자인
   ============================================ */
.sub-content--view {
  max-width: 900px;
  margin: 0 auto;
}

.board-view-head {
  border-top: 3px solid var(--color-primary);
  border-bottom: 1px solid var(--color-border);
  padding: 28px 8px 20px;
  margin-bottom: 0;
}

.board-view-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.board-view-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.board-view-meta li {
  position: relative;
}

.board-view-meta li + li::before {
  content: '';
  position: absolute;
  left: -11px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 11px;
  background: var(--color-border);
}

.board-attachment {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-light);
  padding: 14px 20px;
  font-size: 0.9rem;
}

.board-attachment strong {
  color: var(--color-text-light);
  font-weight: 700;
}

.board-attachment strong::before {
  content: '📎 ';
}

.board-attachment a {
  color: var(--color-primary-dark);
  text-decoration: none;
  font-weight: 600;
  padding: 5px 14px;
  background: var(--color-accent);
  border: 1px solid #d7e6d7;
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.board-attachment a:hover {
  background: #dcefdd;
  border-color: var(--color-primary-light);
}

.board-view-body {
  padding: 36px 8px 48px;
  min-height: 200px;
  line-height: 1.8;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  overflow-wrap: break-word;
}

.board-view-body p {
  margin-bottom: 1em;
}

.board-view-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 8px 0;
}

.board-view-body table {
  max-width: 100%;
  border-collapse: collapse;
}

.board-view-body table td,
.board-view-body table th {
  border: 1px solid var(--color-border);
  padding: 8px 12px;
}

.board-view-body a {
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.board-view-body a:hover {
  color: var(--color-primary);
}

.board-view-nav {
  margin-top: 0;
  border-bottom: 1px solid var(--color-border-light);
}

.board-view-nav-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.93rem;
}

.board-view-nav-row:last-child {
  border-bottom: none;
}

.board-view-nav-row > span {
  flex: 0 0 64px;
  font-weight: 700;
  color: var(--color-text-light);
}

.board-view-nav-row > span::after {
  content: ' ›';
  color: var(--color-primary-light);
}

.board-view-nav-row a {
  color: var(--color-text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-view-nav-row a:hover {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.board-view-nav-row em {
  color: var(--color-text-muted);
  font-style: normal;
}

.board-view-actions {
  display: flex;
  justify-content: center;
  padding: 28px 0 8px;
}

a.board-btn,
a.board-btn:visited,
.board-view-body a.board-btn,
.sub-content .board-view-actions a.board-btn {
  color: var(--color-white);
  text-decoration: none;
}

.board-btn {
  display: inline-block;
  text-decoration: none;
  min-width: 120px;
  text-align: center;
  padding: 12px 32px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, transform 0.2s ease;
}

.board-btn:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .board-view-title {
    font-size: 1.2rem;
  }

  .board-view-body {
    padding: 24px 4px 32px;
  }
}

/* ============================================
   메인 갤러리 섹션 (전체 폭 1열)
   ============================================ */
.home-gallery {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 28px 32px;
}

.home-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.home-gallery .gallery-card__thumb {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

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

@media (max-width: 560px) {
  .home-gallery__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   참여마당 리디자인 (텍스트 중심 편집형)
   ============================================ */
.lead-intro {
  border-top: 3px solid var(--color-primary);
  padding: 26px 4px 6px;
  margin-bottom: 12px;
}

.lead-intro__catch {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 16px;
}

.lead-intro p:not(.lead-intro__catch) {
  color: var(--color-text-light);
  line-height: 1.85;
  max-width: 46em;
}

/* 후원 방법: 번호 + 구분선 목록형 */
.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}

.method-item {
  display: flex;
  gap: 18px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--color-border-light);
}

.method-item__num {
  flex: 0 0 auto;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-primary);
  padding-top: 2px;
  letter-spacing: 0.04em;
}

.method-item__title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 6px;
}

.method-item__desc {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin: 0;
}

/* 절차 스테퍼: 세로 연결선 + 번호 원 */
.stepper {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
}

.stepper__item {
  position: relative;
  display: flex;
  gap: 18px;
  padding: 0 0 30px 0;
}

.stepper__item:last-child {
  padding-bottom: 4px;
}

.stepper__item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 1px;
  background: var(--color-border);
}

.stepper__dot {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.stepper__body {
  padding-top: 5px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}

.stepper__title {
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.file-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.2s ease;
}

.file-link:hover {
  color: var(--color-primary);
}

/* 후원 계좌 스트립 */
.bank-strip {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  background: var(--color-white);
}

.bank-strip__main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  margin-bottom: 8px;
}

.bank-strip__bank {
  font-weight: 700;
  color: var(--color-text);
}

.bank-strip__number {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--color-primary-dark);
}

.bank-strip__holder {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.bank-strip__note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* 얇은 구분선 목록 (혜택) */
.ruled-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ruled;
}

.ruled-list li {
  counter-increment: ruled;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text);
  line-height: 1.6;
}

.ruled-list li::before {
  content: counter(ruled, decimal-leading-zero);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.04em;
}

.ruled-list__sub {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* 마무리 문구 */
.closing-note {
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.closing-note p {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 10px;
}

.closing-note__contact {
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  color: var(--color-text-muted) !important;
}

.closing-note__contact a {
  color: var(--color-primary-dark);
  font-weight: 700;
}

@media (max-width: 768px) {
  .method-grid {
    grid-template-columns: 1fr;
  }

  .lead-intro__catch {
    font-size: 1.15rem;
  }

  .bank-strip__number {
    font-size: 1.15rem;
  }
}

/* === 참여마당 삽화 === */
.lead-intro--art {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 36px;
  align-items: center;
}

.lead-intro__illust {
  width: 100%;
  max-width: 240px;
  height: auto;
  justify-self: center;
}

@media (max-width: 768px) {
  .lead-intro--art {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .lead-intro__illust {
    max-width: 180px;
    order: -1;
  }
}

/* === 운영기관소개 / 공통 보강 === */
.method-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 36px;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 11px 22px;
  border: 1.5px solid var(--color-primary);
  border-radius: 999px;
  color: var(--color-primary-dark);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.cta-link::after {
  content: '\2197';
  font-size: 0.85em;
}

.cta-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* 통계 스트립 */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 28px;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  padding: 26px 30px;
}

.stat-strip__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-strip__item--big {
  padding-right: 28px;
  border-right: 1px solid var(--color-border-light);
}

.stat-strip__value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.stat-strip__item--big .stat-strip__value {
  font-size: 1.7rem;
  color: var(--color-primary-dark);
}

.stat-strip__value em {
  font-style: normal;
  font-size: 0.72em;
  font-weight: 600;
  margin-left: 1px;
  color: var(--color-text-light);
}

.stat-strip__label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.stat-strip__group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: center;
}

@media (max-width: 900px) {
  .method-grid--three {
    grid-template-columns: 1fr;
  }

  .stat-strip {
    flex-direction: column;
    gap: 18px;
  }

  .stat-strip__item--big {
    padding-right: 0;
    border-right: none;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border-light);
  }
}

/* 오시는 길 / CI 아이콘 통일 (이모지 대체) */
.icon-chip {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-chip svg {
  width: 22px;
  height: 22px;
}

/* 산하시설 카드 */
.facility-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  padding: 24px 28px;
}

.facility-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 6px;
}

.facility-card__desc {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin: 0;
  max-width: 34em;
}

/* === 인사말 다듬기 === */
.greeting-catch {
  border-left: none;
  padding: 0;
  margin-bottom: 22px;
  color: var(--color-primary-dark);
}

.greeting-text > p:not(.greeting-catch) {
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: 1.1em;
}

.greeting-photo figcaption {
  padding: 12px 16px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text-light);
  background: var(--color-white);
  border-top: 1px solid var(--color-border-light);
}

.vision-strip {
  margin-top: 44px;
  padding: 26px 30px;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

.vision-strip__label {
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
}

.vision-strip__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vision-strip__keywords span {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-size: 0.86rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .vision-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   따뜻한 톤 보정: 명조 캐치프레이즈 + 크림 배경
   ============================================ */
@font-face {
  font-family: 'GowunBatang';
  font-weight: 400;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/GowunBatang-Regular.woff') format('woff');
}

@font-face {
  font-family: 'GowunBatang';
  font-weight: 700;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/GowunBatang-Bold.woff') format('woff');
}

:root {
  --font-serif: 'GowunBatang', 'Nanum Myeongjo', 'Batang', 'AppleMyungjo', serif;
  --color-cream: #fbf7ef;
}

/* 캐치프레이즈: 명조체 + 큰따옴표 장식 */
.lead-intro__catch,
.greeting-catch {
  font-family: var(--font-serif);
  font-weight: 700;
  position: relative;
}

.greeting-catch {
  font-size: 1.5rem;
  line-height: 1.6;
  padding-top: 34px;
}

.greeting-catch::before {
  content: '\201C';
  position: absolute;
  top: -6px;
  left: -4px;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--color-primary-light);
  opacity: 0.55;
  font-family: Georgia, serif;
}

/* 인사말 본문: 명조 + 여유 행간 */
.greeting-text > p:not(.greeting-catch) {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 2.05;
  color: #55554e;
}

.sub-content .sign {
  font-family: var(--font-serif);
}

/* 비전 스트립: 크림톤으로 */
.vision-strip {
  background: var(--color-cream);
  border-color: #efe6d5;
  border-left-color: var(--color-primary);
}

.vision-strip__label {
  font-family: var(--font-serif);
}

/* 마무리 문구·리드문단도 온기 있게 */
.closing-note p {
  font-family: var(--font-serif);
}

.lead-intro p:not(.lead-intro__catch) {
  line-height: 1.95;
}

/* 설립목적 인용도 명조 */
.purpose-box p {
  font-family: var(--font-serif);
}

/* 미션/비전 카드 문구 명조 */
.mv-card__text {
  font-family: var(--font-serif);
}

/* 사진 카드: 따뜻한 프레임 */
.greeting-photo {
  border: 1px solid #efe6d5;
  background: var(--color-cream);
  padding: 10px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.greeting-photo img {
  border-radius: calc(var(--radius-md) - 4px);
}

.greeting-photo figcaption {
  background: transparent;
  border-top: none;
  padding: 12px 4px 4px;
}

/* ============================================
   모바일 헤더/메인 상단 정리
   ============================================ */
@media (max-width: 768px) {
  :root {
    --header-height: 98px;
  }

  .site-header {
    height: auto;
    padding-top: 12px;
  }

  .nav-wrap {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    height: auto;
    width: 100%;
  }

  .logo img {
    height: 34px;
    max-width: 70vw;
  }

  .nav-balance {
    display: none;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav .gnb {
    width: 100%;
    justify-content: space-between;
  }

  .main-nav .gnb > li {
    flex: 1;
  }

  .main-nav .gnb > li > a {
    padding: 12px 2px 14px;
    font-size: 0.92rem;
    text-align: center;
    white-space: nowrap;
    letter-spacing: -0.02em;
  }

  /* 터치에서는 드롭다운 대신 페이지 이동 */
  .main-nav .gnb > li .sub-menu {
    display: none !important;
  }

  /* 메인 히어로 문구 */
  body.home-page .hero-copy {
    padding-top: clamp(90px, 14vh, 160px);
  }

  .hero-copy p {
    font-size: 1.45rem;
    line-height: 1.55;
  }

  .sound-toggle {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 768px) {
  .sub-side__nav a {
    white-space: nowrap;
    font-size: 0.9rem;
    min-width: 0;
    padding: 12px 10px;
  }
}

/* ============================================
   모바일 최적화 2차: 사이드탭 스크롤 + 표 세로 스택
   ============================================ */
@media (max-width: 768px) {
  /* 서브 사이드 메뉴: 가로 스크롤 칩 */
  .sub-side {
    padding-bottom: 4px;
  }

  .sub-side__nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .sub-side__nav::-webkit-scrollbar {
    display: none;
  }

  .sub-side__nav a {
    flex: 0 0 auto;
    padding: 12px 16px;
    border-right: 1px solid var(--color-border-light);
  }

  .sub-side__nav a.is-active::before {
    display: none;
  }

  /* 정보 표: 라벨 위 / 내용 아래 세로 스택 */
  .info-table .row {
    grid-template-columns: 1fr;
  }

  .info-table .th {
    padding: 10px 16px 8px;
    font-size: 0.82rem;
  }

  .info-table .td {
    padding: 10px 16px 14px;
    font-size: 0.92rem;
    line-height: 1.6;
  }

  /* 리드 인트로/캐치 여백 축소 */
  .lead-intro {
    padding-top: 20px;
  }

  .greeting-catch {
    font-size: 1.25rem;
  }

  /* 계좌 스트립: 세로 정렬 */
  .bank-strip__main {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .bank-strip__number {
    font-size: 1.25rem;
    word-break: break-all;
  }

  /* 본문 카드 좌우 여백 축소로 콘텐츠 폭 확보 */
  .sub-content {
    padding: 20px 16px;
  }

  /* 조직도 노드 폭 안정화 */
  .org-node {
    font-size: 0.9rem;
    padding: 12px 20px;
  }

  /* 메인 갤러리 카드: 모바일에서 여백 축소 */
  .home-gallery {
    padding: 20px 16px 24px;
  }

  /* 푸터: 링크 2열 유지, 여백 축소 */
  .site-footer__grid {
    gap: 28px;
  }
}

/* ============================================
   라벨류 줄바꿈 방지 (탭·메뉴·버튼 공통)
   ============================================ */
.board-tabs__item,
.board-more,
.gnb > li > a,
.sub-side__nav a,
.breadcrumb,
.board-btn,
.cta-link,
.file-link,
.download-btn,
.stat-strip__label,
.method-item__num {
  white-space: nowrap;
}

/* 게시판 탭: 화면이 좁으면 가로 스크롤 */
.board-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.board-tabs::-webkit-scrollbar {
  display: none;
}

.board-tabs__item {
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .board-tabs__item {
    padding: 14px 16px;
    font-size: 0.92rem;
  }

  /* 게시판 목록: 제목은 자연 줄바꿈 유지하되 날짜/조회는 한 줄 */
  .board-table .col-date,
  .board-table .col-hit,
  .board-view-meta li,
  .gallery-card__date {
    white-space: nowrap;
  }
}

/* ============================================
   모바일 햄버거 메뉴 + 게시판 카드형 목록
   ============================================ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 768px) {
  /* 헤더: 로고 좌측 + 햄버거 우측 한 줄 */
  :root {
    --header-height: 60px;
  }

  .site-header {
    height: var(--header-height);
    padding-top: 0;
  }

  .nav-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 100%;
  }

  .logo img {
    height: 32px;
    max-width: 60vw;
  }

  .nav-toggle {
    display: flex;
  }

  /* 슬라이드다운 메뉴 패널 */
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    max-height: 0;
    overflow: hidden;
    overflow-y: auto;
    transition: max-height 0.3s ease;
    z-index: 999;
  }

  body.nav-open .main-nav {
    max-height: calc(100vh - var(--header-height));
    border-top: 1px solid var(--color-border-light);
  }

  .main-nav .gnb {
    flex-direction: column;
    width: 100%;
    padding: 8px 0 16px;
  }

  .main-nav .gnb > li {
    flex: none;
    border-bottom: 1px solid var(--color-border-light);
  }

  .main-nav .gnb > li:last-child {
    border-bottom: none;
  }

  .main-nav .gnb > li > a {
    padding: 14px 24px 6px;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    text-align: left;
    letter-spacing: 0.06em;
  }

  /* 패널 안에서는 하위 메뉴 상시 노출 */
  .main-nav .gnb > li .sub-menu {
    display: flex !important;
    position: static;
    flex-wrap: wrap;
    gap: 0;
    box-shadow: none;
    border: none;
    padding: 0 12px 10px;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
  }

  .main-nav .gnb > li .sub-menu li {
    flex: 0 0 50%;
  }

  .main-nav .gnb > li .sub-menu li a {
    padding: 10px 12px;
    font-size: 0.97rem;
    color: var(--color-text);
    border-bottom: none;
  }

  /* 게시판 목록: 한 줄 리스트 (제목 말줄임 + 날짜) */
  .board-table,
  .board-table tbody {
    display: block;
    width: 100%;
  }

  .board-table tbody tr {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 4px;
    border-bottom: 1px solid var(--color-border-light);
  }

  .board-table tbody td {
    display: block;
    padding: 0;
    border-bottom: none;
  }

  .board-table tbody td::before {
    content: none;
  }

  .board-table tbody td.col-no,
  .board-table tbody td.col-hit {
    display: none;
  }

  .board-table tbody td.col-title {
    flex: 1;
    min-width: 0;
  }

  .board-table tbody td.col-title a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
  }

  .board-table tbody td.col-date {
    flex: 0 0 auto;
    width: auto;
    font-size: 0.78rem;
    color: var(--color-text-muted);
  }

  .board-empty {
    display: block;
    padding: 40px 16px;
  }
}

/* ============================================
   페이지네이션 디자인 (전체 공통)
   ============================================ */
.board-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}

.board-pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 6px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.board-pagination a:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary);
}

.board-pagination a.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

@media (max-width: 768px) {
  .board-pagination {
    gap: 6px;
    margin-top: 24px;
  }

  .board-pagination a {
    min-width: 40px;
    height: 40px;
  }

  /* 게시판 상단 탭바에 옅은 배경으로 영역 구분 */
  .board-tabs-bar {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border-light);
  }

  /* 목록 카드 컨테이너 여백 */
  .sub-content--board {
    padding: 18px 16px 24px;
  }

  .board-total {
    font-size: 0.88rem;
  }
}

/* ============================================
   메인 히어로 문구 임팩트
   ============================================ */
/* 영상 위 가독성 스크림 */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 30, 20, 0.25) 0%, rgba(15, 30, 20, 0.35) 55%, rgba(15, 30, 20, 0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-copy__eyebrow {
  display: inline-block;
  align-self: center;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  margin-bottom: 22px !important;
  text-shadow: none !important;
  background: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(2px);
  animation: fadeInUp 0.7s ease-out both;
}

.hero-copy__line {
  font-family: var(--font-serif) !important;
  font-size: clamp(1.9rem, 4.2vw, 3rem) !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  letter-spacing: -0.01em;
  animation: fadeInUp 0.7s ease-out both;
}

.hero-copy__line:nth-of-type(2) {
  animation-delay: 0.12s;
}

.hero-copy__line:nth-of-type(3) {
  animation-delay: 0.24s;
}

.hero-em {
  font-style: normal;
  position: relative;
  display: inline-block;
}

/* 키워드 아래 붓터치 느낌의 언더라인 */
.hero-em::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0.08em;
  height: 0.34em;
  border-radius: 3px;
  z-index: -1;
  opacity: 0.85;
}

.hero-em--warm::after {
  background: linear-gradient(90deg, #f2a950, #f6c06a);
}

.hero-em--green::after {
  background: linear-gradient(90deg, #4a9d51, #7cc584);
}

.hero-copy__sub {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem) !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 16px !important;
  letter-spacing: 0.02em;
  animation: fadeInUp 0.7s ease-out 0.36s both;
}

@media (max-width: 768px) {
  .hero-copy__eyebrow {
    font-size: 0.72rem !important;
    margin-bottom: 18px !important;
  }

  .hero-copy__line {
    font-size: 1.85rem !important;
    line-height: 1.55 !important;
  }

  .hero-copy__sub {
    font-size: 0.92rem !important;
  }
}

/* ============================================
   모바일 가로 스크롤 방지 안전핀
   ============================================ */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .sub-grid > *,
  .board-grid > *,
  .banner-grid > * {
    min-width: 0;
    max-width: 100%;
  }

  .sub-side {
    max-width: 100%;
    overflow: hidden;
  }
}

/* =====================================================
   2026-08 수정안 반영 스타일
   ===================================================== */

/* ── 메인 히어로: 탄소중립 사진 슬라이드 ── */
.hero-slides {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

/* ── 인사말: 지향 가치 키워드 강화 ── */
.vision-strip {
  border-left-width: 6px;
  background: linear-gradient(135deg, #f2f9f2 0%, #ffffff 60%);
}

.vision-strip__keywords span {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 3px 10px rgba(46, 125, 50, 0.25);
}

/* ── 법인소개: 미션·비전 가독성 강화 ── */
.mv-card {
  padding: 40px 30px;
}

.mv-card__label {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.mv-card--mission {
  background: linear-gradient(150deg, #2e7d32 0%, #4a9d51 100%);
  border: none;
  color: #fff;
}

.mv-card--mission .mv-card__label { color: #d9f2db; }

.mv-card--vision {
  background: linear-gradient(150deg, #f57f17 0%, #ff8f00 100%);
}

.mv-card--vision .mv-card__label { color: #ffecc7; }

.mv-card__text {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* ── 중점사업: 틀 변경 + 강조 ── */
.focus-block {
  border: none;
  border-left: 6px solid var(--color-primary);
  box-shadow: var(--shadow-md);
  padding: 0;
  overflow: hidden;
}

.focus-block__head {
  margin-bottom: 0;
  padding: 18px 28px;
  background: linear-gradient(120deg, #2e7d32 0%, #4a9d51 70%, #7cc584 100%);
}

.focus-block__head h4 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}

.focus-block__num {
  font-size: 1.3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.85);
}

.focus-block .focus-list {
  padding: 20px 28px 24px;
}

.focus-list li {
  font-weight: 600;
  color: var(--color-text);
}

/* ── 특화사업 ── */
.special-banner {
  margin: 8px 0 36px;
  padding: 42px 30px;
  border-radius: var(--radius-md);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(27, 94, 32, 0.92) 0%, rgba(74, 157, 81, 0.9) 100%),
    url('../../images/special/special_campaign1.jpg') center/cover no-repeat;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.special-banner__catch {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.special-banner__catch strong {
  color: #ffe082;
}

.special-banner__sub {
  margin-top: 10px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.special-item {
  margin-bottom: 40px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border-left: 6px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.special-item__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 26px;
  background: #f2f9f2;
  border-bottom: 1px solid var(--color-border-light);
}

.special-item__head h4 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.special-item__num {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--color-primary);
}

.special-item__desc {
  padding: 18px 26px 0;
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.8;
}

.special-item__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px 26px 26px;
}

.special-item__photos figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f5f5f5;
}

.special-item__photos img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

@media (max-width: 680px) {
  .special-item__photos {
    grid-template-columns: 1fr;
  }
  .special-item__photos img {
    height: 220px;
  }
}

/* ── 후원·자원봉사: 문구 크게 + 진하게 ── */
.subpage .lead-intro__catch {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 900;
  color: var(--color-primary-dark);
}

.method-item {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.method-item__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.method-grid {
  gap: 14px;
}

/* 후원자 혜택: 박스 형태 */
.ruled-list--boxed {
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 10px 24px;
  background: #f7fbf7;
}

.ruled-list--boxed li {
  font-weight: 600;
}

.ruled-list--boxed li:last-child {
  border-bottom: none;
}

/* 하단 문구 크게 + 진하게 */
.closing-note p {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
}

.closing-note__contact {
  font-size: 1.3rem !important;
  font-weight: 900 !important;
  color: var(--color-primary-dark) !important;
}

.closing-note__contact a {
  color: var(--color-primary-dark);
  font-weight: 900;
}
