:root {
    --primary: #1e3a8a; --bg: #f8fafc; --text: #0f172a; --card: #ffffff;
    --accent: #1d4ed8; --muted: #475569; --border: #cbd5e1;
}
* { box-sizing: border-box; font-family: "Pretendard Variable", -apple-system, sans-serif; }
body { background-color: var(--bg); color: var(--text); margin: 0; line-height: 1.6; }
header { background: linear-gradient(135deg, #172554 0%, #1e40af 100%); color: white; padding: 40px 20px 60px; text-align: center; position: relative; }
header h1 { margin: 0; font-size: 2.5rem; letter-spacing: -1px; }
.main-nav { margin-top: 25px; display: flex; justify-content: center; gap: 10px; }
.main-nav a { color: #f1f5f9; text-decoration: none; font-weight: 700; padding: 10px 25px; border-radius: 30px; transition: 0.3s; background: rgba(255,255,255,0.1); font-size: 1rem; }
.main-nav a:hover, .main-nav a.active { color: white; background: rgba(255,255,255,0.25); box-shadow: 0 0 0 2px white; }
.sub-nav-container { background: white; border-bottom: 1px solid var(--border); padding: 10px 0; display: flex; justify-content: center; gap: 30px; position: sticky; top: 0; z-index: 50; }
.sub-nav-link { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; padding: 5px 0; position: relative; transition: 0.2s; }
.sub-nav-link:hover { color: var(--accent); }
.sub-nav-link.active { color: var(--primary); }
.sub-nav-link.active::after { content: ""; position: absolute; bottom: -2px; left: 0; width: 100%; height: 3px; background: var(--primary); border-radius: 2px; }
.admin-link { position: absolute; top: 15px; right: 20px; font-size: 0.85rem; color: #cbd5e1; text-decoration: underline; }
.container { max-width: 900px; margin: 0 auto 50px; padding: 0 20px; transform: translateY(-30px); }
.search-container { background: white; padding: 12px; border-radius: 12px; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2); margin-bottom: 25px; display: flex; gap: 10px; border: 1px solid var(--border); }
.search-container input { flex: 1; border: 2px solid #e2e8f0; padding: 12px 18px; border-radius: 10px; font-size: 1rem; color: var(--text); }
.btn-search { background: var(--primary); color: white; border: none; padding: 0 30px; border-radius: 10px; cursor: pointer; font-weight: 700; }
.main-card { background: var(--card); border-radius: 20px; padding: 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); min-height: 500px; border: 1px solid #e2e8f0; }
.post-item { padding: 25px 0; border-bottom: 2px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; }
.post-title { font-size: 1.45rem; font-weight: 800; color: var(--primary); text-decoration: underline; text-underline-offset: 4px; display: block; margin-bottom: 12px; }
.post-meta { display: flex; gap: 15px; font-size: 0.9rem; color: var(--muted); align-items: center; flex-wrap: wrap; font-weight: 500; }
.badge { background: #0c4a6e; color: white; padding: 4px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; }
.btn { padding: 12px 24px; border-radius: 10px; cursor: pointer; text-decoration: none; font-size: 1rem; font-weight: 700; border: none; display: inline-block; transition: 0.2s; }
.btn-primary { background: var(--primary); color: white; }
.view-content { font-size: 1.15rem; line-height: 2; color: #0f172a; }
.content-link { color: var(--accent); text-decoration: underline; font-weight: 700; }
footer { text-align:center; padding: 50px 0; color: #334155; font-size: 0.95rem; background: #f1f5f9; border-top: 2px solid #e2e8f0; font-weight: 500; }
