@charset "utf-8";

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, ul, ol, p { margin: 0; padding: 0; }
ul, ol { list-style: none; }
li { list-style: none; }

/* 그누보드 스킨 내부 리스트 강제 초기화 */
#portal_wrap ul,
#portal_wrap ol,
#portal_wrap li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

/* 사이드뷰(글쓴이 클릭 드롭다운) 레이아웃 보정
   코어 CSS의 .sv_wrap .sv a 가 display:inline-block 이라
   포털 래퍼 안에서 항목이 가로로 붙는 문제를 display:block 으로 수정 */
#portal_wrap .sv_wrap { position: relative; display: inline; }
#portal_wrap .sv_wrap .sv { min-width: 100px; }
#portal_wrap .sv_wrap .sv a {
    display: block !important;
    width: 100px;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    background-color: #f4f5f7;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul, li { list-style: none; }
img { max-width: 100%; vertical-align: middle; }

/* ============================================================
   Layout
   ============================================================ */
.inner { width: 1130px; margin: 0 auto; }
#portal_wrap { min-width: 1130px; }

/* ============================================================
   Header
   ============================================================ */
#portal_header {
    background: #fff;
    padding: 22px 0;
    border-bottom: 1px solid #ebebeb;
}
#portal_header .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* 로고 */
#portal_header .logo a {
    font-size: 34px;
    font-weight: 900;
    color: #03c75a;
    letter-spacing: -1.5px;
    line-height: 1;
}

/* 검색창 */
#portal_header .search_wrap form {
    display: flex;
    border: 1.5px solid #03c75a;
    border-radius: 24px;
    overflow: hidden;
}
#portal_header .search_wrap input {
    width: 380px;
    padding: 10px 18px;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a1a;
    background: transparent;
}
#portal_header .search_wrap button {
    padding: 0 22px;
    background: #03c75a;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-family: inherit;
    font-weight: 700;
    transition: background 0.15s;
}
#portal_header .search_wrap button:hover { background: #02b350; }

/* 우측 상단 메뉴 */
#portal_header .top_menu { white-space: nowrap; }
#portal_header .top_menu a {
    font-size: 12px;
    color: #888;
    margin-left: 12px;
    transition: color 0.12s;
}
#portal_header .top_menu a:hover { color: #03c75a; text-decoration: none; }

/* ============================================================
   GNB
   ============================================================ */
#portal_gnb {
    background: #fff;
    border-bottom: 1px solid #ebebeb;
    position: relative;
    z-index: 100;
}
#portal_gnb .gnb_list {
    display: flex;
    height: 52px;
    align-items: stretch;
}

/* 1depth 아이템 */
#portal_gnb .gnb_item {
    position: relative;
    display: flex;
    align-items: stretch;
}
#portal_gnb .gnb_item > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    position: relative;
    transition: color 0.12s;
    white-space: nowrap;
}
#portal_gnb .gnb_item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #03c75a;
    transition: width 0.18s ease;
}
#portal_gnb .gnb_item > a:hover,
#portal_gnb .gnb_item:hover > a { color: #03c75a; }
#portal_gnb .gnb_item > a:hover::after,
#portal_gnb .gnb_item:hover > a::after { width: calc(100% - 24px); }

/* 드롭다운 화살표 */
.gnb_arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 3.5px 0 3.5px;
    border-color: #aaa transparent transparent transparent;
    margin-top: 1px;
    transition: transform 0.15s;
}
#portal_gnb .gnb_item:hover .gnb_arrow {
    border-color: #03c75a transparent transparent transparent;
    transform: rotate(180deg);
}

/* 2depth 드롭다운 */
.gnb_sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 140px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 2px solid #03c75a;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 200;
    padding: 4px 0;
}
#portal_gnb .gnb_item:hover .gnb_sub { display: block; }

.gnb_sub li { display: block; }
.gnb_sub li a {
    display: block;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    white-space: nowrap;
    transition: background 0.1s, color 0.1s;
}
.gnb_sub li a:hover {
    background: #f6fff9;
    color: #03c75a;
}
.gnb_sub li + li { border-top: 1px solid #f5f5f5; }

.gnb_empty a { color: #e84040 !important; }

/* ============================================================
   Outlogin 스킨
   ============================================================ */

/* 공통 래퍼 */
.ol_wrap { padding: 16px; }

/* ── 비로그인 ── */
.ol_inputs { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.ol_input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #dde1e5;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.15s;
}
.ol_input:focus { border-color: #03c75a; }

.ol_btn_login {
    width: 100%;
    padding: 10px 0;
    background: #03c75a;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 10px;
}
.ol_btn_login:hover { background: #02b350; }

.ol_foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

/* 자동로그인 체크박스 */
.ol_auto {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #666;
    user-select: none;
}
.ol_auto input[type="checkbox"] { display: none; }
.ol_chk_box {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1px solid #ccc;
    border-radius: 2px;
    position: relative;
    flex-shrink: 0;
    background: #fff;
    transition: border-color 0.12s, background 0.12s;
}
.ol_auto input:checked + .ol_chk_box {
    background: #03c75a;
    border-color: #03c75a;
}
.ol_auto input:checked + .ol_chk_box::after {
    content: '';
    position: absolute;
    top: 1px; left: 3px;
    width: 5px; height: 8px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.ol_links { display: flex; align-items: center; gap: 6px; color: #999; }
.ol_links a { font-size: 12px; color: #888; transition: color 0.1s; }
.ol_links a:hover { color: #03c75a; }
.ol_divider { color: #ddd; font-size: 11px; }

/* ── 로그인 후 ── */
.ol_after { padding: 14px 16px; }

.ol_profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f2f2f2;
}
.ol_avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ebebeb;
}
.ol_greeting { font-size: 13px; color: #666; line-height: 1.4; }
.ol_nick { font-size: 15px; font-weight: 700; color: #1a1a1a; margin-right: 2px; }
.ol_admin_link {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #e84040;
    padding: 1px 6px;
    border-radius: 3px;
    vertical-align: middle;
    transition: background 0.1s;
}
.ol_admin_link:hover { background: #c73030; color: #fff; }

.ol_stats {
    display: flex;
    text-align: center;
    margin-bottom: 12px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
}
.ol_stats li { flex: 1; }
.ol_stats li + li { border-left: 1px solid #f0f0f0; }
.ol_stats a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 4px;
    text-decoration: none;
    transition: background 0.1s;
}
.ol_stats a:hover { background: #f6fff9; }
.ol_stat_label { font-size: 11px; color: #999; margin-bottom: 4px; }
.ol_stat_val { font-size: 15px; font-weight: 700; color: #1a1a1a; }
.ol_stat_new { color: #e84040; }

.ol_actions {
    display: flex;
    gap: 6px;
}
.ol_action_link {
    flex: 1;
    display: block;
    text-align: center;
    padding: 7px 0;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: border-color 0.12s, color 0.12s;
}
.ol_action_link:hover { border-color: #03c75a; color: #03c75a; }
.ol_logout { color: #999; }
.ol_logout:hover { border-color: #e84040; color: #e84040; }

/* ============================================================
   Main Container
   ============================================================ */
#portal_container { padding: 24px 0; min-height: 600px; }

/* Grid */
.portal_main_grid { display: flex; gap: 24px; }
.portal_main_grid .grid_left { flex: 1; min-width: 0; }
.portal_main_grid .grid_right { width: 336px; flex-shrink: 0; }

/* ============================================================
   Left – 상단 배너
   ============================================================ */
.main_banner {
    height: 240px;
    background: #e8eaed;
    border-radius: 6px;
    border: 1px solid #ebebeb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #999;
    margin-bottom: 18px;
    font-size: 14px;
}
.main_banner h2 { font-size: 16px; color: #bbb; margin-bottom: 6px; }

/* ============================================================
   Left – 탭 게시판 (.portal_tabs)
   ============================================================ */
.portal_tabs {
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 6px;
    overflow: hidden;
}

.tab_nav {
    display: flex;
    border-bottom: 1px solid #ebebeb;
    background: #fff;
    padding: 0 4px;
}
.tab_nav button {
    flex: none;
    padding: 0 16px;
    height: 48px;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: color 0.12s, border-color 0.12s;
    margin-bottom: -1px;
}
.tab_nav button:hover { color: #333; }
.tab_nav button.active {
    color: #03c75a;
    border-bottom-color: #03c75a;
    font-weight: 700;
}

.tab_content { display: none; }
.tab_content.active { display: block; }

/* ============================================================
   Left – 갤러리
   ============================================================ */
.gallery_section {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 18px;
}
.gallery_section h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ebebeb;
}
.gallery_section h3 a { color: inherit; }
.gallery_section h3 a:hover { color: #03c75a; }

/* ============================================================
   Left – 하단 2단 게시판
   ============================================================ */
.board_section { display: flex; gap: 18px; margin-bottom: 18px; }
.half_board {
    flex: 1;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 6px;
    overflow: hidden;
}
.half_board h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    padding: 13px 16px;
    border-bottom: 1px solid #ebebeb;
}
.half_board h3 a { color: inherit; }
.half_board h3 a:hover { color: #03c75a; }

/* ============================================================
   portal/basic latest skin – 하단 게시판·사이드 위젯 공통
   ============================================================ */
.pl_list { margin: 0; padding: 0; }

.pl_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid #f2f2f2;
    padding: 0 16px;
    min-height: 38px;
}
.pl_item:last-child { border-bottom: none; }

.pl_link {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: color 0.1s;
    padding: 8px 0;
}
.pl_link:hover { color: #03c75a; }
.pl_link:hover .pl_tit { color: #03c75a; }

.pl_tit {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}
.pl_notice .pl_tit { color: #1a1a1a; font-weight: 600; }

/* 공지 뱃지 */
.pl_badge {
    flex-shrink: 0;
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    line-height: 16px;
}
.pl_badge_notice { background: #e8f3ff; color: #0068c8; }

/* 자물쇠 아이콘 */
.pl_icon_lock { flex-shrink: 0; font-size: 11px; color: #aaa; }

/* 새글 점 */
.pl_new_dot {
    flex-shrink: 0;
    display: inline-block;
    width: 5px;
    height: 5px;
    background: #03c75a;
    border-radius: 50%;
    margin-bottom: 1px;
}

/* 댓글 수 */
.pl_cmt {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    color: #03c75a;
}

/* 날짜 */
.pl_date {
    flex-shrink: 0;
    font-size: 11px;
    color: #bbb;
    white-space: nowrap;
}

/* 더보기 */
.pl_more {
    display: block;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 600;
    color: #bbb;
    border-top: 1px solid #f2f2f2;
    text-decoration: none;
    transition: color 0.12s;
}
.pl_more:hover { color: #03c75a; }

/* 빈 목록 */
.pl_empty {
    padding: 16px;
    font-size: 13px;
    color: #bbb;
    text-align: center;
}

/* ============================================================
   portal/pic_block latest skin – 포토 갤러리
   ============================================================ */
.pl_gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0;
    padding: 0;
}

.pl_gal_link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.pl_gal_thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #eee;
    aspect-ratio: 3 / 2;
}
.pl_gal_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}
.pl_gal_link:hover .pl_gal_thumb img { transform: scale(1.04); }

/* 새글 N 뱃지 */
.pl_gal_new {
    position: absolute;
    top: 5px;
    left: 5px;
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #03c75a;
    border-radius: 3px;
}

.pl_gal_tit {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}
.pl_gal_link:hover .pl_gal_tit { color: #03c75a; }

.pl_gal_empty {
    grid-column: 1 / -1;
    padding: 30px;
    text-align: center;
    color: #bbb;
    font-size: 13px;
}

/* ============================================================
   Right – 위젯 박스
   ============================================================ */
.widget_box {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 6px;
    margin-bottom: 14px;
    overflow: hidden;
}
.widget_login { min-height: 110px; }

/* 위젯 타이틀: 배경 제거, 텍스트만 굵게 */
.widget_title {
    padding: 14px 16px 10px;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 1px solid #ebebeb;
    background: none;
}
.widget_title a { color: inherit; }
.widget_title a:hover { color: #03c75a; }

.widget_content { padding: 0; }

/* ============================================================
   news_portal latest skin (뉴스/스포츠/연예 탭)
   ============================================================ */
.nv_news_list { list-style: none; margin: 0; padding: 0; }

.nv_news_item { border-bottom: 1px solid #f2f2f2; }
.nv_news_item:last-child { border-bottom: none; }

.nv_news_link {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 18px;
    text-decoration: none;
    transition: background 0.1s;
}
.nv_news_link:hover { background: #fafbfc; }

.nv_news_tit {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nv_news_link:hover .nv_news_tit { color: #03c75a; }

.is_notice .nv_news_tit { color: #0068c8; }
.is_notice .nv_news_link:hover .nv_news_tit { color: #0052a3; }

.nv_news_meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #aaa;
    line-height: 1;
}
.nv_source { color: #888; font-weight: 600; }
.nv_cmt_cnt { color: #03c75a; font-weight: 700; }
.nv_dot_sep { color: #ddd; font-size: 11px; }
.nv_time { color: #bbb; }

.nv_badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    margin-right: 4px;
    vertical-align: middle;
    line-height: 16px;
}
.badge_notice { background: #e8f3ff; color: #0068c8; }
.badge_hot    { background: #fff0f0; color: #e84040; }

.nv_new_dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: #03c75a;
    border-radius: 50%;
    vertical-align: middle;
    margin-left: 4px;
    margin-bottom: 1px;
}

.nv_more_btn {
    display: block;
    text-align: center;
    padding: 9px 0;
    font-size: 12px;
    font-weight: 600;
    color: #bbb;
    border-top: 1px solid #f2f2f2;
    text-decoration: none;
    transition: color 0.12s;
    letter-spacing: 0.02em;
}
.nv_more_btn:hover { color: #03c75a; }

.nv_news_empty { padding: 20px; text-align: center; color: #bbb; font-size: 13px; }

/* ============================================================
   Footer
   ============================================================ */
#portal_footer {
    background: #f8f9fa;
    border-top: 1px solid #ebebeb;
    padding: 36px 0;
    margin-top: 10px;
}
#portal_footer .footer_links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-bottom: 16px;
    align-items: center;
}
#portal_footer .footer_links li + li::before {
    content: '|';
    margin-right: 18px;
    color: #ddd;
    font-size: 11px;
}
#portal_footer .footer_links li + li { margin-left: -12px; }
#portal_footer .footer_links a { font-size: 12px; color: #888; transition: color 0.1s; }
#portal_footer .footer_links a:hover { color: #333; }
#portal_footer .footer_links a.privacy { font-weight: 700; color: #555; }

#portal_footer .footer_info { font-size: 12px; color: #aaa; line-height: 2; }
#portal_footer .footer_info span { margin-right: 12px; }
#portal_footer .copyright { margin-top: 8px; color: #bbb; font-family: tahoma, sans-serif; font-size: 12px; }

/* ============================================================
   Board Skins — Common (bsk_*)
   ============================================================ */

/* Category nav */
.bsk_cate_nav { margin-bottom: 16px; border-bottom: 2px solid #03c75a; }
.bsk_cate_nav ul { display: flex; flex-wrap: wrap; gap: 2px; }
.bsk_cate_nav li { list-style: none; }
.bsk_cate_nav a {
    display: inline-block; padding: 7px 14px;
    font-size: 13px; font-weight: 600; color: #555;
    border-radius: 4px 4px 0 0; text-decoration: none;
    transition: background 0.1s, color 0.1s;
}
.bsk_cate_nav a:hover,
.bsk_cate_nav a.on { background: #03c75a; color: #fff; }

/* Toolbar */
.bsk_toolbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px solid #ebebeb; margin-bottom: 4px;
}
.bsk_toolbar_bottom { border-top: 1px solid #ebebeb; border-bottom: none; margin-top: 8px; padding-top: 10px; }
.bsk_total { font-size: 13px; color: #666; }
.bsk_total strong { color: #222; font-weight: 700; }
.bsk_btn_group { display: flex; align-items: center; gap: 4px; }

/* Buttons */
.bsk_btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 12px; font-size: 13px; font-weight: 600;
    color: #444; background: #f7f8f9; border: 1px solid #dde1e5;
    border-radius: 4px; text-decoration: none; cursor: pointer;
    transition: background 0.1s, color 0.1s, border-color 0.1s;
    line-height: 1.4;
}
.bsk_btn:hover { background: #eef0f2; color: #222; }
.bsk_btn_icon { padding: 6px 9px; }
.bsk_btn_write { background: #03c75a; color: #fff; border-color: #03c75a; }
.bsk_btn_write:hover { background: #02b050; color: #fff; border-color: #02b050; }
.bsk_btn_submit { background: #03c75a; color: #fff; border-color: #03c75a; }
.bsk_btn_submit:hover { background: #02b050; color: #fff; }
.bsk_btn_admin { color: #888; }
.bsk_btn_danger { color: #e74c3c; }
.bsk_btn_danger:hover { background: #fdf0ef; border-color: #e74c3c; }
.bsk_btn_sm { padding: 4px 8px; font-size: 12px; }

/* Badges */
.bsk_badge {
    display: inline-block; padding: 1px 6px;
    font-size: 11px; font-weight: 700; border-radius: 3px;
    vertical-align: middle; line-height: 1.6;
}
.bsk_badge_notice { background: #ff6b35; color: #fff; }
.bsk_badge_new    { background: #03c75a; color: #fff; }
.bsk_badge_hot    { background: #e74c3c; color: #fff; }
.bsk_badge_cate   { background: #eef6fb; color: #1a73e8; border: 1px solid #c8dff9; }
.bsk_badge_current { background: #555; color: #fff; }

/* Select */
.bsk_select {
    padding: 5px 8px; font-size: 13px; border: 1px solid #dde1e5;
    border-radius: 4px; background: #fff; color: #444;
}

/* Input */
.bsk_input {
    padding: 7px 10px; font-size: 13px; border: 1px solid #dde1e5;
    border-radius: 4px; background: #fff; color: #333;
    transition: border-color 0.15s;
}
.bsk_input:focus { outline: none; border-color: #03c75a; }
.bsk_input_sm  { width: 140px; }
.bsk_input_full { width: 100%; box-sizing: border-box; }

/* Admin opt menu */
.bsk_admin_opt_toggle { position: relative; }
.bsk_admin_opt_menu {
    position: absolute; right: 0; top: 100%; margin-top: 4px; z-index: 200;
    background: #fff; border: 1px solid #dde1e5; border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1); min-width: 100px; overflow: hidden;
    list-style: none; padding: 4px 0;
}
.bsk_admin_opt_menu li { list-style: none; }
.bsk_admin_opt_menu button {
    display: block; width: 100%; padding: 8px 14px;
    font-size: 13px; text-align: left; background: none;
    border: none; cursor: pointer; color: #333;
    transition: background 0.1s;
}
.bsk_admin_opt_menu button:hover { background: #f5f5f5; }

/* Pager */
.bsk_pager {
    display: flex; justify-content: center; align-items: center;
    gap: 3px; padding: 16px 0; flex-wrap: wrap;
}
.bsk_pager a, .bsk_pager strong, .bsk_pager span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 32px; padding: 0 6px;
    font-size: 13px; border-radius: 4px; text-decoration: none;
    color: #555; border: 1px solid transparent; transition: all 0.1s;
}
.bsk_pager strong {
    background: #03c75a; color: #fff; border-color: #03c75a; font-weight: 700;
}
.bsk_pager a:hover { background: #f2f2f2; border-color: #dde1e5; }

/* Search panel */
.bsk_search_wrap {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 80px;
}
.bsk_search_overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.bsk_search_box {
    position: relative; z-index: 1;
    background: #fff; border-radius: 10px;
    padding: 20px; width: 460px; max-width: 94vw;
    box-shadow: 0 8px 30px rgba(0,0,0,.18);
}
.bsk_select_sm { margin-bottom: 8px; }
.bsk_search_input_row { display: flex; gap: 6px; margin-bottom: 10px; }
.bsk_search_input { flex: 1; }
.bsk_search_close {
    display: block; width: 100%; padding: 8px; font-size: 13px;
    background: #f7f8f9; border: 1px solid #dde1e5; border-radius: 4px;
    cursor: pointer; color: #666;
}
.bsk_search_close:hover { background: #eef0f2; }

/* Comment count link */
.bsk_list_cmt { font-size: 12px; color: #03c75a; font-weight: 600; margin-left: 2px; }

/* Meta separator */
.bsk_meta_sep { color: #ddd; margin: 0 4px; font-size: 11px; }

/* Empty state */
.bsk_empty { padding: 48px 20px; text-align: center; color: #bbb; font-size: 14px; }


/* ============================================================
   목록형 (list)
   ============================================================ */

#bsk_list_wrap { font-size: 14px; }

.bsk_list_header {
    display: flex; align-items: center;
    padding: 8px 10px; background: #f8f9fa;
    border-top: 1px solid #ccc; border-bottom: 1px solid #e5e5e5;
    font-size: 12px; color: #888; font-weight: 600;
}
.bsk_list { }
.bsk_list > li { list-style: none; }

.bsk_list_item {
    display: flex; align-items: center;
    padding: 11px 10px; border-bottom: 1px solid #f0f0f0;
    transition: background 0.08s;
}
.bsk_list_item:hover { background: #f9fafb; }
.bsk_notice_item { background: #fffdf5; }
.bsk_notice_item:hover { background: #fffaed; }
.bsk_current_item { background: #f0faf5 !important; }

.bsk_list_col_chk  { flex: 0 0 32px; text-align: center; }
.bsk_list_col_num  { flex: 0 0 56px; text-align: center; font-size: 13px; color: #999; }
.bsk_list_col_subj { flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; padding-right: 10px; }
.bsk_list_col_meta { flex: 0 0 260px; display: flex; align-items: center; font-size: 12px; color: #999; }
.bsk_list_col_author { flex: 0 0 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.bsk_list_col_date   { flex: 0 0 90px; text-align: center; }
.bsk_list_col_hit    { flex: 0 0 70px; text-align: center; }

.bsk_list_tit {
    font-size: 14px; color: #222; text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 100%;
    transition: color 0.1s;
}
.bsk_list_tit:hover { color: #03c75a; }
.bsk_icon_lock { color: #aaa; font-size: 12px; }
.bsk_icon_file { color: #aaa; font-size: 12px; margin-left: 3px; }

/* Checkbox all */
.bsk_list_col_chk input[type=checkbox] { cursor: pointer; }

/* sort link tag left open in header — close in CSS is not possible; these match gnuboard output */
.bsk_list_col_date a,
.bsk_list_col_hit  a { color: inherit; text-decoration: none; }
.bsk_list_col_date a:hover,
.bsk_list_col_hit  a:hover { color: #03c75a; }

@media (max-width: 767px) {
    .bsk_list_col_meta { display: none; }
    .bsk_list_header .bsk_list_col_meta { display: none; }
    .bsk_list_col_num { flex: 0 0 40px; }
}


/* ============================================================
   갤러리형 (gallery)
   ============================================================ */

#bsk_gall_wrap { font-size: 14px; }

.bsk_gall_allchk {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 0; font-size: 13px; color: #555;
}

.bsk_gall_grid {
    display: grid;
    gap: 16px;
    margin: 16px 0;
}
.bsk_gall_cols_2 { grid-template-columns: repeat(2, 1fr); }
.bsk_gall_cols_3 { grid-template-columns: repeat(3, 1fr); }
.bsk_gall_cols_4 { grid-template-columns: repeat(4, 1fr); }
.bsk_gall_cols_5 { grid-template-columns: repeat(5, 1fr); }
.bsk_gall_cols_6 { grid-template-columns: repeat(6, 1fr); }

.bsk_gall_item { position: relative; }
.bsk_gall_item > li { list-style: none; }

.bsk_gall_chk { position: absolute; top: 8px; left: 8px; z-index: 2; }
.bsk_gall_chk label { display: block; }

.bsk_gall_link {
    display: block; text-decoration: none; color: #333;
    border-radius: 8px; overflow: hidden;
    border: 1px solid #ebebeb;
    transition: box-shadow 0.15s, transform 0.15s;
}
.bsk_gall_link:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }

.bsk_gall_thumb {
    display: block; position: relative;
    aspect-ratio: 3/2; overflow: hidden;
    background: #f2f2f2;
}
.bsk_gall_thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.25s;
}
.bsk_gall_link:hover .bsk_gall_thumb img { transform: scale(1.04); }

.bsk_gall_notice_cover {
    position: absolute; inset: 0;
    background: #f8f9fa;
    display: flex; align-items: center; justify-content: center;
}
.bsk_gall_no_img {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #ccc; font-size: 28px;
}
.bsk_gall_badge_new {
    position: absolute; top: 6px; right: 6px;
    background: #03c75a; color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 1px 5px; border-radius: 3px;
}
.bsk_gall_badge_lock {
    position: absolute; bottom: 6px; right: 6px;
    background: rgba(0,0,0,.45); color: #fff;
    font-size: 11px; padding: 2px 6px; border-radius: 3px;
}

.bsk_gall_info { padding: 10px 12px 12px; }
.bsk_gall_tit {
    display: block; font-size: 13px; font-weight: 600; color: #222;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 6px;
}
.bsk_gall_meta { display: flex; flex-wrap: wrap; gap: 3px; font-size: 11px; color: #aaa; align-items: center; }

@media (max-width: 767px) {
    .bsk_gall_cols_4,
    .bsk_gall_cols_5,
    .bsk_gall_cols_6 { grid-template-columns: repeat(2, 1fr); }
    .bsk_gall_cols_3 { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================================
   웹진형 (webzine)
   ============================================================ */

#bsk_wz_wrap { font-size: 14px; }
.bsk_wz_empty { padding: 48px 20px; text-align: center; color: #bbb; font-size: 14px; }

/* Notice strip */
.bsk_wz_notices { margin-bottom: 16px; border: 1px solid #fffaed; border-radius: 6px; overflow: hidden; }
.bsk_wz_notices > li { list-style: none; }
.bsk_wz_notice_item {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 14px; background: #fffdf5; border-bottom: 1px solid #fff3cc;
    font-size: 13px;
}
.bsk_wz_notice_item:last-child { border-bottom: none; }
.bsk_wz_notice_link {
    flex: 1; color: #333; text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bsk_wz_notice_link:hover { color: #03c75a; }
.bsk_wz_notice_date { flex-shrink: 0; font-size: 12px; color: #bbb; }

/* Checkbox overlay */
.bsk_wz_chk { position: absolute; top: 10px; left: 10px; z-index: 3; }

/* Featured post */
.bsk_wz_featured {
    position: relative; margin: 16px 0; border-radius: 10px; overflow: hidden;
    border: 1px solid #e8e8e8;
}
.bsk_wz_featured_link {
    display: flex; text-decoration: none; color: #222;
    min-height: 260px;
}
.bsk_wz_featured_thumb {
    flex: 0 0 55%; position: relative; overflow: hidden;
    background: #f2f2f2;
}
.bsk_wz_featured_thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s;
}
.bsk_wz_featured_link:hover .bsk_wz_featured_thumb img { transform: scale(1.03); }
.bsk_wz_no_img {
    position: absolute; inset: 0; display: flex;
    align-items: center; justify-content: center;
    color: #ccc; font-size: 36px; background: #f8f9fa;
}
.bsk_wz_featured_info {
    flex: 1; padding: 24px 24px 20px;
    display: flex; flex-direction: column; justify-content: center;
    background: #fff;
}
.bsk_wz_featured_tit {
    font-size: 20px; font-weight: 700; line-height: 1.45;
    color: #111; margin: 8px 0 12px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}
.bsk_wz_featured_excerpt {
    font-size: 13px; color: #777; line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 16px;
}
.bsk_wz_featured_meta {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 2px; font-size: 12px; color: #aaa; margin-top: auto;
}

/* Grid of remaining posts */
.bsk_wz_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 16px;
    margin: 20px 0;
}
.bsk_wz_grid > li { list-style: none; }

.bsk_wz_item { position: relative; }
.bsk_wz_item_link {
    display: block; text-decoration: none; color: #222;
    border-radius: 8px; overflow: hidden;
    border: 1px solid #ebebeb;
    transition: box-shadow 0.15s, transform 0.15s;
}
.bsk_wz_item_link:hover { box-shadow: 0 4px 16px rgba(0,0,0,.09); transform: translateY(-2px); }

.bsk_wz_item_thumb {
    position: relative; aspect-ratio: 16/9; overflow: hidden;
    background: #f2f2f2;
}
.bsk_wz_item_thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.25s;
}
.bsk_wz_item_link:hover .bsk_wz_item_thumb img { transform: scale(1.04); }

.bsk_wz_item_info { padding: 10px 12px 14px; }
.bsk_wz_item_tit {
    font-size: 13px; font-weight: 600; color: #222; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 6px;
}
.bsk_wz_item_meta { display: flex; flex-wrap: wrap; gap: 3px; font-size: 11px; color: #aaa; align-items: center; }

@media (max-width: 900px) {
    .bsk_wz_featured_link { flex-direction: column; min-height: auto; }
    .bsk_wz_featured_thumb { flex: none; aspect-ratio: 16/9; width: 100%; }
    .bsk_wz_featured_tit { font-size: 17px; }
    .bsk_wz_grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .bsk_wz_grid { grid-template-columns: 1fr; }
}


/* ============================================================
   게시물 보기 (view)
   ============================================================ */

#bsk_view_wrap { font-size: 14px; }

.bsk_view_header { padding: 16px 0 10px; border-bottom: 1px solid #ebebeb; margin-bottom: 12px; }
.bsk_view_tit { font-size: 22px; font-weight: 700; color: #111; line-height: 1.45; margin: 6px 0 0; }

.bsk_view_info {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px; padding: 10px 0;
    border-bottom: 1px solid #f0f0f0; margin-bottom: 12px;
    font-size: 13px; color: #888;
}
.bsk_view_author { display: flex; align-items: center; gap: 8px; }
.bsk_view_avatar img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.bsk_view_name { font-weight: 600; color: #444; }
.bsk_view_ip { font-size: 11px; color: #bbb; }
.bsk_view_stats { display: flex; gap: 14px; }
.bsk_view_stat { display: flex; align-items: center; gap: 4px; }
.bsk_view_stat a { color: inherit; text-decoration: none; }
.bsk_view_stat a:hover { color: #03c75a; }

.bsk_view_actions {
    display: flex; justify-content: space-between; flex-wrap: wrap;
    gap: 6px; padding: 8px 0; border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.bsk_view_body { padding: 16px 0; border-bottom: 1px solid #f0f0f0; min-height: 160px; }
.bsk_view_content { line-height: 1.9; font-size: 15px; color: #333; word-break: break-word; }
.bsk_view_content img { max-width: 100%; height: auto; }
.bsk_view_sig { border-top: 1px dashed #e5e5e5; margin-top: 20px; padding-top: 14px; font-size: 13px; color: #aaa; }

/* React buttons */
.bsk_view_react {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 0; border-bottom: 1px solid #f0f0f0;
}
.bsk_react_btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 20px; font-size: 14px; font-weight: 600;
    border-radius: 24px; text-decoration: none;
    border: 1px solid #dde1e5; color: #555; background: #fff;
    transition: all 0.12s;
}
.bsk_react_good:hover  { border-color: #03c75a; color: #03c75a; background: #f0faf5; }
.bsk_react_nogood:hover { border-color: #e74c3c; color: #e74c3c; background: #fdf0ef; }
.bsk_react_msg { font-size: 12px; color: #aaa; display: none; }

/* Attachments */
.bsk_view_files { padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.bsk_view_files h3 { font-size: 13px; font-weight: 700; color: #555; margin-bottom: 8px; }
.bsk_view_files ul { display: flex; flex-direction: column; gap: 6px; }
.bsk_view_files li { list-style: none; display: flex; align-items: center; gap: 10px; }
.bsk_file_link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: #1a73e8; text-decoration: none;
}
.bsk_file_link:hover { text-decoration: underline; }
.bsk_file_size { color: #aaa; font-size: 12px; }
.bsk_file_info { font-size: 12px; color: #bbb; }

/* Related links */
.bsk_view_links { padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.bsk_view_links h3 { font-size: 13px; font-weight: 700; color: #555; margin-bottom: 8px; }
.bsk_view_links ul { display: flex; flex-direction: column; gap: 5px; }
.bsk_view_links li { list-style: none; }
.bsk_link_item {
    font-size: 13px; color: #1a73e8; text-decoration: none;
    display: inline-flex; align-items: center; gap: 5px;
}
.bsk_link_item:hover { text-decoration: underline; }

/* Prev/Next nav */
.bsk_view_nav {
    display: flex; flex-direction: column;
    border: 1px solid #f0f0f0; border-radius: 6px;
    overflow: hidden; margin: 16px 0;
}
.bsk_nav_item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 16px; text-decoration: none; color: #333;
    border-bottom: 1px solid #f5f5f5; font-size: 13px;
    transition: background 0.08s;
}
.bsk_nav_item:last-child { border-bottom: none; }
.bsk_nav_item:hover { background: #f9fafb; }
.bsk_nav_label { flex: 0 0 60px; font-size: 12px; color: #aaa; display: flex; align-items: center; gap: 4px; }
.bsk_nav_tit { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* ============================================================
   댓글 (view_comment)
   ============================================================ */

.bsk_cmt_toggle {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 0; font-size: 15px; font-weight: 700; color: #333;
    background: none; border: none; cursor: pointer;
    margin-top: 20px;
}
.bsk_cmt_toggle strong { color: #03c75a; }
.bsk_cmt_toggle::after { content: ' ▾'; font-size: 11px; color: #aaa; }
.bsk_cmt_toggle_open::after { content: ' ▴'; }

.bsk_cmt_section { border-top: 2px solid #333; padding-top: 10px; }

.bsk_cmt_item {
    display: flex; gap: 12px; padding: 16px 0;
    border-bottom: 1px solid #f2f2f2; position: relative;
}
.bsk_cmt_reply { background: #fafafa; padding-left: 12px; }
.bsk_cmt_avatar img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.bsk_cmt_body { flex: 1; min-width: 0; }

.bsk_cmt_header {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 6px; margin-bottom: 6px; position: relative;
}
.bsk_cmt_name { font-size: 13px; font-weight: 700; color: #333; }
.bsk_cmt_ip   { font-size: 11px; color: #bbb; }
.bsk_cmt_date { font-size: 12px; color: #aaa; }

.bsk_cmt_content { font-size: 14px; color: #333; line-height: 1.75; word-break: break-word; }
.bsk_icon_lock { color: #aaa; font-size: 12px; }

.bsk_cmt_actions { flex-shrink: 0; position: relative; }
.bsk_cmt_opt_btn {
    background: none; border: none; cursor: pointer;
    padding: 4px 8px; color: #bbb; font-size: 16px;
    border-radius: 4px; transition: background 0.1s;
}
.bsk_cmt_opt_btn:hover { background: #f2f2f2; color: #666; }
.bsk_cmt_opt_menu {
    position: absolute; right: 0; top: 100%; z-index: 200;
    background: #fff; border: 1px solid #dde1e5;
    border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.1);
    min-width: 80px; overflow: hidden; display: none;
    list-style: none; padding: 4px 0;
}
.bsk_cmt_opt_menu li { list-style: none; }
.bsk_cmt_opt_menu a {
    display: block; padding: 7px 14px; font-size: 13px;
    color: #333; text-decoration: none; transition: background 0.1s;
}
.bsk_cmt_opt_menu a:hover { background: #f5f5f5; }

.bsk_cmt_empty { padding: 24px; text-align: center; color: #bbb; font-size: 13px; }

/* Comment write form */
.bsk_cmt_form_wrap {
    margin-top: 16px; border: 1px solid #ebebeb;
    border-radius: 8px; overflow: hidden;
}
.bsk_cmt_form_body { padding: 12px; }
.bsk_cmt_form_body textarea {
    width: 100%; min-height: 90px; resize: vertical;
    padding: 10px; font-size: 14px; border: 1px solid #dde1e5;
    border-radius: 4px; box-sizing: border-box; line-height: 1.6;
    font-family: inherit; transition: border-color 0.15s;
}
.bsk_cmt_form_body textarea:focus { outline: none; border-color: #03c75a; }
.bsk_cmt_charcount { font-size: 12px; color: #aaa; margin-top: 4px; text-align: right; }

.bsk_cmt_form_footer {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px;
    padding: 10px 12px; background: #f9fafb;
    border-top: 1px solid #ebebeb;
}
.bsk_cmt_form_info { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bsk_cmt_form_actions { display: flex; align-items: center; gap: 10px; }
.bsk_cmt_secret_chk { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #666; cursor: pointer; }


/* ============================================================
   글쓰기 (write)
   ============================================================ */

#bsk_write_wrap { font-size: 14px; max-width: 900px; margin: 0 auto; }

.bsk_write_row { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-bottom: 1px solid #f2f2f2; }
.bsk_write_row:last-of-type { border-bottom: none; }

.bsk_write_label { font-size: 13px; font-weight: 600; color: #555; }
.bsk_required { color: #e74c3c; font-weight: 700; }

.bsk_write_row_inline {
    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px;
}
.bsk_write_row_inline .bsk_write_label { min-width: 60px; margin-bottom: 0; }

.bsk_write_options { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.bsk_write_options li { list-style: none; }
.bsk_write_options label { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #555; cursor: pointer; }

#autosave_wrapper { position: relative; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#autosave_wrapper .bsk_input_full { flex: 1; min-width: 200px; }

.bsk_autosave_pop {
    position: absolute; top: 100%; left: 0; z-index: 100;
    background: #fff; border: 1px solid #dde1e5;
    border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.1);
    padding: 12px; min-width: 240px;
    font-size: 13px;
}
.bsk_autosave_pop strong { display: block; margin-bottom: 8px; font-size: 13px; }

.bsk_write_file_row {}
.bsk_write_file_inner { display: flex; flex-direction: column; gap: 6px; }
.bsk_file_del { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #e74c3c; }

.bsk_charcount_desc { font-size: 12px; color: #aaa; margin-bottom: 4px; }
.bsk_charcount { font-size: 12px; color: #aaa; text-align: right; margin-top: 4px; }

.bsk_write_submit {
    flex-direction: row; justify-content: flex-end;
    align-items: center; gap: 8px; padding-top: 16px;
}
