:root {
  --ac-primary: #1B6B93;
  --ac-primary-dark: #144F6E;
  --ac-primary-light: #E8F4F8;
  --ac-accent: #2E94B9;
  --ac-accent-hover: #247A9A;
  --ac-neutral-900: #1A1A2E;
  --ac-neutral-700: #3D3D5C;
  --ac-neutral-500: #6B7280;
  --ac-neutral-300: #D1D5DB;
  --ac-neutral-100: #F3F4F6;
  --ac-neutral-50: #F9FAFB;
  --ac-white: #FFFFFF;
  --ac-danger: #DC2626;
  --ac-success: #059669;
  --ac-radius-sm: 6px;
  --ac-radius-md: 12px;
  --ac-radius-lg: 16px;
  --ac-radius-xl: 24px;
  --ac-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --ac-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --ac-shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --ac-shadow-xl: 0 16px 48px rgba(0,0,0,0.14);
  --ac-font-heading: 'Noto Serif KR', serif;
  --ac-font-body: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ac-transition: 200ms ease;
  --ac-max-width: 1200px;
  --ac-content-width: 780px;
}

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

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ac-font-body);
  color: var(--ac-neutral-700);
  line-height: 1.7;
  background: var(--ac-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--ac-font-heading);
  color: var(--ac-neutral-900);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

a { color: var(--ac-primary); text-decoration: none; transition: color var(--ac-transition); }
a:hover { color: var(--ac-accent-hover); }
a:focus-visible { outline: 2px solid var(--ac-accent); outline-offset: 2px; border-radius: 2px; }

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

/* ===== HEADER ===== */
.ac-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ac-neutral-100);
  padding: 0 24px;
}
.ac-header-inner {
  max-width: var(--ac-max-width);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.ac-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--ac-neutral-900); }
.ac-logo img { width: 36px; height: 36px; border-radius: var(--ac-radius-sm); }
.ac-logo span { font-family: var(--ac-font-heading); }

.ac-nav { display: flex; gap: 4px; list-style: none; }
.ac-nav a {
  display: inline-block; padding: 8px 16px; border-radius: var(--ac-radius-sm);
  font-size: 0.9rem; font-weight: 500; color: var(--ac-neutral-700);
  transition: all var(--ac-transition);
}
.ac-nav a:hover { background: var(--ac-primary-light); color: var(--ac-primary); }

.ac-menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center;
}
.ac-menu-toggle svg { width: 24px; height: 24px; stroke: var(--ac-neutral-700); }

@media (max-width: 768px) {
  .ac-menu-toggle { display: flex; }
  .ac-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--ac-white); flex-direction: column; padding: 16px;
    border-bottom: 1px solid var(--ac-neutral-100);
    box-shadow: var(--ac-shadow-md);
  }
  .ac-nav.open { display: flex; }
  .ac-nav a { padding: 12px 16px; font-size: 1rem; }
}

/* ===== HERO ===== */
.ac-hero {
  position: relative; min-height: 520px;
  display: flex; align-items: center;
  overflow: hidden;
}
.ac-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.ac-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(27,107,147,0.88) 0%, rgba(26,26,46,0.72) 100%);
}
.ac-hero-content {
  position: relative; z-index: 2;
  max-width: var(--ac-max-width); margin: 0 auto;
  padding: 80px 24px;
  color: var(--ac-white);
}
.ac-hero h1 {
  font-size: 3rem; font-weight: 700;
  color: var(--ac-white);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.ac-hero p {
  font-size: 1.15rem; max-width: 560px;
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
  margin-bottom: 32px;
}
.ac-hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: var(--ac-white); color: var(--ac-primary);
  font-weight: 600; font-size: 1rem;
  border-radius: var(--ac-radius-md);
  transition: all var(--ac-transition);
  box-shadow: var(--ac-shadow-md);
}
.ac-hero-btn:hover { transform: translateY(-2px); box-shadow: var(--ac-shadow-lg); color: var(--ac-primary-dark); }

@media (max-width: 768px) {
  .ac-hero { min-height: 420px; }
  .ac-hero h1 { font-size: 2rem; }
  .ac-hero p { font-size: 1rem; }
  .ac-hero-content { padding: 60px 20px; }
}

/* ===== SECTIONS ===== */
.ac-section {
  padding: 96px 24px;
  max-width: var(--ac-max-width);
  margin: 0 auto;
}
.ac-section-alt { background: var(--ac-neutral-50); }
.ac-section-alt .ac-section { padding: 96px 24px; }

.ac-section-title {
  font-size: 2rem; font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}
.ac-section-desc {
  text-align: center;
  color: var(--ac-neutral-500);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

/* ===== FEATURE CARDS ===== */
.ac-features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.ac-feature-card {
  background: var(--ac-white);
  border: 1px solid var(--ac-neutral-100);
  border-radius: var(--ac-radius-lg);
  padding: 40px 32px;
  transition: all var(--ac-transition);
}
.ac-feature-card:hover { transform: translateY(-4px); box-shadow: var(--ac-shadow-lg); border-color: transparent; }
.ac-feature-icon {
  width: 56px; height: 56px;
  background: var(--ac-primary-light);
  border-radius: var(--ac-radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.ac-feature-icon svg { width: 28px; height: 28px; stroke: var(--ac-primary); fill: none; stroke-width: 1.5; }
.ac-feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; font-family: var(--ac-font-body); font-weight: 700; }
.ac-feature-card p { color: var(--ac-neutral-500); font-size: 0.95rem; line-height: 1.7; }

@media (max-width: 768px) {
  .ac-features { grid-template-columns: 1fr; gap: 20px; }
  .ac-feature-card { padding: 28px 24px; }
}

/* ===== CAROUSEL / CARDS ===== */
.ac-carousel {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.ac-card {
  background: var(--ac-white);
  border-radius: var(--ac-radius-lg);
  overflow: hidden;
  border: 1px solid var(--ac-neutral-100);
  transition: all var(--ac-transition);
}
.ac-card:hover { transform: translateY(-4px); box-shadow: var(--ac-shadow-lg); border-color: transparent; }
.ac-card-img {
  position: relative; padding-top: 60%;
  overflow: hidden;
}
.ac-card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}
.ac-card:hover .ac-card-img img { transform: scale(1.05); }
.ac-card-body { padding: 24px; }
.ac-card-body h3 {
  font-size: 1.1rem; margin-bottom: 8px;
  font-family: var(--ac-font-body); font-weight: 700;
  color: var(--ac-neutral-900);
}
.ac-card-body p { font-size: 0.9rem; color: var(--ac-neutral-500); line-height: 1.65; }
.ac-card-body .ac-card-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 16px; font-size: 0.88rem; font-weight: 600;
  color: var(--ac-primary);
}
.ac-card-body .ac-card-link:hover { gap: 8px; }

@media (max-width: 768px) {
  .ac-carousel { grid-template-columns: 1fr; gap: 20px; }
}

/* ===== LATEST POSTS ===== */
.ac-posts-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.ac-post-card {
  display: flex; gap: 20px;
  background: var(--ac-white);
  border: 1px solid var(--ac-neutral-100);
  border-radius: var(--ac-radius-lg);
  padding: 20px;
  transition: all var(--ac-transition);
  align-items: center;
}
.ac-post-card:hover { box-shadow: var(--ac-shadow-md); border-color: transparent; }
.ac-post-thumb {
  flex-shrink: 0; width: 140px; height: 100px;
  border-radius: var(--ac-radius-md); overflow: hidden;
}
.ac-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ac-post-info h3 { font-size: 1rem; font-family: var(--ac-font-body); font-weight: 700; margin-bottom: 6px; }
.ac-post-info p { font-size: 0.85rem; color: var(--ac-neutral-500); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 768px) {
  .ac-posts-grid { grid-template-columns: 1fr; }
  .ac-post-card { flex-direction: column; }
  .ac-post-thumb { width: 100%; height: 180px; }
}

/* ===== CTA BANNER ===== */
.ac-cta-banner {
  background: linear-gradient(135deg, var(--ac-primary) 0%, var(--ac-primary-dark) 100%);
  border-radius: var(--ac-radius-xl);
  padding: 64px 48px;
  display: flex; align-items: center; gap: 40px;
  color: var(--ac-white);
}
.ac-cta-banner-img { flex-shrink: 0; width: 280px; height: 200px; border-radius: var(--ac-radius-lg); overflow: hidden; }
.ac-cta-banner-img img { width: 100%; height: 100%; object-fit: cover; }
.ac-cta-banner h2 { font-size: 1.6rem; color: var(--ac-white); margin-bottom: 12px; }
.ac-cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 24px; line-height: 1.7; }
.ac-cta-btn {
  display: inline-flex; padding: 12px 28px;
  background: var(--ac-white); color: var(--ac-primary);
  font-weight: 600; border-radius: var(--ac-radius-md);
  transition: all var(--ac-transition);
}
.ac-cta-btn:hover { transform: translateY(-2px); box-shadow: var(--ac-shadow-lg); }

@media (max-width: 768px) {
  .ac-cta-banner { flex-direction: column; padding: 40px 24px; text-align: center; }
  .ac-cta-banner-img { width: 100%; height: 180px; }
}

/* ===== FOOTER ===== */
.ac-footer {
  background: var(--ac-neutral-900);
  color: rgba(255,255,255,0.6);
  padding: 64px 24px 32px;
}
.ac-footer-inner {
  max-width: var(--ac-max-width); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.ac-footer-brand h3 { color: var(--ac-white); font-size: 1.15rem; margin-bottom: 12px; font-family: var(--ac-font-heading); }
.ac-footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 340px; }
.ac-footer-links h4 { color: var(--ac-white); font-size: 0.95rem; margin-bottom: 16px; font-family: var(--ac-font-body); font-weight: 600; }
.ac-footer-links ul { list-style: none; }
.ac-footer-links li { margin-bottom: 10px; }
.ac-footer-links a { color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: color var(--ac-transition); }
.ac-footer-links a:hover { color: var(--ac-white); }
.ac-footer-bottom {
  max-width: var(--ac-max-width); margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap; gap: 12px;
}
.ac-footer-notice { font-size: 0.78rem; line-height: 1.6; margin-top: 16px; color: rgba(255,255,255,0.4); max-width: 800px; }

@media (max-width: 768px) {
  .ac-footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .ac-footer-bottom { flex-direction: column; text-align: center; }
}

/* ===== SINGLE POST ===== */
.ac-single { max-width: var(--ac-content-width); margin: 0 auto; padding: 48px 24px 96px; }
.ac-single h1 { font-size: 2rem; margin-bottom: 24px; }
.ac-single h2 {
  font-size: 1.5rem; margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ac-primary-light);
  color: var(--ac-primary-dark);
}
.ac-single h3 { font-size: 1.2rem; margin: 32px 0 14px; color: var(--ac-neutral-900); }
.ac-single p { margin-bottom: 18px; font-size: 1.05rem; line-height: 1.8; }
.ac-single img { border-radius: var(--ac-radius-md); margin: 24px 0; }
.ac-single ul, .ac-single ol { margin: 16px 0 24px 20px; }
.ac-single li { margin-bottom: 8px; line-height: 1.7; }

.ac-single table {
  width: 100%; border-collapse: collapse;
  margin: 24px 0; font-size: 0.95rem;
  border-radius: var(--ac-radius-md); overflow: hidden;
  border: 1px solid var(--ac-neutral-100);
}
.ac-single table thead { background: var(--ac-primary); color: var(--ac-white); }
.ac-single table th { padding: 12px 16px; font-weight: 600; text-align: left; }
.ac-single table td { padding: 12px 16px; border-bottom: 1px solid var(--ac-neutral-100); }
.ac-single table tbody tr:nth-child(even) { background: var(--ac-neutral-50); }
.ac-single table tbody tr:hover { background: var(--ac-primary-light); }

.ac-single blockquote {
  border-left: 4px solid var(--ac-primary);
  background: var(--ac-primary-light);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 var(--ac-radius-md) var(--ac-radius-md) 0;
  font-size: 1rem;
  color: var(--ac-primary-dark);
}

.ac-single .ac-callout {
  background: var(--ac-neutral-50);
  border: 1px solid var(--ac-neutral-300);
  border-radius: var(--ac-radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}

.ac-single .ac-bar-chart { margin: 24px 0; }
.ac-single .ac-bar-item { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ac-single .ac-bar-label { min-width: 120px; font-size: 0.9rem; font-weight: 500; }
.ac-single .ac-bar-track { flex: 1; height: 28px; background: var(--ac-neutral-100); border-radius: 14px; overflow: hidden; }
.ac-single .ac-bar-fill { height: 100%; background: linear-gradient(90deg, var(--ac-primary), var(--ac-accent)); border-radius: 14px; display: flex; align-items: center; padding: 0 12px; font-size: 0.8rem; color: white; font-weight: 600; }

/* TOC */
.ac-toc {
  background: var(--ac-neutral-50);
  border: 1px solid var(--ac-neutral-100);
  border-radius: var(--ac-radius-lg);
  padding: 24px 28px;
  margin-bottom: 40px;
}
.ac-toc h4 { font-size: 1rem; margin-bottom: 12px; font-family: var(--ac-font-body); font-weight: 700; }
.ac-toc ul { list-style: none; margin: 0; padding: 0; }
.ac-toc li { margin-bottom: 6px; }
.ac-toc a { font-size: 0.92rem; color: var(--ac-neutral-700); }
.ac-toc a:hover { color: var(--ac-primary); }

/* Related Posts */
.ac-related { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--ac-neutral-100); }
.ac-related h3 { font-size: 1.3rem; margin-bottom: 24px; font-family: var(--ac-font-heading); }

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

/* WP overrides */
.wp-site-blocks { padding: 0 !important; }
.wp-block-post-content { max-width: none !important; }
body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: none !important; }
.has-global-padding { padding: 0 !important; }

/* Scroll animations */
.ac-fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.ac-fade-in.visible { opacity: 1; transform: translateY(0); }

/* Page template */
.ac-page { max-width: var(--ac-content-width); margin: 0 auto; padding: 48px 24px 96px; }
.ac-page h1 { font-size: 2rem; margin-bottom: 32px; }
.ac-page h2 { font-size: 1.4rem; margin: 32px 0 16px; color: var(--ac-primary-dark); }
.ac-page p { margin-bottom: 16px; line-height: 1.8; }

/* Mobile table scroll */
@media (max-width: 768px) {
  .ac-single table { display: block; overflow-x: auto; white-space: nowrap; }
  .ac-section { padding: 64px 20px; }
  .ac-section-title { font-size: 1.6rem; }
}
