:root {
  --ev-primary: #6C5CE7;
  --ev-primary-dark: #5A4BD1;
  --ev-primary-light: #A29BFE;
  --ev-accent: #00CEC9;
  --ev-accent-dark: #00B5B0;
  --ev-bg: #FAFBFF;
  --ev-surface: #FFFFFF;
  --ev-surface-alt: #F0F1F8;
  --ev-text: #1A1A2E;
  --ev-text-secondary: #6B7280;
  --ev-text-muted: #9CA3AF;
  --ev-border: #E5E7EB;
  --ev-border-light: #F0F1F8;
  --ev-shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 4px rgba(0,0,0,0.04);
  --ev-shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 2px 12px rgba(0,0,0,0.06);
  --ev-shadow-lg: 0 10px 25px rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.04);
  --ev-shadow-xl: 0 20px 40px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.06);
  --ev-radius-sm: 8px;
  --ev-radius-md: 12px;
  --ev-radius-lg: 16px;
  --ev-radius-xl: 24px;
  --ev-font-sans: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  --ev-font-serif: 'Noto Serif KR', Georgia, serif;
  --ev-space-xs: 4px;
  --ev-space-sm: 8px;
  --ev-space-md: 16px;
  --ev-space-lg: 24px;
  --ev-space-xl: 32px;
  --ev-space-2xl: 48px;
  --ev-space-3xl: 64px;
  --ev-space-4xl: 96px;
  --ev-space-5xl: 128px;
  --ev-max-w: 1200px;
  --ev-content-w: 780px;
  --ev-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--ev-font-sans);
  background: var(--ev-bg);
  color: var(--ev-text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { color: var(--ev-primary); text-decoration: none; transition: color var(--ev-transition); }
a:hover { color: var(--ev-primary-dark); }

/* ===== HEADER / NAV ===== */
.ev-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--ev-border-light);
  transition: box-shadow var(--ev-transition);
}
.ev-header.scrolled { box-shadow: var(--ev-shadow-md); }
.ev-header-inner {
  max-width: var(--ev-max-w);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--ev-space-lg);
  height: 72px;
}
.ev-logo {
  display: flex; align-items: center; gap: var(--ev-space-sm);
  font-weight: 700; font-size: 1.25rem; color: var(--ev-text);
}
.ev-logo img { width: 40px; height: 40px; border-radius: var(--ev-radius-sm); }
.ev-logo span { letter-spacing: -0.02em; }
.ev-nav { display: flex; gap: var(--ev-space-xl); list-style: none; }
.ev-nav a {
  font-size: 0.938rem; font-weight: 500; color: var(--ev-text-secondary);
  padding: var(--ev-space-sm) 0;
  position: relative;
  transition: color var(--ev-transition);
}
.ev-nav a:hover, .ev-nav a.active { color: var(--ev-primary); }
.ev-nav a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--ev-primary); border-radius: 1px;
  transition: width var(--ev-transition);
}
.ev-nav a:hover::after, .ev-nav a.active::after { width: 100%; }

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

/* ===== HERO ===== */
.ev-hero {
  position: relative;
  min-height: 560px;
  display: flex; align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.ev-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.ev-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(108,92,231,0.85) 0%, rgba(0,206,201,0.65) 100%);
}
.ev-hero-content {
  position: relative; z-index: 2;
  max-width: var(--ev-max-w);
  margin: 0 auto;
  padding: var(--ev-space-5xl) var(--ev-space-lg);
  text-align: center;
  color: #fff;
}
.ev-hero h1 {
  font-family: var(--ev-font-serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--ev-space-lg);
  letter-spacing: -0.02em;
}
.ev-hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  opacity: 0.92;
  max-width: 640px;
  margin: 0 auto var(--ev-space-xl);
}
.ev-hero-cta {
  display: inline-flex; align-items: center; gap: var(--ev-space-sm);
  background: #fff; color: var(--ev-primary);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600; font-size: 1rem;
  transition: all var(--ev-transition);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.ev-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  color: var(--ev-primary-dark);
}

/* ===== SECTION ===== */
.ev-section {
  padding: var(--ev-space-4xl) var(--ev-space-lg);
}
.ev-section-inner {
  max-width: var(--ev-max-w);
  margin: 0 auto;
}
.ev-section-header {
  text-align: center;
  margin-bottom: var(--ev-space-3xl);
}
.ev-section-label {
  font-size: 0.813rem; font-weight: 600;
  color: var(--ev-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--ev-space-sm);
}
.ev-section-title {
  font-family: var(--ev-font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--ev-text);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.ev-section-subtitle {
  font-size: 1.063rem;
  color: var(--ev-text-secondary);
  margin-top: var(--ev-space-md);
  max-width: 560px;
  margin-left: auto; margin-right: auto;
  line-height: 1.7;
}

/* ===== CARD GRID ===== */
.ev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ev-space-lg);
}
.ev-card {
  background: var(--ev-surface);
  border-radius: var(--ev-radius-lg);
  overflow: hidden;
  box-shadow: var(--ev-shadow-sm);
  border: 1px solid var(--ev-border-light);
  transition: all var(--ev-transition);
}
.ev-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ev-shadow-lg);
  border-color: var(--ev-primary-light);
}
.ev-card-img {
  position: relative;
  padding-top: 62%;
  overflow: hidden;
}
.ev-card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ev-card:hover .ev-card-img img {
  transform: scale(1.05);
}
.ev-card-body {
  padding: var(--ev-space-lg);
}
.ev-card-cat {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ev-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--ev-space-sm);
}
.ev-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ev-text);
  line-height: 1.4;
  margin-bottom: var(--ev-space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ev-card-excerpt {
  font-size: 0.875rem;
  color: var(--ev-text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ev-card-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: var(--ev-space-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ev-primary);
}
.ev-card-link svg { width: 16px; height: 16px; transition: transform var(--ev-transition); }
.ev-card:hover .ev-card-link svg { transform: translateX(4px); }

/* ===== CAROUSEL ===== */
.ev-carousel-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--ev-radius-xl);
}
.ev-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.ev-carousel-slide {
  min-width: 100%;
  position: relative;
}
.ev-carousel-slide img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  border-radius: var(--ev-radius-xl);
}
.ev-carousel-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--ev-space-2xl) var(--ev-space-xl);
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  border-radius: 0 0 var(--ev-radius-xl) var(--ev-radius-xl);
}
.ev-carousel-caption h3 {
  font-size: 1.5rem; font-weight: 700; margin-bottom: var(--ev-space-xs);
}
.ev-carousel-caption p {
  font-size: 0.938rem; opacity: 0.9;
}
.ev-carousel-dots {
  display: flex; justify-content: center; gap: var(--ev-space-sm);
  margin-top: var(--ev-space-lg);
}
.ev-carousel-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ev-border);
  border: none; cursor: pointer;
  transition: all var(--ev-transition);
}
.ev-carousel-dot.active {
  background: var(--ev-primary);
  width: 28px; border-radius: 5px;
}

/* ===== INTRO / FEATURE ===== */
.ev-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ev-space-3xl);
  align-items: center;
}
.ev-intro-img {
  border-radius: var(--ev-radius-xl);
  overflow: hidden;
  box-shadow: var(--ev-shadow-lg);
}
.ev-intro-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.ev-intro-text h2 {
  font-family: var(--ev-font-serif);
  font-size: 2rem; font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--ev-space-lg);
}
.ev-intro-text p {
  font-size: 1.063rem;
  color: var(--ev-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--ev-space-md);
}
.ev-feature-list {
  list-style: none; margin-top: var(--ev-space-xl);
  display: flex; flex-direction: column; gap: var(--ev-space-md);
}
.ev-feature-list li {
  display: flex; align-items: flex-start; gap: var(--ev-space-md);
  font-size: 0.938rem; color: var(--ev-text-secondary);
}
.ev-feature-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: var(--ev-radius-sm);
  background: var(--ev-surface-alt);
  display: flex; align-items: center; justify-content: center;
}
.ev-feature-icon svg { width: 20px; height: 20px; stroke: var(--ev-primary); fill: none; }

/* ===== FOOTER ===== */
.ev-footer {
  background: var(--ev-text);
  color: rgba(255,255,255,0.7);
  padding: var(--ev-space-3xl) var(--ev-space-lg) var(--ev-space-xl);
}
.ev-footer-inner {
  max-width: var(--ev-max-w);
  margin: 0 auto;
}
.ev-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--ev-space-2xl);
  padding-bottom: var(--ev-space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ev-footer-brand h3 {
  color: #fff; font-size: 1.25rem; font-weight: 700;
  margin-bottom: var(--ev-space-md);
}
.ev-footer-brand p {
  font-size: 0.875rem; line-height: 1.7; max-width: 360px;
}
.ev-footer-links h4 {
  color: #fff; font-size: 0.875rem; font-weight: 600;
  margin-bottom: var(--ev-space-md);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.ev-footer-links ul { list-style: none; }
.ev-footer-links li { margin-bottom: var(--ev-space-sm); }
.ev-footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--ev-transition);
}
.ev-footer-links a:hover { color: #fff; }
.ev-footer-bottom {
  padding-top: var(--ev-space-xl);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--ev-space-md);
}
.ev-footer-copy {
  font-size: 0.813rem; color: rgba(255,255,255,0.4);
}
.ev-footer-notice {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  max-width: 100%;
  margin-top: var(--ev-space-md);
}

/* ===== SINGLE POST ===== */
.ev-article {
  max-width: var(--ev-content-w);
  margin: 0 auto;
  padding: var(--ev-space-3xl) var(--ev-space-lg);
}
.ev-article-header {
  margin-bottom: var(--ev-space-2xl);
}
.ev-article-header h1 {
  font-family: var(--ev-font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700; line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ev-text);
}
.ev-article-meta {
  display: flex; align-items: center; gap: var(--ev-space-md);
  margin-top: var(--ev-space-md);
  font-size: 0.875rem; color: var(--ev-text-muted);
}
.ev-article-hero {
  margin-bottom: var(--ev-space-2xl);
  border-radius: var(--ev-radius-xl);
  overflow: hidden;
  box-shadow: var(--ev-shadow-md);
}
.ev-article-hero img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
}
.ev-article-body {
  font-size: 1.063rem;
  line-height: 1.8;
  color: var(--ev-text);
}
.ev-article-body h2 {
  font-family: var(--ev-font-serif);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--ev-text);
  margin: var(--ev-space-2xl) 0 var(--ev-space-lg);
  padding-bottom: var(--ev-space-sm);
  border-bottom: 2px solid var(--ev-primary-light);
  line-height: 1.4;
}
.ev-article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ev-text);
  margin: var(--ev-space-xl) 0 var(--ev-space-md);
}
.ev-article-body p {
  margin-bottom: var(--ev-space-lg);
}
.ev-article-body img {
  border-radius: var(--ev-radius-md);
  margin: var(--ev-space-xl) 0;
  box-shadow: var(--ev-shadow-sm);
}
.ev-article-body blockquote {
  border-left: 4px solid var(--ev-primary);
  background: var(--ev-surface-alt);
  padding: var(--ev-space-lg) var(--ev-space-xl);
  margin: var(--ev-space-xl) 0;
  border-radius: 0 var(--ev-radius-md) var(--ev-radius-md) 0;
  font-style: normal;
  color: var(--ev-text-secondary);
}
.ev-article-body blockquote p { margin-bottom: 0; }
.ev-article-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--ev-space-xl) 0;
  border-radius: var(--ev-radius-md);
  overflow: hidden;
  border: 1px solid var(--ev-border);
  font-size: 0.938rem;
}
.ev-article-body table thead th {
  background: var(--ev-primary);
  color: #fff;
  padding: 12px 16px;
  font-weight: 600;
  text-align: left;
  font-size: 0.875rem;
}
.ev-article-body table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ev-border-light);
}
.ev-article-body table tbody tr:last-child td { border-bottom: none; }
.ev-article-body table tbody tr:nth-child(even) { background: var(--ev-surface-alt); }
.ev-article-body ul, .ev-article-body ol {
  margin: var(--ev-space-lg) 0;
  padding-left: var(--ev-space-xl);
}
.ev-article-body li {
  margin-bottom: var(--ev-space-sm);
  line-height: 1.7;
}
.ev-callout {
  background: linear-gradient(135deg, rgba(108,92,231,0.06), rgba(0,206,201,0.06));
  border: 1px solid var(--ev-primary-light);
  border-radius: var(--ev-radius-md);
  padding: var(--ev-space-lg) var(--ev-space-xl);
  margin: var(--ev-space-xl) 0;
}
.ev-callout-title {
  font-weight: 700;
  color: var(--ev-primary);
  margin-bottom: var(--ev-space-sm);
  font-size: 0.938rem;
}

/* ===== RELATED POSTS ===== */
.ev-related {
  margin-top: var(--ev-space-3xl);
  padding-top: var(--ev-space-2xl);
  border-top: 1px solid var(--ev-border);
}
.ev-related h2 {
  font-family: var(--ev-font-serif);
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: var(--ev-space-xl);
}

/* ===== PAGE ===== */
.ev-page {
  max-width: var(--ev-content-w);
  margin: 0 auto;
  padding: var(--ev-space-3xl) var(--ev-space-lg);
}
.ev-page h1 {
  font-family: var(--ev-font-serif);
  font-size: 2rem; font-weight: 700;
  margin-bottom: var(--ev-space-xl);
  color: var(--ev-text);
}
.ev-page h2 {
  font-size: 1.375rem; font-weight: 700;
  margin: var(--ev-space-xl) 0 var(--ev-space-md);
  color: var(--ev-text);
}
.ev-page p, .ev-page li {
  font-size: 1rem; line-height: 1.8;
  color: var(--ev-text-secondary);
  margin-bottom: var(--ev-space-md);
}

/* ===== SCROLL ANIMATIONS ===== */
.ev-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.ev-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .ev-grid { grid-template-columns: repeat(2, 1fr); }
  .ev-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .ev-header-inner { height: 60px; }
  .ev-nav { display: none; }
  .ev-mobile-toggle { display: flex; }
  .ev-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--ev-surface);
    padding: var(--ev-space-lg);
    border-bottom: 1px solid var(--ev-border);
    box-shadow: var(--ev-shadow-lg);
    gap: var(--ev-space-md);
  }
  .ev-grid { grid-template-columns: 1fr; }
  .ev-intro-grid { grid-template-columns: 1fr; gap: var(--ev-space-xl); }
  .ev-hero { min-height: 420px; }
  .ev-hero-content { padding: var(--ev-space-3xl) var(--ev-space-lg); }
  .ev-section { padding: var(--ev-space-3xl) var(--ev-space-lg); }
  .ev-footer-top { grid-template-columns: 1fr; }
  .ev-carousel-slide img { aspect-ratio: 16/9; }
  .ev-article-body { font-size: 1rem; }
  .ev-footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .ev-hero h1 { font-size: 1.75rem; }
  .ev-card-body { padding: var(--ev-space-md); }
}

@media (prefers-reduced-motion: reduce) {
  .ev-reveal { opacity: 1; transform: none; transition: none; }
  .ev-card:hover { transform: none; }
  .ev-carousel-track { transition: none; }
}

/* ===== HIDE WP DEFAULT CHROME ===== */
.wp-site-blocks > header,
.wp-site-blocks > footer,
.powered-by-wordpress,
.wp-block-template-part,
footer.wp-block-template-part { display: none !important; }
