/* ============================================
   뉴스 뷰 페이지 스킨 1 - 기본형
   레이아웃: 1280px (왼쪽 950px + 여백 + 사이드바 330px)
   ============================================ */

.news_view_wrap {
    background: #fff;
    font-family: 'Noto Sans KR', sans-serif;
}

.container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0;
}

/* ======= 2차 섹션 메뉴 ======= */
.view_section_menu {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 0;
}

.view_section_menu .container {
    padding: 0 20px;
}

.view_menu_list {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    align-items: center;
}

.view_menu_list li {
    position: relative;
}

/* 메인 타이틀 (그룹명) */
.view_menu_list .menu_title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-right: 10px;
}

.view_menu_list a {
    display: block;
    padding: 8px 0;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
    position: relative;
}

.view_menu_list a:hover {
    color: #1a9ba8;
}

/* 활성화된 메뉴 (청록색 + 밑줄) */
.view_menu_list a.active {
    color: #1a9ba8;
    font-weight: 700;
}

.view_menu_list a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #1a9ba8;
}

/* ======= 제목 ======= */
.view_title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    color: #000;
    margin: 20px 0 0 0;
    word-break: keep-all;
}

/* ======= 날짜 + 유틸리티 버튼 (제목 밑) ======= */
.view_meta_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 20px;
}

.meta_date {
    font-size: 13px;
    color: #999;
}

.meta_tools {
    display: flex;
    gap: 5px;
    align-items: center;
}

.tool_btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
}

.tool_btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.tool_btn_small {
    font-size: 11px;
}

.tool_btn_large {
    font-size: 15px;
    font-weight: 700;
}

/* ======= 메인 레이아웃 ======= */
.view_content_wrap {
    display: flex;
    gap: 0;
    margin-top: 30px;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 50px;
    border-bottom: 1px solid #e5e5e5;
}

/* ======= 소셜 공유 바 (왼쪽 고정 - 레이아웃 밖) ======= */
.social_share_bar {
    position: absolute;
    left: -80px;
    top: 0;
    width: 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.share_btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.share_btn.facebook {
    background: #1877f2;
}

.share_btn.twitter {
    background: #000;
}

.share_btn.kakao {
    background: #FEE500;
    color: #3c1e1e;
}

.share_btn.naver {
    background: #03c75a;
}

.share_btn.line {
    background: #00c300;
}

.share_btn.link {
    background: #999;
}

.share_btn.top {
    background: #5AB2FF;
    margin-top: 10px;
}

.share_btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ======= 메인 콘텐츠 영역 (950px) ======= */
.view_main_content {
    width: 950px;
    min-width: 950px;
    margin-right: 40px;
    position: relative;
    flex-shrink: 0;
}

.view_main_content::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #e5e5e5;
}

/* ======= 부제목 (왼쪽 세로선) ======= */
.view_subtitle_wrap {
    background: transparent;
    padding: 15px 0 15px 20px;
    margin: 0 0 30px 0;
    border-left: 4px solid #1a9ba8;
}

.subtitle_line {
    font-size: 17px;
    line-height: 1.7;
    color: #000;
    margin-bottom: 5px;
    font-weight: 500;
}

.subtitle_line:last-child {
    margin-bottom: 0;
}

/* ======= 본문 영역 ======= */
.view_article_body {
    margin-top: 0;
}

/* ======= 본문 내용 ======= */
.article_content {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    word-break: keep-all;
}

/* 본문 내 이미지 컨테이너 */
.article_content .image-align-wrapper-left,
.article_content .image-align-wrapper-center,
.article_content .image-align-wrapper-right {
    margin: 25px 0;
}

.article_content .image-align-wrapper-left {
    text-align: left;
}

.article_content .image-align-wrapper-center {
    text-align: center;
}

.article_content .image-align-wrapper-right {
    text-align: right;
}

.article_content .image-with-caption {
    display: inline-block;
    max-width: 100%;
}

.article_content .image-with-caption img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 이미지 설명 박스 - 이미지 밑에 회색 배경 */
.article_content .image-caption-box {
    background: #f8f8f8;
    padding: 8px 12px;
    margin-top: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    text-align: left;
}

.article_content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
    color: #2c3e50;
}

.article_content iframe,
.article_content .youtube-container {
    max-width: 100%;
    margin: 20px 0;
}

.article_content a {
    color: #5AB2FF;
    text-decoration: underline;
}

.article_content a:hover {
    color: #4a9fdf;
}

/* ======= 하단 메타 정보 ======= */
.view_footer {
    margin-top: 50px;
    padding: 30px 0;
    border-top: 2px solid #e5e5e5;
}

.copyright_notice {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.copyright_text {
    font-size: 13px;
    color: #999;
}

/* ======= 사이드바 (330px) ======= */
.view_sidebar {
    width: 330px;
    min-width: 330px;
    margin-left: 30px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    flex-shrink: 0;
}

/* 사이드바 스타일은 sidebar_skin1.css에서 관리 */

/* ======= 반응형 ======= */
@media (max-width: 1350px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .view_content_wrap {
        flex-direction: column;
    }
    
    .social_share_bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        background: #fff;
        border-top: 1px solid #ddd;
        padding: 10px;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        margin-right: 0;
        gap: 15px;
    }
    
    .view_main_content {
        width: 100%;
        margin-right: 0;
    }
    
    .view_sidebar {
        width: 100%;
        margin-left: 0;
        margin-top: 40px;
        position: static;
    }
}

@media (max-width: 768px) {
    .view_title {
        font-size: 24px;
    }
    
    .meta_tools {
        gap: 3px;
    }
    
    .tool_btn {
        padding: 3px 6px;
        font-size: 11px;
    }
    
    .view_subtitle_wrap {
        padding: 15px;
    }
    
    .subtitle_line {
        font-size: 14px;
    }
}

/* ============================================
   관련 기사 섹션
   ============================================ */
.related_news_section {
    margin-top: 40px;
    padding: 25px 0;
    border-top: 2px solid #e5e5e5;
}

.related_title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0 0 20px 0;
    padding: 0;
}

.related_news_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related_news_item {
    position: relative;
    padding-left: 15px;
}

.related_news_item::before {
    content: 'ㄴ';
    position: absolute;
    left: 0;
    top: 0;
    color: #22b14c;
    font-size: 16px;
    font-weight: 700;
}

.related_news_item a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.5;
    display: block;
    transition: color 0.2s;
}

.related_news_item a:hover {
    color: #22b14c;
    text-decoration: underline;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .related_news_section {
        padding: 20px 0;
        margin-top: 30px;
    }
    
    .related_title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .related_news_list {
        gap: 10px;
    }
    
    .related_news_item {
        padding-left: 12px;
    }
    
    .related_news_item::before {
        font-size: 14px;
    }
    
    .related_news_item a {
        font-size: 14px;
    }
}

/* ============================================
   프린트 전용 스타일
   ============================================ */
@media print {
    /* 숨길 요소들 */
    .view_section_menu,
    .social_share_bar,
    .view_meta_top .meta_tools,
    .view_sidebar,
    .related_news_section,
    aside,
    nav,
    header,
    footer {
        display: none !important;
    }
    
    /* 본문 영역 전체 너비 사용 */
    .view_content_wrap {
        display: block !important;
        max-width: 100% !important;
    }
    
    .view_main_content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* 제목 */
    .view_title {
        font-size: 24px;
        color: #000;
        margin-bottom: 10px;
        page-break-after: avoid;
    }
    
    /* 날짜 */
    .view_meta_top {
        border-bottom: 1px solid #ddd;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }
    
    .meta_date {
        font-size: 12px;
        color: #666;
    }
    
    /* 부제목 */
    .view_subtitle_wrap {
        background: #f5f5f5;
        padding: 10px;
        margin-bottom: 15px;
        page-break-inside: avoid;
    }
    
    .subtitle_line {
        font-size: 13px;
        line-height: 1.6;
    }
    
    /* 본문 */
    .article_content {
        font-size: 12pt;
        line-height: 1.6;
        color: #000;
    }
    
    /* 이미지 */
    .article_content img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
    }
    
    .article_content .image-with-caption {
        page-break-inside: avoid;
    }
    
    /* 저작권 정보 */
    .view_footer {
        margin-top: 30px;
        padding-top: 15px;
        border-top: 2px solid #000;
        page-break-inside: avoid;
    }
    
    .copyright_notice {
        font-size: 11pt;
        color: #000;
        margin-bottom: 5px;
    }
    
    .copyright_text {
        font-size: 10pt;
        color: #666;
    }
    
    /* 페이지 여백 설정 */
    @page {
        margin: 2cm;
    }
    
    /* 링크 URL 표시 제거 */
    a[href]:after {
        content: none !important;
    }
    
    /* 배경색 제거 */
    * {
        background: white !important;
        box-shadow: none !important;
    }
}