@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

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

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #f5f5f5;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}

a { color: #333; text-decoration: none; }
a:hover { color: #4CAF50; }

.wrapper {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
}

/* Left Sidebar */
.sidebar-left {
  width: 200px;
  min-width: 200px;
  background: #fff;
  border-right: 1px solid #e0e0e0;
  padding: 20px 0;
}

.site-logo {
  padding: 10px 20px 20px;
  font-size: 18px;
  font-weight: 700;
  color: #4CAF50;
  border-bottom: 1px solid #e0e0e0;
}

.side-menu { list-style: none; padding: 10px 0; }
.side-menu li { }
.side-menu li a {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  color: #555;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.side-menu li a:hover,
.side-menu li a.active {
  background: #f0f8f0;
  color: #4CAF50;
  border-left-color: #4CAF50;
}

.sidebar-banner {
  padding: 15px;
}
.sidebar-banner a { display: block; margin-bottom: 10px; }
.sidebar-banner img {
  width: 100%;
  border-radius: 4px;
}

/* Main Content */
.main-content {
  flex: 1;
  min-width: 0;
  background: #fff;
}

.top-nav {
  background: #fff;
  border-bottom: 2px solid #4CAF50;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-nav .site-name {
  font-size: 16px;
  font-weight: 700;
  color: #4CAF50;
  padding: 12px 0;
}

.nav-tabs { display: flex; list-style: none; }
.nav-tabs li a {
  display: block;
  padding: 12px 16px;
  font-size: 13px;
  color: #666;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.nav-tabs li a:hover,
.nav-tabs li a.active {
  color: #4CAF50;
  border-bottom-color: #4CAF50;
}

.page-info {
  padding: 12px 20px;
  font-size: 12px;
  color: #999;
  border-bottom: 1px solid #eee;
}

/* Post List */
.post-list { padding: 0 20px; }

.post-card {
  display: flex;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  gap: 16px;
}

.post-thumb {
  width: 250px;
  min-width: 250px;
  height: 150px;
  overflow: hidden;
  border-radius: 4px;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-info { flex: 1; min-width: 0; }
.post-info h2 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.4;
}
.post-info h2 a:hover { color: #4CAF50; }

.post-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}
.post-meta span { margin-right: 12px; }
.post-meta .author { color: #4CAF50; font-weight: 500; }

.post-summary {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  padding: 20px;
  gap: 4px;
}
.pagination a, .pagination span {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid #ddd;
  border-radius: 3px;
  color: #666;
}
.pagination .current {
  background: #4CAF50;
  color: #fff;
  border-color: #4CAF50;
}
.pagination a:hover {
  background: #f0f8f0;
  border-color: #4CAF50;
}

/* Right Sidebar */
.sidebar-right {
  width: 160px;
  min-width: 160px;
  background: #fff;
  border-left: 1px solid #e0e0e0;
  padding: 15px;
}
.sidebar-right img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* Post Page */
.post-page { padding: 30px 20px; }
.post-page h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}
.post-page .post-meta {
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}
.post-page .featured-image {
  width: 100%;
  max-width: 600px;
  border-radius: 6px;
  margin-bottom: 24px;
}
.post-page .post-body h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 4px solid #4CAF50;
}
.post-page .post-body h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 20px 0 10px;
}
.post-page .post-body p {
  margin-bottom: 14px;
  line-height: 1.8;
  font-size: 15px;
}
.post-page .post-body ul,
.post-page .post-body ol {
  margin: 10px 0 14px 24px;
  line-height: 1.8;
}
.post-page .post-body img {
  max-width: 100%;
  border-radius: 4px;
  margin: 10px 0;
}

/* Inline Banner */
.inline-banner {
  display: block;
  text-align: center;
  margin: 24px 0;
  padding: 10px;
  background: #fafafa;
  border-radius: 6px;
}
.inline-banner img {
  max-width: 100%;
  border-radius: 4px;
}

/* Related Posts */
.related-posts {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid #4CAF50;
}
.related-posts h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.related-list {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.related-item {
  flex: 1;
  min-width: 200px;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
}
.related-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.related-item .related-title {
  padding: 10px;
  font-size: 13px;
  font-weight: 500;
}

/* JSON-LD hidden */
.json-ld { display: none; }

/* FAQ Page */
.faq-page { padding: 30px 20px; }
.faq-page h1 { font-size: 22px; margin-bottom: 20px; }
.faq-item { margin-bottom: 16px; border: 1px solid #eee; border-radius: 6px; padding: 16px; }
.faq-item h3 { font-size: 15px; color: #4CAF50; margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: #555; }

/* About */
.about-page { padding: 30px 20px; }
.about-page h1 { font-size: 22px; margin-bottom: 20px; }
.about-page p { margin-bottom: 14px; line-height: 1.8; }

/* Responsive */
@media (max-width: 900px) {
  .sidebar-left, .sidebar-right { display: none; }
  .wrapper { display: block; }
  .post-thumb { width: 120px; min-width: 120px; height: 80px; }
  .top-nav { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .post-card { flex-direction: column; }
  .post-thumb { width: 100%; min-width: 100%; height: 180px; }
}

/* Featured Image Overlay */
.featured-image-wrap {
  position: relative;
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
}
.featured-image-wrap .featured-image {
  width: 100%;
  display: block;
  min-height: 250px;
  object-fit: cover;
}
.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 24px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
}
.featured-category {
  display: inline-block;
  background: #4CAF50;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 8px;
}
.featured-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Related Posts - Bigger Cards */
.related-posts { margin-top: 40px; padding: 24px; background: #f8f9fa; border-radius: 12px; }
.related-posts h3 { font-size: 20px; margin-bottom: 16px; color: #333; }
.related-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.related-item {
  display: block; padding: 20px; background: #fff; border-radius: 10px;
  border: 1px solid #e0e0e0; text-decoration: none; color: #333;
  transition: all 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.related-item:hover { border-color: #4CAF50; box-shadow: 0 4px 12px rgba(76,175,80,0.15); transform: translateY(-2px); }
.related-title { font-size: 16px; font-weight: 600; line-height: 1.5; }

/* Category Posts Section */
.category-posts { margin-top: 32px; padding: 24px; background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; }
.category-posts h3 { font-size: 20px; margin-bottom: 16px; color: #333; }
.category-post-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cat-post-item {
  display: block; padding: 16px; background: #f9fafb; border-radius: 8px;
  text-decoration: none; color: #333; border-left: 3px solid #4CAF50;
  transition: all 0.2s;
}
.cat-post-item:hover { background: #e8f5e9; }
.cat-post-item .cat-label { font-size: 11px; color: #4CAF50; font-weight: bold; margin-bottom: 4px; display: block; }
.cat-post-item .cat-title { font-size: 14px; font-weight: 600; line-height: 1.4; }

/* Sidebar Posts */
.sidebar-posts { margin: 20px 0; padding: 16px; background: #f9fafb; border-radius: 10px; }
.sidebar-posts h4 { font-size: 16px; margin-bottom: 12px; color: #333; }
.sidebar-post-link {
  display: block; padding: 12px 0; border-bottom: 1px solid #eee;
  text-decoration: none; color: #333; font-size: 14px; font-weight: 500;
  line-height: 1.5; transition: color 0.2s;
}
.sidebar-post-link:hover { color: #4CAF50; }
.sidebar-post-link:last-child { border-bottom: none; }

@media (max-width: 768px) {
  .category-post-list { grid-template-columns: 1fr; }
  .related-list { grid-template-columns: 1fr; }
}
