/* =============================================
   생생 정보통 - 공통 스타일 + 계절 테마
   계절은 script.js가 자동으로 감지해서
   <body>에 class="spring" / "summer" / "autumn" / "winter" 를 붙여줍니다.
   ============================================= */

/* ── 기본 리셋 ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  line-height: 1.8;
  min-height: 100vh;
  transition: background-color 0.8s ease, color 0.8s ease;
  /* 가이드 2부 반영: 프리미엄한 질감을 위한 미세 노이즈 텍스처 */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-attachment: fixed;
  background-blend-mode: overlay;
}

a {
  text-decoration: none;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
}

/* =============================================
   봄 테마 (3~5월) — 벚꽃 핑크 + 연두
   ============================================= */
body.spring {
  background-color: #fff8f9;
  color: #3d2b2e;
}

body.spring .site-header {
  background: linear-gradient(135deg, #ffd6e0, #c8f7c5);
}

body.spring .nav-link,
body.spring .logo {
  color: #a0466a;
}

body.spring .nav-link:hover {
  color: #d4688e;
}

body.spring .hero {
  background: linear-gradient(160deg, #ffe4ec 0%, #e8fce8 100%);
}

body.spring .hero-title {
  color: #8c2d4d;
}

body.spring .hero-sub {
  color: #a0566a;
}

body.spring .season-badge {
  background: #ffd6e7;
  color: #a0466a;
}

body.spring .card {
  background: #fff;
  border: 1.5px solid #ffd6e0;
  box-shadow: 0 4px 18px rgba(210, 100, 140, 0.08);
}

body.spring .card:hover {
  border-color: #f4a0c0;
  box-shadow: 0 12px 30px rgba(210, 100, 140, 0.18);
}

body.spring .card-tag {
  background: #ffe0ec;
  color: #b05070;
}

body.spring .card-title {
  color: #7a2040;
}

body.spring .btn-primary {
  background: linear-gradient(90deg, #f48fb1, #a5d6a7);
  color: #fff;
}

body.spring .btn-primary:hover {
  background: linear-gradient(90deg, #e879a0, #81c784);
}

body.spring .site-footer {
  background: #fce8f0;
  color: #a0566a;
}

body.spring .section-title::after {
  background: linear-gradient(90deg, #f48fb1, #a5d6a7);
}

body.spring .post-body a { color: #c0406a; }

/* =============================================
   여름 테마 (6~8월) — 민트 + 하늘색
   ============================================= */
body.summer {
  background-color: #f0fbff;
  color: #1a3340;
}

body.summer .site-header {
  background: linear-gradient(135deg, #b2ebf2, #80deea);
}

body.summer .nav-link,
body.summer .logo {
  color: #006064;
}

body.summer .nav-link:hover {
  color: #00838f;
}

body.summer .hero {
  background: linear-gradient(160deg, #e0f7fa 0%, #b2dfdb 100%);
}

body.summer .hero-title {
  color: #004d40;
}

body.summer .hero-sub {
  color: #00695c;
}

body.summer .season-badge {
  background: #b2ebf2;
  color: #006064;
}

body.summer .card {
  background: #fff;
  border: 1.5px solid #b2ebf2;
  box-shadow: 0 4px 18px rgba(0, 150, 180, 0.08);
}

body.summer .card:hover {
  border-color: #4dd0e1;
  box-shadow: 0 12px 30px rgba(0, 150, 180, 0.18);
}

body.summer .card-tag {
  background: #e0f7fa;
  color: #00838f;
}

body.summer .card-title {
  color: #004d40;
}

body.summer .btn-primary {
  background: linear-gradient(90deg, #4dd0e1, #80cbc4);
  color: #fff;
}

body.summer .btn-primary:hover {
  background: linear-gradient(90deg, #26c6da, #4db6ac);
}

body.summer .site-footer {
  background: #e0f7fa;
  color: #00695c;
}

body.summer .section-title::after {
  background: linear-gradient(90deg, #4dd0e1, #80cbc4);
}

body.summer .post-body a { color: #00838f; }

/* =============================================
   가을 테마 (9~11월) — 주황 + 갈색
   ============================================= */
body.autumn {
  background-color: #fff9f4;
  color: #3b2010;
}

body.autumn .site-header {
  background: linear-gradient(135deg, #ffccbc, #ffe0b2);
}

body.autumn .nav-link,
body.autumn .logo {
  color: #7c3900;
}

body.autumn .nav-link:hover {
  color: #bf360c;
}

body.autumn .hero {
  background: linear-gradient(160deg, #fff3e0 0%, #ffe0b2 100%);
}

body.autumn .hero-title {
  color: #6d2400;
}

body.autumn .hero-sub {
  color: #934900;
}

body.autumn .season-badge {
  background: #ffe0b2;
  color: #7c3900;
}

body.autumn .card {
  background: #fff;
  border: 1.5px solid #ffccbc;
  box-shadow: 0 4px 18px rgba(180, 80, 20, 0.08);
}

body.autumn .card:hover {
  border-color: #ff8a65;
  box-shadow: 0 12px 30px rgba(180, 80, 20, 0.18);
}

body.autumn .card-tag {
  background: #fff3e0;
  color: #bf360c;
}

body.autumn .card-title {
  color: #6d2400;
}

body.autumn .btn-primary {
  background: linear-gradient(90deg, #ff8a65, #ffca28);
  color: #fff;
}

body.autumn .btn-primary:hover {
  background: linear-gradient(90deg, #ff7043, #ffb300);
}

body.autumn .site-footer {
  background: #fbe9e7;
  color: #934900;
}

body.autumn .section-title::after {
  background: linear-gradient(90deg, #ff8a65, #ffca28);
}

body.autumn .post-body a { color: #bf360c; }

/* =============================================
   겨울 테마 (12~2월) — 아이보리 + 슬레이트 블루
   ============================================= */
body.winter {
  background-color: #f4f7fb;
  color: #1e2a38;
}

body.winter .site-header {
  background: linear-gradient(135deg, #cfd8dc, #b0bec5);
}

body.winter .nav-link,
body.winter .logo {
  color: #263238;
}

body.winter .nav-link:hover {
  color: #1565c0;
}

body.winter .hero {
  background: linear-gradient(160deg, #eceff1 0%, #cfd8dc 100%);
}

body.winter .hero-title {
  color: #102030;
}

body.winter .hero-sub {
  color: #37474f;
}

body.winter .season-badge {
  background: #e3f2fd;
  color: #1565c0;
}

body.winter .card {
  background: #fff;
  border: 1.5px solid #cfd8dc;
  box-shadow: 0 4px 18px rgba(30, 70, 120, 0.07);
}

body.winter .card:hover {
  border-color: #90caf9;
  box-shadow: 0 12px 30px rgba(30, 70, 120, 0.15);
}

body.winter .card-tag {
  background: #e3f2fd;
  color: #1565c0;
}

body.winter .card-title {
  color: #102030;
}

body.winter .btn-primary {
  background: linear-gradient(90deg, #90caf9, #80deea);
  color: #0d1b2a;
}

body.winter .btn-primary:hover {
  background: linear-gradient(90deg, #64b5f6, #4dd0e1);
}

body.winter .site-footer {
  background: #eceff1;
  color: #455a64;
}

body.winter .section-title::after {
  background: linear-gradient(90deg, #90caf9, #80deea);
}

body.winter .post-body a { color: #1565c0; }

/* =============================================
   공통 레이아웃 컴포넌트
   ============================================= */

/* 헤더 */
.top-ad-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0 0.5rem;
  width: 100%;
  background: transparent;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: background 0.8s ease;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.site-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
}

/* 시즌 뱃지 */
.season-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

/* 히어로 섹션 */
.hero {
  padding: 5rem 2rem 4rem;
  text-align: center;
  transition: background 0.8s ease;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* 파티클 캔버스 (계절 효과) */
#season-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

/* 메인 컨텐츠 래퍼 */
.content-wrapper {
  position: relative;
  z-index: 1;
}

/* 섹션 */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 4px;
  transition: background 0.8s ease;
}

/* 카드 그리드 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* 카드 */
.card {
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  /* 가이드 2부 반영: 깊이감 있는 쉐도우 */
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.15);
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  display: inline-block;
  width: fit-content;
  letter-spacing: 0.5px;
}

/* 카테고리별 태그 색상 (계절 스타일보다 우선) */
.card-tag[data-cat="증시"]       { background: #dcfce7 !important; color: #166534 !important; }
.card-tag[data-cat="경제"]       { background: #dbeafe !important; color: #1e40af !important; }
.card-tag[data-cat="긴급 경제"]  { background: #fee2e2 !important; color: #991b1b !important; }
.card-tag[data-cat="긴급 복지"]  { background: #fce7f3 !important; color: #9d174d !important; }
.card-tag[data-cat="청년정책"]   { background: #ede9fe !important; color: #5b21b6 !important; }
.card-tag[data-cat="생활정보"]   { background: #fef3c7 !important; color: #92400e !important; }
.card-tag[data-cat="건강"]       { background: #d1fae5 !important; color: #065f46 !important; }
.card-tag[data-cat="절약"]       { background: #fff7ed !important; color: #c2410c !important; }
.card-tag[data-cat="BTS"]        { background: #f3e8ff !important; color: #7c3aed !important; }

.card-title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
}

.card-excerpt {
  font-size: 0.9rem;
  opacity: 0.75;
  flex: 1;
}

.card-meta {
  font-size: 0.78rem;
  opacity: 0.55;
}

/* 버튼 */
.btn-primary {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  /* 가이드 2부 반영: 버튼 글로우 효과 */
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ── 글 상세 페이지 ── */
.post-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.15;
}

.post-header {
  opacity: 1;
}

.post-header-inner {
  padding-bottom: 1.5rem;
  border-bottom: 1.5px solid rgba(0,0,0,0.1);
}

.post-tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.post-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.post-meta {
  font-size: 0.85rem;
  opacity: 0.55;
}

.post-body {
  font-size: 1.05rem;
  line-height: 2;
}

.post-body h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 2.5rem 0 1rem;
}

.post-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.post-body p {
  margin-bottom: 1.4rem;
}

.post-body ul, .post-body ol {
  margin: 1rem 0 1.4rem 1.5rem;
}

.post-body li {
  margin-bottom: 0.4rem;
}

.post-body blockquote {
  border-left: 4px solid currentColor;
  padding: 0.8rem 1.2rem;
  margin: 1.5rem 0;
  opacity: 0.75;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

.post-body strong {
  font-weight: 800;
}

/* 글 목록 페이지 */
.posts-header {
  padding: 3rem 2rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* 검색바 */
.search-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.search-input {
  flex: 1;
  padding: 0.6rem 1rem;
  border-radius: 50px;
  border: 1.5px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}

.search-input:focus {
  border-color: rgba(0,0,0,0.4);
}

/* 푸터 */
.site-footer {
  text-align: center;
  padding: 3rem 2rem;
  font-size: 0.85rem;
  transition: background 0.8s ease;
  margin-top: 4rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* 포스트 본문 내 CTA */
.post-cta {
  margin: 3rem 0;
  padding: 2rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  text-align: center;
  backdrop-filter: blur(10px);
}

.post-cta h3 {
  margin-top: 0;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.post-cta p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: #3b82f6;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.ad-notice {
  display: block;
  margin-top: 1.2rem;
  font-size: 0.75rem;
  opacity: 0.5;
}

/* 액션 플랜 (위기 극복 과제) */
.action-plan {
  background: rgba(231, 76, 60, 0.05);
  border-left: 5px solid #e74c3c;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 4px 16px 16px 4px;
}

.action-plan h3 {
  margin-top: 0;
  color: #c0392b;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.action-plan ul {
  margin: 0;
  padding-left: 1.2rem;
}

.action-plan li {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.action-plan li strong {
  color: #c0392b;
}

/* 하이라이트 */
.highlight {
  background-color: rgba(255, 243, 205, 0.7);
  font-weight: 700;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

/* 이미지 박스 */
.image-box {
  margin: 2.5rem 0;
  text-align: center;
}

.image-placeholder {
  width: 100%;
  padding: 3rem 1.5rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed rgba(0, 0, 0, 0.1);
  color: #7f8c8d;
}

.prompt-text {
  font-size: 0.8rem;
  color: #3498db;
  margin-top: 1rem;
  font-style: italic;
  max-width: 80%;
  line-height: 1.4;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: inherit;
  opacity: 0.6;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

/* 뒤로가기 링크 */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 1;
}

/* 반응형 */
@media (max-width: 640px) {
  .top-ad-container {
    padding: 1rem 0 0;
  }
  .site-header {
    padding: 0 1rem;
  }
  .logo {
    font-size: 1.1rem;
  }
  .site-nav {
    gap: 1rem;
  }
  .hero {
    padding: 3rem 1.2rem 2.5rem;
  }
  .section {
    padding: 2.5rem 1.2rem;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .post-container {
    padding: 2rem 1.2rem 4rem;
  }
  }

  /* =============================================
   데이터 시각화 및 정보 카드 (추가)
   ============================================= */

  .red { color: #e74c3c; }
  .orange { color: #e67e22; }
  .blue { color: #3498db; }
  .green { color: #2ecc71; }
  .yellow { color: #f1c40f; }

  .bar-fill.red { background: #e74c3c; }
  .bar-fill.orange { background: #e67e22; }
  .bar-fill.blue { background: #3498db; }
  .bar-fill.green { background: #2ecc71; }
  .bar-fill.yellow { background: #f1c40f; }

  /* 인포그래픽 - 바 차트 */
  .infographic {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2rem 0;
  border: 1px solid rgba(0,0,0,0.05);
  backdrop-filter: blur(5px);
  }

  .infographic-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: rgba(0,0,0,0.6);
  margin-bottom: 1.5rem;
  text-align: center;
  }

  .bar-chart {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  }

  .bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 60px;
  align-items: center;
  gap: 1rem;
  }

  .bar-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-align: right;
  opacity: 0.7;
  }

  .bar-track {
  background: rgba(0,0,0,0.05);
  border-radius: 50px;
  height: 20px;
  overflow: hidden;
  }

  .bar-fill {
  height: 100%;
  border-radius: 50px;
  transition: width 1s ease-out;
  }

  .bar-val {
  font-size: 0.85rem;
  font-weight: 800;
  text-align: left;
  }

  /* 통계 그리드 */
  .stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  }

  .stat-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 1.2rem 0.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  }

  .stat-num {
  font-size: 1.5rem;
  font-weight: 900;
  }

  .stat-desc {
  font-size: 0.75rem;
  margin-top: 0.3rem;
  opacity: 0.6;
  font-weight: 600;
  }

  /* 영향 리스트 */
  .myimpact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  }

  .myimpact-item {
  display: flex;
  gap: 1.2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0,0,0,0.03);
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: transform 0.2s;
  }

  .myimpact-item:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.6);
  }

  .impact-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  }

  .impact-title {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  }

  .impact-detail {
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.7;
  }

  /* 요약 박스 */
  .summary-box {
  background: rgba(255, 243, 205, 0.4);
  border-left: 5px solid #ffc107;
  border-radius: 4px 12px 12px 4px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  }

  .sb-label {
  font-size: 0.8rem;
  font-weight: 900;
  color: #856404;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  }

  .summary-box ul {
  margin: 0;
  padding-left: 1.2rem;
  }

  /* 전망 박스 */
  .forecast-box {
  background: rgba(219, 238, 255, 0.4);
  border-left: 5px solid #2980b9;
  border-radius: 4px 12px 12px 4px;
  padding: 1.5rem;
  margin: 2rem 0;
  }

  .fb-label {
  font-size: 0.8rem;
  font-weight: 900;
  color: #1565c0;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  }

  /* 영향 카드 그리드 */
  .impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
  }

  .impact-card {
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0,0,0,0.03);
  text-align: center;
  }

  .impact-num {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  }

  .impact-desc {
  font-size: 0.9rem;
  opacity: 0.8;
  }

  @media (max-width: 500px) {
  .stat-row { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 80px 1fr 50px; }
  .impact-grid { grid-template-columns: 1fr; }
  }

/* 최상단 고정 광고 */
.fixed-top-ad {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: #fff;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 고정 사이드바 광고 (오른쪽) */
.fixed-side-ad {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 160px; /* 160x600용 너비 고정 */
}

/* 최상단 광고가 있을 때 컨텐츠가 가려지지 않도록 여백 추가 */
body {
  padding-top: 90px;
}

/* 화면 높이가 너무 낮을 경우 사이드바 광고 숨김 (겹침 방지) */
@media (max-height: 800px) {
  .fixed-side-ad {
    display: none;
  }
}

/* 모바일 및 작은 화면에서는 사이드바/상단 광고 처리 */
@media (max-width: 1300px) {
  .fixed-side-ad {
    display: none;
  }
}

@media (max-width: 768px) {
  .fixed-top-ad {
    position: static; /* 모바일에서는 고정 해제하여 컨텐츠 가림 방지 */
    height: auto;
    padding: 10px 0;
  }
  body {
    padding-top: 0;
  }
}

/* =============================================
   뉴스레터 홈 레이아웃 (index.html)
   ============================================= */

/* 마스트헤드 */
.newsletter-masthead {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  text-align: center;
}

.masthead-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.issue-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  opacity: 0.65;
  border: 1.5px solid currentColor;
  padding: 0.3rem 0.9rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.masthead-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 0.6rem;
  line-height: 1.1;
}

.masthead-tagline {
  font-size: 1.05rem;
  opacity: 0.75;
  margin-bottom: 2.2rem;
  line-height: 1.6;
}

/* 구독 바 */
.subscribe-bar {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50px;
  padding: 0.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.subscribe-bar input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.65rem 1.2rem;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  color: inherit;
  min-width: 0;
}

.subscribe-bar button {
  border: none;
  border-radius: 50px;
  padding: 0.65rem 1.6rem;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.subscribe-bar button:hover {
  transform: translateY(-1px);
}

.subscribe-note {
  font-size: 0.82rem;
  opacity: 0.55;
  margin-top: 0.9rem;
  font-weight: 600;
}

/* 콘텐츠 신뢰도 안내 배너 */
.trust-notice {
  max-width: 760px;
  margin: 0 auto 0.5rem;
  padding: 0.9rem 1.4rem;
  background: rgba(255, 152, 0, 0.09);
  border: 1px solid rgba(255, 152, 0, 0.3);
  border-radius: 10px;
}

.trust-notice p {
  font-size: 0.82rem;
  line-height: 1.7;
  opacity: 0.85;
}

.trust-notice a {
  font-weight: 700;
  text-decoration: underline;
}

/* 뉴스레터 섹션 */
.newsletter-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.ns-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 2.5px solid currentColor;
  padding-bottom: 0.7rem;
  margin-bottom: 1.8rem;
}

.ns-emoji {
  font-size: 1.4rem;
  line-height: 1;
}

.ns-title {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0;
}

/* 헤드라인 그리드 (2개) */
.headline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* 헤드라인 카드 (대표 글) */
.headline-card {
  display: block;
  padding: 2rem 2.2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.headline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.12);
}

.headline-title {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 900;
  line-height: 1.3;
  margin: 0.9rem 0 1rem;
  letter-spacing: -0.5px;
}

.headline-summary {
  font-size: 1.02rem;
  line-height: 1.75;
  opacity: 0.82;
  margin-bottom: 1.4rem;
}

.headline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.65;
  padding-top: 1rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.headline-link {
  font-weight: 800;
  font-size: 0.95rem;
  opacity: 1;
}

/* 증시 — 티커 스타일 강조 카드 */
.market-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.market-item {
  display: grid;
  grid-template-columns: 76px 1fr 28px;
  gap: 1.3rem;
  align-items: center;
  padding: 1.5rem 1.7rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: #e6e9f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.market-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #10b981, #34d399);
}

.market-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.55);
}

.market-item:first-child {
  background: linear-gradient(135deg, #0b1120 0%, #172554 50%, #1e3a8a 100%);
  border-color: rgba(250, 204, 21, 0.4);
  box-shadow: 0 14px 36px rgba(30, 58, 138, 0.35), inset 0 0 0 1px rgba(250, 204, 21, 0.08);
}

.market-item:first-child::before {
  background: linear-gradient(180deg, #facc15, #f59e0b);
}

.market-item:first-child .market-date {
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #0b1120;
}

.market-date {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  font-family: 'JetBrains Mono', 'SF Mono', 'Menlo', monospace;
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #0f172a;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.market-title {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 0.4rem;
  color: #f8fafc;
  letter-spacing: -0.3px;
}

.market-item:first-child .market-title {
  font-size: 1.18rem;
}

.market-sub {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.55;
  margin: 0;
}

.market-arrow {
  font-size: 1.5rem;
  font-weight: 900;
  color: #10b981;
  text-align: right;
  transition: transform 0.2s ease;
}

.market-item:first-child .market-arrow {
  color: #facc15;
}

.market-item:hover .market-arrow {
  transform: translateX(4px);
}

/* 깊이 보기 — 카드 그리드 */
.deep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.deep-grid .card {
  padding: 1.3rem 1.4rem;
}

.deep-grid .card-title {
  font-size: 1rem;
  line-height: 1.45;
}

.deep-grid .card-summary {
  font-size: 0.88rem;
  opacity: 0.78;
  line-height: 1.65;
  flex: 1;
}

.deep-grid .card-date {
  font-size: 0.78rem;
  opacity: 0.55;
  font-weight: 600;
  margin: 0;
}

.deep-grid .card-link {
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.4rem;
  color: inherit;
  opacity: 0.85;
}

/* 지난 이슈 — 아카이브 리스트 */
.archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-list li {
  margin: 0;
}

.archive-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0.4rem;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, padding 0.15s;
}

.archive-item:hover {
  background: rgba(255, 255, 255, 0.5);
  padding-left: 0.9rem;
}

.archive-date {
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

.archive-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

.archive-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  white-space: nowrap;
}

/* 아카이브 태그 색상 (카드와 동일) */
.archive-tag[data-cat="증시"]       { background: #dcfce7; color: #166534; }
.archive-tag[data-cat="경제"]       { background: #dbeafe; color: #1e40af; }
.archive-tag[data-cat="긴급 경제"]  { background: #fee2e2; color: #991b1b; }
.archive-tag[data-cat="긴급 복지"]  { background: #fce7f3; color: #9d174d; }
.archive-tag[data-cat="청년정책"]   { background: #ede9fe; color: #5b21b6; }
.archive-tag[data-cat="생활정보"]   { background: #fef3c7; color: #92400e; }
.archive-tag[data-cat="건강"]       { background: #d1fae5; color: #065f46; }
.archive-tag[data-cat="교육"]       { background: #e0e7ff; color: #3730a3; }
.archive-tag[data-cat="사회"]       { background: #f3f4f6; color: #374151; }
.archive-tag[data-cat="BTS"]        { background: #f3e8ff; color: #7c3aed; }

.archive-more {
  text-align: center;
  margin-top: 2rem;
}

/* 계절별 강조선 색상 */
body.spring .ns-header { border-bottom-color: #f48fb1; }
body.summer .ns-header { border-bottom-color: #4dd0e1; }
body.autumn .ns-header { border-bottom-color: #ff8a65; }
body.winter .ns-header { border-bottom-color: #90caf9; }

body.spring .issue-label { color: #b05070; }
body.summer .issue-label { color: #00838f; }
body.autumn .issue-label { color: #bf360c; }
body.winter .issue-label { color: #1565c0; }

/* 계절별 구독 버튼 */
body.spring .subscribe-bar button {
  background: linear-gradient(90deg, #f48fb1, #a5d6a7);
  color: #fff;
}
body.summer .subscribe-bar button {
  background: linear-gradient(90deg, #4dd0e1, #80cbc4);
  color: #fff;
}
body.autumn .subscribe-bar button {
  background: linear-gradient(90deg, #ff8a65, #ffca28);
  color: #fff;
}
body.winter .subscribe-bar button {
  background: linear-gradient(90deg, #90caf9, #80deea);
  color: #0d1b2a;
}

/* 계절별 헤드라인 강조 */
body.spring .headline-title { color: #7a2040; }
body.summer .headline-title { color: #004d40; }
body.autumn .headline-title { color: #6d2400; }
body.winter .headline-title { color: #102030; }

/* 모바일 대응 */
@media (max-width: 640px) {
  .newsletter-masthead {
    padding: 2.5rem 1.2rem 2rem;
  }
  .newsletter-section {
    padding: 2rem 1.2rem;
  }
  .headline-card {
    padding: 1.5rem 1.4rem;
  }
  .market-item {
    grid-template-columns: 62px 1fr 22px;
    gap: 0.9rem;
    padding: 1.2rem 1.1rem;
    border-radius: 14px;
  }
  .market-title {
    font-size: 0.98rem;
  }
  .market-item:first-child .market-title {
    font-size: 1.05rem;
  }
  .market-sub {
    font-size: 0.82rem;
  }
  .market-date {
    font-size: 0.82rem;
    padding: 0.35rem 0.4rem;
  }
  .archive-item {
    grid-template-columns: 50px 1fr;
    grid-template-rows: auto auto;
    gap: 0.2rem 0.8rem;
    padding: 0.9rem 0.4rem;
  }
  .archive-date {
    grid-row: 1 / 3;
    align-self: center;
  }
  .archive-tag {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin-top: 0.3rem;
  }
  .subscribe-bar {
    flex-direction: column;
    border-radius: 16px;
    padding: 0.5rem;
    gap: 0.4rem;
  }
  .subscribe-bar input {
    text-align: center;
  }
  .subscribe-bar button {
    width: 100%;
    padding: 0.75rem;
  }
}