/* ============================================
   기본 서브 구조 - 공통 동기화 (sub1 기반)
   ============================================ */
.sub_wrapper { background-color: #fff; min-height: 100vh; }

.sub_hero { position: relative; width: 100%; margin: -1px 0 !important; padding: 0 !important; line-height: 0; font-size: 0; overflow: hidden; background: none !important; }
.sub_hero img { width: 100%; height: auto !important; display: block; margin: 0 !important; padding: 0 !important; border: none !important; }
.hero_text_overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; background-color: rgba(0,0,0,0.2); z-index: 10; padding: 0 20px; }
.hero_text_overlay .hero_title { font-size: 42px; font-weight: 800; color: #fff; margin-bottom: 10px; text-shadow: 0 4px 10px rgba(0,0,0,0.3); letter-spacing: -1px; }
.hero_text_overlay .hero_subtitle { font-size: 18px; color: #eee; font-weight: 500; text-shadow: 0 2px 5px rgba(0,0,0,0.3); word-break: keep-all; }

/* LNB (sub1.css 오리지널 디자인 완벽 복제) */
.sub_lnb { border-bottom: 1px solid #eee; background-color: #fcfcfc; position: relative; z-index: 900; height: 60px; display: flex; align-items: center; margin: 0 !important; padding: 5px !important; border-top: none !important; }
.sub_lnb .lnb_inner { display: flex; align-items: center; gap: 15px; }
.sub_lnb .home_btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background-color: #fff; border: 1px solid #eee; border-radius: 50%; font-size: 16px; color: #444; transition: 0.3s; flex-shrink: 0; }
.sub_lnb .home_btn:hover { background-color: var(--accent-color); color: #fff; border-color: var(--accent-color); }
.sub_lnb .lnb_item { position: relative; }
.sub_lnb .lnb_btn { height: 44px; padding: 0 25px; background-color: #fff; border: 1px solid #eee; border-radius: 30px; font-size: 14px; font-weight: 600; color: #444; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: 0.3s; white-space: nowrap; flex-shrink: 0; }
.sub_lnb .lnb_btn:hover { border-color: var(--accent-color); }
.sub_lnb .lnb_btn.color_accent { border-color: var(--accent-color); color: var(--accent-color); background-color: rgba(130, 180, 41, 0.05); }

.sub_lnb .lnb_dropdown { position: absolute; top: calc(100% + 8px); left: 0; width: auto; min-width: 160px; background-color: #fff; border: 1px solid #eee; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); display: none; padding: 10px 0; overflow: hidden; z-index: 1000; }
.sub_lnb .lnb_dropdown.show { display: block !important; } 
.sub_lnb .lnb_dropdown li a { display: block; padding: 10px 20px; font-size: 14px; color: #666; transition: 0.2s; }
.sub_lnb .lnb_dropdown li a:hover, .sub_lnb .lnb_dropdown li.active a { background-color: #f9f9f9; color: var(--accent-color); font-weight: 700; }

/* Content Area & Sidebar (sub1.css 오리지널) */
.sub_content_area { padding: 80px 0 120px; }
.sub_content_area .content_inner { display: flex; gap: 80px; }
.sub_sidebar { width: 260px; flex-shrink: 0; }
.sub_sidebar .side_title_box { background: linear-gradient(45deg, var(--accent-color), #6e9a0f); padding: 30px 25px; margin-bottom: 0; border-radius: 8px 8px 0 0; }
.sub_sidebar .side_title { color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -0.5px; margin: 0; }
.sub_sidebar .side_menu_list { border: 1px solid #eee; border-top: none; border-radius: 0 0 8px 8px; overflow: hidden; background: #fff; }
.sub_sidebar .side_menu_list li a { display: flex; justify-content: space-between; align-items: center; padding: 18px 25px; font-size: 16px; color: #555; font-weight: 500; border-bottom: 1px solid #f2f2f2; transition: 0.3s; }
.sub_sidebar .side_menu_list li:last-child a { border-bottom: none; }
.sub_sidebar .side_menu_list li:hover a, .sub_sidebar .side_menu_list li.active a { background-color: #f8faf2; color: var(--accent-color); font-weight: 700; }
.sub_sidebar .side_menu_list li a i { opacity: 0.3; transition: 0.3s; }
.sub_sidebar .side_menu_list li:hover a i, .sub_sidebar .side_menu_list li.active a i { opacity: 1; color: var(--accent-color); transform: translateX(5px); }

.sub_main_content { flex: 1; min-width: 0; }
.content_header { margin-bottom: 50px; }
.content_header .page_title { font-size: 36px; font-weight: 800; color: #111; margin-bottom: 15px; }
.content_header .title_bar { width: 40px; height: 4px; background-color: var(--accent-color); }

/* ============================================
   공지사항 전용 스타일 (notice.css)
   ============================================ */

/* 1. 공지사항 리스트 (List Mode) */
.notice_board_list {
    width: 100%;
    border-top: 2px solid #333;
    margin-top: 20px;
}

.notice_row {
    display: flex;
    align-items: center;
    padding: 20px 10px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
    text-decoration: none !important;
    color: inherit;
}

.notice_row:hover {
    background-color: #f9fbf2; /* 연한 그린 배경 */
}

/* 상단 고정 공지는 배경색 다르게 */
.notice_row.is_notice {
    background-color: #f8f8f8;
}

.notice_row .col_num {
    width: 60px;
    text-align: center;
    font-size: 14px;
    color: #999;
}

.notice_row .col_title {
    flex: 1;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice_row .is_notice .col_title {
    font-weight: 700;
}

.notice_row .badge_notice {
    display: inline-block;
    padding: 2px 8px;
    background: var(--accent-color, #82b429);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 10px;
    vertical-align: middle;
}

.notice_row .col_date {
    width: 120px;
    text-align: center;
    font-size: 14px;
    color: #999;
}

/* 2. 상세보기 (View Mode) */
.notice_view_header {
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

.notice_view_header h1 {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    margin-bottom: 20px;
    line-height: 1.3;
}

.view_meta_info {
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 14px;
}

.view_meta_info span b {
    color: #444;
    font-weight: 600;
}

.notice_view_content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    min-height: 300px;
    margin-bottom: 60px;
}

.notice_view_content img {
    max-width: 100% !important;
    height: auto !important;
}

/* 3. 하단 버튼 및 페이지네이션 */
.board_footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
    gap: 10px;
}

.btn_board {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none !important;
}

.btn_list_back { background: #555; color: #fff; }
.btn_list_back:hover { background: #333; }

.btn_admin_action { background: #333; color: #fff; border: none; }
.btn_admin_action:hover { background: var(--accent-color); color: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.btn_board.btn_red { background: #e74c3c; color: #fff; border: none; }
.btn_board.btn_red:hover { background: #c0392b; }

/* 4. 글쓰기/수정 폼 (Write Mode) */
.notice_write_container {
    background: #fff;
    margin-bottom: 50px;
}

.notice_write_header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #333;
}

.notice_write_header h3 {
    font-size: 24px;
    font-weight: 800;
    color: #111;
}

.notice_ajax_form .form_group {
    margin-bottom: 25px;
}

.notice_ajax_form .form_group label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.notice_ajax_form .form_group input[type="text"],
.notice_ajax_form .form_group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    transition: 0.3s;
    outline: none;
    box-sizing: border-box;
}

.notice_ajax_form .form_group input:focus,
.notice_ajax_form .form_group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(130, 180, 41, 0.1);
}

.notice_ajax_form .check_group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
}

.notice_ajax_form .check_group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

/* Pagination */
.notice_pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 60px;
}

.page_btn, .page_num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #eee;
    font-size: 14px;
    color: #777;
    transition: 0.3s;
    text-decoration: none !important;
}

.page_num:hover, .page_btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.page_current {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

/* 5. 모바일 반응형 고도화 */
@media screen and (max-width: 1024px) {
    .sub_content_area .content_inner { gap: 40px; }
    .sub_sidebar { width: 220px; }
}

@media screen and (max-width: 768px) {
    /* 사이드바 숨김 및 본문 확장 */
    .sub_sidebar { display: none !important; }
    .sub_content_area { padding: 40px 0 80px; }
    .sub_content_area .content_inner { display: block; padding: 0 15px; }
    .sub_main_content { width: 100% !important; }

    /* 리스트 카드형 최적화 */
    .notice_board_list { border-top-width: 1px; }
    .notice_row { 
        padding: 20px 15px; 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 10px;
    }
    .notice_row .col_num { display: none; }
    .notice_row .col_title { 
        padding: 0; 
        font-size: 15px; 
        line-height: 1.4;
        white-space: normal;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .notice_row .col_date { 
        width: 100%; 
        text-align: left; 
        font-size: 12px; 
        color: #bbb;
    }
    
    /* 상세보기 및 폼 최적화 */
    .notice_view_header h1 { font-size: 20px; margin-bottom: 15px; }
    .view_meta_info { font-size: 13px; }
    .notice_view_content { font-size: 15px; margin-bottom: 40px; }
    
    .notice_write_header h3 { font-size: 20px; }
    .notice_ajax_form .form_group { margin-bottom: 15px; }
    .notice_ajax_form .form_group input[type="text"],
    .notice_ajax_form .form_group textarea { padding: 12px; font-size: 14px; }
    
    .board_footer { flex-wrap: wrap; justify-content: center; }
    .btn_board { flex: 1; min-width: 120px; padding: 10px 15px; font-size: 14px; }
}
