:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius: 1rem;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Pretendard', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: inherit; text-decoration: none; transition: 0.2s; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.5rem; font-weight: 900; color: var(--primary); letter-spacing: -0.05em; }
.nav-menu { display: flex; gap: 1.5rem; align-items: center; }
.nav-item { position: relative; padding: 0.5rem 0; font-weight: 600; cursor: pointer; color: var(--text); }
.nav-item:hover { color: var(--primary); }
.nav-item::after { content: '▼'; font-size: 0.6rem; margin-left: 0.4rem; opacity: 0.5; }
.dropdown {
  position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 0.75rem; box-shadow: var(--shadow); padding: 1rem;
  display: none; grid-template-columns: repeat(2, 140px); gap: 0.5rem; min-width: 320px;
}
.nav-item:hover .dropdown { display: grid; }
.dropdown a { padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-size: 0.875rem; color: var(--muted); }
.dropdown a:hover { background: #f1f5f9; color: var(--primary); }

.search-section { background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 0; }
.search-container { max-width: 700px; margin: 0 auto; padding: 0 1.25rem; }
.search-form { display: flex; gap: 0.5rem; background: #f1f5f9; border-radius: 999px; padding: 0.4rem 0.4rem 0.4rem 1.25rem; border: 1px solid transparent; }
.search-form:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }
.search-form input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 1rem; }
.search-form button { background: var(--primary); color: #fff; border: 0; padding: 0.6rem 1.5rem; border-radius: 999px; font-weight: 700; cursor: pointer; }

.container { max-width: var(--max); margin: 0 auto; padding: 2rem 1.25rem; }
.section-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }

.site-footer { margin-top: 42px; border-top: 1px solid #e2e8eb; background: #fff; }
.footer-inner {
  max-width: 1140px; margin: 0 auto; padding: 26px 18px 34px; display: grid; gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.footer-title { font-size: 14px; font-weight: 800; margin-bottom: 6px; color: #1e2428; }
.footer-inner p, .footer-inner li, .footer-inner a { font-size: 13px; color: #5d6670; line-height: 1.6; }
.footer-inner ul { list-style: none; }
.copyright { max-width: 1140px; margin: 0 auto; padding: 0 18px 18px; font-size: 12px; color: #8a929b; }

.item-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 1.25rem;
  padding: 1.75rem; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.item-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--primary);
}
.status-badge { font-size: 0.75rem; font-weight: 800; padding: 0.35rem 0.75rem; border-radius: 2rem; }
.status-active { background: #dcfce7; color: #166534; }
.status-closed { background: #fee2e2; color: #991b1b; }

.blog-item {
  display: block; padding: 1.5rem; border: 1px solid #f1f5f9; border-radius: 1rem;
  transition: all 0.2s; background: #fff;
}
.blog-item:hover { background: #f8fafc; border-color: var(--primary); transform: translateX(4px); }
.related-link { display: block; padding-bottom: 1rem; border-bottom: 1px solid #f1f5f9; transition: all 0.2s; }
.related-link:hover { color: var(--primary); transform: translateX(4px); }
.related-link:last-child { border-bottom: 0; padding-bottom: 0; }

@media (max-width: 1024px) {
  main > div { grid-template-columns: 1fr !important; }
  .sidebar { margin-top: 2rem; }
}

@media (max-width: 780px) {
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-menu { gap: 1rem; font-size: 0.9rem; }
  .dropdown { left: -100px; grid-template-columns: 1fr; min-width: 200px; }
  main > div { grid-template-columns: 1fr !important; }
  .section-block a:hover { border-color: var(--primary); background: #f8fafc; }
}

@media (max-width: 992px) {
  main > div { grid-template-columns: 1fr !important; }
}
