/* car-direct.kr 자동차보험 정보마당 칼럼 스타일시트 (SEO & GEO 최적화) */
:root {
  --primary: #1a56db;
  --primary-hover: #1e429f;
  --primary-light: #ebf5ff;
  --secondary: #0e9f6e;
  --secondary-light: #f3faf7;
  --accent: #e02424;
  --accent-light: #fdf2f2;
  --text-main: #111827;
  --text-muted: #4b5563;
  --text-light: #9ca3af;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* 모바일 하단 플로팅 바 공간 */
}

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

/* 상단 고정 헤더 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

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

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

.brand-badge {
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: -0.3px;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  color: #1a365d;
  letter-spacing: -0.5px;
}

.brand-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  padding-left: 6px;
  border-left: 1px solid var(--border-color);
}

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

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

.btn-home:hover {
  background-color: var(--border-light);
  color: var(--primary);
}

.btn-cta-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #1a56db 0%, #1e429f 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(26, 86, 219, 0.3);
  transition: all 0.2s ease;
}

.btn-cta-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(26, 86, 219, 0.4);
}

/* 허브 페이지 Hero 영역 */
.hub-hero {
  background: linear-gradient(135deg, #0f2c59 0%, #1a56db 100%);
  color: #ffffff;
  padding: 48px 20px 40px;
  text-align: center;
}

.hub-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hub-hero-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  color: #93c5fd;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.hub-hero-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hub-hero-desc {
  font-size: 16px;
  color: #bfdbfe;
  line-height: 1.6;
  margin-bottom: 24px;
}

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

.hub-search-input {
  width: 100%;
  padding: 14px 48px 14px 20px;
  font-size: 15px;
  border: none;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  outline: none;
  font-family: inherit;
}

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

/* 카테고리 탭 네비게이션 */
.category-nav-wrapper {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 57px;
  z-index: 90;
}

.category-nav {
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

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

.cat-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.cat-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

/* 허브 콘텐츠 컨테이너 */
.hub-main {
  max-width: 1140px;
  margin: 36px auto;
  padding: 0 20px;
}

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

.section-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-count {
  font-size: 14px;
  color: var(--text-muted);
}

/* 포스트 카드 그리드 */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

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

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

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

.badge-cat {
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-tag {
  background-color: #f3f4f6;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

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

.card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 10px;
  color: var(--text-main);
  letter-spacing: -0.4px;
}

.card-title a:hover {
  color: var(--primary);
}

.card-summary {
  font-size: 14px;
  color: var(--text-muted);
  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 {
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

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

/* 빵부스러기 (Breadcrumb) */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

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

/* 글 헤더 */
.article-header {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

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

.article-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  letter-spacing: -0.6px;
  margin-bottom: 16px;
}

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

/* 아티클 본문 영역 */
.article-body {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  font-size: 16px;
  line-height: 1.85;
  color: #334155;
}

.article-body h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f2c59;
  letter-spacing: -0.5px;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}

.article-body h2:first-of-type {
  margin-top: 24px;
}

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

.article-body p {
  margin-bottom: 18px;
  word-break: keep-all;
}

.article-body ul, .article-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

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

/* GEO 특화 3줄 Direct Answer 요약 박스 */
.geo-summary-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #e0effe 100%);
  border: 1px solid #bfdbfe;
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(26, 86, 219, 0.08);
}

.geo-summary-title {
  font-size: 15px;
  font-weight: 800;
  color: #1e429f;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.geo-summary-desc {
  font-size: 15px;
  color: #1e3a8a;
  line-height: 1.7;
  margin-bottom: 0 !important;
  font-weight: 500;
}

/* GEO 비교표 래퍼 */
.geo-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

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

.geo-table-wrapper th {
  background-color: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.geo-table-wrapper td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: #334155;
}

.geo-table-wrapper tr:last-child td {
  border-bottom: none;
}

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

/* 주의사항/팁 박스 */
.notice-box {
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.7;
}

.notice-box.tip {
  background-color: var(--secondary-light);
  border: 1px solid #bbf7d0;
  border-left: 4px solid var(--secondary);
  color: #065f46;
}

.notice-box.warning {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #d97706;
  color: #92400e;
}

.notice-title {
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 인텍스트 비교견적 추천 배너 (본문 중간) */
.intext-cta-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 36px 0;
  text-align: center;
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.2);
}

.intext-cta-banner h4 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
}

.intext-cta-banner p {
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.intext-cta-banner .btn-cta-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #facc15;
  color: #713f12;
  font-size: 16px;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4);
  transition: all 0.2s;
}

.intext-cta-banner .btn-cta-large:hover {
  background: #fde047;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(250, 204, 21, 0.5);
}

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

.geo-faq-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f2c59;
  margin-bottom: 20px;
  letter-spacing: -0.4px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  overflow: hidden;
  transition: all 0.2s;
}

.faq-item:hover {
  border-color: #93c5fd;
}

.faq-question {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f8fafc;
}

.faq-question::after {
  content: "＋";
  font-size: 16px;
  color: var(--primary);
  font-weight: 800;
}

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

.faq-answer {
  padding: 16px 20px;
  font-size: 14px;
  color: #334155;
  line-height: 1.7;
  border-top: 1px solid var(--border-light);
  display: none;
  background-color: #ffffff;
}

.faq-item.active .faq-answer {
  display: block;
}

/* 하단 전환 CTA 배너 */
.cta-banner-box {
  background: linear-gradient(135deg, #0f2c59 0%, #1e429f 100%);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  margin-top: 40px;
  text-align: center;
  color: #ffffff;
}

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

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

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

.btn-cta-quote {
  background: #facc15;
  color: #713f12;
  font-size: 16px;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4);
  transition: all 0.2s;
}

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

.btn-cta-sub {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 30px;
  transition: all 0.2s;
}

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

/* 법적 고지 박스 (손해보험 광고 가이드라인) */
.compliance-box {
  background-color: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 30px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
}

.compliance-box p {
  margin-bottom: 6px;
}

.compliance-box p:last-child {
  margin-bottom: 0;
}

/* 푸터 */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 40px 20px 30px;
  font-size: 13px;
  line-height: 1.7;
  margin-top: 60px;
}

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

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

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

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

/* 모바일 하단 플로팅 바로가기 바 */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 10px 16px;
  z-index: 999;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}

.mobile-quote-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #1a56db 0%, #1e429f 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  padding: 12px;
  border-radius: 28px;
  box-shadow: 0 4px 10px rgba(26, 86, 219, 0.35);
  animation: pulse-subtle 2.5s infinite;
}

@keyframes pulse-subtle {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}

@media (max-width: 640px) {
  .hub-hero-title {
    font-size: 24px;
  }
  .article-title {
    font-size: 22px;
  }
  .article-header {
    padding: 20px;
  }
  .article-body {
    padding: 24px 18px;
  }
  .header-actions .btn-cta-header {
    display: none;
  }
}
