/* Global Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    font-size: 14px;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.5;
}
a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; vertical-align: middle; }

/* Theme Styles */
/* Type B: Point Color Nav */
.zzan_wrap.b #gnb { 
    background: var(--point-color); 
    background: linear-gradient(90deg, var(--point-color) 0%, var(--sub-point-color) 100%);
    margin-top: 10px; 
    border-radius: var(--btn-radius) var(--btn-radius) 0 0; 
}
.zzan_wrap.b #gnb .depth1 { gap: 0; padding: 0; }
.zzan_wrap.b #gnb .depth1 > li > a { color: rgba(255,255,255,0.8); padding: 12px 20px; border-radius: 0; }
.zzan_wrap.b #gnb .depth1 > li:first-child > a { border-top-left-radius: var(--btn-radius); }
.zzan_wrap.b #gnb .depth1 > li.active > a, 
.zzan_wrap.b #gnb .depth1 > li > a:hover { color: #fff; background: rgba(255,255,255,0.15); }
.zzan_wrap.b #gnb .depth1 > li.active > a::after { display: none; }

/* Type C: Dark Deep */
.zzan_wrap.c .top_bar { background: color-mix(in srgb, var(--point-color), #000 85%); border-bottom: 1px solid rgba(255,255,255,0.05); color: rgba(255,255,255,0.5); }
.zzan_wrap.c .top_nav a:hover { color: #fff; }
.zzan_wrap.c #header { background: color-mix(in srgb, var(--point-color), #000 75%); border-bottom: none; }
.zzan_wrap.c #header .header_main h1 { color: #fff; }
.zzan_wrap.c #header .header_main h1 span { color: #fff; }
.zzan_wrap.c .search_box form { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.1); }
.zzan_wrap.c .search_box input { color: #fff; }
.zzan_wrap.c .search_box input::placeholder { color: rgba(255,255,255,0.4); }
.zzan_wrap.c .search_box button { background: rgba(255,255,255,0.1); color: #fff; }
.zzan_wrap.c .search_box button:hover { background: var(--point-color); }
.zzan_wrap.c #gnb { 
    background: var(--point-color); 
    background: linear-gradient(90deg, var(--point-color) 0%, var(--sub-point-color) 100%);
    margin-top: 10px; 
    border-radius: var(--btn-radius) var(--btn-radius) 0 0; 
}
.zzan_wrap.c #gnb .depth1 { gap: 0; padding: 0; }
.zzan_wrap.c #gnb .depth1 > li > a { color: rgba(255,255,255,0.8); padding: 12px 20px; border-radius: 0; font-size: 15px; }
.zzan_wrap.c #gnb .depth1 > li:first-child > a { border-top-left-radius: var(--btn-radius); }
.zzan_wrap.c #gnb .depth1 > li.active > a, 
.zzan_wrap.c #gnb .depth1 > li > a:hover { color: #fff; background: rgba(255,255,255,0.15); }
.zzan_wrap.c #gnb .depth1 > li.active > a::after { display: none; }
.zzan_wrap.c #header .m_menu_btn span,
.zzan_wrap.c #header .m_menu_btn span::before,
.zzan_wrap.c #header .m_menu_btn span::after { background: #fff; }

/* Layout Framework */
.inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.layout_grid { display: grid; grid-template-columns: 180px 1fr 280px; gap: 20px; padding: 15px 0 20px; }
/* 3col 사이드바 위치 스왑: 우측 로그인 사이드바 ↔ 좌측 */
.layout_grid.main.sidebar_swap { grid-template-columns: 280px 1fr 180px; }
.layout_grid.main.sidebar_swap .side_left { order: 3; }
.layout_grid.main.sidebar_swap #content { order: 2; }
.layout_grid.main.sidebar_swap .side_right { order: 1; }

/* Top Utility */
.top_bar { background: #fff; border-bottom: 1px solid var(--border-color); font-size: 12px; color: var(--text-sub); }
.top_nav { display: flex; justify-content: flex-end; gap: 15px; height: 32px; align-items: center; }
.top_nav a:hover { color: var(--point-color); }

/* Header */
#header { background: #fff; border-bottom: 2px solid #f1f5f9; }
.header_main { display: flex; align-items: center; padding: 20px 0; gap: 40px; min-height: 100px; }
.header_main h1 { font-size: 24px; font-weight: 800; color: var(--point-color); letter-spacing: -1px; display: flex; align-items: center; }
.header_main h1 img { max-height: 40px; vertical-align: middle; }

.header_banner_area { flex: 1; max-width: 468px; margin-left: auto; }
.headerBannerSwiper { width: 100%; height: 60px; border-radius: 8px; overflow: hidden; position: relative; }
.headerBannerSwiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }

.banner_ctrl { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); z-index: 10; display: flex; gap: 5px; opacity: 0; transition: 0.3s; }
.headerBannerSwiper:hover .banner_ctrl { opacity: 1; }
.banner_ctrl button { width: 24px; height: 24px; background: rgba(0,0,0,0.5); color: #fff; border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.banner_ctrl button:hover { background: var(--point-color); }

.search_box { width: 300px; margin-left: 20px; }
.search_box form { display: flex; align-items: stretch; background: #f1f5f9; border: 1px solid var(--border-color); border-radius: 25px; padding: 0; overflow: hidden; transition: 0.2s; height: 42px; }
.search_box form:focus-within { background: #fff; border-color: var(--point-color); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }
.search_box input { 
    flex: 1; padding: 0 20px; 
    background: transparent; border: none;
    font-size: 14px; outline: none; color: var(--text-main);
}
.search_box button { 
    padding: 0 20px; background: var(--point-color); color: #fff; 
    border-radius: 0; font-size: 13px; font-weight: 700; transition: 0.2s;
    white-space: nowrap; flex-shrink: 0;
}
.search_box button:hover { background: var(--sub-point-color); }


.ad_placeholder { flex: 1; height: 60px; background: #f8fafc; border: 1px dashed var(--border-color); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-mute); font-size: 12px; font-weight: 600; }

#gnb { position: relative; }
#gnb .depth1 { display: flex; gap: 30px; }
#gnb .depth1 > li { position: relative; }
#gnb .depth1 > li > a { display: block; padding: 12px 0; font-weight: 700; font-size: 15px; color: #334155; position: relative; }
#gnb .depth1 > li.active > a, #gnb .depth1 > li > a:hover { color: var(--point-color); }
#gnb .depth1 > li.active > a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--point-color); }

/* GNB Depth 2 & 3 Dropdown Common */
#gnb .depth2, #gnb .depth3 { 
    position: absolute; min-width: 180px; padding: 10px 0; z-index: 100; display: none;
    border-radius: 8px; overflow: hidden;
}
#gnb .depth2 { top: 100%; left: 0; }
#gnb .depth3 { top: -10px; left: 100%; }
#gnb .depth2 > li, #gnb .depth3 > li { position: relative; }
#gnb .depth2 a, #gnb .depth3 a { display: block; padding: 8px 20px; font-size: 13px; font-weight: 600; transition: 0.2s; }

#gnb li:hover > .depth2,
#gnb .depth2 li:hover > .depth3 { display: block; animation: gnb_fade_in 0.2s ease-out; }

@keyframes gnb_fade_in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Type A Dropdown: Minimal White */
.zzan_wrap.a #gnb .depth2, .zzan_wrap.a #gnb .depth3 { 
    background: #fff; border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.zzan_wrap.a #gnb .depth2 a, .zzan_wrap.a #gnb .depth3 a { color: #475569; }
.zzan_wrap.a #gnb .depth2 a:hover, .zzan_wrap.a #gnb .depth3 a:hover { background: #f1f5f9; color: var(--point-color); }

/* Type B Dropdown: Point Color Accent */
.zzan_wrap.b #gnb .depth2, .zzan_wrap.b #gnb .depth3 { 
    background: #fff; border: 1px solid var(--border-color);
    border-top: 3px solid var(--point-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
}
.zzan_wrap.b #gnb .depth3 { border-top: none; border-left: 3px solid var(--point-color); border-radius: 0 8px 8px 0; }
.zzan_wrap.b #gnb .depth2 a, .zzan_wrap.b #gnb .depth3 a { color: #334155; }
.zzan_wrap.b #gnb .depth2 a:hover, .zzan_wrap.b #gnb .depth3 a:hover { 
    background: color-mix(in srgb, var(--point-color), transparent 92%); 
    color: var(--point-color); 
}

/* Type C Dropdown: Dark & Glow */
.zzan_wrap.c #gnb .depth2, .zzan_wrap.c #gnb .depth3 { 
    background: color-mix(in srgb, var(--point-color), #000 85%); 
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px color-mix(in srgb, var(--point-color), transparent 80%);
}
.zzan_wrap.c #gnb .depth2 a, .zzan_wrap.c #gnb .depth3 a { color: rgba(255,255,255,0.7); }
.zzan_wrap.c #gnb .depth2 a:hover, .zzan_wrap.c #gnb .depth3 a:hover { 
    background: rgba(255,255,255,0.1); 
    color: #fff;
    text-shadow: 0 0 8px var(--point-color);
}

/* Common Side Box (Round Style) */
.side_box { 
    background: #fff; border: 1px solid var(--border-color); 
    border-radius: var(--card-radius); padding: 20px; margin-bottom: 20px; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); 
}
.side_title { font-size: 14px; font-weight: 800; color: var(--text-main); margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.side_title svg { width: 18px; height: 18px; color: var(--point-color); }

/* Side Left */
.menu_box ul li a { display: block; padding: 6px 0; color: #475569; font-size: 13px; display: flex; align-items: center; justify-content: space-between; }
.menu_box ul li a:hover { color: var(--point-color); transform: translateX(3px); }

/* N Icon & Badges */
.n_icon { 
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; background: #ef4444; color: #fff; 
    font-size: 10px; font-weight: 900; border-radius: 4px; 
    margin-left: 4px; vertical-align: middle;
    animation: n_bounce 2s infinite;
}
@keyframes n_bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hot_badge { color: #f97316; margin-left: 4px; font-size: 12px; }

/* Ranking List */
.rank_list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }

/* Notice Bar & Trends */
.notice_bar { background: #1e293b; color: #fff; padding: 8px 15px; border-radius: 8px; margin: 15px auto 5px; display: flex; align-items: center; justify-content: space-between; }
.notice_bar .tag { background: #ef4444; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: bold; margin-right: 10px; }

.trend_keywords { margin-bottom: 20px; padding: 15px; background: #fff; border: 1px solid var(--border-color); border-radius: 8px; }
.trend_keywords h3 { font-size: 14px; margin-bottom: 10px; color: var(--point-color); }
.keyword_list { display: flex; flex-wrap: wrap; gap: 8px; }
.keyword_list a { font-size: 13px; color: var(--text-main); background: #f1f5f9; padding: 4px 10px; border-radius: 15px; text-decoration: none; }
.keyword_list a:hover { background: var(--point-color); color: #fff; }
.rank_list li:last-child { border-bottom: none; }
.rank_list .num { width: 20px; height: 20px; background: #f1f5f9; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--text-sub); }
.rank_list li:nth-child(1) .num { background: #fef3c7; color: #d97706; }
.rank_list li:nth-child(2) .num { background: #f1f5f9; color: #64748b; }
.rank_list li:nth-child(3) .num { background: #fff7ed; color: #c2410c; }
.rank_list .nick { flex: 1; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank_list .point { font-size: 11px; color: var(--point-color); font-weight: 700; }

/* Main Content: Hot Issue Hybrid Layout */
.hot_issue { margin-bottom: 30px; position: relative; clear: both; }

/* 핫이슈 그리드: 좌측 70% / 우측 30% flex 레이아웃 */
.hotissue_custom_grid {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    height: 300px;
    align-items: stretch;
}

/* 좌측 메인 아이템 래퍼 (70%) */
.hotissue_custom_grid .main_issue_wrap {
    flex: 0 0 70%;
    width: 70%;
    height: 300px;
    overflow: hidden;
    border-radius: 12px;
}

/* 우측 서브 아이템 래퍼 (30%) - 위아래 2개 */
.hotissue_custom_grid .sub_issue_wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 300px;
    overflow: hidden;
}

/* 서브 아이템 개별 래퍼 */
.hotissue_custom_grid .sub_item_wrap {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
}

/* 공통 이슈 아이템 (a 태그) */
.hotissue_custom_grid .issue_item {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
    background-color: #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}
.hotissue_custom_grid .issue_item:hover { transform: translateY(-3px); }

/* 그라데이션 오버레이 */
.hotissue_custom_grid .issue_overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.25) 50%, transparent 100%);
    transition: 0.3s;
}
.hotissue_custom_grid .issue_item:hover .issue_overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

/* 텍스트 콘텐츠 영역 */
.hotissue_custom_grid .issue_content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 10;
    color: #fff;
    pointer-events: none;
    transition: 0.3s;
}
.hotissue_custom_grid .issue_item:hover .issue_content { transform: translateY(-5px); }

/* 서브 아이템 텍스트 위치 */
.hotissue_custom_grid .sub_item_wrap .issue_content {
    bottom: 12px;
    left: 12px;
    right: 12px;
}

/* 카테고리 배지 */
.hotissue_custom_grid .issue_category {
    display: inline-block;
    background: var(--point-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 4px;
    margin-bottom: 7px;
    letter-spacing: 0.3px;
    line-height: 1.2;
    text-shadow: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.hotissue_custom_grid .sub_item_wrap .issue_category {
    font-size: 10px;
    padding: 2px 7px;
    margin-bottom: 5px;
}

/* 제목 */
.hotissue_custom_grid .issue_content .title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
}
.hotissue_custom_grid .sub_item_wrap .issue_content .title {
    font-size: 13px;
    -webkit-line-clamp: 2;
}

/* No Thumb (SVG Placeholder) */
.no_thumb { display: flex !important; flex-direction: column; align-items: center; justify-content: center; background: #e2e8f0 !important; border: 1px solid var(--border-color); color: var(--text-mute); position: relative; }
.no_thumb svg { width: 80px !important; height: 80px !important; opacity: 0.1; color: var(--text-mute); position: relative; z-index: 2; margin-top: 0 !important; }
.no_thumb::before { content: 'NO IMAGE'; font-size: 12px; font-weight: 900; letter-spacing: 3px; opacity: 0.2; position: absolute; bottom: 30%; left: 50%; transform: translateX(-50%); z-index: 2; }
.sub_item.no_thumb svg { width: 50px !important; height: 50px !important; }
.sub_item.empty { cursor: default; opacity: 0.5; }

/* Board Tabs */
.main_boards { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.tab_header { display: flex; background: #f8fafc; border-bottom: 1px solid var(--border-color); }
.tab_header button { padding: 12px 20px; font-size: 14px; font-weight: 700; color: var(--text-sub); border-right: 1px solid var(--border-color); transition: 0.2s; }
.tab_header button.active { background: #fff; color: var(--point-color); border-bottom: 1px solid #fff; margin-bottom: -1px; }

.post_list { width: 100%; border-collapse: collapse; }
.post_list tr { border-bottom: 1px solid #f1f5f9; }
.post_list tr:last-child { border-bottom: none; }
.post_list td { padding: 10px 15px; font-size: 13px; }
.post_list td.title { color: #334155; }
.post_list td.title a { display: flex; align-items: center; gap: 5px; }
.post_list td.title a:hover { color: var(--point-color); }
.post_list td.title .cmt { color: var(--sub-point-color); font-weight: 800; font-size: 11px; }
.post_list td.author { color: var(--text-sub); font-size: 12px; text-align: center; }
.post_list td.time { color: var(--text-mute); font-size: 12px; text-align: right; }

/* Gallery */
.main_gallery { margin-bottom: 20px; }
.sec_title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.sec_title h3 { font-size: 16px; font-weight: 800; }
.sec_title .more, .sec_title .sec_more { font-size: 12px; color: var(--text-mute); }
.sec_title .sec_more:hover { color: var(--point-color); }

.gallery_grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.hot_issue .gallery_grid { grid-template-columns: repeat(3, 1fr); }
.gallery_item { cursor: pointer; }
.gallery_item .thumb { border-radius: 8px; overflow: hidden; aspect-ratio: 3/2; margin-bottom: 8px; position: relative; }
.gallery_item .thumb a { display: block; width: 100%; height: 100%; }
.gallery_item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; display: block; }
.gallery_item:hover .thumb img { transform: scale(1.05); }
.gallery_item .title { font-size: 13px; font-weight: 600; color: #475569; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }

/* ── NO IMAGE 플레이스홀더 ── */
.no_thumb_placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #94a3b8; gap: 6px;
}
.no_thumb_placeholder svg { width: 28px; height: 28px; opacity: 0.4; }
.no_thumb_placeholder span { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; opacity: 0.55; }
/* 카드갤러리: video_item > a 가 컨테이너 채우도록, placeholder는 absolute */
/* overflow:hidden으로 BFC 생성 → <p> margin-top collapse 방지 */
.video_item > a { display: block; width: 100%; height: 100%; position: relative; overflow: hidden; }
.video_item .no_thumb_placeholder { position: absolute; inset: 0; }
/* 포토갤러리: thumb > a 가 컨테이너 채우므로 placeholder는 width/height 100% */
.gallery_item .thumb .no_thumb_placeholder { position: absolute; inset: 0; border-radius: 0; }
/* 핫이슈 bg-image 없을 때 */
.hotissue_custom_grid .issue_item.no_thumb_bg { background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important; }
.hotissue_custom_grid .issue_item.no_thumb_bg .issue_overlay { display: none; }
.hotissue_custom_grid .issue_item.no_thumb_bg .issue_content .title { color: #1e293b; -webkit-text-stroke: 0; text-shadow: none; }
.no_thumb_overlay {
    position: absolute; inset: 0; z-index: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    color: #94a3b8;
}
.no_thumb_overlay svg { width: 34px; height: 34px; opacity: 0.4; }
.no_thumb_overlay span { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; opacity: 0.55; }

/* Side Right Login Box (Improved) */
.login_box { background: #fff; border: 1px solid var(--border-color); color: var(--text-main); }
.login_box .welcome_msg { font-size: 16px; font-weight: 800; margin-bottom: 5px; display: block; }
.login_box p { font-size: 13px; color: var(--text-sub); margin-bottom: 20px; line-height: 1.4; }

.btn_login_primary { 
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; height: 42px;
    background: linear-gradient(to bottom, var(--point-color), var(--sub-point-color)); 
    color: #fff !important; border: 1px solid rgba(0,0,0,0.1); border-radius: var(--btn-radius);
    font-weight: 700; font-size: 14px; transition: 0.2s;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn_login_primary:hover { opacity: 0.95; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); transform: translateY(-1px); }

/* SNS 소셜 로그인 버튼 */
.sns_login_btns { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.sns_btn { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; transition: transform 0.15s, box-shadow 0.15s; flex-shrink: 0; }
.sns_btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.sns_kakao { background: #FEE500; color: #3C1E1E; }
.sns_naver { background: #03C75A; color: #fff; }
.sns_google { background: #fff; border: 1px solid #e2e8f0; }

.login_links { display: flex; justify-content: center; gap: 15px; margin-top: 12px; font-size: 11px; opacity: 0.8; }
.login_links a:hover { text-decoration: underline; }

/* 사이드바 전용 목록 테이블 (board skin CSS 충돌 방지용 독립 클래스) */
.sidebar_list { width: 100%; border-collapse: collapse; table-layout: auto; }
.sidebar_list tr { border-bottom: 1px solid #f1f5f9; transition: background 0.1s; }
.sidebar_list tr:last-child { border-bottom: none; }
.sidebar_list tr:hover { background: #f8fafc; }
.sidebar_list td { padding: 8px 10px; font-size: 13px; vertical-align: middle; }
.sidebar_list .vote { width: 1%; white-space: nowrap; text-align: center; padding-right: 0; }
.sidebar_list .vote_num { display: inline-flex; align-items: center; justify-content: center; padding: 2px 8px; background: #fff1f2; color: #e11d48; border-radius: 4px; font-weight: 800; font-size: 11px; min-width: 32px; line-height: 1; white-space: nowrap; }
.sidebar_list .vote_num.zero { background: #f1f5f9; color: var(--text-mute); font-weight: 600; }
.sidebar_list .title { text-align: left; overflow: hidden; }
.sidebar_list .title_link { display: flex; align-items: center; gap: 4px; width: 100%; }
.sidebar_list .title_text { color: var(--text-main); text-decoration: none; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sidebar_list .title_link:hover .title_text { text-decoration: underline; color: var(--point-color); }
.sidebar_list .cmt_count { display: inline-flex; align-items: center; justify-content: center; height: 16px; min-width: 16px; padding: 0 4px; background: var(--point-color); color: #fff; border-radius: 3px; font-size: 10px; font-weight: 800; flex-shrink: 0; margin-left: 2px; margin-right: 0; }
.sidebar_list .n_icon { display: inline-flex; align-items: center; justify-content: center; height: 16px; min-width: 16px; padding: 0 4px; background: #ef4444; color: #fff; border-radius: 3px; font-size: 10px; font-weight: 800; line-height: 1; flex-shrink: 0; animation: none !important; margin-left: 2px; margin-right: 0; }
.sidebar_list .cat_badge { display: inline-flex; align-items: center; justify-content: center; padding: 2px 7px; background: color-mix(in srgb, var(--point-color) 12%, transparent); color: var(--point-color); border-radius: 4px; font-size: 11px; font-weight: 700; white-space: nowrap; flex-shrink: 0; line-height: 1.4; }
.sidebar_list td .svg_icon { width: 12px; height: 12px; vertical-align: middle; opacity: 0.5; flex-shrink: 0; }
.sidebar_list .rank_badge { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 4px; font-size: 11px; font-weight: 800; }
.sidebar_list .rank_gold { background: #fef3c7; color: #d97706; }
.sidebar_list .rank_silver { background: #e2e8f0; color: #475569; }
.sidebar_list .rank_bronze { background: #fff7ed; color: #c2410c; }
.sidebar_list .rank_gray { background: #f1f5f9; color: var(--text-sub); }

.recent_comments { overflow: hidden; }
.recent_comments .sidebar_list { margin: 0 -20px; width: calc(100% + 40px); border-top: 1px solid #f1f5f9; margin-bottom: -20px; }
.recent_comments .sidebar_list td.title { padding-left: 20px; padding-right: 20px; }
.recent_comments .sidebar_list tr:last-child { border-bottom: none; }
.recent_comments .sidebar_list tr:last-child td { padding-bottom: 8px; }

/* 실시간 이슈 박스 */
.issue_box { overflow: hidden; }
.issue_box .sidebar_list { margin: 0 -20px; width: calc(100% + 40px); border-top: 1px solid #f1f5f9; margin-bottom: -20px; }
.issue_box .sidebar_list td.title { padding-left: 12px; padding-right: 15px; max-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.issue_box .sidebar_list tr:last-child { border-bottom: none; }
.issue_box .sidebar_list tr:last-child td { padding-bottom: 8px; }
.issue_box .sidebar_list td.issue_rank { width: 1%; white-space: nowrap; padding-left: 20px; padding-right: 0; }
.issue_box .sidebar_list td.issue_rank .num { width: 22px; height: 22px; background: #f1f5f9; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--text-sub); }
.issue_box .sidebar_list tr:nth-child(1) td.issue_rank .num { background: #fef3c7; color: #d97706; }
.issue_box .sidebar_list tr:nth-child(2) td.issue_rank .num { background: #f1f5f9; color: #64748b; }
.issue_box .sidebar_list tr:nth-child(3) td.issue_rank .num { background: #fff7ed; color: #c2410c; }

/* 포인트 랭킹 박스 */
.ranking_box { overflow: hidden; }
.ranking_box .sidebar_list { margin: 0 -20px; width: calc(100% + 40px); border-top: 1px solid #f1f5f9; margin-bottom: -20px; }
.ranking_box .sidebar_list td.title { padding-left: 12px; padding-right: 8px; max-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking_box .sidebar_list td.title .title_text { font-size: 13px; font-weight: 600; color: var(--text-main); }
.ranking_box .sidebar_list tr:last-child { border-bottom: none; }
.ranking_box .sidebar_list tr:last-child td { padding-bottom: 8px; }
.ranking_box .sidebar_list td.rank_rank { width: 1%; white-space: nowrap; padding-left: 20px; padding-right: 0; }
.ranking_box .sidebar_list td.rank_rank .num { width: 22px; height: 22px; background: #f1f5f9; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--text-sub); }
.ranking_box .sidebar_list tr:nth-child(1) td.rank_rank .num { background: #fef3c7; color: #d97706; }
.ranking_box .sidebar_list tr:nth-child(2) td.rank_rank .num { background: #e2e8f0; color: #475569; }
.ranking_box .sidebar_list tr:nth-child(3) td.rank_rank .num { background: #fff7ed; color: #c2410c; }
.ranking_box .sidebar_list td.rank_point { width: 1%; white-space: nowrap; padding-right: 15px; font-size: 11px; color: var(--point-color); font-weight: 700; text-align: right; }

/* 공지사항 박스 */
.notice_box { overflow: hidden; }
.notice_box .sidebar_list { margin: 0 -20px; width: calc(100% + 40px); border-top: 1px solid #f1f5f9; margin-bottom: -20px; }
.notice_box .sidebar_list td.title { padding-left: 12px; padding-right: 15px; max-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice_box .sidebar_list tr:last-child { border-bottom: none; }
.notice_box .sidebar_list tr:last-child td { padding-bottom: 8px; }
.notice_box .sidebar_list .title_link { gap: 5px; }
.notice_box .sidebar_list .cat_badge { flex-shrink: 0; }

.stats_grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat_item { background: #f8fafc; padding: 10px; border-radius: 8px; text-align: center; }
.stat_item .label { display: block; font-size: 11px; color: var(--text-sub); margin-bottom: 2px; }
.stat_item .val { font-size: 14px; font-weight: 800; color: var(--text-main); }

/* Footer */
#footer { background: #fff; border-top: none; padding: 40px 0; color: var(--text-sub); }
.footer_nav { display: flex; gap: 20px; margin-bottom: 20px; justify-content: center; }
.footer_nav a { font-size: 13px; font-weight: 700; color: #475569; }
.footer_bottom { text-align: center; border-top: 1px solid #f1f5f9; padding-top: 20px; }
.f_info p { font-size: 12px; margin-bottom: 5px; }
.copyright { margin-top: 10px; font-size: 11px; color: var(--text-mute); }

/* Responsive */
@media (max-width: 1024px) {
    .layout_grid { grid-template-columns: 1fr 280px; }
    .side_left { display: none; }
}

/* Mobile Drawer Styles */
.m_menu_btn { display: none; width: 40px; height: 40px; position: relative; }
.m_menu_btn span { display: block; width: 24px; height: 2px; background: var(--text-main); position: absolute; left: 8px; top: 19px; }
.m_menu_btn span::before, .m_menu_btn span::after { content: ''; display: block; width: 24px; height: 2px; background: var(--text-main); position: absolute; left: 0; }
.m_menu_btn span::before { top: -8px; }
.m_menu_btn span::after { top: 8px; }

.m_drawer_overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: none; }
.m_drawer { position: fixed; top: 0; left: -280px; width: 280px; height: 100%; background: #fff; z-index: 1001; transition: 0.3s; box-shadow: 2px 0 10px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.m_drawer.open { left: 0; }

.m_drawer_header { 
    padding: 30px 20px; 
    background: var(--point-color); 
    background: linear-gradient(135deg, var(--point-color) 0%, var(--sub-point-color) 100%);
    color: #fff; 
    position: relative; 
}
.m_search_area { margin-bottom: 20px; padding-right: 20px; }
.m_search_area form { position: relative; }
.m_search_area input { 
    width: 100%; padding: 8px 40px 8px 15px; 
    background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); 
    border-radius: 20px; color: #fff; font-size: 13px; outline: none;
}
.m_search_area input::placeholder { color: rgba(255, 255, 255, 0.7); }
.m_search_area button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #fff; font-size: 16px; }
.m_drawer_close { position: absolute; right: 15px; top: 15px; font-size: 24px; color: #fff; opacity: 0.8; }
.m_drawer_user .nick { font-size: 18px; display: block; margin-bottom: 5px; }
.m_drawer_user .btn_login { display: inline-block; padding: 8px 20px; background: #fff; color: var(--point-color); border-radius: 4px; font-weight: bold; margin-top: 10px; }
.m_drawer_user .login_links { display: flex; gap: 15px; margin-top: 15px; font-size: 12px; opacity: 0.8; }
.m_drawer_user .user_stats { font-size: 13px; opacity: 0.9; margin-top: 5px; }
.m_drawer_user .user_menu_quick { display: flex; gap: 10px; margin-top: 15px; }
.m_drawer_user .user_menu_quick a { font-size: 11px; background: rgba(255,255,255,0.2); padding: 3px 8px; border-radius: 3px; }
.m_drawer_user .btn_logout { font-size: 11px; color: #fff; opacity: 0.7; border: 1px solid rgba(255,255,255,0.3); padding: 2px 6px; border-radius: 3px; }

.m_drawer_nav { flex: 1; overflow-y: auto; padding: 20px; }
.m_drawer_nav .m_title { font-size: 12px; color: var(--text-mute); margin-bottom: 15px; padding-left: 5px; }
.m_drawer_nav ul li a { display: block; padding: 12px 10px; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--border-color); }

@media (max-width: 768px) {
    #gnb { display: none; } /* GNB 중복 노출 제거 */
    /* 햄버거 버튼: 텍스트 숨기고 3선 아이콘만 표시 */
    .m_menu_btn { display: flex; }
    .m_menu_btn span { font-size: 0; }

    /* 헤더 2행 그리드: 버튼 | 로고(중앙) | 빈공간 / 검색창(전체) */
    .header_main { display: grid !important; grid-template-columns: 40px 1fr 40px; grid-template-rows: auto auto; align-items: center; padding: 8px 0; gap: 0; }
    .m_menu_btn { grid-column: 1; grid-row: 1; }
    .header_main h1 { grid-column: 2; grid-row: 1; text-align: center; font-size: 20px; margin: 0; justify-content: center !important; }
    .search_box { grid-column: 1 / -1; grid-row: 2; display: block !important; width: 100% !important; margin-top: 10px; margin-left: 0 !important; }
    .search_box form { width: 100%; }
    .header_banner_area { display: none !important; }

    /* Mobile Navigation Styles */
    .m_drawer_nav ul li { position: relative; border-bottom: 1px solid var(--border-color); }
    .m_drawer_nav ul li a { display: block; padding: 12px 10px; font-size: 15px; font-weight: 600; }
    .m_drawer_nav .m_depth2 { background: #f8fafc; padding-left: 15px; border-bottom: 1px solid var(--border-color); }
    .m_drawer_nav .m_depth2 a { font-size: 14px; color: var(--text-sub); border-bottom: none; padding: 10px; }
    .m_drawer_nav .m_depth2 li.active > a { color: var(--point-color); font-weight: 800; }
    
    .m_drawer_nav .m_depth3 { background: #f1f5f9; padding-left: 15px; border-left: 2px solid var(--border-color); margin: 5px 0 10px 10px; }
    .m_drawer_nav .m_depth3 a { font-size: 13px; color: var(--text-mute); padding: 8px 10px; border-bottom: none; }
    .m_drawer_nav .m_depth3 li.active > a { color: var(--point-color); font-weight: 700; }
    
    .layout_grid { display: flex; flex-direction: column; }
    #content { order: 1; }
    .side_right { order: 2; width: 100%; }
    .side_left { display: none; }
    .login_box { display: none; }
    .side_right .side_box + .side_box { margin-top: 10px; }
    
    /* 핫이슈 모바일: 메인 1개(큰) + 서브 2개(얇은 한 줄씩 세로) */
    .hotissue_custom_grid { flex-direction: column !important; height: auto !important; gap: 6px !important; }
    .hotissue_custom_grid .main_issue_wrap { width: 100% !important; height: 220px !important; flex: none !important; }
    .hotissue_custom_grid .sub_issue_wrap { width: 100% !important; flex: none !important; flex-direction: column !important; height: auto !important; gap: 6px !important; }
    .hotissue_custom_grid .sub_item_wrap { width: 100% !important; height: 44px !important; flex: none !important; border-radius: 8px !important; }
    .hotissue_custom_grid .sub_item_wrap .issue_item { border-radius: 8px !important; }
    .hotissue_custom_grid .sub_item_wrap .issue_overlay { background: rgba(0,0,0,0.55) !important; }
    .hotissue_custom_grid .sub_item_wrap .issue_content { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 6px !important; bottom: 0 !important; top: 0 !important; left: 12px !important; right: 12px !important; transform: none !important; }
    .hotissue_custom_grid .sub_item_wrap .issue_category { flex-shrink: 0 !important; margin-bottom: 0 !important; font-size: 10px !important; padding: 2px 6px !important; }
    .hotissue_custom_grid .sub_item_wrap .title { font-size: 13px !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; margin: 0 !important; flex: 1 !important; }
    .hotissue_custom_grid .main_issue_wrap .issue_content .title { font-size: 15px !important; }
    .no_thumb svg { width: 32px !important; height: 32px !important; }
    .no_thumb::before { font-size: 9px; bottom: 15%; }
    .gallery_grid { grid-template-columns: repeat(2, 1fr); }
    .gallery_grid .gallery_item:nth-child(n+3) { display: none; }
    .hot_issue .gallery_grid { grid-template-columns: repeat(2, 1fr); }

    /* 서브페이지 모바일 최적화 */
    .inner { padding: 0 12px; }
    .sub_content_area { border-radius: 8px; border-left: none; border-right: none; }
    .sub_header { padding: 20px 15px; }
    .sub_title { font-size: 1.25rem; margin-bottom: 0; }
    .breadcrumb { display: none; } /* 모바일에서 공간 확보를 위해 숨김 */

    /* Mobile Sitemap */
    .sitemap_dense_grid { grid-template-columns: 1fr 1fr; }
    .bottom_sitemap { padding: 0; margin-top: 0 !important; }
}

/* Bottom Sitemap - Dense Grid */
.bottom_sitemap {
    background: #fff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    margin-top: 0 !important;
    width: 100%;
}
.sitemap_dense_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}
.sitemap_category {
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.sitemap_cat_header {
    background: #f8fafc;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
    border-bottom: 2px solid var(--point-color);
}
.sitemap_cat_header a { color: inherit; }
.sitemap_cat_header a:hover { color: var(--point-color); }
.sitemap_board_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 10px 14px;
    gap: 2px 0;
}
.sitemap_board_grid a {
    font-size: 12px;
    color: #475569;
    padding: 3px 4px 3px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.15s;
}
.sitemap_board_grid a:hover { color: var(--point-color); }

