:root {
  --sb-primary: #1B6B4A;
  --sb-primary-light: #E8F5EE;
  --sb-primary-dark: #0F4A32;
  --sb-accent: #2D9B6E;
  --sb-accent-hover: #248A5F;
  --sb-neutral-50: #FAFBFC;
  --sb-neutral-100: #F1F3F5;
  --sb-neutral-200: #E2E6EA;
  --sb-neutral-300: #CED4DA;
  --sb-neutral-600: #6B7280;
  --sb-neutral-700: #4A5568;
  --sb-neutral-800: #2D3748;
  --sb-neutral-900: #1A202C;
  --sb-radius-sm: 6px;
  --sb-radius-md: 12px;
  --sb-radius-lg: 16px;
  --sb-radius-xl: 24px;
  --sb-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --sb-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --sb-shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --sb-font-heading: 'Noto Serif KR', serif;
  --sb-font-body: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --sb-transition: 200ms ease;
  --sb-max-content: 780px;
  --sb-max-wide: 1200px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sb-font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--sb-neutral-800);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Override all TwentyTwentyFive defaults */
body .wp-site-blocks { padding: 0 !important; }
body .is-layout-constrained > * { max-width: none !important; }
body .has-global-padding { padding: 0 !important; }
.wp-block-template-part, .wp-block-group { margin: 0 !important; padding: 0 !important; }

/* ============ HEADER ============ */
.sb-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sb-neutral-200);
  transition: box-shadow var(--sb-transition);
}
.sb-header.scrolled { box-shadow: var(--sb-shadow-md); }
.sb-header-inner {
  max-width: var(--sb-max-wide); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.sb-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.sb-logo img { width: 36px; height: 36px; object-fit: contain; border-radius: var(--sb-radius-sm); }
.sb-logo-text {
  font-family: var(--sb-font-heading); font-size: 1.05rem; font-weight: 700;
  color: var(--sb-neutral-900); letter-spacing: -0.02em;
}
.sb-nav { display: flex; gap: 4px; }
.sb-nav a {
  font-size: 0.9rem; color: var(--sb-neutral-700); text-decoration: none;
  padding: 8px 14px; border-radius: var(--sb-radius-sm);
  transition: all var(--sb-transition); font-weight: 500;
}
.sb-nav a:hover { color: var(--sb-primary); background: var(--sb-primary-light); }
.sb-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.sb-menu-toggle svg { width: 24px; height: 24px; stroke: var(--sb-neutral-800); }

@media (max-width: 768px) {
  .sb-header-inner { height: 56px; padding: 0 16px; }
  .sb-logo img { width: 32px; height: 32px; }
  .sb-logo-text { font-size: 0.95rem; }
  .sb-nav {
    display: none; position: fixed; top: 56px; left: 0; right: 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(16px);
    flex-direction: column; padding: 8px 16px 16px; gap: 2px;
    border-bottom: 1px solid var(--sb-neutral-200);
    box-shadow: var(--sb-shadow-lg);
  }
  .sb-nav.open { display: flex; }
  .sb-nav a { padding: 12px 16px; font-size: 1rem; border-radius: var(--sb-radius-md); }
  .sb-menu-toggle { display: block; }
}

/* ============ HERO ============ */
.sb-hero {
  position: relative; min-height: 560px; display: flex; align-items: center;
  overflow: hidden; margin-top: 64px;
}
.sb-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.sb-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(27,107,74,0.88) 0%, rgba(15,74,50,0.72) 100%);
}
.sb-hero-content {
  position: relative; z-index: 2;
  max-width: var(--sb-max-wide); margin: 0 auto;
  padding: 100px 32px 80px; width: 100%;
}
.sb-hero h1 {
  font-family: var(--sb-font-heading); font-size: 3rem; font-weight: 700;
  color: #fff; line-height: 1.25; letter-spacing: -0.03em; margin-bottom: 20px;
}
.sb-hero-sub {
  font-size: 1.15rem; color: rgba(255,255,255,0.9); max-width: 560px;
  line-height: 1.8; margin-bottom: 32px;
}
.sb-hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--sb-primary); font-weight: 600;
  padding: 14px 28px; border-radius: var(--sb-radius-lg);
  text-decoration: none; font-size: 1rem;
  box-shadow: var(--sb-shadow-md);
  transition: all var(--sb-transition);
}
.sb-hero-cta:hover { transform: translateY(-2px); box-shadow: var(--sb-shadow-lg); }
.sb-hero-cta svg { width: 18px; height: 18px; }

@media (max-width: 768px) {
  .sb-hero { min-height: 440px; margin-top: 56px; }
  .sb-hero-content { padding: 72px 20px 56px; }
  .sb-hero h1 { font-size: 2rem; }
  .sb-hero-sub { font-size: 1rem; }
}

/* ============ SECTIONS ============ */
.sb-section {
  max-width: var(--sb-max-wide); margin: 0 auto;
  padding: 96px 32px;
}
.sb-section-header {
  text-align: center; margin-bottom: 56px;
}
.sb-section-header h2 {
  font-family: var(--sb-font-heading); font-size: 2rem; font-weight: 700;
  color: var(--sb-neutral-900); letter-spacing: -0.02em; margin-bottom: 12px;
}
.sb-section-header p {
  color: var(--sb-neutral-600); font-size: 1.05rem; max-width: 520px; margin: 0 auto;
}
.sb-divider {
  width: 48px; height: 3px; background: var(--sb-accent);
  border-radius: 2px; margin: 16px auto 0;
}

@media (max-width: 768px) {
  .sb-section { padding: 64px 16px; }
  .sb-section-header h2 { font-size: 1.5rem; }
}

/* ============ CAROUSEL / CARD GRID ============ */
.sb-card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.sb-card {
  background: #fff; border-radius: var(--sb-radius-lg); overflow: hidden;
  border: 1px solid var(--sb-neutral-200);
  transition: all var(--sb-transition);
}
.sb-card:hover { transform: translateY(-4px); box-shadow: var(--sb-shadow-lg); border-color: transparent; }
.sb-card-img {
  aspect-ratio: 16/10; overflow: hidden;
}
.sb-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 300ms ease;
}
.sb-card:hover .sb-card-img img { transform: scale(1.04); }
.sb-card-body { padding: 24px; }
.sb-card-cat {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  color: var(--sb-primary); background: var(--sb-primary-light);
  padding: 4px 10px; border-radius: 100px; margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.sb-card-body h3 {
  font-family: var(--sb-font-heading); font-size: 1.15rem; font-weight: 600;
  color: var(--sb-neutral-900); line-height: 1.5; margin-bottom: 10px;
}
.sb-card-body h3 a { color: inherit; text-decoration: none; }
.sb-card-body h3 a:hover { color: var(--sb-primary); }
.sb-card-excerpt {
  font-size: 0.92rem; color: var(--sb-neutral-600); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

@media (max-width: 960px) { .sb-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sb-card-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ============ FEATURE BOXES ============ */
.sb-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px;
}
.sb-feature-box {
  background: var(--sb-neutral-50); border: 1px solid var(--sb-neutral-200);
  border-radius: var(--sb-radius-lg); padding: 32px; text-align: center;
  transition: all var(--sb-transition);
}
.sb-feature-box:hover { border-color: var(--sb-accent); background: var(--sb-primary-light); }
.sb-feature-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  background: var(--sb-primary-light); border-radius: var(--sb-radius-md);
  display: flex; align-items: center; justify-content: center;
}
.sb-feature-icon svg { width: 28px; height: 28px; stroke: var(--sb-primary); fill: none; stroke-width: 1.5; }
.sb-feature-box h3 {
  font-size: 1.05rem; font-weight: 600; color: var(--sb-neutral-900); margin-bottom: 8px;
}
.sb-feature-box p { font-size: 0.9rem; color: var(--sb-neutral-600); line-height: 1.6; }

@media (max-width: 768px) { .sb-features { grid-template-columns: 1fr; gap: 16px; } }

/* ============ COMPARISON SECTION ============ */
.sb-comparison {
  background: var(--sb-neutral-50); border-radius: var(--sb-radius-xl);
  padding: 64px 48px; margin-top: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.sb-comparison img {
  width: 100%; border-radius: var(--sb-radius-lg);
  box-shadow: var(--sb-shadow-md); aspect-ratio: 4/3; object-fit: cover;
}
.sb-comparison-text h3 {
  font-family: var(--sb-font-heading); font-size: 1.5rem; font-weight: 700;
  color: var(--sb-neutral-900); margin-bottom: 16px;
}
.sb-comparison-text p { color: var(--sb-neutral-600); margin-bottom: 16px; line-height: 1.8; }
.sb-check-list { list-style: none; padding: 0; }
.sb-check-list li {
  padding: 8px 0 8px 28px; position: relative; color: var(--sb-neutral-700);
}
.sb-check-list li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--sb-primary-light); border: 2px solid var(--sb-accent);
}

@media (max-width: 768px) {
  .sb-comparison { grid-template-columns: 1fr; padding: 32px 20px; gap: 32px; }
}

/* ============ FOOTER ============ */
.sb-footer {
  background: var(--sb-neutral-900); color: rgba(255,255,255,0.7); padding: 56px 32px 32px;
}
.sb-footer-inner {
  max-width: var(--sb-max-wide); margin: 0 auto;
}
.sb-footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sb-footer-logo {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 12px;
  color: #fff; text-decoration: none; font-family: var(--sb-font-heading);
  font-size: 1.2rem; font-weight: 700;
}
.sb-footer-logo img { width: 40px; height: 40px; object-fit: contain; border-radius: var(--sb-radius-sm); }
.sb-footer-brand p { font-size: 0.88rem; line-height: 1.7; }
.sb-footer-links h4 {
  color: rgba(255,255,255,0.9); font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px;
}
.sb-footer-links a {
  display: block; color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 0.88rem; padding: 4px 0; transition: color var(--sb-transition);
}
.sb-footer-links a:hover { color: #fff; }
.sb-footer-bottom {
  padding-top: 24px; display: flex; justify-content: space-between;
  align-items: start; gap: 24px; flex-wrap: wrap;
}
.sb-footer-copy { font-size: 0.82rem; line-height: 1.6; }
.sb-footer-legal {
  font-size: 0.78rem; color: rgba(255,255,255,0.45); line-height: 1.7;
  max-width: 720px;
}

@media (max-width: 768px) {
  .sb-footer { padding: 40px 16px 24px; }
  .sb-footer-logo { font-size: 1rem; }
  .sb-footer-logo img { width: 36px; height: 36px; }
  .sb-footer-top { grid-template-columns: 1fr; gap: 32px; }
  .sb-footer-bottom { flex-direction: column; }
}

/* ============ SINGLE POST ============ */
.sb-post-wrap {
  max-width: var(--sb-max-content); margin: 96px auto 64px; padding: 0 20px;
}
.sb-post-header { margin-bottom: 40px; }
.sb-post-cat-badge {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  color: var(--sb-primary); background: var(--sb-primary-light);
  padding: 5px 14px; border-radius: 100px; margin-bottom: 16px;
}
.sb-post-header h1 {
  font-family: var(--sb-font-heading); font-size: 2.25rem; font-weight: 700;
  color: var(--sb-neutral-900); line-height: 1.35; letter-spacing: -0.02em;
}
.sb-post-meta {
  margin-top: 16px; font-size: 0.85rem; color: var(--sb-neutral-600);
}
.sb-post-hero {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--sb-radius-lg); margin-bottom: 40px;
  box-shadow: var(--sb-shadow-md);
}
.sb-post-content { font-size: 1.05rem; line-height: 1.8; color: var(--sb-neutral-800); }
.sb-post-content h2 {
  font-family: var(--sb-font-heading); font-size: 1.55rem; font-weight: 700;
  color: var(--sb-neutral-900); margin: 56px 0 20px;
  padding-bottom: 12px; border-bottom: 2px solid var(--sb-primary-light);
}
.sb-post-content h3 {
  font-family: var(--sb-font-heading); font-size: 1.25rem; font-weight: 600;
  color: var(--sb-neutral-900); margin: 40px 0 16px;
}
.sb-post-content p { margin-bottom: 20px; }
.sb-post-content img {
  max-width: 100%; height: auto; border-radius: var(--sb-radius-md);
  margin: 24px 0; box-shadow: var(--sb-shadow-sm);
}
.sb-post-content ul, .sb-post-content ol {
  margin: 16px 0 20px 24px; padding: 0;
}
.sb-post-content li { margin-bottom: 8px; line-height: 1.7; }
.sb-post-content blockquote {
  border-left: 4px solid var(--sb-accent); background: var(--sb-neutral-50);
  padding: 20px 24px; margin: 24px 0; border-radius: 0 var(--sb-radius-md) var(--sb-radius-md) 0;
  font-style: normal; color: var(--sb-neutral-700);
}
.sb-post-content table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  font-size: 0.92rem; border-radius: var(--sb-radius-md); overflow: hidden;
  border: 1px solid var(--sb-neutral-200);
}
.sb-post-content table thead th {
  background: var(--sb-primary); color: #fff; font-weight: 600;
  padding: 14px 16px; text-align: left; font-size: 0.88rem;
}
.sb-post-content table td {
  padding: 12px 16px; border-bottom: 1px solid var(--sb-neutral-200);
}
.sb-post-content table tr:nth-child(even) { background: var(--sb-neutral-50); }
.sb-post-content table tr:hover { background: var(--sb-primary-light); }

.sb-callout {
  background: linear-gradient(135deg, var(--sb-primary-light) 0%, #f0faf5 100%);
  border: 1px solid rgba(45,155,110,0.2);
  border-radius: var(--sb-radius-md); padding: 24px; margin: 24px 0;
}
.sb-callout-title {
  font-weight: 700; color: var(--sb-primary-dark); margin-bottom: 8px; font-size: 1rem;
}
.sb-callout p { margin: 0; font-size: 0.95rem; color: var(--sb-neutral-700); }

.sb-summary-box {
  background: var(--sb-neutral-50); border: 1px solid var(--sb-neutral-200);
  border-radius: var(--sb-radius-lg); padding: 24px 28px; margin-bottom: 40px;
}
.sb-summary-box h3 {
  font-size: 1rem; font-weight: 700; color: var(--sb-primary);
  margin: 0 0 12px; padding: 0; border: 0;
}
.sb-summary-box ul { margin: 0; padding-left: 20px; }
.sb-summary-box li { font-size: 0.95rem; color: var(--sb-neutral-700); margin-bottom: 6px; }

.sb-bar-chart { margin: 24px 0; }
.sb-bar-item { margin-bottom: 12px; }
.sb-bar-label { font-size: 0.88rem; font-weight: 500; color: var(--sb-neutral-700); margin-bottom: 4px; }
.sb-bar-track {
  height: 28px; background: var(--sb-neutral-100); border-radius: 14px; overflow: hidden; position: relative;
}
.sb-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--sb-primary) 0%, var(--sb-accent) 100%);
  border-radius: 14px; display: flex; align-items: center; padding: 0 12px;
  font-size: 0.78rem; color: #fff; font-weight: 600;
  transition: width 600ms ease;
}

/* Table responsive wrapper */
.sb-table-wrap { overflow-x: auto; margin: 24px 0; -webkit-overflow-scrolling: touch; }

/* Related posts */
.sb-related {
  margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--sb-neutral-200);
}
.sb-related h2 {
  font-family: var(--sb-font-heading); font-size: 1.3rem; font-weight: 700;
  margin-bottom: 24px; border: none; padding: 0;
}

/* Legal notices in posts */
.legal-notice { margin-top: 2em; }
.ai-notice { margin-top: 2em; }

/* TOC */
.sb-toc {
  background: var(--sb-neutral-50); border: 1px solid var(--sb-neutral-200);
  border-radius: var(--sb-radius-lg); padding: 24px 28px; margin-bottom: 40px;
}
.sb-toc h3 { font-size: 0.95rem; font-weight: 700; color: var(--sb-primary); margin: 0 0 12px; border: 0; padding: 0; }
.sb-toc ol { margin: 0; padding-left: 20px; }
.sb-toc li { margin-bottom: 6px; font-size: 0.92rem; }
.sb-toc a { color: var(--sb-neutral-700); text-decoration: none; transition: color var(--sb-transition); }
.sb-toc a:hover { color: var(--sb-primary); }

/* Page template */
.sb-page-wrap {
  max-width: var(--sb-max-content); margin: 96px auto 64px; padding: 0 20px;
}
.sb-page-wrap h1 {
  font-family: var(--sb-font-heading); font-size: 2rem; font-weight: 700;
  color: var(--sb-neutral-900); margin-bottom: 32px;
}
.sb-page-content { font-size: 1rem; line-height: 1.8; color: var(--sb-neutral-700); }
.sb-page-content h2 { font-size: 1.3rem; font-weight: 700; color: var(--sb-neutral-900); margin: 32px 0 16px; }
.sb-page-content p { margin-bottom: 16px; }
.sb-page-content ul, .sb-page-content ol { margin: 12px 0 16px 24px; }
.sb-page-content li { margin-bottom: 6px; }

/* Scroll animations */
.sb-anim { opacity: 0; transform: translateY(24px); transition: opacity 500ms ease, transform 500ms ease; }
.sb-anim.visible { opacity: 1; transform: translateY(0); }

/* Focus styles */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--sb-accent); outline-offset: 2px;
}

/* Utility */
.sb-bg-light { background: var(--sb-neutral-50); }
.sb-mt-0 { margin-top: 0 !important; }
