/* case.direct-car.co.kr - 오늘의 과실비율 쟁점 (SEO & GEO 최적화) */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-light: #eff6ff;
  --secondary: #059669;
  --secondary-light: #ecfdf5;
  --amber: #d97706;
  --amber-light: #fffbeb;
  --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);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "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: 76px;
}

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

/* 헤더 */
.site-nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-color);
}

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

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

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

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

.nav-logo-box {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.nav-brand-title {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.4px;
  color: var(--text-main);
}

.nav-brand-sub {
  display: none;
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 999px;
}

@media (min-width: 640px) {
  .nav-brand-sub {
    display: inline-block;
  }
}

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

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

.nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14.5px;
  transition: color 0.15s ease;
}

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

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 10px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-header-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px;
  color: var(--text-main);
  cursor: pointer;
}

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

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px 18px;
  background: #fff;
  border-top: 1px solid var(--border-light);
}

.mobile-menu.open {
  display: flex;
}

.mobile-nav-link {
  padding: 8px 4px;
  font-weight: 600;
  color: var(--text-muted);
}

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

/* 허브 히어로 */
.hub-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #2563eb 100%);
  color: #fff;
  padding: 46px 16px 42px;
}

.hub-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.hub-hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 14px;
}

.hub-hero-title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.hub-hero-desc {
  max-width: 720px;
  margin: 0 auto 24px;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.88);
}

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

.hub-search-input {
  width: 100%;
  padding: 14px 44px 14px 18px;
  border-radius: 14px;
  border: none;
  font-size: 15px;
  font-family: inherit;
  box-shadow: var(--shadow-lg);
  outline: none;
}

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

/* 오늘의 쟁점 스포트라이트 */
.featured-wrap {
  max-width: 1120px;
  margin: -22px auto 20px;
  padding: 0 16px;
}

.featured-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

.featured-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.featured-pill {
  background: #fef3c7;
  color: #92400e;
  font-weight: 800;
  font-size: 12.5px;
  padding: 4px 12px;
  border-radius: 999px;
}

.featured-title {
  font-size: clamp(20px, 2.5vw, 25px);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}

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

.featured-summary {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 18px;
}

/* 과실비율 바 */
.ratio-scoreboard {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 18px;
}

.ratio-labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 14.5px;
}

.ratio-a {
  color: #1d4ed8;
}

.ratio-b {
  color: #b91c1c;
}

.ratio-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
}

.ratio-fill-a {
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.ratio-fill-b {
  background: linear-gradient(90deg, #ef4444, #b91c1c);
}

/* 카테고리 탭 */
.category-nav-wrapper {
  background: #fff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-color);
}

.category-nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.cat-btn {
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

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

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

/* 메인 아카이브 그리드 */
.hub-main {
  max-width: 1120px;
  margin: 28px auto 48px;
  padding: 0 16px;
}

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

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

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

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

.case-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.case-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.badge-ratio {
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
}

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

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

.card-title {
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 8px;
}

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

.card-summary {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

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

/* 상세 아티클 */
.article-container {
  max-width: 880px;
  margin: 28px auto 52px;
  padding: 0 16px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

.article-header {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

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

.article-title {
  font-size: clamp(22px, 3vw, 31px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}

.article-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.article-body {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}

.article-body h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}

.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 20px 0 8px;
}

.article-body p {
  margin-bottom: 14px;
  color: #1e293b;
}

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

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

.geo-summary-box {
  background: var(--primary-light);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 22px;
}

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

.geo-summary-desc {
  margin-bottom: 0 !important;
  font-weight: 500;
}

/* 구조화 3요소 표 (핵심 상황 · 과실 비율 · 보험사 대응 팁) */
.geo-table-wrapper {
  overflow-x: auto;
  margin: 16px 0 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

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

.geo-table-wrapper th {
  background: #0f172a;
  color: #fff;
  text-align: left;
  padding: 12px 14px;
  font-weight: 700;
}

.geo-table-wrapper td {
  padding: 12px 14px;
  border-top: 1px solid var(--border-color);
  vertical-align: top;
  background: #fff;
}

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

.notice-box {
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 20px 0;
}

.notice-box.tip {
  background: var(--secondary-light);
  border: 1px solid #a7f3d0;
}

.notice-box.warning {
  background: var(--amber-light);
  border: 1px solid #fde68a;
}

.notice-title {
  font-weight: 800;
  margin-bottom: 6px;
}

.source-callout {
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 18px;
}

.source-callout a {
  color: var(--primary);
  text-decoration: underline;
}

/* FAQ */
.geo-faq-section {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border-color);
}

.geo-faq-title {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 14px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #f8fafc;
}

.faq-question {
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-main);
}

.faq-answer {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* CTA 배너 */
.intext-cta-banner,
.cta-banner-box {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 22px;
  margin: 26px 0;
  text-align: center;
}

.intext-cta-banner h4,
.cta-banner-box h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}

.intext-cta-banner p,
.cta-banner-box p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 14.5px;
  margin-bottom: 14px !important;
}

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

.btn-cta-large,
.btn-cta-quote {
  display: inline-block;
  background: #fbbf24;
  color: #0f172a;
  font-weight: 800;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14.5px;
}

.btn-cta-sub {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14.5px;
}

/* 심의 고지 */
.compliance-box {
  margin-top: 26px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.compliance-box p {
  margin-bottom: 4px !important;
  color: var(--text-muted) !important;
}

/* 푸터 */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 34px 16px;
  font-size: 13px;
}

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

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 14px;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: #94a3b8;
}

/* 모바일 하단 고정 CTA */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border-color);
  padding: 10px 16px;
  z-index: 40;
  display: flex;
  justify-content: center;
}

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

.mobile-quote-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  padding: 12px;
  border-radius: 10px;
  font-size: 14.5px;
}

/* Google AdSense Slots */
.ad-slot-wrap {
  margin: 22px auto;
  padding: 6px 0;
}

.ad-slot-wrap:has(ins[data-ad-status="unfilled"]) {
  display: none;
}

ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}

.ad-slot {
  min-height: 98px;
  width: 100%;
  border-radius: var(--radius-md);
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .ad-slot {
    min-height: 104px;
  }
}

.ad-slot-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 2px;
}

/* 제휴 자동차보험료 확인 이미지 배너 */
.hub-mid-banners {
  max-width: 1120px;
  margin: 20px auto;
  padding: 0 16px;
}

.promo-banner-wrap {
  margin: 22px 0;
  width: 100%;
}

.promo-banner-link {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-banner-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.promo-banner-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
