/* 서브페이지 전용 헤더 고정 */
#header_wrap.sub_header {
    background: rgba(0, 0, 0, 1) !important;
    position: fixed; top: 0; left: 0; z-index: 1000;
}

#sub_container {
    width: 100%;
    background: url('../images/news_bg_img.jpg') no-repeat center top / cover;
    padding-top: 100px;
}

/* 원페이지 레이아웃 자동 계산 */
.sub_news_page {
    width: 100%;
    min-height: calc(100vh - 400px); 
    display: flex; align-items: flex-start; justify-content: center;
    padding: 50px 0; box-sizing: border-box;
}

.board_wrapper {
    width: 1440px; background: rgba(255, 255, 255, 0.98);
    border-radius: 15px; padding: 40px 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.board_top { text-align: center; margin-bottom: 30px; }
.sub_news_logo { width: 200px; }

/* 테이블 헤더 및 셀 정렬 최적화 */
.news_table { width: 100%; border-collapse: collapse; border-top: 2px solid #222; }
.news_table th { padding: 15px; background: #f9f9f9; border-bottom: 1px solid #ccc; font-size: 16px; font-weight: 600; text-align: center; }

/* ★ 수정됨: '제목' 헤더와 하단 내용의 열 맞춤 (좌측 정렬 및 동일한 패딩) */
.news_table .th_title { text-align: left; padding-left: 20px; }
.news_table .td_title { text-align: left; padding-left: 20px; }

.news_table td { padding: 12px 10px; border-bottom: 1px solid #eee; font-size: 15px; color: #333; text-align: center; }
.news_table .td_title a { color: #222; text-decoration: none; display: block; width: 100%; }
.news_table .td_title a:hover { color: #df0011; text-decoration: underline; }

.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 30px; }
.page_btn { width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; border: 1px solid #ddd; font-size: 15px; color: #666; transition: 0.2s; text-decoration: none; background: #fff; }
.page_btn.active { background: #df0011; border-color: #df0011; color: #fff; font-weight: 600; }

/* ---------------------------------------------------- */
/* --- 상세보기 팝업 (Detail Modal) 디자인 --- */
/* ---------------------------------------------------- */
.news_detail_content {
    width: 800px; background: #fff; border-radius: 15px; padding: 50px;
    position: relative; max-height: 85vh; overflow-y: auto;
    display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.news_detail_close {
    position: absolute; top: 20px; right: 25px; font-size: 40px; color: #999; cursor: pointer;
}
.detail_header { border-bottom: 2px solid #333; padding-bottom: 20px; margin-bottom: 30px; }
.detail_header h2 { font-size: 28px; font-weight: 600; color: #000; margin-bottom: 10px; line-height: 1.3; }
#view_date { font-size: 15px; color: #888; }

.detail_body { flex: 1; }
.view_img_box { width: 100%; margin-bottom: 30px; text-align: center; }
.view_img_box img { max-width: 100%; border-radius: 10px; }
.view_text_box { font-size: 18px; line-height: 1.8; color: #444; word-break: break-all; }

.detail_footer { margin-top: 40px; text-align: center; border-top: 1px solid #eee; padding-top: 30px; }
.btn_close_view {
    width: 150px; height: 50px; background: #222; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; border: 0; border-radius: 5px; transition: 0.2s;
}
.btn_close_view:hover { background: #df0011; }

/* 문의 바 & 푸터 하단 고정 */
#inquiry_fixed_bar { position: relative !important; bottom: auto !important; margin-left: 0 !important; z-index: 10; }
#footer_wrap { position: relative !important; margin-bottom: 0 !important; background: #000; }