/* ================================================
   하누리 — 수도권 둘레길 정보 사이트
   Main Stylesheet  |  2026
   ================================================ */

/* === CSS Reset & Base ========================= */
*, *::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: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-size: 1rem; line-height: 1.7; color: #2c3e2d; background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }

/* === Custom Properties ======================== */
:root {
  --primary:        #2d6a4f;
  --primary-light:  #52b788;
  --primary-lighter:#d8f3e8;
  --primary-dark:   #1b4332;
  --secondary:      #faf7f2;
  --accent:         #d4a853;
  --accent-dark:    #b8872a;

  --text-heading:   #1a2318;
  --text-body:      #3d4d3a;
  --text-light:     #6d7d6a;
  --text-muted:     #9aaa97;
  --text-white:     #ffffff;

  --bg-white:       #ffffff;
  --bg-alt:         #faf7f2;
  --bg-muted:       #f0ede6;
  --bg-green-light: #eef7f1;
  --border:         #dce8d8;
  --border-light:   #eff5ec;

  --shadow-sm:  0 1px 4px rgba(45,106,79,.08);
  --shadow:     0 2px 12px rgba(45,106,79,.10);
  --shadow-md:  0 4px 20px rgba(45,106,79,.12);
  --shadow-lg:  0 8px 32px rgba(45,106,79,.16);

  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  12px;
  --radius-xl:  20px;
  --radius-full:9999px;

  --container:  1200px;
  --container-article: 760px;
  --transition: .2s ease;
  --header-h:   64px;
}

/* === Typography =============================== */
h1,h2,h3,h4,h5,h6 { color: var(--text-heading); line-height: 1.35; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(1.8rem,4vw,2.5rem); }
h2 { font-size: clamp(1.5rem,3vw,2rem); }
h3 { font-size: clamp(1.2rem,2.5vw,1.5rem); }
h4 { font-size: 1.125rem; }
p  { line-height: 1.8; color: var(--text-body); }

/* === Layout Containers ======================== */
.container    { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }

/* === Header =================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm); height: var(--header-h);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem;
}
.site-logo { display: flex; align-items: center; gap: .625rem; text-decoration: none; }
.logo-mark {
  width: 36px; height: 36px; background: var(--primary); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; flex-shrink: 0;
}
.logo-text   { font-size: 1.25rem; font-weight: 800; color: var(--primary-dark); letter-spacing: -.02em; display: block; }
.logo-tagline{ font-size: .65rem; color: var(--text-muted); display: block; line-height: 1.2; }
.site-nav    { display: flex; align-items: center; gap: .25rem; }
.nav-link    { padding: .5rem .875rem; border-radius: var(--radius); font-size: .9rem; font-weight: 500; color: var(--text-body); transition: var(--transition); white-space: nowrap; }
.nav-link:hover { background: var(--bg-green-light); color: var(--primary); text-decoration: none; }
.nav-link.active{ background: var(--primary); color: #fff; }
.nav-link.nav-admin { background: var(--bg-alt); color: var(--text-muted); font-size: .8rem; }
.hamburger   { display: none; flex-direction: column; gap: 5px; padding: 8px; border-radius: var(--radius); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-body); border-radius: 2px; transition: var(--transition); }
.mobile-nav  { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 2px solid var(--border); padding: 1rem 1.5rem; box-shadow: var(--shadow-md); z-index: 99; }
.mobile-nav.open { display: block; }
.mobile-nav-links { display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav-links .nav-link { padding: .75rem 1rem; font-size: 1rem; }

/* === Footer =================================== */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.85); margin-top: 5rem; }
.footer-main { padding: 3rem 0 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  max-width: var(--container); margin: 0 auto; padding: 0 1.5rem;
}
.footer-brand-name { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: .5rem; }
.footer-brand-desc { font-size: .875rem; color: rgba(255,255,255,.65); line-height: 1.7; margin-bottom: 1rem; }
.footer-email a    { color: var(--primary-light); font-size: .875rem; }
.footer-col-title  { font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer-links      { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a    { font-size: .875rem; color: rgba(255,255,255,.75); transition: var(--transition); }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  max-width: var(--container); margin: 0 auto; padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}
.footer-copyright { font-size: .8rem; color: rgba(255,255,255,.45); }
.footer-legal      { display: flex; gap: 1.25rem; }
.footer-legal a    { font-size: .8rem; color: rgba(255,255,255,.55); }
.footer-legal a:hover { color: rgba(255,255,255,.9); text-decoration: none; }

/* === Buttons ================================== */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .625rem 1.25rem; border-radius: var(--radius);
  font-size: .9rem; font-weight: 600; transition: var(--transition);
  text-decoration: none; border: 2px solid transparent; white-space: nowrap; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary  { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline  { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost    { background: transparent; color: var(--text-body); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-white    { background: #fff; color: var(--primary-dark); border-color: #fff; font-weight: 700; }
.btn-white:hover { background: var(--primary-lighter); border-color: var(--primary-lighter); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn-sm { padding: .4rem .875rem; font-size: .8rem; }
.btn-lg { padding: .875rem 1.75rem; font-size: 1rem; }

/* === Hero Section ============================= */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #40916c 100%);
  color: #fff; padding: 5rem 0; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,.04) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(255,255,255,.04) 0%, transparent 50%);
}
.hero-content { position: relative; text-align: center; max-width: 720px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-full); padding: .35rem .875rem;
  font-size: .8rem; font-weight: 600; margin-bottom: 1.25rem; color: rgba(255,255,255,.9);
}
.hero h1      { color: #fff; margin-bottom: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,.15); }
.hero-desc    { font-size: 1.1rem; color: rgba(255,255,255,.85); line-height: 1.7; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-categories {
  display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap;
  margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.15);
}
.hero-cat-chip {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-full); padding: .4rem 1rem;
  font-size: .8rem; color: rgba(255,255,255,.9); transition: var(--transition);
}
.hero-cat-chip:hover { background: rgba(255,255,255,.2); text-decoration: none; }

/* === Section ================================== */
.section     { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-header { margin-bottom: 2.5rem; }
.section-header.center { text-align: center; }
.section-label {
  display: inline-block; background: var(--primary-lighter); color: var(--primary-dark);
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .25rem .75rem; border-radius: var(--radius-full); margin-bottom: .75rem;
}
.section-title    { font-size: clamp(1.4rem,3vw,1.875rem); margin-bottom: .5rem; }
.section-desc     { color: var(--text-light); font-size: 1rem; max-width: 640px; }
.section-header.center .section-desc { margin: 0 auto; }
.section-action { margin-top: 2rem; text-align: center; }

/* === Category Cards =========================== */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 1.25rem; }
.category-card {
  padding: 1.5rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border-light); background: #fff;
  transition: var(--transition); text-decoration: none; display: block;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.category-icon  { font-size: 2rem; margin-bottom: .75rem; display: block; }
.category-name  { font-size: 1rem; font-weight: 700; color: var(--text-heading); margin-bottom: .375rem; }
.category-desc  { font-size: .8rem; color: var(--text-light); line-height: 1.6; margin-bottom: .75rem; }
.category-count { font-size: .75rem; color: var(--text-muted); }

/* === Post Cards ================================ */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; }
.post-card {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border-light);
  overflow: hidden; transition: var(--transition); display: flex; flex-direction: column;
  text-decoration: none;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.post-card-thumb {
  height: 140px; background: var(--bg-green-light);
  display: flex; align-items: center; justify-content: center; font-size: 3.5rem;
}
.post-card-body  { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.post-meta       { display: flex; align-items: center; gap: .5rem; margin-bottom: .625rem; flex-wrap: wrap; }
.cat-badge {
  display: inline-block; padding: .2rem .6rem; border-radius: var(--radius-full);
  font-size: .7rem; font-weight: 600; text-decoration: none;
}
.date-text       { font-size: .75rem; color: var(--text-muted); }
.post-card-title {
  font-size: 1rem; font-weight: 700; color: var(--text-heading); margin-bottom: .5rem;
  line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-summary {
  font-size: .875rem; color: var(--text-light); line-height: 1.65;
  margin-bottom: 1rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .875rem; border-top: 1px solid var(--border-light);
}
.post-author-mini { display: flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--text-muted); }
.author-avatar-sm {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary-lighter); display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 700; color: var(--primary-dark);
}
.read-more { font-size: .8rem; color: var(--primary); font-weight: 600; }

/* === Breadcrumb ================================ */
.breadcrumb {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem; color: var(--text-muted); flex-wrap: wrap; margin-bottom: 2rem;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border); }

/* === Article Layout =========================== */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
.article-main   { min-width: 0; }
.article-sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.article-header  { margin-bottom: 2rem; }
.article-category{
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--primary); font-size: .875rem; font-weight: 600; margin-bottom: .75rem; text-decoration: none;
}
.article-title   { font-size: clamp(1.6rem,3.5vw,2.25rem); line-height: 1.3; margin-bottom: .875rem; }
.article-summary {
  font-size: 1.0625rem; color: var(--text-light); line-height: 1.75; margin-bottom: 1.25rem;
  padding: 1rem 1.25rem; background: var(--bg-alt); border-radius: var(--radius); border-left: 3px solid var(--primary);
}
.article-meta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-light); margin-bottom: 2rem;
}
.meta-author { display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; color: var(--text-body); }
.meta-author a { color: var(--primary); }
.author-avatar-md {
  width: 32px; height: 32px; border-radius: 50%; background: var(--primary-lighter);
  display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; color: var(--primary-dark);
}
.meta-date    { font-size: .8rem; color: var(--text-muted); }
.meta-updated { font-size: .75rem; color: var(--text-muted); background: var(--bg-muted); padding: .2rem .6rem; border-radius: var(--radius-full); }

/* === Table of Contents ======================== */
.toc-box {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem; margin-bottom: 2.5rem;
}
.toc-title { font-size: .8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .875rem; }
.toc-list  { display: flex; flex-direction: column; gap: .375rem; }
.toc-list a {
  font-size: .875rem; color: var(--text-body); padding: .2rem 0;
  display: flex; align-items: center; gap: .5rem; transition: var(--transition);
}
.toc-list a::before { content:''; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--primary-light); flex-shrink: 0; }
.toc-list a:hover { color: var(--primary); text-decoration: none; }

/* === Article Body ============================= */
.article-body { font-size: 1.0125rem; line-height: 1.85; color: var(--text-body); }
.article-body h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--border-light); }
.article-body h3 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: .75rem; }
.article-body h4 { font-size: 1.05rem; margin-top: 1.5rem; margin-bottom: .5rem; }
.article-body p  { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1.25rem 1.5rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: .4rem; line-height: 1.75; }
.article-body strong { font-weight: 700; color: var(--text-heading); }
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body blockquote {
  margin: 1.5rem 0; padding: 1rem 1.25rem;
  border-left: 4px solid var(--primary-light); background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--text-light);
}

/* === Summary / Warning / Checklist ============ */
.summary-box {
  background: var(--bg-green-light); border: 1px solid var(--primary-lighter);
  border-radius: var(--radius-lg); padding: 1.5rem; margin: 2rem 0;
}
.summary-box-title {
  font-size: .85rem; font-weight: 700; color: var(--primary-dark);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: .875rem;
  display: flex; align-items: center; gap: .4rem;
}
.summary-list { display: flex; flex-direction: column; gap: .5rem; }
.summary-list li { display: flex; align-items: flex-start; gap: .5rem; font-size: .9rem; color: var(--text-body); line-height: 1.6; }
.summary-list li::before { content:'✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; margin-top: .05em; }

.warning-box { background: #fff8e1; border: 1px solid #ffe082; border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.warning-box-title { font-size: .875rem; font-weight: 700; color: #e65100; margin-bottom: .75rem; display: flex; align-items: center; gap: .4rem; }

.checklist { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin: 2rem 0; }
.checklist-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.checklist-list  { display: flex; flex-direction: column; gap: .625rem; }
.checklist-item  {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .9rem; line-height: 1.6; padding: .5rem; border-radius: var(--radius-sm); transition: var(--transition);
}
.checklist-item:hover { background: var(--bg-alt); }
.checkbox-icon { width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 4px; flex-shrink: 0; margin-top: .1em; }

/* === FAQ ====================================== */
.faq-list  { display: flex; flex-direction: column; gap: .75rem; margin: 1.5rem 0; }
.faq-item  { border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; padding: 1rem 1.25rem;
  font-size: .9375rem; font-weight: 600; color: var(--text-heading);
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  background: #fff; transition: var(--transition);
}
.faq-question:hover { background: var(--bg-alt); }
.faq-toggle { font-size: 1.2rem; color: var(--primary); flex-shrink: 0; transition: var(--transition); }
.faq-answer {
  display: none; padding: 0 1.25rem 1rem;
  font-size: .9rem; color: var(--text-light); line-height: 1.75;
  background: var(--bg-alt); border-top: 1px solid var(--border-light);
}
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }

/* === Related Posts ============================ */
.related-posts { margin: 3rem 0; }
.related-posts-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 1rem; }
.related-posts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.related-post-card {
  padding: 1rem; border: 1px solid var(--border-light); border-radius: var(--radius);
  background: #fff; transition: var(--transition); text-decoration: none; display: block;
}
.related-post-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); text-decoration: none; }
.related-post-cat   { font-size: .7rem; font-weight: 600; color: var(--primary); margin-bottom: .25rem; }
.related-post-title { font-size: .85rem; font-weight: 600; color: var(--text-heading); line-height: 1.45; }

/* === Author Box ================================ */
.author-box { border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.75rem; margin: 3rem 0; background: #fff; }
.author-box-inner { display: flex; gap: 1.25rem; align-items: flex-start; }
.author-avatar-lg {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 800; color: #fff; flex-shrink: 0;
}
.author-box-label   { font-size: .7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .25rem; }
.author-box-name    { font-size: 1.0625rem; font-weight: 700; margin-bottom: .25rem; }
.author-box-name a  { color: var(--primary); }
.author-box-bio     { font-size: .875rem; color: var(--text-light); line-height: 1.65; }
.author-box-actions { margin-top: .875rem; display: flex; gap: .5rem; }

/* === Sidebar ================================== */
.sidebar-widget { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1.5rem; }
.sidebar-widget-title { font-size: .8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; padding-bottom: .625rem; border-bottom: 1px solid var(--border-light); }
.sidebar-cat-item { display: flex; align-items: center; justify-content: space-between; padding: .375rem .5rem; border-radius: var(--radius-sm); transition: var(--transition); font-size: .875rem; color: var(--text-body); text-decoration: none; }
.sidebar-cat-item:hover { background: var(--bg-alt); color: var(--primary); text-decoration: none; }
.sidebar-cat-count { font-size: .7rem; background: var(--bg-muted); color: var(--text-muted); padding: .15rem .5rem; border-radius: var(--radius-full); }
.sidebar-post-list { display: flex; flex-direction: column; gap: .75rem; }
.sidebar-post-item { display: flex; flex-direction: column; gap: .2rem; padding: .5rem 0; border-bottom: 1px solid var(--border-light); text-decoration: none; }
.sidebar-post-item:last-child { border-bottom: none; }
.sidebar-post-item:hover .sidebar-post-title { color: var(--primary); }
.sidebar-post-title { font-size: .85rem; font-weight: 600; color: var(--text-heading); line-height: 1.45; transition: var(--transition); }
.sidebar-post-date  { font-size: .7rem; color: var(--text-muted); }

/* === Page Header ============================== */
.page-header { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding: 3rem 0; margin-bottom: 3rem; }
.page-header-inner { text-align: center; }
.page-header-icon  { font-size: 2.5rem; margin-bottom: .75rem; display: block; }
.page-header h1    { color: #fff; margin-bottom: .5rem; }
.page-header p     { color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* === Author Page ============================== */
.author-profile-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2.5rem; margin-bottom: 2.5rem; }
.author-profile-header { display: flex; gap: 1.75rem; align-items: flex-start; margin-bottom: 1.75rem; flex-wrap: wrap; }
.author-profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; font-weight: 800; color: #fff; flex-shrink: 0;
}
.author-profile-name  { font-size: 1.5rem; font-weight: 800; margin-bottom: .25rem; }
.author-profile-title { color: var(--primary); font-size: .9rem; font-weight: 600; margin-bottom: .5rem; }
.author-profile-bio   { font-size: .95rem; color: var(--text-light); line-height: 1.7; }
.admin-action-box { display: none; background: var(--bg-green-light); border: 1px dashed var(--primary-light); border-radius: var(--radius-lg); padding: 1rem 1.25rem; margin-top: 1.25rem; }
.admin-action-box.visible { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.admin-action-msg { font-size: .875rem; color: var(--primary-dark); font-weight: 500; }

/* === Column Cards ============================= */
.columns-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; }
.column-card {
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 1.5rem; transition: var(--transition); position: relative;
  overflow: hidden; display: block; text-decoration: none;
}
.column-card::before { content:''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(to right, var(--primary), var(--primary-light)); }
.column-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.column-badge { display: inline-block; background: var(--primary-lighter); color: var(--primary-dark); font-size: .7rem; font-weight: 700; padding: .2rem .6rem; border-radius: var(--radius-full); margin-bottom: .75rem; }
.column-card-title   { font-size: 1.0625rem; font-weight: 700; color: var(--text-heading); margin-bottom: .5rem; line-height: 1.45; }
.column-card-summary { font-size: .875rem; color: var(--text-light); line-height: 1.65; margin-bottom: .875rem; }
.column-card-footer  { display: flex; align-items: center; justify-content: space-between; font-size: .75rem; color: var(--text-muted); }

/* === About / Features ========================= */
.about-feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px,1fr)); gap: 1.5rem; margin: 2rem 0; }
.about-feature-card { padding: 1.5rem; border: 1px solid var(--border-light); border-radius: var(--radius-lg); background: #fff; }
.about-feature-icon  { font-size: 2rem; margin-bottom: .75rem; }
.about-feature-title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.about-feature-desc  { font-size: .875rem; color: var(--text-light); line-height: 1.65; }
.principles-list { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.principle-item  { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem; border-radius: var(--radius); background: var(--bg-alt); }
.principle-num   { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800; flex-shrink: 0; }
.principle-text  { font-size: .9rem; color: var(--text-body); line-height: 1.6; }

/* === Legal Pages ============================== */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-section { margin-bottom: 2.5rem; }
.legal-section h2 { font-size: 1.25rem; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border-light); }
.legal-section h3 { font-size: 1rem; margin: 1.25rem 0 .5rem; }
.legal-section p  { font-size: .9375rem; color: var(--text-light); line-height: 1.8; margin-bottom: .875rem; }
.legal-section ul { list-style: disc; padding-left: 1.5rem; margin-bottom: .875rem; }
.legal-section ul li { font-size: .9375rem; color: var(--text-light); line-height: 1.7; margin-bottom: .3rem; }
.legal-updated { font-size: .8rem; color: var(--text-muted); text-align: right; margin-bottom: 2rem; }

/* === Sitemap ================================== */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 2rem; }
.sitemap-category-title { font-size: .875rem; font-weight: 700; color: var(--primary); margin-bottom: .875rem; padding-bottom: .5rem; border-bottom: 2px solid var(--primary-lighter); text-transform: uppercase; letter-spacing: .06em; }
.sitemap-links { display: flex; flex-direction: column; gap: .4rem; }
.sitemap-links a { font-size: .875rem; color: var(--text-body); padding: .2rem 0; }
.sitemap-links a:hover { color: var(--primary); }

/* === Admin Layout ============================= */
.admin-body { background: #f0f4f0; min-height: 100vh; }
.admin-login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 2rem;
}
.admin-login-card { background: #fff; border-radius: var(--radius-xl); padding: 2.5rem; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.admin-login-logo  { text-align: center; margin-bottom: 2rem; }
.admin-login-title { font-size: 1.5rem; font-weight: 800; margin-bottom: .25rem; }
.admin-login-sub   { font-size: .875rem; color: var(--text-muted); }
.admin-demo-notice { background: #fff8e1; border: 1px solid #ffe082; border-radius: var(--radius); padding: .75rem 1rem; font-size: .8rem; color: #e65100; margin-bottom: 1.5rem; line-height: 1.55; }
.admin-layout  { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--primary-dark); color: #fff; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.admin-sidebar-header { padding: 1.5rem 1.25rem 1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar-brand  { font-size: 1rem; font-weight: 800; color: #fff; }
.admin-sidebar-sub    { font-size: .7rem; color: rgba(255,255,255,.4); margin-top: .2rem; }
.admin-nav { padding: 1rem 0; flex: 1; }
.admin-nav-section { padding: .375rem 1.25rem; font-size: .65rem; font-weight: 700; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .1em; margin-top: 1rem; }
.admin-nav-link {
  display: flex; align-items: center; gap: .625rem; padding: .6rem 1.25rem;
  font-size: .875rem; color: rgba(255,255,255,.75); transition: var(--transition);
  cursor: pointer; border: none; background: none; width: 100%; text-align: left;
  font-family: inherit; border-left: 3px solid transparent;
}
.admin-nav-link:hover  { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav-link.active { background: rgba(255,255,255,.12); color: #fff; border-left-color: var(--primary-light); }
.admin-nav-icon { font-size: 1rem; flex-shrink: 0; }
.admin-sidebar-footer { padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.1); }
.admin-main   { flex: 1; overflow-y: auto; }
.admin-topbar {
  background: #fff; border-bottom: 1px solid var(--border-light); padding: .875rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 10; box-shadow: var(--shadow-sm);
}
.admin-topbar-title { font-size: 1.125rem; font-weight: 700; }
.admin-content { padding: 2rem; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); gap: 1rem; margin-bottom: 2rem; }
.admin-stat-card  { background: #fff; border-radius: var(--radius-lg); padding: 1.25rem; border: 1px solid var(--border-light); }
.admin-stat-value { font-size: 2rem; font-weight: 800; color: var(--primary-dark); }
.admin-stat-label { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }
.admin-stat-icon  { font-size: 1.5rem; margin-bottom: .5rem; }
.admin-section { margin-bottom: 2.5rem; }
.admin-section-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border-light); }
.admin-table-wrap { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border-light); overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: var(--bg-alt); padding: .75rem 1rem; text-align: left; font-size: .75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border-light); }
.admin-table td { padding: .875rem 1rem; border-bottom: 1px solid var(--border-light); font-size: .875rem; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-alt); }
.status-badge { display: inline-block; padding: .2rem .625rem; border-radius: var(--radius-full); font-size: .7rem; font-weight: 600; }
.status-published { background: #e8f5e9; color: #2d6a4f; }
.status-draft     { background: #f3e5f5; color: #6A1B9A; }

/* Admin Forms */
.admin-form    { max-width: 800px; }
.form-group    { margin-bottom: 1.25rem; }
.form-label    { display: block; font-size: .875rem; font-weight: 600; color: var(--text-body); margin-bottom: .4rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: .625rem .875rem; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .9rem; font-family: inherit; color: var(--text-body); background: #fff; transition: var(--transition); outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45,106,79,.1); }
.form-textarea { resize: vertical; min-height: 160px; }
.form-hint     { font-size: .75rem; color: var(--text-muted); margin-top: .3rem; }
.form-row      { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-section-title { font-size: .8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border-light); margin-top: 2rem; }
.form-toggle   { display: flex; align-items: center; gap: .625rem; }
.toggle-switch { width: 40px; height: 22px; background: var(--border); border-radius: var(--radius-full); position: relative; cursor: pointer; transition: var(--transition); }
.toggle-switch.on { background: var(--primary); }
.toggle-knob   { width: 18px; height: 18px; background: #fff; border-radius: 50%; position: absolute; top: 2px; left: 2px; transition: var(--transition); }
.toggle-switch.on .toggle-knob { left: 20px; }
.form-actions  { display: flex; gap: .75rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border-light); }

/* === CTA / Contact / 404 ====================== */
.cta-section  { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; text-align: center; padding: 4rem 0; }
.cta-title    { color: #fff; font-size: 1.75rem; margin-bottom: .75rem; }
.cta-desc     { color: rgba(255,255,255,.8); margin-bottom: 2rem; font-size: 1.05rem; }
.contact-form-wrap { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-xl); padding: 2rem; }
.contact-notice { background: var(--bg-alt); border-radius: var(--radius); padding: .875rem 1rem; font-size: .875rem; color: var(--text-light); margin-top: 1.5rem; line-height: 1.6; }
.not-found-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4rem 1.5rem; flex-direction: column; }
.not-found-code  { font-size: 6rem; font-weight: 900; color: var(--primary-lighter); line-height: 1; margin-bottom: 1rem; }
.not-found-title { font-size: 1.5rem; margin-bottom: .75rem; }
.not-found-desc  { color: var(--text-light); margin-bottom: 2rem; }

/* === Utilities ================================ */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* === Back to Top ============================== */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px;
  background: var(--primary); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transition: var(--transition);
  z-index: 50; font-size: 1.1rem; text-decoration: none;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover   { background: var(--primary-dark); text-decoration: none; }

/* === Responsive =============================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .admin-sidebar { width: 200px; }
}
@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 3rem 0; }
  .section { padding: 3rem 0; }
  .page-header { padding: 2rem 0; margin-bottom: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .related-posts-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .author-profile-header { flex-direction: column; gap: 1rem; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
  .admin-nav { display: flex; flex-wrap: wrap; gap: .25rem; padding: .75rem; }
  .admin-nav-link { width: auto; flex: 0 0 auto; padding: .4rem .875rem; border-radius: var(--radius-full); border-left: none !important; border: 1px solid rgba(255,255,255,.15); font-size: .8rem; }
  .admin-nav-link.active { border-color: var(--primary-light); }
  .admin-nav-section { display: none; }
  .admin-stats-grid { grid-template-columns: repeat(2,1fr); }
  .posts-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2,1fr); }
  .about-feature-grid { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: repeat(2,1fr); }
  .author-box-inner { flex-direction: column; }
}
@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
  .sitemap-grid    { grid-template-columns: 1fr; }
  .admin-stats-grid { grid-template-columns: 1fr 1fr; }
  .hero h1         { font-size: 1.75rem; }
  .hero-actions    { flex-direction: column; align-items: stretch; }
  .footer-bottom   { flex-direction: column; }
  .columns-grid    { grid-template-columns: 1fr; }
}
