/* direct-car.co.kr 다이렉트자동차보험파트너 칼럼 스타일시트 (SEO & GEO 최적화) */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-light: #eff6ff;
  --secondary: #059669;
  --secondary-light: #ecfdf5;
  --accent: #dc2626;
  --accent-light: #fef2f2;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --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 20px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --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-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #f1f5f9;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

@media (min-width: 640px) {
  .nav-row {
    height: 80px;
  }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.nav-logo-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nav-brand-title {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
  color: #0f172a;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}

@media (min-width: 640px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  color: #475569;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}

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

.nav-link.active {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 4px;
}

.btn-header-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: #475569;
  padding: 8px;
  cursor: pointer;
}

@media (min-width: 640px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  padding: 12px 16px;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: block;
  padding: 10px 0;
  color: #475569;
  font-weight: 500;
  font-size: 16px;
  border-bottom: 1px solid #f8fafc;
}

.mobile-nav-link.active {
  color: var(--primary);
  font-weight: 700;
}

/* 허브 히어로 섹션 */
.hub-hero {
  background: linear-gradient(135deg, #0b3f88 0%, #1e40af 50%, #1d4ed8 100%);
  color: #ffffff;
  padding: 48px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hub-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hub-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hub-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #dbeafe;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hub-hero-title {
  font-size: 26px;
  line-height: 1.35;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

@media (min-width: 640px) {
  .hub-hero-title {
    font-size: 36px;
  }
}

.hub-hero-desc {
  font-size: 15px;
  color: #e0e7ff;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 28px;
  font-weight: 300;
}

@media (min-width: 640px) {
  .hub-hero-desc {
    font-size: 17px;
  }
}

/* 검색창 */
.hub-search-box {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.hub-search-input {
  width: 100%;
  padding: 16px 54px 16px 22px;
  font-size: 15px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  outline: none;
  transition: all 0.2s;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hub-search-input:focus {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.hub-search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
}

/* 카테고리 탭 네비게이션 */
.category-nav-wrapper {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 64px;
  z-index: 40;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

@media (min-width: 640px) {
  .category-nav-wrapper {
    top: 80px;
  }
}

.category-nav {
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.cat-btn {
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.cat-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* 허브 메인 포스트 목록 */
.hub-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 36px 16px 60px;
}

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

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

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

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 포스트 카드 */
.post-card {
  background: 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: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

.badge-tag {
  background-color: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
}

.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: #0f172a;
}

.card-title a {
  transition: color 0.2s;
}

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

.card-summary {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  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;
  display: flex;
  justify-content: flex-end;
}

.card-footer a {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-footer a:hover .arrow {
  transform: translateX(3px);
}

.arrow {
  transition: transform 0.2s;
}

/* ====================================================
   개별 아티클 페이지 스타일 (SEO & GEO 최적화 상세 본문)
==================================================== */
.article-container {
  max-width: 860px;
  margin: 32px auto 60px;
  padding: 0 20px;
}

/* 브레드크럼 */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

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

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

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

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

@media (min-width: 640px) {
  .article-title {
    font-size: 32px;
  }
}

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

/* 본문 영역 */
.article-body {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px 48px;
  box-shadow: var(--shadow-sm);
  font-size: 16px;
  line-height: 1.85;
  color: #1e293b;
}

@media (min-width: 640px) {
  .article-body {
    padding: 48px 44px 60px;
  }
}

.article-body h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
  letter-spacing: -0.4px;
}

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

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

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

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

/* GEO 특화: 3줄 Direct Answer 핵심 요약 박스 */
.geo-summary-box {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 2px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin: 0 0 32px;
  box-shadow: var(--shadow-sm);
}

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

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

/* GEO 특화: 구조화된 비교표 */
.geo-table-wrapper {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

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

.geo-table-wrapper th {
  background-color: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 2px solid #cbd5e1;
  white-space: nowrap;
}

.geo-table-wrapper td {
  padding: 13px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

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

.geo-table-wrapper tr:hover {
  background-color: #f1f5f9;
}

/* 전문가 실전 팁 / 주의사항 박스 */
.notice-box {
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 24px 0;
}

.notice-box.tip {
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary);
}

.notice-box.warning {
  background-color: var(--accent-light);
  border-left: 4px solid var(--accent);
}

.notice-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.notice-box.tip .notice-title {
  color: #1d4ed8;
}

.notice-box.warning .notice-title {
  color: var(--accent);
}

.notice-box p {
  margin-bottom: 0 !important;
  font-size: 14px;
  line-height: 1.65;
}

/* 본문 내 최저가 비교견적 CTA 배너 */
.intext-cta-banner {
  background: linear-gradient(135deg, #0b3f88 0%, #1e40af 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin: 36px 0;
  text-align: center;
  box-shadow: 0 10px 25px rgba(11, 63, 136, 0.25);
}

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

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

.btn-cta-large {
  display: inline-block;
  background: #ffffff;
  color: #0b3f88 !important;
  font-size: 16px;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 9999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta-large:hover {
  transform: scale(1.03);
  background: #f8fafc;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* GEO 특화: FAQ 아코디언 */
.geo-faq-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--border-light);
}

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

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

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

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

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

.faq-question::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: #64748b;
  transition: transform 0.2s;
}

.faq-item.active .faq-question::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-answer {
  padding: 18px 20px;
  font-size: 14px;
  color: #334155;
  line-height: 1.7;
  border-top: 1px solid #f1f5f9;
  display: none;
}

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

/* 본문 하단 전환 CTA 배너 */
.cta-banner-box {
  margin-top: 48px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  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 {
  font-size: 15px;
  color: #dbeafe;
  margin-bottom: 24px;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.btn-cta-quote {
  background: #ffffff;
  color: #1e40af !important;
  font-size: 16px;
  font-weight: 800;
  padding: 14px 30px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}

.btn-cta-quote:hover {
  transform: scale(1.03);
}

.btn-cta-sub {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background 0.2s;
}

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

/* 법적 준수사항 및 광고심의 고지 */
.compliance-box {
  margin-top: 36px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.65;
}

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

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

/* 사이트 푸터 */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 48px 20px 32px;
  font-size: 13px;
  line-height: 1.7;
}

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

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #1e293b;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

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

.footer-insurers {
  font-size: 13px;
  color: #cbd5e1;
}

.footer-legal-notices {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 24px;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 12px;
  color: #64748b;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* 모바일 하단 고정 최저가 바 */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  z-index: 99;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
}

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

.mobile-quote-btn {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  padding: 12px 20px;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
