/* ========== Reset + Base ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif; color: #1a1a1a; background: #fff; line-height: 1.6; }
a { color: #1a73e8; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== Header ========== */
.site-header { background: #fff; position: sticky; top: 0; z-index: 100; }
.header-logo { text-align: center; padding: 14px 0 10px; }
.logo { font-size: 22px; font-weight: 800; color: #1a1a1a; display: inline-flex; align-items: center; }
.logo:hover { text-decoration: none; }
.logo-img { height: 50px; width: auto; }

/* 메뉴바: 왼쪽 카테고리 + 오른쪽 로그인, 배너 폭과 정렬 */
.header-navbar { background: #fff; border-top: 1px solid #eee; border-bottom: 2px solid #1a1a1a; }
.header-navbar-inner { display: flex; align-items: center; padding: 0; }
.main-nav { display: flex; gap: 18px; align-items: center; padding: 9px 0; flex: 1; min-width: 0; }
.main-nav > a, .nav-dropdown-toggle { font-size: 14px; color: #555; font-weight: 600; white-space: nowrap; text-decoration: none; }
.main-nav > a:hover, .nav-dropdown-toggle:hover { color: #1a1a1a; text-decoration: none; }
.nav-dropdown { position: relative; }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); min-width: 160px; padding: 6px 0; z-index: 200; margin-top: 4px; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 7px 16px; font-size: 13px; color: #374151; font-weight: 500; white-space: nowrap; }
.nav-dropdown-menu a:hover { background: #f3f4f6; color: #1a1a1a; text-decoration: none; }
.nav-dropdown-menu a.sub-indent { font-size: 12px; color: #6b7280; }
.header-right { display: flex; gap: 10px; align-items: center; font-size: 13px; white-space: nowrap; flex-shrink: 0; margin-left: auto; }
.header-right a { color: #555; font-weight: 500; font-size: 13px; }
.header-right button { background: none; border: none; cursor: pointer; font-size: 13px; color: #1a73e8; font-weight: 500; }
.header-right span { color: #333; font-weight: 600; font-size: 13px; }
.header-right .nav-sep { color: #ddd; font-size: 13px; font-weight: 400; }
.header-right .nav-sub-link { font-size: 13px !important; color: #555 !important; font-weight: 500 !important; }

/* ========== Main ========== */
main { min-height: 60vh; padding: 24px 0; }

/* ========== Footer ========== */
.site-footer { background: #f5f5f5; border-top: 1px solid #ddd; padding: 24px 0; margin-top: 40px; text-align: center; }
.footer-links { margin-bottom: 12px; font-size: 13px; }
.footer-links a { color: #555; margin: 0 4px; }
.copyright { font-size: 12px; color: #999; line-height: 1.8; }

/* ========== Breaking News Bar ========== */
.breaking-bar { background: #dc2626; color: #fff; padding: 8px 0; margin-bottom: 16px; overflow: hidden; border-radius: 4px; display: flex; align-items: center; }
.breaking-label { flex-shrink: 0; background: #fff; color: #dc2626; padding: 2px 12px; font-size: 12px; font-weight: 800; margin: 0 12px; border-radius: 3px; }
.breaking-scroll { display: flex; gap: 40px; overflow-x: auto; scrollbar-width: none; }
.breaking-scroll::-webkit-scrollbar { display: none; }
.breaking-scroll a { color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; }
.breaking-scroll a:hover { text-decoration: underline; }

/* ========== Home Search ========== */
.home-search { margin-bottom: 20px; }
.search-form { display: flex; gap: 8px; margin-bottom: 24px; }
.search-input { flex: 1; padding: 10px 14px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.search-input:focus { outline: none; border-color: #1a73e8; }

/* ========== Banner Top ========== */
.banner-top { margin-bottom: 16px; text-align: center; }
.banner-top img { max-height: 90px; }

/* ========== Home Layout (Main + Sidebar) ========== */
.home-layout { display: grid; grid-template-columns: 1fr 300px; gap: 30px; }
.home-main { min-width: 0; }
.home-sidebar { min-width: 0; }

/* ========== Hero Section ========== */
.hero-section { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px; }
.hero-main { grid-column: 1; }
.hero-main-link { display: block; color: #1a1a1a; border-radius: 8px; overflow: hidden; background: #f8f8f8; }
.hero-main-link:hover { text-decoration: none; }
.hero-main-link:hover h2 { color: #1a73e8; }
.hero-main-thumb { aspect-ratio: 16/9; overflow: hidden; }
.hero-main-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-main-body { padding: 16px; }
.hero-main-body h2 { font-size: 22px; font-weight: 800; line-height: 1.4; margin-bottom: 8px; }
.hero-main-body p { font-size: 14px; color: #555; line-height: 1.6; margin-bottom: 8px; }
.hero-main-body .meta { font-size: 12px; color: #999; }

.hero-sub { display: flex; flex-direction: column; gap: 8px; }
.hero-sub-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 6px; color: #1a1a1a; transition: background 0.15s; }
.hero-sub-item:hover { background: #f5f5f5; text-decoration: none; }
.hero-sub-thumb { flex-shrink: 0; width: 100px; height: 66px; overflow: hidden; border-radius: 4px; }
.hero-sub-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-sub-title { font-size: 14px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ========== Section Header ========== */
.home-section { margin-bottom: 30px; }
.section-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #1a1a1a; padding-bottom: 8px; margin-bottom: 16px; }
.section-header h2 { font-size: 18px; font-weight: 800; }
.section-more { font-size: 13px; color: #999; }
.section-more:hover { color: #1a73e8; }

/* ========== Category Articles ========== */
.category-articles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.category-article-item a { display: block; color: #1a1a1a; }
.category-article-item a:hover { text-decoration: none; }
.category-article-item a:hover h4 { color: #1a73e8; }
.category-article-item h4 { font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.category-article-item .desc { font-size: 13px; color: #666; line-height: 1.5; margin-bottom: 4px; }
.category-article-item .meta { font-size: 12px; color: #999; }
.category-article-item.featured { grid-column: 1 / -1; }
.category-article-item.featured h4 { font-size: 17px; }
.category-article-thumb { aspect-ratio: 16/9; overflow: hidden; border-radius: 4px; margin-bottom: 8px; }
.category-article-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ========== Photo Grid ========== */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.photo-card { display: block; position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.photo-card:hover img { transform: scale(1.05); }
.photo-card:hover { text-decoration: none; }
.photo-title {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff; padding: 20px 10px 10px; font-size: 13px; font-weight: 600;
}

/* ========== Sidebar Widgets ========== */
.sidebar-widget { background: #fafafa; border: 1px solid #eee; border-radius: 8px; padding: 16px; margin-bottom: 20px; }
.sidebar-widget h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #1a1a1a; }
.popular-list { list-style: none; counter-reset: rank; }
.popular-list li { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; line-height: 1.4; align-items: flex-start; }
.popular-list li:last-child { border-bottom: none; }
.popular-list .rank {
    flex-shrink: 0; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
    border-radius: 4px; font-size: 11px; font-weight: 800; color: #fff; background: #999;
}
.popular-list li:nth-child(-n+3) .rank { background: #dc2626; }
.popular-list a { color: #333; font-weight: 500; }
.popular-list a:hover { color: #1a73e8; }

.sidebar-banners { background: transparent; border: none; padding: 0; }
.sidebar-banner { display: block; margin-bottom: 12px; }
.sidebar-banner img { width: 100%; border-radius: 4px; }

/* ========== Error Pages ========== */
.error-page { text-align: center; padding: 80px 20px; max-width: 480px; margin: 0 auto; }
.error-code { font-size: 96px; font-weight: 900; color: #e5e7eb; line-height: 1; margin-bottom: 8px; }
.error-page h2 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.error-page p { font-size: 15px; color: #666; margin-bottom: 24px; line-height: 1.6; }
.error-actions { display: flex; gap: 8px; justify-content: center; margin-bottom: 30px; }
.error-search { max-width: 360px; margin: 0 auto; }

/* ========== Static Page ========== */
.static-page { max-width: 780px; margin: 0 auto; padding-top: 20px; }
.page-content { font-size: 15px; line-height: 1.9; color: #333; }
.page-content .page-hero { text-align: center; padding: 40px 0 32px; border-bottom: 2px solid #1a1a1a; margin-bottom: 32px; }
.page-content .page-hero h1 { font-size: 28px; font-weight: 900; color: #111; margin-bottom: 8px; }
.page-content .page-hero .page-date { font-size: 13px; color: #999; }
.page-content h2 { font-size: 18px; font-weight: 800; color: #111; margin: 36px 0 14px; padding-bottom: 8px; border-bottom: 1px solid #eee; }
.page-content h3 { font-size: 16px; font-weight: 700; color: #222; margin: 28px 0 10px; }
.page-content p { margin-bottom: 14px; }
.page-content ul, .page-content ol { margin: 0 0 14px 20px; }
.page-content li { margin-bottom: 6px; }
.page-content .info-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
.page-content .info-table th { background: #f8fafc; padding: 10px 14px; text-align: left; border: 1px solid #e5e7eb; font-weight: 600; color: #374151; width: 30%; }
.page-content .info-table td { padding: 10px 14px; border: 1px solid #e5e7eb; }
.page-content .highlight-box { background: #f0f7ff; border-left: 4px solid #1a73e8; padding: 16px 20px; margin: 20px 0; border-radius: 4px; font-size: 14px; }
.page-content .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.page-content .contact-card { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 8px; padding: 20px; }
.page-content .contact-card h3 { margin: 0 0 8px; font-size: 15px; }
.page-content .contact-card p { margin: 0; font-size: 14px; color: #555; }
@media (max-width: 768px) {
    .page-content .page-hero { padding: 24px 0 20px; }
    .page-content .page-hero h1 { font-size: 22px; }
    .page-content .contact-grid { grid-template-columns: 1fr; }
}

/* ========== Pagination ========== */
.pagination { display: flex; justify-content: center; gap: 4px; margin: 30px 0; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; }
.pagination a:hover { background: #f5f5f5; text-decoration: none; }
.pagination .current { background: #1a73e8; color: #fff; border-color: #1a73e8; }

/* ========== Forms ========== */
.auth-page { max-width: 480px; margin: 0 auto; }
.auth-page h2 { margin-bottom: 24px; font-size: 24px; }
.auth-form { margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: #333; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px;
    font-size: 14px; font-family: inherit; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: #1a73e8;
}
.radio-inline { display: inline-block; margin-right: 16px; font-weight: normal; cursor: pointer; }
.radio-inline input { width: auto; margin-right: 4px; }
.required { color: #e53e3e; }
.auth-links { text-align: center; font-size: 13px; }
.auth-links a { margin: 0 8px; }

/* ========== Buttons ========== */
.btn {
    display: inline-block; padding: 10px 20px; border: 1px solid #ddd; border-radius: 6px;
    font-size: 14px; font-weight: 600; cursor: pointer; text-align: center;
    background: #fff; color: #333; text-decoration: none; transition: all 0.15s;
}
.btn:hover { background: #f5f5f5; text-decoration: none; }
.btn-primary { background: #1a73e8; color: #fff; border-color: #1a73e8; }
.btn-primary:hover { background: #1557b0; }
.btn-full { display: block; width: 100%; }
.btn-link { background: none; border: none; color: #1a73e8; cursor: pointer; font-size: 13px; padding: 0; text-decoration: underline; }

/* ========== Alerts ========== */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; font-size: 14px; line-height: 1.6; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

/* ========== Article List ========== */
.article-list { list-style: none; }
.article-list li { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.article-list li a { font-weight: 500; color: #1a1a1a; }
.article-list .meta { display: block; font-size: 12px; color: #999; margin-top: 4px; }
.article-list .reject-reason { color: #e53e3e; }
.empty-msg { text-align: center; padding: 40px 0; color: #999; }

/* ========== Article List/Grid Page ========== */
.article-list-page h2 { margin-bottom: 20px; font-size: 22px; }
.article-grid { display: grid; gap: 16px; }
.article-card { border-bottom: 1px solid #f0f0f0; padding-bottom: 16px; }
.article-card-link { display: flex; gap: 16px; color: #1a1a1a; }
.article-card-link:hover { text-decoration: none; }
.article-card-link:hover .article-card-title { color: #1a73e8; }
.article-card-thumb { flex-shrink: 0; width: 180px; height: 120px; overflow: hidden; border-radius: 4px; }
.article-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body { flex: 1; min-width: 0; }
.article-card-title { font-size: 17px; font-weight: 700; line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-desc { font-size: 14px; color: #666; line-height: 1.5; margin-bottom: 8px; }
.meta { font-size: 12px; color: #999; }
.meta-cat { background: #f0f0f0; padding: 1px 6px; border-radius: 3px; font-weight: 600; margin-right: 4px; }
.meta-comment { color: #1a73e8; font-weight: 600; }

/* ========== Stat Cards ========== */
.stat-cards { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.stat-card {
    flex: 1; min-width: 100px; padding: 20px; text-align: center;
    border: 1px solid #e5e7eb; border-radius: 8px; background: #fafafa;
}
.stat-card a { color: inherit; }
.stat-card a:hover { text-decoration: none; }
.stat-card .num { display: block; font-size: 28px; font-weight: 800; color: #1a73e8; }
.stat-card .label { font-size: 12px; color: #666; }

/* ========== Profile / Mypage ========== */
.mypage { max-width: 780px; margin: 0 auto; }
.mypage h2 { font-size: 22px; margin-bottom: 20px; }
.breadcrumb { font-size: 13px; color: #999; margin-bottom: 16px; }
.breadcrumb a { color: #999; }

.profile-card { display: flex; gap: 24px; padding: 20px; border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 24px; }
.profile-info h3 { margin-bottom: 10px; }
.profile-info p { font-size: 14px; color: #555; margin-bottom: 4px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }

.mypage-section { margin-bottom: 24px; }
.mypage-section h3 { font-size: 16px; border-bottom: 1px solid #eee; padding-bottom: 8px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.activity-list { list-style: none; }
.activity-list li { padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
.activity-list a { color: #333; font-size: 14px; }
.activity-list .meta { display: block; font-size: 12px; color: #999; margin-top: 2px; }

.article-list-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.article-list-item .thumb { flex-shrink: 0; width: 80px; height: 56px; overflow: hidden; border-radius: 4px; }
.article-list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-list-content a { font-weight: 500; color: #1a1a1a; font-size: 15px; }

.comment-history-item { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.comment-history-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.article-link { font-weight: 600; color: #1a73e8; font-size: 13px; }
.comment-history-body { font-size: 14px; color: #444; line-height: 1.5; }

/* ========== Journalist ========== */
.journalist-nav { font-size: 13px; color: #999; }
.journalist-page h2 { margin-bottom: 16px; }
.journalist-page h3 { margin: 24px 0 12px; font-size: 16px; border-bottom: 1px solid #eee; padding-bottom: 8px; }
.journalist-page hr { border: none; border-top: 1px solid #eee; margin: 24px 0; }

/* ========== Article Detail ========== */
.article-detail { max-width: 780px; margin: 0 auto; padding-top: 16px; }
.article-meta-top { font-size: 13px; color: #999; margin-bottom: 12px; display: flex; gap: 12px; align-items: center; }
.article-category { background: #1a73e8; color: #fff; padding: 2px 10px; border-radius: 3px; font-size: 12px; font-weight: 600; }
.article-category:hover { text-decoration: none; opacity: 0.9; }
.article-title { font-size: 28px; font-weight: 800; line-height: 1.4; margin-bottom: 8px; }
.article-subtitle { font-size: 16px; color: #555; line-height: 1.6; margin-bottom: 16px; }
.article-writer { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin-bottom: 24px; font-size: 14px; }
.writer-name { font-weight: 600; }
.article-stats { color: #999; font-size: 13px; }
.article-thumbnail { margin-bottom: 24px; }
.article-thumbnail img { width: 100%; border-radius: 4px; }
.article-content { font-size: 16px; line-height: 1.9; word-break: keep-all; margin-bottom: 30px; }
.article-content img { max-width: 100%; height: auto !important; margin: 8px 0; object-fit: contain; display: block; }
.article-content p { margin-bottom: 16px; }
.article-content table { width: 100% !important; border: none !important; margin: 8px 0 !important; }
.article-content table td { border: none !important; padding: 0 !important; }
.article-content .body_img_table, .article-content .body_img_table2 { width: 100% !important; border: none !important; margin: 0 !important; padding: 0 !important; }
.article-content .body_img_caption { padding: 4px 0 8px !important; font-size: 13px; color: #777; }
.article-copyright { text-align: center; font-size: 13px; color: #999; padding: 16px 0; margin-bottom: 16px; border-top: 1px solid #f0f0f0; }
.article-more-by-writer { margin-bottom: 20px; }
.article-more-by-writer a { font-size: 13px; color: #1a73e8; font-weight: 500; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tag { display: inline-block; padding: 4px 12px; background: #f0f0f0; border-radius: 20px; font-size: 13px; color: #555; }
.tag:hover { background: #e0e0e0; text-decoration: none; }
.article-actions { display: flex; gap: 8px; margin-bottom: 24px; padding: 16px 0; border-top: 1px solid #eee; }
.btn-like.active, .btn-scrap.active { background: #1a73e8; color: #fff; border-color: #1a73e8; }
.article-nav { display: flex; justify-content: space-between; padding: 16px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin-bottom: 30px; font-size: 14px; }
.article-nav .prev, .article-nav .next { max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ========== Comment Section ========== */
.comment-section { max-width: 780px; margin: 0 auto 40px; }
.comment-section h3 { font-size: 18px; margin-bottom: 16px; border-bottom: 2px solid #1a1a1a; padding-bottom: 8px; }
.comment-form { margin-bottom: 24px; }
.comment-guest-fields { display: flex; gap: 8px; margin-bottom: 8px; }
.comment-guest-fields input { flex: 1; padding: 8px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; }
.comment-form textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; resize: vertical; margin-bottom: 8px; font-family: inherit; }
.comment-form .btn { float: right; }
.comment-list { clear: both; }
.comment-item { padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 13px; }
.comment-header strong { color: #333; }
.comment-header time { color: #999; }
.comment-delete { background: none; border: none; color: #e53e3e; font-size: 12px; cursor: pointer; margin-left: auto; }
.comment-body { font-size: 14px; line-height: 1.6; color: #444; }

/* ========== Social Share ========== */
.social-share { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.share-label { font-size: 13px; font-weight: 600; color: #666; }
.share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
    font-size: 14px; font-weight: 800; color: #fff; text-decoration: none; transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.8; text-decoration: none; }
.share-facebook { background: #1877f2; }
.share-twitter { background: #000; }
.share-kakao { background: #fee500; color: #3c1e1e; }
.share-link { background: #666; font-size: 16px; }

/* ========== Related Articles (inline) ========== */
.related-articles-inline { padding: 20px 0; border-top: 1px solid #eee; margin-bottom: 16px; }
.related-articles-inline h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.related-articles-inline ul { list-style: none; }
.related-articles-inline li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
.related-articles-inline li:last-child { border-bottom: none; }
.related-articles-inline li a { font-size: 14px; color: #333; font-weight: 500; flex: 1; margin-right: 12px; }
.related-articles-inline li a:hover { color: #1a73e8; text-decoration: none; }
.related-articles-inline li .meta { font-size: 12px; color: #999; flex-shrink: 0; }

/* ========== Data Table ========== */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { background: #f8f8f8; padding: 10px 12px; text-align: left; font-weight: 600; border-bottom: 2px solid #ddd; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; }
.data-table a { font-weight: 500; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.badge-info { background: #eff6ff; color: #1e40af; }
.badge-error { background: #fef2f2; color: #991b1b; }
.badge-success { background: #f0fdf4; color: #166534; }
.badge-warning { background: #fffbeb; color: #92400e; }

/* ========== Board Table ========== */
.list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.list-header h2 { margin: 0; }
.board-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.board-table th { background: #f8fafc; padding: 10px 12px; text-align: center; font-weight: 600; border-top: 2px solid #1a1a1a; border-bottom: 1px solid #ddd; font-size: 13px; color: #555; }
.board-table td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; text-align: center; }
.board-table .num { width: 60px; color: #999; font-size: 13px; }
.board-table .title { text-align: left; }
.board-table .title a { color: #1a1a1a; font-weight: 500; }
.board-table .title a:hover { color: #1a73e8; text-decoration: none; }
.board-table .writer { width: 90px; font-size: 13px; color: #555; }
.board-table .date { width: 90px; font-size: 12px; color: #999; }
.board-table .hit { width: 60px; font-size: 12px; color: #999; }
.board-table .actions { width: 60px; }
.btn-sm-link { font-size: 12px; color: #1a73e8; font-weight: 500; }
.btn-sm-link:hover { text-decoration: underline; }
@media (max-width: 768px) {
    .board-table .num, .board-table .hit { display: none; }
    .board-table .writer { width: 70px; }
    .board-table .date { width: 70px; }
    .board-table td, .board-table th { padding: 8px 6px; font-size: 13px; }
}

/* ========== Article Form ========== */
.article-form .form-group { margin-bottom: 20px; }
.article-form textarea { min-height: 300px; }
.form-actions { display: flex; gap: 8px; align-items: center; padding-top: 16px; border-top: 1px solid #eee; }
.image-list { display: flex; flex-wrap: wrap; gap: 12px; }
.image-item { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid #eee; border-radius: 6px; font-size: 13px; }

/* ========== Hamburger ========== */
.hamburger { display: none !important; background: none; border: none; font-size: 22px; cursor: pointer; padding: 8px; color: #374151; flex-shrink: 0; }

/* ========== Responsive ========== */

/* 태블릿 */
@media (max-width: 960px) {
    .home-layout { grid-template-columns: 1fr; }
    .home-sidebar { order: -1; }
    .hero-section { grid-template-columns: 1fr; }
    .hero-sub { flex-direction: row; overflow-x: auto; }
    .hero-sub-item { flex-shrink: 0; min-width: 200px; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-card { flex-direction: column; }
}

/* 모바일 */
@media (max-width: 768px) {
    /* 헤더: 햄버거 메뉴 */
    .hamburger { display: block !important; }
    .header-logo { padding: 10px 0 8px; }
    .logo-img { height: 36px; }
    .header-navbar-inner { flex-wrap: wrap; }
    .main-nav { display: none !important; flex-direction: column; gap: 0; padding: 0; width: 100%; }
    .header-navbar-inner.open .main-nav { display: flex !important; }
    .main-nav > a, .nav-dropdown-toggle { padding: 10px 0; border-bottom: 1px solid #f3f4f6; display: block; font-size: 15px; }
    .header-right { margin-left: 0; width: 100%; padding: 12px 0; margin-top: 4px; border-top: 2px solid #eee; gap: 12px; font-size: 13px; }
    .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 16px; display: none; }
    .nav-dropdown:hover .nav-dropdown-menu { display: block; }

    /* 기사 카드 */
    .article-card-link { flex-direction: column; }
    .article-card-thumb { width: 100%; height: 200px; }
    .category-articles { grid-template-columns: 1fr; }

    /* 기사 상세 */
    .article-detail { padding-top: 8px; }
    .article-title { font-size: 20px; line-height: 1.4; }
    .article-subtitle { font-size: 14px; }
    .article-content { font-size: 15px; line-height: 1.8; }
    .article-content img { margin: 12px 0; }
    .article-writer { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 13px; }
    .article-nav { flex-direction: column; gap: 8px; }
    .article-nav .prev, .article-nav .next { max-width: 100%; }
    .social-share { flex-wrap: wrap; }

    /* 댓글 */
    .comment-section h3 { font-size: 16px; }
    .comment-guest-fields { flex-direction: column; }

    /* 통계 카드 */
    .stat-cards { flex-wrap: wrap; }
    .stat-card { min-width: 80px; padding: 12px; }
    .stat-card .num { font-size: 22px; }

    /* 정적 페이지 */
    .static-page h1 { font-size: 20px; }
    .page-content { font-size: 14px; }

    /* 마이페이지 */
    .profile-actions { flex-direction: column; }

    /* 푸터 */
    .copyright { font-size: 11px; line-height: 2; }
    .footer-links { font-size: 12px; }
}

/* 소형 모바일 */
@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .header-logo { padding: 8px 0 6px; }
    .logo-img { height: 30px; }
    .article-title { font-size: 18px; }
    .article-content { font-size: 14px; }
    .hero-main-body h2 { font-size: 18px; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .article-card-thumb { height: 160px; }
    .btn { padding: 8px 14px; font-size: 13px; }
    .auth-page h2 { font-size: 20px; }
}
