/* ==========================================================================
   새한신용정보 채권회수 정보마당 & 전문 칼럼 스타일시트 (SEO & GEO 최적화)
   ========================================================================== */

:root {
  --primary: #1e3a8a;
  --primary-dark: #0f172a;
  --primary-light: #3b82f6;
  --accent: #2563eb;
  --accent-orange: #ea580c;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.75;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

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

/* ==========================================================================
   헤더 (Header & Nav)
   ========================================================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-badge {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary-dark);
}

.brand-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 6px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-home {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.btn-home:hover {
  color: var(--primary);
  background: #eff6ff;
}

.btn-call-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-call-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* ==========================================================================
   히어로 배너 (Hero Section)
   ========================================================================== */
.hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 55px 20px 45px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.35;
}

.hero-desc {
  font-size: 16px;
  color: #cbd5e1;
  max-width: 650px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.hero-search-box {
  max-width: 540px;
  margin: 0 auto;
  position: relative;
}

.hero-search-input {
  width: 100%;
  padding: 15px 50px 15px 20px;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  color: var(--text-main);
  outline: none;
  box-shadow: var(--shadow-lg);
  transition: all 0.2s;
}

.hero-search-input:focus {
  background: #ffffff;
  border-color: var(--primary-light);
}

.hero-search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

/* ==========================================================================
   카테고리 탭 (Category Navigation)
   ========================================================================== */
.category-bar-wrapper {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 20px;
  position: sticky;
  top: 61px;
  z-index: 900;
}

.category-bar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  padding: 8px 16px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.cat-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ==========================================================================
   메인 콘텐츠 레이아웃 (Main Layout)
   ========================================================================== */
.main-layout {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 26px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-dark);
}

.post-count-badge {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   아티클 카드 그리드 (Article Card Grid)
   ========================================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 26px;
}

.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.badge-cat {
  background: #dbeafe;
  color: #1e40af;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.badge-region {
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.card-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--primary-dark);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-summary {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  font-size: 13px;
  color: var(--primary-light);
  font-weight: 700;
}

.card-footer .arrow {
  transition: transform 0.2s;
}

.post-card:hover .card-footer .arrow {
  transform: translateX(4px);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
  grid-column: 1 / -1;
}

.empty-state h3 {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ==========================================================================
   개별 아티클 페이지 스타일 (Single Article / SEO & GEO)
   ========================================================================== */
.article-container {
  max-width: 860px;
  margin: 30px auto 80px;
  padding: 0 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.article-header {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.article-meta-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.article-meta-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  flex-wrap: wrap;
}

.article-meta-info span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* GEO 특화: AI 검색 엔진이 가장 먼저 인용하는 Direct Answer 요약 박스 */
.geo-summary-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border: 2px solid #38bdf8;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 35px;
  box-shadow: var(--shadow-sm);
}

.geo-summary-title {
  font-size: 16px;
  font-weight: 800;
  color: #0369a1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.geo-summary-desc {
  font-size: 15px;
  color: #0f172a;
  line-height: 1.7;
  font-weight: 500;
}

/* 본문 콘텐츠 스타일 */
.article-body {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  font-size: 16px;
  color: #334155;
  line-height: 1.85;
}

.article-body h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 36px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 28px 0 12px;
}

.article-body p {
  margin-bottom: 18px;
}

.article-body ul, .article-body ol {
  margin: 16px 0 24px 24px;
}

.article-body li {
  margin-bottom: 8px;
}

/* GEO 특화: 정보 비교표 및 체크리스트 */
.geo-table-wrapper {
  overflow-x: auto;
  margin: 25px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.geo-table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.geo-table-wrapper th {
  background: #f1f5f9;
  color: var(--primary-dark);
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid #cbd5e1;
}

.geo-table-wrapper td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
}

.geo-table-wrapper tr:nth-child(even) {
  background: #f8fafc;
}

/* 본문 내 강조 안내 박스 */
.notice-box {
  background: #f8fafc;
  border-left: 4px solid var(--primary-light);
  padding: 18px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 25px 0;
}

.notice-box.warning {
  background: #fffbeb;
  border-left-color: var(--accent-orange);
}

.notice-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

/* GEO 특화: FAQ 아코디언 섹션 */
.geo-faq-section {
  margin-top: 40px;
  border-top: 2px dashed var(--border-color);
  padding-top: 30px;
}

.geo-faq-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-item {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 15px;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
}

.faq-item.active .faq-question::after {
  content: "-";
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
}

/* ==========================================================================
   전환 최적화: CTA 배너 (Call To Action - 1666-5970)
   ========================================================================== */
.cta-banner-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  margin: 40px 0 20px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-banner-box h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #ffffff;
}

.cta-banner-box p {
  color: #cbd5e1;
  font-size: 15px;
  margin-bottom: 24px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ef4444;
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
  transition: transform 0.2s, background 0.2s;
}

.btn-cta-phone:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

.btn-cta-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 9999px;
  transition: all 0.2s;
}

.btn-cta-main:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   푸터 (Footer)
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 20px 80px;
  font-size: 13px;
  line-height: 1.8;
  border-top: 1px solid #1e293b;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  font-size: 16px;
  font-weight: 800;
  color: #f1f5f9;
}

.footer-phone {
  font-size: 18px;
  font-weight: 800;
  color: #38bdf8;
}

.footer-legal {
  color: #64748b;
  font-size: 12px;
  margin-top: 12px;
}

/* ==========================================================================
   모바일 하단 고정 전화 바 (Mobile Sticky Bottom Bar)
   ========================================================================== */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 10px 16px;
  z-index: 9999;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.mobile-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
  text-align: center;
  width: 100%;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 24px;
  }
  .article-title {
    font-size: 22px;
  }
  .article-header {
    padding: 24px 20px;
  }
  .article-body {
    padding: 26px 20px;
  }
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .mobile-sticky-bar {
    display: block;
  }
  body {
    padding-bottom: 60px;
  }
}
