@charset "utf-8";

:root {
    --primary-color: #ffb703;
    --primary-hover: #e0a000;
    --dark-bg-start: #0b0f19;
    --dark-bg-end: #151c2c;
    --border-color: #e2e8f0;
    --text-muted: #64748b;
    --container-max-width: 1400px;
}

#bo_list, #bo_v, #bo_w, #bo_list *, #bo_v *, #bo_w * {
    box-sizing: border-box;
}

/* ===================================================
   1. 히어로 영역 (화면 전체 100% 레이아웃)
   =================================================== */
.board_hero_section {
    position: relative;
    width: 100%; /* 화면 전체 100% 폭 */
    overflow: hidden;
    text-align: center;
    color: #ffffff;
    padding: 4rem 1.5rem;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, var(--dark-bg-start) 0%, var(--dark-bg-end) 100%);
    border-radius: 0 0 24px 24px; /* 하단 모서리만 둥글게 */
}

/* 은은한 방사형 빛 효과 */
.board_hero_section .hero_glow_bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    opacity: 0.25;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255,183,3,0.25) 0%, rgba(0,0,0,0) 70%);
}

.board_hero_section .hero_content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.board_hero_section .hero_badge {
    display: inline-block;
    background-color: #ffb703;
    color: #000000;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    border-radius: 50rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
    letter-spacing: 0.05em;
}

.board_hero_section h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0.5rem 0 1rem 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.board_hero_section h1 .highlight_text {
    color: #ffb703;
}

.board_hero_section p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 auto;
    word-break: keep-all;
    line-height: 1.6;
}

/* ===================================================
   2. 하단 서브페이지 컨텐츠 영역 (1400px 중앙 정렬)
   =================================================== */
.sub_container {
    max-width: var(--container-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* 최근 영상 브리핑 카드 */
.briefing_main_section {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 35px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}
.briefing_header { margin-bottom: 18px; }
.briefing_badge {
    display: inline-block;
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fef3c7;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}
.briefing_title { font-size: 1.35rem; font-weight: 700; margin: 4px 0; color: #0f172a; line-height: 1.4; }
.briefing_date { font-size: 0.85rem; color: var(--text-muted); }

/* 반응형 16:9 비디오 */
.briefing_video_wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}
.briefing_video_wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* 카테고리 탭 */
#bo_cate { margin: 20px 0 25px; }
#bo_cate ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
#bo_cate a {
    display: block;
    padding: 8px 18px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
#bo_cate a:hover, #bo_cate #bo_cate_on {
    background: #0f172a;
    color: #ffb703;
    border-color: #0f172a;
}

/* 게시판 상단 버튼/정보 */
#bo_btn_top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
#bo_list_total { font-size: 0.9rem; color: var(--text-muted); }
#bo_list_total strong { color: #d97706; }
.btn_bo_user { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.btn_bo_user .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}
.btn_bo_user .btn_write { background: #0f172a; color: #ffb703; border-color: #0f172a; font-weight: 600; }

/* 테이블 리스트 */
.tbl_head01 { width: 100%; overflow-x: auto; background: #fff; border-radius: 12px; border: 1px solid var(--border-color); }
.tbl_head01 table { width: 100%; border-collapse: collapse; }
.tbl_head01 th { background: #f8fafc; padding: 15px 12px; font-size: 0.875rem; color: #0f172a; border-bottom: 1px solid var(--border-color); font-weight: 600; }
.tbl_head01 td { padding: 16px 12px; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; color: #334155; text-align: center; }
.tbl_head01 td.td_subject { text-align: left; }
.tbl_head01 tr:last-child td { border-bottom: none; }
.tbl_head01 tr:hover { background-color: #f8fafc; }

.bo_cate_link { display: inline-block; font-size: 0.75rem; padding: 3px 8px; border-radius: 4px; background: #fffbeb; color: #d97706; font-weight: 600; margin-right: 6px; }
.bo_tit a { color: #0f172a; font-weight: 600; text-decoration: none; }
.bo_tit a:hover { color: #d97706; }

/* 페이지네이션 */
.bo_paging_wrap { margin: 35px 0; text-align: center; }
.pg_wrap { display: inline-flex; gap: 4px; }
.pg_page, .pg_current { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; font-size: 0.875rem; text-decoration: none; }
.pg_page { background: #fff; border: 1px solid var(--border-color); color: #0f172a; }
.pg_current { background: #0f172a; color: #ffb703; font-weight: 700; }

/* 상세 / 작성 페이지 카공 */
#bo_v, #bo_w {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}
.bo_v_header { border-bottom: 1px solid var(--border-color); padding-bottom: 24px; margin-bottom: 30px; }
.bo_v_tit { font-size: 1.75rem; color: #0f172a; margin: 12px 0 16px; font-weight: 700; line-height: 1.35; }
#bo_v_info { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 0.875rem; }
#bo_v_con { font-size: 1.05rem; line-height: 1.85; color: #334155; min-height: 200px; margin: 35px 0; }

/* 폼 요소 */
.write_div { margin-bottom: 20px; }
.write_div label { display: block; font-weight: 600; margin-bottom: 8px; color: #0f172a; font-size: 0.9rem; }
.frm_input { width: 100%; height: 48px; border: 1px solid var(--border-color); border-radius: 8px; padding: 0 16px; font-size: 0.95rem; outline: none; }
.frm_input:focus { border-color: #ffb703; box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.2); }
.btn_confirm { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.btn_submit { background: #0f172a; color: #ffb703; border: none; padding: 12px 28px; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; }
.btn_cancel { background: #f1f5f9; color: #0f172a; border: 1px solid var(--border-color); padding: 12px 24px; border-radius: 8px; font-size: 1rem; text-decoration: none; display: inline-block; }

/* 검색 모달 */
.search_modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.search_modal.active { display: flex; }
.search_modal_content {
    background: #fff;
    width: 90%;
    max-width: 480px;
    padding: 30px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}
.search_modal_header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.search_modal_header h3 { margin: 0; font-size: 1.25rem; color: #0f172a; }
.search_modal_close { background: none; border: none; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; }
.search_form_wrap { display: flex; flex-direction: column; gap: 12px; }
.search_form_wrap select, .search_form_wrap input { height: 46px; border: 1px solid var(--border-color); border-radius: 8px; padding: 0 12px; font-size: 0.95rem; }
.search_form_wrap button { height: 46px; background: #0f172a; color: #ffb703; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; }

.th_num, .th_title, .th_hit, .th_date, .td_num2, .td_num, .td_datetime{
    text-align: center;
}


/* 모바일 대응 */
@media (max-width: 768px) {
    .sub_container { padding: 0 15px; }
    .board_hero_section { padding: 2.5rem 1rem; }
    .board_hero_section h1 { font-size: 1.6rem; }
    .briefing_main_section { padding: 18px; }
    #bo_v, #bo_w { padding: 20px; }
    .th_num, .th_hit, .th_date, .td_num2, .td_num, .td_datetime { display: none; }
}

/* 테이블 영역 자체에 직접 1400px 규격 및 중앙 정렬 강제 적용 */
.tbl_head01 {
    max-width: 1400px !important;
    width: calc(100% - 40px) !important; /* 좌우 20px씩 여백 확보 */
    margin: 0 auto !important; /* 중앙 정렬 */
    box-sizing: border-box !important;
}

/* 상단 버튼/총 건수 영역도 여백이 안 먹는다면 함께 적용 */
#bo_btn_top {
    max-width: 1400px !important;
    width: calc(100% - 40px) !important;
    margin: 0 auto 16px auto !important;
    box-sizing: border-box !important;
}

/* 카테고리 태그 영역 */
#bo_cate {
    max-width: 1400px !important;
    width: calc(100% - 40px) !important;
    margin: 20px auto 25px auto !important;
    box-sizing: border-box !important;
}

/* 뷰 페이지 전용 추가 스타일 */
.bo_v_link {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 25px;
}
.bo_v_link a {
    color: #0f172a;
    text-decoration: none;
    font-size: 0.9rem;
}
.bo_v_link a:hover {
    color: #d97706;
}

/* 글쓰기 에디터 상자 정렬 */
.write_editor_wrap {
    max-width: 1400px !important;
    width: 100%;
    margin-top: 6px;
}
.write_editor_wrap textarea {
    border-radius: 8px;
    border-color: var(--border-color);
}