:root {
  --primary: #0066ff;
  --primary-dark: #0052cc;
  --accent: #00c896;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #1a1d26;
  --text-muted: #5c6370;
  --border: #e4e8ef;
  --shadow: 0 8px 32px rgba(0, 40, 120, 0.08);
  --radius: 16px;
}

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

body {
  font-family: 'Noto Sans KR', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

nav a {
  margin-left: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.hero {
  background: linear-gradient(135deg, #0066ff 0%, #0047b3 50%, #003080 100%);
  color: #fff;
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,200,150,0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover { border-color: #fff; }

.banner-section { padding: 48px 0; }

.banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.banner-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.banner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 40, 120, 0.15);
}

.banner-card.kpass { background: linear-gradient(135deg, #0066ff, #00a3ff); color: #fff; }
.banner-card.kotsa { background: linear-gradient(135deg, #1a3a6b, #2d5a9e); color: #fff; }

/* AD floating banners */
.ad-float {
  pointer-events: none;
}

.ad-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 300px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1.5px solid #ffd0a8;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
  pointer-events: auto;
  z-index: 999;
  text-decoration: none;
  color: inherit;
}

.ad-float__left,
.ad-float__right {
  position: fixed;
  bottom: 24px;
}

.ad-float__left {
  left: 20px;
}

.ad-float__right {
  right: 20px;
}

.ad-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.ad-banner--silbi {
  border-color: #86efac;
}

.ad-banner--cancer {
  border-color: #f9a8d4;
}

.ad-banner__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff4eb;
}

.ad-banner--silbi .ad-banner__icon {
  background: #ecfdf5;
}

.ad-banner--cancer .ad-banner__icon {
  background: #fdf2f8;
}

.ad-banner__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ad-banner__ad {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #9ca3af;
  line-height: 1.2;
}

.ad-banner__title {
  font-size: 1rem;
  font-weight: 800;
  color: #f97316;
  line-height: 1.3;
}

.ad-banner--silbi .ad-banner__title {
  color: #16a34a;
}

.ad-banner--cancer .ad-banner__title {
  color: #db2777;
}

.ad-banner__desc {
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.35;
}

.ad-banner__arrow {
  flex-shrink: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #f97316;
  transition: transform 0.2s;
}

.ad-banner--silbi .ad-banner__arrow {
  color: #16a34a;
}

.ad-banner--cancer .ad-banner__arrow {
  color: #db2777;
}

.ad-banner:hover .ad-banner__arrow {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .ad-banner {
    width: auto;
    max-width: 46vw;
    padding: 8px 10px;
    gap: 6px;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  }

  .ad-banner__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
  }

  .ad-banner__icon svg {
    width: 18px;
    height: 18px;
  }

  .ad-banner__ad,
  .ad-banner__desc,
  .ad-banner__arrow {
    display: none;
  }

  .ad-banner__title {
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .ad-float__left,
  .ad-float__right {
    bottom: 14px;
  }

  .ad-float__left {
    left: 10px;
  }

  .ad-float__right {
    right: 10px;
  }
}

.outbound-section { background: var(--surface); }

.banner-inner {
  padding: 32px 28px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.banner-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.85;
  margin-bottom: 8px;
}

.banner-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.banner-desc {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 16px;
}

.banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.banner-cta::after {
  content: '→';
  transition: transform 0.2s;
}

.banner-card:hover .banner-cta::after { transform: translateX(4px); }

section { padding: 56px 0; }

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.table-wrap {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow-x: auto;
  margin: 20px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

th {
  background: #f0f4fa;
  font-weight: 600;
}

tr:last-child td { border-bottom: none; }

td:first-child, th:first-child {
  text-align: left;
  font-weight: 500;
}

.highlight { color: var(--primary); font-weight: 700; }

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

.step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 auto 12px;
}

.step h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cta-bottom {
  background: linear-gradient(135deg, #0066ff, #0047b3);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.cta-bottom h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-bottom p {
  opacity: 0.9;
  margin-bottom: 28px;
}

.cta-bottom .hero-buttons { justify-content: center; }

footer {
  background: #1a1d26;
  color: rgba(255,255,255,0.7);
  padding: 32px 0;
  font-size: 0.85rem;
  text-align: center;
}

footer a { color: rgba(255,255,255,0.9); }
footer p { margin-top: 8px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin-bottom: 16px;
}

.copyright { opacity: 0.6; }

/* Sub pages */
.sub-page { padding: 32px 0 56px; }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }

.sub-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.sub-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--primary);
}

.sub-hero p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 720px;
}

.content-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.content-block h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #eef2f8;
}

.content-block h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--primary-dark);
}

.content-block p,
.content-block li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.content-block ul,
.content-block ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.content-block li { margin-bottom: 8px; }

.info-box {
  background: #f0f6ff;
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
}

.info-box p { margin-bottom: 0; color: var(--text); }

.faq-list { display: grid; gap: 16px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.faq-item p {
  color: var(--text-muted);
  margin: 0;
}

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

.guide-link-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}

.guide-link-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.guide-link-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.guide-link-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.guide-link-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.related-guides { padding-top: 16px; }

@media (max-width: 768px) {
  nav { display: none; }
  .hero { padding: 48px 0 56px; }
  section { padding: 40px 0; }
  .content-block { padding: 24px 20px; }
  .sub-hero { padding: 28px 20px; }
}
