/* ============================================================
   한상경 충남교육감 예비후보 - 메인 스타일시트
   style.css
   ============================================================ */

/* ============================================================
   1. CSS 변수 (색상, 반경, 그림자 등)
   ============================================================ */
:root {
  /* ── 브랜드 색상 ─────────────────────────── */
  --color-navy:   #2A2520;   /* 주색상 — 진한 차콜브라운 (중립·무당파) */
  --color-amber:  #e5cd54;   /* 강조색 — 골드 앰버 */

  /* ── 배경 팔레트 ─────────────────────────── */
  --bg-white:     #FFFFFF;   /* 순백 */
  --bg-cream:     #F4F1E0;   /* 크림 베이지 - 섹션 배경 */
  --bg-sage:      #DBDDBA;   /* 세이지 그레이 - 테두리·구분선 */
  --bg-mint:      #A8E1C2;   /* 민트 - 강조 블록 */
  --bg-yellow:    #E1DB00;   /* 옐로우 - 포인트 CTA */
  --bg-green:     #CBE0A0;   /* 라이트 그린 - 태그·뱃지 */

  /* ── 텍스트 색상 ─────────────────────────── */
  --text-dark:    #111827;
  --text-mid:     #374151;
  --text-light:   #6B7280;
  --text-white:   #FFFFFF;

  /* ── 레이아웃 ────────────────────────────── */
  --max-width:    1140px;
  --section-v:    80px;       /* 섹션 상하 패딩 */
  --section-v-sm: 48px;       /* 모바일 섹션 상하 패딩 */

  /* ── 반경 (border-radius) ────────────────── */
  --radius-sm:    8px;
  --radius-md:    12px;       /* 카드 기본 */
  --radius-lg:    15px;       /* 큰 카드 */
  --radius-pill:  100px;

  /* ── 그림자 ──────────────────────────────── */
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.14);
  --shadow-hover: 0 12px 48px rgba(42,37,32,0.18);

  /* ── 전환 ────────────────────────────────── */
  --transition:   0.25s cubic-bezier(.4,0,.2,1);

  /* ============================================================
     지도 색상 설정 ← 시·군 학생 1인당 지원금 기준
     ─────────────────────────────────────────────────────────────
     --map-high : 500,000원 이상  (지원 상위, 민트)
     --map-mid  : 200,000~499,999원 (지원 중위, 라이트그린)
     --map-low  : 200,000원 미만  (지원 하위, 옐로우 — 주목)
     ============================================================ */
  --map-high:    #A8E1C2;   /* 지원 상위 (민트)       예) #8ED4AF */
  --map-mid:     #CBE0A0;   /* 지원 중위 (라이트그린)  예) #B8D68A */
  --map-low:     #E1DB00;   /* 지원 하위 (옐로우)     예) #D4CE00 */
  /* ─────────────────────────────────────────────────────────── */
}

/* ============================================================
   2. 리셋 & 기본 타이포그래피
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

/* ============================================================
   3. 유틸리티
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.pc-only { display: inline; }

/* 섹션 공통 */
.section {
  padding: var(--section-v) 0;
}
.section-white   { background: var(--bg-white); }
.section-cream   { background: var(--bg-cream); }
.section-navy    { background: var(--color-navy); }
.section-yellow  { background: var(--bg-yellow); }

/* 섹션 레이블 */
.section-label {
  display: inline-block;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-navy);
  background: var(--bg-mint);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.section-label.light {
  color: var(--color-navy);
  background: rgba(168,225,194,0.35);
}

/* 섹션 제목 */
.section-title {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(2.4rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-navy);
  margin-bottom: 20px;
}
.section-title.light { color: var(--text-white); }
.section-title.dark  { color: var(--text-dark); }

/* 섹션 설명 */
.section-desc {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 780px;
  margin: 0 auto 20px;
  line-height: 1.8;
}
.section-desc.light { color: rgba(255,255,255,0.85); }
.section-desc.dark  { color: var(--text-mid); }

/* 텍스트 센터 섹션 */
#philosophy .container,
#vision .container,
#issue-response .container,
#participation .container,
#join .container {
  text-align: center;
}

/* ============================================================
   4. 버튼
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-navy);
  color: var(--text-white);
  border-color: var(--color-navy);
}
.btn-primary:hover {
  background: #163080;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--text-white);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--color-navy);
  border-color: var(--bg-sage);
}
.btn-secondary:hover {
  border-color: var(--color-navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--color-navy);
  color: var(--text-white);
  border-color: var(--color-navy);
}
.btn-navy:hover {
  background: #163080;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--text-dark);
}
.btn-outline-dark:hover {
  background: rgba(0,0,0,0.06);
}

/* ============================================================
   5. 네비게이션
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--bg-white);
  border-bottom: 1px solid var(--bg-sage);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-kr {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-navy);
}
.logo-sub {
  font-size: 0.65rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-menu a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-menu a:hover {
  color: var(--color-navy);
  background: var(--bg-cream);
}
.nav-menu .nav-cta {
  background: var(--color-navy);
  color: var(--text-white);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
}
.nav-menu .nav-cta:hover {
  background: #163080;
}

/* 햄버거 버튼 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   6. 히어로 — 좌우 분할 레이아웃
   왼쪽(35%): 차콜브라운 텍스트 패널 (솔리드)
   오른쪽(65%): 영상 패널
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  /*
   * [비율 조절]
   * 텍스트 더 좁게 → "30fr 70fr"
   * 텍스트 더 넓게 → "42fr 58fr"
   */
  grid-template-columns: 32fr 68fr;
  overflow: hidden;
}

/* ── 왼쪽 텍스트 패널 ── */
.hero-left {
  background: var(--color-navy);   /* 차콜브라운 #2A2520 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(45px, 7vw, 96px) clamp(28px, 4vw, 64px);
  position: relative;
  z-index: 2;
}

/* 사선 경계 — 영상 쪽으로 자연스럽게 이어짐 */
.hero-left::after {
  display: none;
  /*content: '';
  position: absolute;
  top: 0; right: -40px;
  width: 96px; height: 100%;
  background: var(--color-navy);
  clip-path: polygon(0 0, px 0, 100% 100%, 0 100%);
  z-index: 2;*/
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--bg-mint);
  background: rgba(168,225,194,0.14);
  border: 1px solid rgba(168,225,194,0.35);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  text-transform: uppercase;
  align-self: flex-start;
}

.hero-title {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.32;
  margin-bottom: 20px;
}
.hero-title em {
  font-style: normal;
  color: var(--bg-yellow);
}

.hero-subtitle {
  font-size: clamp(0.85rem, 1.2vw, 0.97rem);
  color: rgba(255,255,255,0.75);
  line-height: 1.9;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* 히어로 버튼 — 황금 채우기 */
.btn-hero-primary {
  background: var(--bg-yellow);
  color: var(--color-navy);
  border: 2px solid var(--bg-yellow);
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  white-space: nowrap;
}
.btn-hero-primary:hover {
  background: #f0d400;
  border-color: #f0d400;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(225,219,0,0.35);
}

/* 히어로 버튼 — 투명 테두리 */
.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.50);
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  white-space: nowrap;
}
.btn-hero-outline:hover {
  border-color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.08);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.hero-highlights span {
  font-size: 0.73rem;
  font-weight: 500;
  color: rgba(255,255,255,0.70);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

/* ── 오른쪽 영상 패널 ── */
.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /*
   * [영상 포커스 위치]
   * "center center" → 중앙 (기본)
   * "80% center"    → 오른쪽 인물에 초점
   */
  object-position: center center;
  display: block;
}

/* 왼쪽 가장자리 페이드 — 텍스트 패널과 자연스럽게 연결 */
.hero-video-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    70deg,
    var(--color-navy) 0%,
    var(--color-navy) 10%,
    rgba(42, 37, 32, 0.6) 30%, /* 중간 단계에서 자연스러운 섞임 */
    rgba(42, 37, 32, 0) 60%   /* 아주 멀리서 투명해짐 */
  );
  pointer-events: none;
  z-index: 1;
}

/* 스크롤 힌트 */
.hero-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 17%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.32);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: bounceDown 2.4s ease-in-out infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── 태블릿 (≤ 960px): 상(영상) / 하(텍스트) ── */
@media (max-width: 960px) {
  #hero {
    grid-template-columns: 1fr;
    grid-template-rows: 45vh auto;
    min-height: auto;
  }
  .hero-left {
    order: 2;
    padding: 40px 28px 52px;
  }
  .hero-left::after { display: none; }
  .hero-right {
    order: 1;
    min-height: 45vh;
  }
  .hero-video-fade {
    background: linear-gradient(
      to bottom,
      rgba(42,37,32,0)   40%,
      var(--color-navy) 100%
    );
  }
  .hero-scroll-hint { display: none; }
}

/* ── 모바일 (≤ 640px) ── */
@media (max-width: 640px) {
  #hero { grid-template-rows: 42vh auto; }
  .hero-right { min-height: 42vh; }
  .hero-title { font-size: 1.75rem; }
  .hero-buttons { flex-direction: row; flex-wrap: wrap; }
  .btn-hero-primary,
  .btn-hero-outline { padding: 11px 20px; font-size: 0.88rem; }
}

/* ============================================================
   7. 철학 카드 (4열 그리드)
   ============================================================ */
.cards-grid {
  display: grid;
  gap: 20px;
  margin-top: 16px;
}
.four-col { grid-template-columns: repeat(4, 1fr); }
.two-col  { grid-template-columns: repeat(2, 1fr); }

.info-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--bg-sage);
}
.info-card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}
.info-card h3 {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}
.info-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ============================================================
   8. 후보 소개 (about)
   ============================================================ */
#about .container { text-align: left; }

.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  margin-top: 40px;
  align-items: start;
}

.about-photo-wrap {
  position: sticky;
  top: 80px;
}

.about-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-md);
}

.about-quote-box {
  background: var(--color-navy);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 20px;
}
.about-quote-box blockquote {
  font-family: 'Noto Serif KR', serif;
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  line-height: 1.75;
  border-left: 3px solid var(--bg-yellow);
  padding-left: 14px;
}

.about-intro {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--bg-sage);
}

/* 타임라인 */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline-item {
  display: flex;
  gap: 20px;
  position: relative;
  padding-bottom: 28px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:last-child .timeline-dot::after { display: none; }

.timeline-dot {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-yellow);
  border: 3px solid var(--color-navy);
  margin-top: 6px;
  position: relative;
  z-index: 1;
}
.timeline-dot::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + 14px);  /* gap to next item */
  background: var(--bg-sage);
}

.timeline-body h4 {
  font-family: 'Noto Serif KR', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
}
.timeline-body p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* ============================================================
   9. 현안 카드 (issue-card)
   ============================================================ */
#problem .container { text-align: left; }

.issue-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--bg-sage);
  transition: var(--transition);
  position: relative;
}
.issue-card:hover {
  border-left-color: var(--color-navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.issue-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-bottom: 10px;
}
.issue-card h3 {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}
.issue-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* ============================================================
   10. 7대 정책 카드 (Flexbox 레이아웃으로 변경)
   ============================================================ */
.policies-grid {
  display: flex;      /* Grid 대신 Flex 사용 */
  flex-wrap: wrap;    /* 줄바꿈 허용 */
  justify-content: center; /* 자식 요소들을 가운데로 정렬 */
  gap: 16px;
  margin-top: 16px;
}

.policy-card {
  /* 4개씩 배치될 때의 너비 계산 (간격 16px 제외) */
  width: calc(25% - 12px); 
  min-width: 250px;   /* 너무 작아지지 않게 최소 너비 설정 */
  
  background: var(--bg-white);
  border: 1px solid var(--bg-sage);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 모바일 대응: 화면이 좁아지면 2개 또는 1개씩 보이게 조절 */
@media (max-width: 1024px) {
  .policy-card {
    width: calc(50% - 16px);
  }
}

@media (max-width: 600px) {
  .policy-card {
    width: 100%;
  }
}

/* 기존 스타일 유지 */
.policy-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--bg-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.policy-card:hover {
  border-color: var(--color-navy);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.policy-card:hover::before {
  transform: scaleX(1);
}

.policy-number {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-bottom: 12px;
}
.policy-icon-wrap {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
}
.policy-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.45;
  margin-bottom: 12px;
}
.policy-tag-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-navy);
  background: var(--bg-green);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.policy-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 10px;
}

/* ── 팝업 모달 ───────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(17,24,39,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), opacity 0.25s ease;
  opacity: 0;
}
.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--bg-cream);
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-mid);
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover {
  background: var(--bg-sage);
  color: var(--text-dark);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.modal-number {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-light);
}
.modal-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-navy);
  background: var(--bg-green);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.modal-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}
.modal-title {
  font-family: 'Noto Serif KR', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
  line-height: 1.4;
}
.modal-desc {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.85;
}

/* ============================================================
   11. 비전 섹션
   ============================================================ */
.vision-points {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.vision-point {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 12px 20px;
  border-radius: var(--radius-md);
}
.vision-icon { font-size: 1.4rem; }
.vision-point span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-white);
}

.vision-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 320px;
  box-shadow: var(--shadow-lg);
}
.vision-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 30%;
}

/* ============================================================
   12. 데이터 지도
   ============================================================ */
#data-map .container { text-align: left; }

.map-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin-top: 16px;
  align-items: start;
}

.map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--bg-sage);
}

#map {
  height: 520px;
  width: 100%;
  background: #eef0f3;
}

/* 지도 범례 */
.map-legend {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  z-index: 400;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-mid);
}
.legend-dot {
  width: 12px; height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}
/* 범례 색상은 --map-* 변수와 동기화됩니다 */
.legend-dot.high     { background: var(--map-high); }
.legend-dot.mid      { background: var(--map-mid); }
.legend-dot.low      { background: var(--map-low); border: 1px solid #B8AC00; }

/* 지역 정보 패널 */
.map-panel {
  background: var(--bg-white);
  border: 1px solid var(--bg-sage);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.map-panel-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-align: center;
  gap: 12px;
}
.panel-empty-icon { font-size: 2.5rem; opacity: 0.5; }
.map-panel-empty p { font-size: 0.88rem; line-height: 1.6; }

.map-panel-data h3 {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 10px;
}
.panel-status-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.panel-status-badge.high     { background: #D4F2E4; color: #1A5C3A; }   /* 지원 상위 */
.panel-status-badge.mid      { background: #EAF4D0; color: #3A5020; }   /* 지원 중위 */
.panel-status-badge.low      { background: #FEFBC0; color: #5A4500; }   /* 지원 하위 */

.panel-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.panel-stat {
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.panel-stat.full-width { grid-column: span 2; }
.stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 4px;
}
.stat-value {
  display: block;
  font-family: 'Noto Serif KR', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
}

.panel-policies h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.panel-policies ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.panel-policies li {
  font-size: 0.88rem;
  color: var(--text-mid);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.panel-policies li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-navy);
  font-size: 0.8rem;
}

/* ── 시·군 지원금 블록 ─────────────────────────────────────── */
.panel-muni-block {
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 16px;
  border-left: 4px solid var(--color-navy);
}
.panel-muni-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.panel-muni-amount {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.2;
  margin-bottom: 6px;
}
/* 순위 뱃지 */
.muni-rank-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}
.muni-rank-badge.rank-high { background: #D4F2E4; color: #1A5C3A; }
.muni-rank-badge.rank-mid  { background: #EAF4D0; color: #3A5020; }
.muni-rank-badge.rank-low  { background: #FEFBC0; color: #5A4500; font-weight: 800; }

/* 평균 대비 갭 */
.panel-muni-gap {
  font-size: 0.85rem;
  margin-bottom: 10px;
  line-height: 1.5;
}
.panel-muni-gap small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
}
.gap-positive { color: #1A5C3A; font-weight: 700; }
.gap-negative { color: #5A4500; font-weight: 700; }

/* 비교 막대 */
.panel-bar-wrap { margin-bottom: 8px; }
.bar-track {
  height: 10px;
  background: var(--bg-sage);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 4px;
}
.bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s cubic-bezier(.4,0,.2,1);
}
.bar-fill.bar-high { background: #5AC89A; }
.bar-fill.bar-mid  { background: #8BBF50; }
.bar-fill.bar-low  { background: #C8B800; }
.bar-max-label {
  font-size: 0.7rem;
  color: var(--text-light);
  text-align: right;
}

/* 격차 메시지 */
.panel-muni-msg {
  font-size: 0.82rem;
  line-height: 1.65;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--bg-sage);
}
.msg-warn   { color: #5A4500; }
.msg-warn strong { color: #3A2A00; font-weight: 800; }
.msg-mid    { color: var(--text-mid); }
.msg-good   { color: #1A5C3A; }

/* ============================================================
   13. 지역 맞춤 해법
   ============================================================ */
#regional-policies .container { text-align: left; }

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

.regional-card {
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid transparent;
}
.overfull-card {
  background: #fff5f5;
  border-color: #fecaca;
}
.decrease-card {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.regional-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.regional-card-header h3 {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
}
.regional-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.overfull-card .regional-badge {
  background: #fecaca; color: #991b1b;
}
.decrease-card .regional-badge {
  background: #bfdbfe; color: #1e40af;
}

.regional-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.regional-card li {
  font-size: 0.92rem;
  color: var(--text-mid);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}
.regional-card li::before {
  content: '·';
  position: absolute;
  left: 6px;
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--color-navy);
}

/* ============================================================
   14. 현안 대응
   ============================================================ */
.issue-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}
.issue-point-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-sm);
}
.check-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--text-white);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.issue-point-item span:last-child {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
}

/* ============================================================
   15. 소통·참여 (participation)
   ============================================================ */
.participation-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* 참여 폼 */
.contact-form-wrap {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 36px); /* 화면 크기에 따라 패딩 조절 */
  text-align: left;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  /*overflow: hidden;*/
}
.contact-form-wrap h3 {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 24px;
  text-align: center;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row {
  display: grid;
  /* 기본적으로 1열(세로 배치)로 시작하고, 화면이 넓어지면 2열로 변경 */
  grid-template-columns: 1fr; 
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  width: 100%;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-mid);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--bg-white);
  border: 1px solid var(--bg-sage);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
  width: 100%;
  box-sizing: border-box;
  /*min-width: 0;
  max-width: 100%;*/
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(42,37,32,0.10);
}
.form-submit {
  align-self: center;
  margin-top: 4px;
}
.form-success {
  display: none;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #065f46;
  background: #d1fae5;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  margin-top: 8px;
}
.form-success.show { display: block; }

/* ============================================================
   16. CTA 섹션
   ============================================================ */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ============================================================
   17. 푸터
   ============================================================ */
#site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: start;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-name {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
}
.footer-slogan {
  font-size: 0.85rem;
  color: var(--bg-mint);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--text-white); }
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  font-size: 1.3rem;
  transition: opacity var(--transition);
}
.footer-social a:hover { opacity: 0.7; }

.footer-bottom {
  text-align: center;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

/* ============================================================
   TYPOGRAPHY OVERRIDE
   작은 타이틀 전반 → Noto Serif KR 적용
   ============================================================ */
.info-card h3,
.issue-card h3,
.timeline-body h3,
.regional-card-header h3,
.policy-title,
.panel-policies h4,
.map-panel-data h3,
.contact-form-wrap h3,
.credential-item strong,
.divider-quote strong {
  font-family: 'Noto Serif KR', serif;
}

/* ============================================================
   카드 불릿 리스트 (card-bullets / timeline-bullets)
   ============================================================ */
.card-bullets,
.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  text-align: left;
}
.card-bullets li,
.timeline-bullets li {
  font-size: 0.9rem;
  color: var(--text-mid);
  padding-left: 16px;
  position: relative;
  line-height: 1.65;
}
.card-bullets li::before {
  content: '·';
  position: absolute;
  left: 4px;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--color-navy);
}
.timeline-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  font-size: 0.82rem;
  color: var(--color-navy);
  top: 3px;
}
.card-bullets li strong,
.timeline-bullets li strong {
  color: var(--color-navy);
}

/* ============================================================
   경력 배지 그리드 (credential-grid)
   ============================================================ */
.credential-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-cream);
  border: 1px solid var(--bg-sage);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: var(--transition);
}
.credential-item.highlight-cred {
  background: var(--bg-white);
  border-color: var(--bg-yellow);
  border-width: 2px;
}
.cred-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.credential-item div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.credential-item strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-navy);
}
.credential-item span {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.55;
}
.credential-item em {
  font-style: normal;
  font-weight: 700;
  color: #5A4500;
  background: var(--bg-yellow);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.76rem;
  display: inline-block;
  margin-top: 3px;
}

/* ============================================================
   지도 출처 안내
   ============================================================ */
.map-source-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  background: var(--bg-white);
  border: 1px solid var(--bg-sage);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.65;
}
.source-icon {
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 1px;
}
.map-source-note strong {
  color: var(--text-mid);
  font-weight: 700;
}

/* ============================================================
   체크박스 / 라디오 그룹
   ============================================================ */
.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-white);
  border: 1px solid var(--bg-sage);
  border-radius: var(--radius-sm);
}
.checkbox-group label,
.radio-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dark);
  cursor: pointer;
  line-height: 1.5;
}
.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--color-navy);
  cursor: pointer;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}

/* ============================================================
   후보 사진 구분자 (candidate-divider)
   섹션 사이에 배치되는 후보 이미지 스트립
   ============================================================ */
.candidate-divider {
  position: relative;
  overflow: hidden;
  height: 300px;
  display: flex;
  align-items: center;
}
.divider-bg {
  position: absolute;
  inset: 0;
  /*
   * [구분자 배경 색상 변경 안내]
   * background 값을 수정하여 배경 그라데이션을 조절할 수 있습니다.
   * 현재: 크림(F4F1E0) → 세이지(DBDDBA) 그라데이션
   */
  background: linear-gradient(120deg, var(--bg-cream) 45%, var(--bg-sage) 100%);
  z-index: 0;
}

/* 텍스트 블록 — divider-right (사진이 오른쪽, 텍스트 왼쪽) */
.divider-right .divider-text {
  position: relative;
  z-index: 2;
  padding: 0 0 0 8%;
  max-width: 52%;
}
/* 텍스트 블록 — divider-left (사진이 왼쪽, 텍스트 오른쪽) */
.divider-left .divider-text {
  position: relative;
  z-index: 2;
  margin-left: auto;
  padding: 0 8% 0 0;
  max-width: 52%;
  text-align: right;
}

.divider-quote {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.8;
}
.divider-quote strong {
  font-weight: 700;
  color: var(--color-navy);
}

/* 후보 이미지
   ─────────────────────────────────────────────────────────
   [이미지 위치 안내]
   right / left 값으로 가로 위치를 조절하세요 (기본 4%).
   height로 이미지 크기를 조절하세요 (기본 110%).
   transform: scaleX(-1) 추가 시 좌우 반전됩니다.
   ───────────────────────────────────────────────────────── */
.divider-candidate-img {
  position: absolute;
  bottom: 0;
  height: 115%;
  width: auto;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.10));
}
.divider-right .divider-candidate-img {
  right: 4%;    /* ← 오른쪽 여백 조절 */
}
.divider-left .divider-candidate-img {
  left: 4%;     /* ← 왼쪽 여백 조절 */
}

/* 모바일: 사진 반투명 처리로 텍스트 가독성 확보 */
@media (max-width: 640px) {
  .candidate-divider { height: 220px; }
  .divider-quote { font-size: 0.95rem; }
  .divider-candidate-img { height: 100%; opacity: 0.3; }
  .divider-right .divider-text,
  .divider-left .divider-text {
    max-width: 100%;
    padding: 0 24px;
    text-align: center;
    margin: 0 auto;
  }
  .credential-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   18. 스크롤 진입 애니메이션
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   19. 반응형 (모바일 우선)
   ============================================================ */

/* 태블릿 (≤ 960px) */
@media (max-width: 960px) {
  .four-col  { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo-wrap { position: static; }
  .about-photo { max-height: 320px; object-position: top; }
  .map-layout { grid-template-columns: 1fr; }
  #map { height: 380px; }
  .map-panel { min-height: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .policies-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 모바일 (≤ 640px) */
@media (max-width: 640px) {
  :root {
    --section-v: var(--section-v-sm);
  }

  .pc-only { display: none; }

  /* 네비 햄버거 */
  .hamburger { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--bg-white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    border-bottom: 1px solid var(--bg-sage);
    box-shadow: var(--shadow-md);
    gap: 4px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
  }

  #site-header { position: sticky; }

  /* 그리드 */
  .four-col  { grid-template-columns: 1fr; }
  .two-col   { grid-template-columns: 1fr; }
  .policies-grid { grid-template-columns: 1fr; }
  .regional-grid { grid-template-columns: 1fr; }
  .form-row  { grid-template-columns: 1fr; }

  /* 지도 */
  #map { height: 300px; }
  .map-legend { flex-direction: column; gap: 6px; }

  /* 패널 */
  .panel-stats { grid-template-columns: 1fr; }
  .panel-stat.full-width { grid-column: span 1; }

  /* 모달 */
  .modal-box { padding: 28px 20px; }
  .modal-title { font-size: 1.1rem; }

  /* 푸터 */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-brand { grid-column: 1; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; }
  .footer-social { flex-direction: row; }

  /* 섹션 제목 */
  .section-title { font-size: 1.5rem; }

  /* contact form */
  .contact-form-wrap { padding: 20px 16px; border-radius: var(--radius-md); }

  /* participation buttons */
  .participation-buttons { flex-direction: column; align-items: center; }
  .participation-buttons .btn { width: 100%; max-width: 300px; }

  /* cta */
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 300px; }
}

/* 작은 모바일 (≤ 380px) */
@media (max-width: 380px) {
  .hero-title { font-size: 1.5rem; }
  .hero-eyebrow { font-size: 0.72rem; }
  .section-title { font-size: 1.35rem; }
}
