/* ============================================
   1차 섹션 페이지 스킨 1 - 뉴시스형
   ============================================ */

.sub_page_wrap {
    background: #fff;
    font-family: 'Noto Sans KR', sans-serif;
}

.container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0;
}

.sub_section_menu .container {
    padding: 0 20px;
}

/* ======= 2차 섹션 메뉴 ======= */
.sub_section_menu {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 0;
}

.section_menu_list {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    align-items: center;
}

.section_menu_list li {
    position: relative;
}

/* 메인 타이틀 (그룹명) */
.section_menu_list .menu_title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-right: 10px;
}

.section_menu_list a {
    display: block;
    padding: 8px 0;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
    position: relative;
}

.section_menu_list a:hover {
    color: #1a9ba8;
}

/* 활성화된 메뉴 (청록색 + 밑줄) */
.section_menu_list a.active {
    color: #1a9ba8;
    font-weight: 700;
}

.section_menu_list a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #1a9ba8;
}

/* ======= 메인 레이아웃 ======= */
.sub_content_wrap {
    display: flex;
    gap: 0;
    margin-top: 30px;
    margin-bottom: 50px;
}

.main_content {
    width: 950px;
    min-width: 950px;
    margin-right: 40px;
    position: relative;
    flex-shrink: 0;
}

.main_content::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #e5e5e5;
}

.sidebar {
    width: 330px;
    min-width: 330px;
    margin-left: 30px;
    flex-shrink: 0;
}

/* ======= 뉴스 리스트 영역 ======= */
.news_list_area {
    padding-top: 30px;
}

/* ======= 페이지네이션 ======= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 40px;
    padding: 20px 0;
}

.page_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    color: #666;
    text-decoration: none;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
    transition: all 0.2s;
}

.page_link:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #999;
}

.page_link.current {
    background: #5AB2FF;
    color: #fff;
    border-color: #5AB2FF;
    font-weight: 700;
}

.page_link.prev,
.page_link.next {
    font-weight: 700;
}

/* ======= 사이드바 ======= */
.sidebar {
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

/* 사이드바 스타일은 sidebar_skin1.css에서 관리 */

/* ======= 반응형 디자인 ======= */
@media (max-width: 1350px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .sub_content_wrap {
        flex-direction: column;
    }
    
    .main_content {
        width: 100%;
        margin-right: 0;
    }
    
    .main_content::after {
        display: none;
    }
    
    .sidebar {
        width: 100%;
        margin-left: 0;
        margin-top: 40px;
        position: static;
    }
}

@media (max-width: 768px) {
    .section_menu_list {
        gap: 10px;
    }
    
    .section_menu_list a {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 3px;
    }
    
    .page_link {
        min-width: 28px;
        height: 28px;
        font-size: 13px;
    }
}

