/* 공통 변수 및 기본 스타일 */
:root {
  --navy: #0a2540;
  --navy-light: #1e3a5f;
  --blue: #2b6cb0;
  --blue-accent: #3182ce;
  --coral: #ff6b6b;
  --gold: #f6ad55;
  --cream: #fdfbf7;
  --warm-white: #faf8f3;
  --soft-gray: #f4f1ea;
  --text-dark: #1a202c;
  --text-mid: #4a5568;
  --text-light: #718096;
  --border: #e8e3d8;
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 16px 48px rgba(10, 37, 64, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 900;
}

.nav-menu {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-menu > li > a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
  position: relative;
}

.nav-menu > li > a:hover { color: var(--blue); }

.nav-cta {
  background: var(--navy);
  color: white !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
}

.nav-cta:hover { background: var(--blue) !important; }

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: white;
  min-width: 240px;
  padding: 12px 0;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
  list-style: none;
  margin-top: 12px;
}

.dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: white;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown li { width: 100%; }

.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-mid) !important;
  white-space: nowrap;
  text-decoration: none;
}

.dropdown a:hover {
  background: var(--warm-white);
  color: var(--blue) !important;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: 0.3s;
}

/* Page Hero */
.page-hero {
  padding: 140px 32px 70px;
  background: linear-gradient(180deg, var(--warm-white) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

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

.breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
}

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

.page-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.page-hero h1 {
  font-family: 'Nanum Myeongjo', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.page-hero h1 strong { color: var(--blue); }

.page-desc {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
}

/* Article */
.article {
  padding: 70px 32px 80px;
}

.article-container {
  max-width: 820px;
  margin: 0 auto;
}

/* Table of Contents */
.toc {
  background: white;
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.toc h4 {
  font-family: 'Nanum Myeongjo', serif;
  color: var(--navy);
  font-size: 16px;
  margin-bottom: 14px;
}

.toc ol {
  padding-left: 20px;
}

.toc li {
  padding: 5px 0;
  color: var(--text-mid);
  font-size: 14px;
}

.toc a {
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.toc a:hover { color: var(--blue); }

/* Article Body */
.article-body h2 {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin: 48px 0 20px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--navy);
  display: inline-block;
}

.article-body h2:first-child { margin-top: 0; }

.article-body p {
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 18px;
}

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

.article-body li {
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 8px;
}

.article-body strong { color: var(--navy); font-weight: 700; }

/* Info Box */
.info-box {
  background: linear-gradient(135deg, #fff8ec 0%, #fef3d7 100%);
  border-left: 4px solid var(--gold);
  padding: 22px 26px;
  border-radius: 10px;
  margin: 26px 0;
}

.info-box strong {
  display: block;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 8px;
}

.info-box p {
  margin: 0;
  font-size: 15px;
  color: var(--text-mid);
}

.warn-box {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-left: 4px solid var(--coral);
  padding: 22px 26px;
  border-radius: 10px;
  margin: 26px 0;
}

.warn-box strong { display: block; margin-bottom: 8px; color: var(--navy); }
.warn-box p { margin: 0; color: var(--text-mid); }

/* Check Grid */
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 26px 0;
}

.check-card {
  background: white;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

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

.check-num {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 10px;
}

.check-card h4 {
  font-family: 'Nanum Myeongjo', serif;
  color: var(--navy);
  font-size: 17px;
  margin-bottom: 8px;
}

.check-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  margin: 0;
}

/* Compare Table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: 14px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare-table thead {
  background: var(--navy);
  color: white;
}

.compare-table th {
  padding: 16px 14px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}

.compare-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  background: white;
  color: var(--text-mid);
}

.compare-table td:first-child {
  font-weight: 600;
  color: var(--navy);
  background: var(--warm-white);
}

/* Feature List */
.feature-list {
  list-style: none !important;
  padding: 0 !important;
}

.feature-list li {
  padding: 14px 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px !important;
  position: relative;
  padding-left: 44px !important;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* CTA Block */
.cta-block {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 40px 32px;
  border-radius: 20px;
  color: white;
  text-align: center;
  margin: 50px 0 20px;
}

.cta-block h3 {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 22px;
  margin-bottom: 10px;
}

.cta-block p {
  color: rgba(255,255,255,0.85) !important;
  margin-bottom: 22px !important;
  font-size: 15px !important;
}

.cta-btn-inline {
  display: inline-block;
  background: white;
  color: var(--navy);
  padding: 14px 34px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s;
}

.cta-btn-inline:hover { transform: translateY(-2px); }

/* Related */
.related {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.related h3 {
  font-family: 'Nanum Myeongjo', serif;
  color: var(--navy);
  font-size: 20px;
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.related-card {
  background: white;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.3s;
  display: block;
}

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

.related-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.related-card h4 {
  font-family: 'Nanum Myeongjo', serif;
  color: var(--navy);
  font-size: 17px;
  margin-bottom: 6px;
}

.related-card p {
  color: var(--text-light);
  font-size: 13px;
  margin: 0;
}

/* Q&A Style */
.qna-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.qna-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 16px !important;
  padding: 26px !important;
  padding-left: 26px !important;
}

.qna-item::before { display: none !important; }

.qna-item .q {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-weight: 700;
  color: var(--navy);
  font-size: 16px;
  margin-bottom: 14px;
  font-family: 'Nanum Myeongjo', serif;
}

.qna-item .q::before {
  content: 'Q';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--navy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}

.qna-item .a {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.8;
}

.qna-item .a::before {
  content: 'A';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  font-family: 'Nanum Myeongjo', serif;
}

/* Footer */
footer {
  background: #0a1929;
  color: #a0aec0;
  padding: 50px 32px 30px;
  font-size: 13px;
  line-height: 1.9;
}

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

.footer-logo {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 20px;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
}

.footer-notice {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  margin-top: 24px;
  font-size: 12px;
  color: #718096;
}

.footer-notice p { margin-bottom: 4px; }

.footer-copy {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #4a5568;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    padding: 30px 32px;
    gap: 16px;
    transition: right 0.3s;
    border-top: 1px solid var(--border);
    overflow-y: auto;
    align-items: stretch;
  }

  .nav-menu.active { right: 0; }
  .nav-menu > li > a { font-size: 17px; display: block; padding: 8px 0; }

  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background: var(--warm-white);
    margin-top: 8px;
    padding: 8px 0;
    border-radius: 10px;
    min-width: auto;
    width: 100%;
  }
  .dropdown::before { display: none; }
  .dropdown a { font-size: 14px !important; padding: 10px 16px; }

  .mobile-toggle { display: flex; }
  .mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 640px) {
  .page-hero { padding: 110px 20px 50px; }
  .article { padding: 50px 20px 60px; }
  .nav-container { padding: 16px 20px; }
  .article-body h2 { font-size: 22px; }
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 10px 8px; }
  .cta-block { padding: 32px 22px; }
  .qna-item { padding: 22px !important; }
}
