/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
  --color-main: #2C3E50;
  --color-main-light: #5C4033;
  --color-sub: #E67E22;
  --color-sub-light: #E8D5B0;
  --color-bg: #FAF8F5;
  --color-text: #1A1A1A;
  --color-text-muted: #666666;
  --color-border: #E8E0D5;
  --color-card: #FFFFFF;
  --color-tag-bg: #F5EFE6;
  --color-featured-bg: #FDF6EC;
  --font-sans: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Noto Serif KR', Georgia, 'Times New Roman', serif;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 4px rgba(61, 43, 31, 0.08);
  --shadow-md: 0 4px 16px rgba(61, 43, 31, 0.10);
  --max-width: 1140px;
  --content-width: 720px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-main); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-sub); }
ul, ol { padding-left: 1.4em; }
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.4; color: var(--color-main); }
button { cursor: pointer; font-family: var(--font-sans); border: none; background: none; }

/* ===========================
   Layout
   =========================== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.content-container { max-width: var(--content-width); margin: 0 auto; padding: 0 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ===========================
   Header & Navigation
   =========================== */
.site-header {
  background: var(--color-main);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(61, 43, 31, 0.15);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-sub);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.site-logo .logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}
.site-logo .logo-text span { color: var(--color-sub); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.site-nav a:hover, .site-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-nav {
  display: none;
  background: var(--color-main-light);
  padding: 12px 24px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  color: rgba(255,255,255,0.85);
  padding: 10px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav a:last-child { border-bottom: none; }

/* ===========================
   Footer
   =========================== */
.site-footer {
  background: var(--color-main);
  color: rgba(255,255,255,0.7);
  margin-top: 80px;
  padding: 48px 0 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.footer-brand .brand-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}
.footer-col h4 {
  color: var(--color-sub);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom .footer-links {
  display: flex;
  gap: 16px;
}
.footer-bottom .footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  transition: color var(--transition);
}
.footer-bottom .footer-links a:hover { color: rgba(255,255,255,0.8); }
.footer-owner-link {
  color: var(--color-sub) !important;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(201,169,110,0.4);
}
.footer-owner-link:hover { color: #E8D5B0 !important; }

/* ===========================
   Breadcrumb
   =========================== */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
}
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.breadcrumb li + li::before { content: '/'; margin-right: 4px; color: var(--color-border); }
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-main); }
.breadcrumb [aria-current] { color: var(--color-text); font-weight: 500; }

/* ===========================
   Hero Section
   =========================== */
.hero {
  background: linear-gradient(135deg, var(--color-main) 0%, #5C4033 60%, #7A5C4A 100%);
  color: #fff;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(201,169,110,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.hero-tag {
  display: inline-block;
  background: rgba(201,169,110,0.2);
  color: var(--color-sub);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(201,169,110,0.3);
  margin-bottom: 16px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.3;
  margin-bottom: 16px;
}
.hero h1 span { color: var(--color-sub); }
.hero .hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-sub);
}
.hero-stat .label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
}

/* ===========================
   Section Titles
   =========================== */
.section { padding: 56px 0; }
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-main);
  margin-bottom: 6px;
}
.section-sub {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}
.section-header .view-all {
  font-size: 0.85rem;
  color: var(--color-sub);
  font-weight: 600;
  border-bottom: 1px solid var(--color-sub);
  padding-bottom: 1px;
}
.section-header .view-all:hover { color: var(--color-main); border-color: var(--color-main); }

/* ===========================
   Cards
   =========================== */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 20px; }
.card-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-main);
  background: var(--color-tag-bg);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-main);
  line-height: 1.45;
  margin-bottom: 8px;
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--color-sub); }
.card-summary {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.card-meta .dot { color: var(--color-border); }
.card-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--color-main) 0%, var(--color-main-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
}
.card-thumb .thumb-text {
  color: rgba(255,255,255,0.15);
  font-size: 5rem;
  position: absolute;
  bottom: -10px;
  right: 10px;
  line-height: 1;
}
.card-thumb .thumb-icon {
  font-size: 2.5rem;
  position: relative;
  z-index: 1;
}

/* Featured card */
.card-featured {
  background: var(--color-featured-bg);
  border-color: rgba(201,169,110,0.3);
}
.featured-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-sub);
  background: rgba(201,169,110,0.15);
  border: 1px solid rgba(201,169,110,0.3);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* Horizontal card */
.card-h {
  display: flex;
  gap: 0;
  align-items: stretch;
}
.card-h .card-thumb { width: 120px; height: auto; flex-shrink: 0; border-radius: 0; min-height: 100px; }
.card-h .card-body { flex: 1; padding: 16px; }
.card-h .card-title { font-size: 0.9rem; }

/* ===========================
   Category Cards
   =========================== */
.cat-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--cat-color, var(--color-sub));
}
.cat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-card .cat-icon { font-size: 2rem; }
.cat-card .cat-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-main);
}
.cat-card .cat-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
}
.cat-card .cat-arrow {
  font-size: 0.8rem;
  color: var(--color-sub);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===========================
   Column Cards
   =========================== */
.column-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-sub);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 20px 24px;
  transition: all var(--transition);
}
.column-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.column-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-sub);
  background: rgba(201,169,110,0.1);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.column-card .col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-main);
  margin-bottom: 6px;
}
.column-card .col-title a { color: inherit; }
.column-card .col-title a:hover { color: var(--color-sub); }
.column-card .col-summary {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}
.column-card .col-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.column-card .col-author a { color: var(--color-main); font-weight: 600; }
.column-card .col-author a:hover { color: var(--color-sub); }

/* ===========================
   Author Box
   =========================== */
.author-mini {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-main) 0%, var(--color-sub) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  color: #fff;
  font-weight: 700;
}
.author-mini-info .name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-main);
}
.author-mini-info .name a { color: inherit; }
.author-mini-info .name a:hover { color: var(--color-sub); }
.author-mini-info .bio {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ===========================
   Post Detail
   =========================== */
.post-header { margin-bottom: 40px; }
.post-category-link {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-main);
  background: var(--color-tag-bg);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.post-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-main);
  line-height: 1.4;
  margin-bottom: 12px;
}
.post-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
}
.post-meta .author a { color: var(--color-main); font-weight: 600; }
.post-meta .author a:hover { color: var(--color-sub); }
.post-meta .separator { color: var(--color-border); }

/* TOC */
.toc {
  background: var(--color-tag-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 32px 0;
}
.toc h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-main);
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.toc ol { padding-left: 1.4em; }
.toc ol li { font-size: 0.88rem; color: var(--color-text-muted); margin-bottom: 6px; }
.toc ol li a { color: var(--color-main); }
.toc ol li a:hover { color: var(--color-sub); }

/* Post body */
.post-body { margin-bottom: 40px; }
.post-body h2 {
  font-size: 1.4rem;
  color: var(--color-main);
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}
.post-body h3 {
  font-size: 1.1rem;
  color: var(--color-main);
  margin: 24px 0 10px;
}
.post-body p { margin-bottom: 16px; color: var(--color-text); line-height: 1.8; font-size: 1rem; }
.post-body ul, .post-body ol { margin-bottom: 16px; }
.post-body li { margin-bottom: 6px; line-height: 1.7; color: var(--color-text); }
.post-body strong { color: var(--color-main); font-weight: 600; }

/* Key point box */
.key-point {
  background: linear-gradient(135deg, var(--color-featured-bg) 0%, #FFF8EC 100%);
  border: 1px solid rgba(201,169,110,0.35);
  border-left: 4px solid var(--color-sub);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 28px 0;
}
.key-point .kp-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-sub);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.key-point p { margin: 0; font-size: 0.92rem; color: var(--color-main); font-weight: 500; line-height: 1.7; }

/* Checklist */
.checklist {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
}
.checklist h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-main);
  margin-bottom: 12px;
}
.checklist ul { list-style: none; padding: 0; }
.checklist ul li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.88rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.checklist ul li:last-child { border-bottom: none; }
.checklist ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-sub);
  font-weight: 700;
}

/* FAQ */
.faq-section { margin: 36px 0; }
.faq-section h2 { font-size: 1.2rem; margin-bottom: 16px; color: var(--color-main); }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  background: var(--color-tag-bg);
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after { content: '+'; font-size: 1.1rem; color: var(--color-sub); }
.faq-q.open::after { content: '−'; }
.faq-a {
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.7;
  display: none;
  background: #fff;
}
.faq-a.open { display: block; }

/* Author box (post bottom) */
.post-author-box {
  background: var(--color-tag-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 40px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.post-author-box .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-main) 0%, var(--color-sub) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  color: #fff;
  font-weight: 700;
}
.post-author-box .info .name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-main);
  margin-bottom: 4px;
}
.post-author-box .info .name a { color: inherit; }
.post-author-box .info .name a:hover { color: var(--color-sub); }
.post-author-box .info .bio { font-size: 0.85rem; color: var(--color-text-muted); line-height: 1.6; }
.post-author-box .info .principle {
  font-size: 0.8rem;
  color: var(--color-sub);
  margin-top: 8px;
  font-style: italic;
}

/* Related posts */
.related-posts { margin-top: 40px; }
.related-posts h3 { font-size: 1.1rem; font-weight: 700; color: var(--color-main); margin-bottom: 16px; }

/* Update notice */
.update-notice {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  background: var(--color-tag-bg);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin: 20px 0;
  border-left: 3px solid var(--color-sub);
}

/* ===========================
   About / Author Page
   =========================== */
.page-hero {
  background: linear-gradient(135deg, var(--color-main) 0%, var(--color-main-light) 100%);
  color: #fff;
  padding: 56px 0 48px;
}
.page-hero h1 { color: #fff; font-size: 2rem; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1rem; }
.author-profile {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin: -32px 0 40px;
}
.author-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-main) 0%, var(--color-sub) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  color: #fff;
  font-weight: 700;
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
}
.author-profile-info h2 { font-size: 1.3rem; color: var(--color-main); margin-bottom: 6px; }
.author-profile-info .role {
  font-size: 0.82rem;
  color: var(--color-sub);
  font-weight: 600;
  margin-bottom: 10px;
}
.author-profile-info p { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.7; }
.author-new-column-btn {
  display: none;
  margin-top: 12px;
  padding: 8px 16px;
  background: var(--color-sub);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}
.author-new-column-btn:hover { background: var(--color-main); color: #fff; }
.author-new-column-btn.visible { display: inline-block; }

/* Edit principles */
.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.principle-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.principle-item .num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.principle-item p { font-size: 0.88rem; color: var(--color-text); line-height: 1.6; margin: 0; padding-top: 4px; }

/* ===========================
   Contact Form
   =========================== */
.contact-form {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-main);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-text);
  background: #fff;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--color-sub); box-shadow: 0 0 0 3px rgba(201,169,110,0.15); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-notice {
  background: var(--color-tag-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.83rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: var(--font-sans);
}
.btn-primary { background: var(--color-main); color: #fff; }
.btn-primary:hover { background: var(--color-main-light); color: #fff; }
.btn-secondary { background: var(--color-sub); color: #fff; }
.btn-secondary:hover { background: #B8925A; color: #fff; }
.btn-outline { background: transparent; color: var(--color-main); border: 1.5px solid var(--color-main); }
.btn-outline:hover { background: var(--color-main); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.btn-lg { padding: 13px 28px; font-size: 1rem; }

/* ===========================
   CTA Section
   =========================== */
.cta-section {
  background: linear-gradient(135deg, var(--color-main) 0%, var(--color-main-light) 100%);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  color: #fff;
  margin: 48px 0;
}
.cta-section h2 { color: #fff; font-size: 1.6rem; margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 24px; font-size: 0.95rem; }
.cta-section .btn-sub {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
.cta-section .btn-sub:hover { background: rgba(255,255,255,0.2); }

/* ===========================
   Trust / Legal Pages
   =========================== */
.legal-page { max-width: 720px; margin: 0 auto; padding: 40px 24px; }
.legal-page h1 { font-size: 1.6rem; color: var(--color-main); margin-bottom: 8px; }
.legal-page .last-updated { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 32px; }
.legal-page h2 { font-size: 1.1rem; color: var(--color-main); margin: 28px 0 10px; }
.legal-page h3 { font-size: 1rem; color: var(--color-main); margin: 20px 0 8px; }
.legal-page p, .legal-page li { font-size: 0.9rem; color: var(--color-text); line-height: 1.8; margin-bottom: 12px; }
.legal-page ul { padding-left: 1.4em; }
.legal-page a { color: var(--color-main); text-decoration: underline; }

/* ===========================
   404 Page
   =========================== */
.not-found {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.not-found .code {
  font-size: 6rem;
  font-weight: 900;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: 16px;
}
.not-found h1 { font-size: 1.5rem; color: var(--color-main); margin-bottom: 10px; }
.not-found p { color: var(--color-text-muted); margin-bottom: 28px; }

/* ===========================
   Sitemap
   =========================== */
.sitemap-section { margin-bottom: 40px; }
.sitemap-section h2 { font-size: 1.1rem; color: var(--color-main); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--color-border); }
.sitemap-section ul { list-style: none; padding: 0; columns: 2; gap: 16px; }
.sitemap-section ul li { margin-bottom: 8px; break-inside: avoid; }
.sitemap-section ul li a { font-size: 0.88rem; color: var(--color-main-light); }
.sitemap-section ul li a:hover { color: var(--color-sub); }

/* ===========================
   Back to top
   =========================== */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--color-main);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 50;
  border: none;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--color-sub); }

/* ===========================
   Dividers / misc
   =========================== */
.divider { height: 1px; background: var(--color-border); margin: 32px 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 10px;
  background: var(--color-tag-bg);
  color: var(--color-main);
  border-radius: 20px;
  border: 1px solid var(--color-border);
}

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text);
  background: var(--color-card);
  cursor: pointer;
  transition: all var(--transition);
}
.page-btn.active, .page-btn:hover { background: var(--color-main); color: #fff; border-color: var(--color-main); }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .author-profile { flex-direction: column; }
}

@media (max-width: 680px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 48px 0 40px; }
  .hero-stats { gap: 20px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: 40px 0; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cta-section { padding: 32px 24px; }
  .post-author-box { flex-direction: column; }
  .sitemap-section ul { columns: 1; }
  .card-h { flex-direction: column; }
  .card-h .card-thumb { width: 100%; height: 120px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .author-mini { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .content-container { padding: 0 16px; }
  .hero-stat .num { font-size: 1.3rem; }
}
