@charset "utf-8";

/* 반응형 CSS Import */
@import url("../../../css/responsive.css");

/* Font Awesome 5 Pro Styles for News Board */
.fa, .fas, .far, .fab, .fal, .fad {
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    display: inline-block !important;
    line-height: 1 !important;
}

.far {
    font-weight: 400 !important;
}

.fab {
    font-weight: 400 !important;
}

.fal {
    font-weight: 300 !important;
}

.fad {
    font-weight: 900 !important;
}

/* Font Awesome 아이콘 정상 표시를 위한 스타일 */
.fa::before, .fas::before, .far::before, .fab::before, .fal::before, .fad::before {
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: inherit !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* 중복 아이콘 방지 - after 가상 요소만 제거 */
.fa::after, .fas::after, .far::after, .fab::after, .fal::after, .fad::after {
    content: none !important;
}

/* a 태그 안의 Font Awesome 아이콘 중복 방지 */
a .fa, a .fas, a .far, a .fab, a .fal, a .fad {
    padding: 0 !important;
    margin: 0 !important;
}

/* linkline과 Font Awesome 아이콘 충돌 방지 */
.linkline .fa, .linkline .fas, .linkline .far, .linkline .fab, .linkline .fal, .linkline .fad {
    background: none !important;
    background-image: none !important;
    background-size: auto !important;
    background-position: initial !important;
    background-repeat: no-repeat !important;
}

.sound_only, .cke_sc{display:none}
/* 뉴스 헤더 */
.page-section {
    position: relative;
    z-index: 2;
}
.news_header {
    display: flex !important;
    margin-bottom: 40px;
    padding-bottom: 20px;
    justify-content: space-between;
    align-items: center;
}

.news_title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
}
.pageheader__heading.heading-lg {
    font-size: 72px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    padding-top: 150px;
}

/* 7:3 리스트 레이아웃 */
.news_rows {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
}

.news_row {
    position: relative;
    border-top: 1px solid #eee !important;
    padding-top: 28px;
    padding-bottom: 70px;
    border-bottom: 1px solid #000;
}

.news_row:first-child {
    border-top: none !important;
    padding-top: 0 !important;
}

.row_inner {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
}

.row_left {min-width: 0 !important;width: 100%;}

.row_title {
    font-size: 36px;
    font-weight: 700 !important;
    margin: 0 0 45px 0;
}

.row_title a {
    color: #111 !important;
    text-decoration: none !important;
}

.row_title a:hover { color: #007bff !important; }

/* row_link 호버 시 row_title > span 라인 효과 */
.row_title span {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.row_title span::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #222;
    transition: width 0.35s cubic-bezier(0.4,0,0.2,1);
}

.row_link:hover .row_title span::after {
    width: 100%;
}

.row_excerpt {
    line-height: 1.5 !important;
    margin: 0 0 40px 0 !important;
    font-weight: 500;
}

.row_meta { color: #999 !important; font-size: 14px !important; display:flex !important; gap:10px !important; align-items:center !important; }
.row_meta .category { background:#e3f2fd !important; color:#1976d2 !important; padding:2px 8px !important; border-radius:4px !important; }

.row_right {
    width: 100% !important;
    max-width: 450px !important;
    /* padding-left: 2rem; */
}

.row_thumbnail {
    display: block !important;
    width: 100% !important;
    /* max-width: 575px !important; */
    height: auto !important;
    background: #f5f5f5 !important;
    overflow: hidden !important;
    /* border-radius: 8px !important; */
    position: relative !important;
}

.row_thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    /* border-radius: 8px !important; */
    transition: transform 0.4s ease;
}

/* 썸네일 이미지 호버 효과 - viking_lab 게시판과 동일 */
.row_link:hover .row_thumbnail img {
    transform: scale(1.05);
}

.row_thumbnail.no_image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8f9fa !important;
    /* border: 2px dashed #dee2e6 !important; */
}

.row_thumbnail.no_image i {
    font-size: 48px !important;
    color: #6c757d !important;
}

/* 반응형 처리 */
@media (max-width: 1200px) {
    .row_left{
        width:100%;
    }
    .row_title{
        font-size:24px;
        margin-bottom: 10px;
    }
    .row_excerpt{
        font-size: 16px;
        margin-bottom: 15px !important;
        letter-spacing: -1px;
    }
    .row_right {
        max-width: 100% !important;
        padding-left: 0;
        max-width: 320px !important;
    }
    
    .row_thumbnail {
        max-width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 768px) {
    
    .row_inner {
        gap: 20px !important;
        flex-direction: column;
    }
    
    .row_right {
        order: -1 !important; /* 모바일에서 이미지를 위로 */
        padding: 0;
        max-width: 80% !important;
        margin: 1rem auto;
    }
    .news_row{
        padding-top: 10px;
        padding-bottom: 40px;
    }
    .row_thumbnail {
        /* height: 100% !important; */
    }
    
    .row_thumbnail.no_image i {
        font-size: 36px !important;
    }
    .row_title{
        font-size: 24px;
        margin-bottom: 10px;
    }
    .date{
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .row_thumbnail {
        /* height: 150px !important; */
    }
    
    .row_thumbnail.no_image i {
        font-size: 28px !important;
    }
}

.news_subtitle {
    font-size: 1.1rem !important;
    color: #666 !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

.news_actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn_write {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.btn_write:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    color: white;
    text-decoration: none;
}

.btn_search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn_search:hover {
    background: #e9ecef;
    color: #495057;
}

/* 뉴스 카테고리 */
.news_categories {
    margin-bottom: 30px;
}

.news_categories ul {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.news_categories li a {
    display: block;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.news_categories li a:hover,
.news_categories li a.active {
    background: #007bff;
    color: white;
    text-decoration: none;
    border-color: #007bff;
}

/* 뉴스 정보 */
.news_info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 0;
}

/* 체크박스 스타일 */
.all_chk_box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.all_chk_box input[type="checkbox"] {
    display: none;
}

.all_chk_box label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.all_chk_box label::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: white;
    transition: all 0.3s ease;
}

.all_chk_box input[type="checkbox"]:checked + label::before {
    background: #007bff;
    border-color: #007bff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='white' d='m6.564.75-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.row_checkbox {
    position: absolute;
    bottom: 35px;
    left: 0;
    z-index: 10;
}

.row_checkbox input[type="checkbox"] {
    display: none;
}

.row_checkbox label {
    display: block;
    cursor: pointer;
}

.row_checkbox label::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.row_checkbox input[type="checkbox"]:checked + label::before {
    background: #007bff;
    border-color: #007bff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='white' d='m6.564.75-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}

.row_checkbox label:hover::before {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.news_count {
    display: flex;
    gap: 20px;
    align-items: center;
    color: #6c757d;
    font-size: 0.95rem;
}

.news_count strong {
    color: #007bff;
    font-weight: 600;
}

.admin_actions {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn_admin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn_admin:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
}

.btn_more_opt {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn_more_opt:hover {
    background: #e9ecef;
    color: #495057;
}

.more_opt {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 120px;
}

.more_opt li {
    border-bottom: 1px solid #f8f9fa;
}

.more_opt li:last-child {
    border-bottom: none;
}

.more_opt button {
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    color: #495057;
    cursor: pointer;
    transition: background 0.2s ease;
}

.more_opt button:hover {
    background: #f8f9fa;
}

/* 뉴스 카드 그리드 */
.news_cards {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
    gap: 30px !important;
    margin-bottom: 40px !important;
}

/* 뉴스 카드 */
.news_card {
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    border: 1px solid #f0f0f0 !important;
    display: block !important;
}

.news_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news_card.notice {
    border-left: 4px solid #ff6b6b;
}

.card_checkbox {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.card_checkbox input[type="checkbox"] {
    display: none;
}

.card_checkbox label {
    display: block;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card_checkbox input[type="checkbox"]:checked + label {
    background: #007bff;
    border-color: #007bff;
}

.card_checkbox input[type="checkbox"]:checked + label::after {
    content: '✓';
    display: block;
    color: white;
    text-align: center;
    line-height: 16px;
    font-size: 12px;
    font-weight: bold;
}

/* 카드 이미지 */
.card_image {
    position: relative !important;
    height: 200px !important;
    overflow: hidden !important;
    background: #f8f9fa !important;
    display: block !important;
}

.card_image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
    display: block !important;
}

.news_card:hover .card_image img {
    transform: scale(1.05) !important;
}

.no_image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    color: #adb5bd !important;
    font-size: 3rem !important;
}

.notice_badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b6b;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.new_badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* 카드 내용 */
.card_content {
    padding: 20px !important;
    display: block !important;
}

.card_meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
    font-size: 0.85rem !important;
}

.category {
    background: #e3f2fd !important;
    color: #1976d2 !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    display: inline-block !important;
}

.date {
    font-size: 1.25rem;
    color: #636161 !important;
    font-weight: 500 !important;
}

.card_title {
    margin: 0 0 12px 0 !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    display: block !important;
}

.card_title a {
    color: #1a1a1a !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    display: block !important;
}

.card_title a:hover {
    color: #007bff !important;
    text-decoration: none !important;
}

.card_excerpt {
    color: #6c757d !important;
    line-height: 1.6 !important;
    margin: 0 0 16px 0 !important;
    font-size: 0.95rem !important;
    display: block !important;
}

.card_footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.card_author {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 0.85rem;
}

.card_author i {
    color: #adb5bd;
}

.card_stats {
    display: flex;
    gap: 15px;
    align-items: center;
}

.card_stats span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6c757d;
    font-size: 0.85rem;
}

.card_stats i {
    color: #adb5bd;
}

/* 빈 상태 */
.empty_news {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.empty_icon {
    font-size: 4rem;
    color: #adb5bd;
    margin-bottom: 20px;
}

.empty_news h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #495057;
}

.empty_news p {
    margin: 0 0 30px 0;
    font-size: 1rem;
}

.btn_first_write {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn_first_write:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* 페이지네이션 */
.news_pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

/* 뉴스 검색 */
.news_search_wrap {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.news_search {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.news_search h3 {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
}

.search_form {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.search_select select {
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
    color: #495057;
    font-size: 0.95rem;
    min-width: 120px;
}

.search_input {
    flex: 1;
    display: flex;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.search_text {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 0.95rem;
}

.search_btn {
    padding: 12px 20px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search_btn:hover {
    background: #0056b3;
}

.search_close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.search_close:hover {
    background: #f8f9fa;
    color: #495057;
}

.search_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 뉴스 글쓰기 스타일 */
#news_write {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.news_write_header {
    text-align: center;
    margin-bottom: 40px;
}

.news_write_header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
}

.news_write_subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    font-weight: 400;
}

/* 폼 섹션 */
.form_section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.form_section h3 {
    font-size: 0;
    font-weight: 600;
    color: #1a1a1a;
    /* margin: 0 0 25px 0; */
    /* padding-bottom: 15px; */
    /* border-bottom: 2px solid #f0f0f0; */
}

/* 폼 그룹 */
.form_group {
    margin-bottom: 25px;
}

.form_group:last-child {
    margin-bottom: 1rem;
    /* border-bottom: 1px solid #ddd; */
}

.form_group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form_group label i {
    margin-right: 8px;
    color: #6c757d;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

/* 폼 행 (2열 레이아웃) */
.form_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 입력 필드 */
.form_group input,
.form_group select,
.form_group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #495057;
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form_group input:focus,
.form_group select:focus,
.form_group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form_group input[type="date"] {
    padding: 11px 16px;
}

.form_group input[type="file"] {
    padding: 8px 16px;
    border: 2px dashed #e9ecef;
    background: #f8f9fa;
}

.form_group input[type="file"]:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

/* 필드 정보 */
.field_info {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 8px 0 0 0;
    line-height: 1.4;
}

/* 옵션 리스트 */
.form_options {
    margin-bottom: 15px;
}

.option_list {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.option_list li {
    display: flex;
    align-items: center;
}

.option_list input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.option_list label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}

/* 제목 입력 래퍼 */
.title_input_wrapper {
    position: relative;
}

.btn_autosave {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn_autosave:hover {
    background: #e9ecef;
    color: #495057;
}

/* 임시 저장 팝업 */
#autosave_pop {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    max-height: 300px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 5px;
}

#autosave_pop strong {
    display: block;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #333;
}

#autosave_pop ul {
    max-height: 200px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

#autosave_pop li {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s ease;
}

#autosave_pop li:hover {
    background: #f8f9fa;
}

#autosave_pop li:last-child {
    border-bottom: none;
}

#autosave_pop div {
    padding: 10px 15px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.autosave_close {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.autosave_close:hover {
    background: #5a6268;
}

/* 내용 에디터 */
.content_editor {
    min-height: 300px;
}

.char_limit_info {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0 0 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.char_count_display {
    text-align: right;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 10px;
}

/* 파일 그룹 */
.file_group {
    border: 2px dashed #e9ecef;
    border-radius: 8px;
    padding: 20px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.file_group:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.file_input_wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file_input_wrapper input[type="text"] {
    margin-top: 10px;
}

.file_delete {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.file_delete input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.file_delete label {
    margin: 0;
    font-size: 0.9rem;
    color: #dc3545;
    cursor: pointer;
}

/* 폼 액션 */
.form_actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.btn_cancel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn_cancel:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn_submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.btn_submit:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn_submit:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    #news_list, #news_write {
        padding: 0;
    }
    #news_list{
        margin:0 1rem;
    }
    .news_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .news_title h1, .news_write_header h1 {
        font-size: 2rem;
    }
    
    .news_cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news_info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin: 0;
        padding: 0;
    }
    
    .search_form {
        flex-direction: column;
    }
    
    .search_select select {
        min-width: auto;
    }
    
    .form_section {
        padding: 20px;
    }
    
    .form_row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form_actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn_cancel, .btn_submit {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #news_list{
        margin:0 1rem;
    }
    .news_title h1, .news_write_header h1 {
        font-size: 1.75rem;
    }
    
    .news_subtitle, .news_write_subtitle {
        font-size: 1rem;
    }
    .row_right{
        max-width:100% !important;
    }
    .card_content {
        padding: 15px;
    }
    
    .card_title {
        font-size: 1.1rem;
    }
    
    .news_search {
        padding: 20px;
        margin: 20px;
    }
    
    .form_section {
        padding: 15px;
    }
    
    .form_section h3 {
        font-size: 1.25rem;
    }
    .row_title{
        font-size: 20px;
    }    
}

/* 뉴스 게시글 보기 스타일 */
#news_view {
    /* max-width: 800px; */
    /* margin: 0 auto; */
    /* padding: 0 20px; */
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; */
}

/* 뉴스 헤더 */
.news_view_header {
    /* margin-bottom: 40px; */
    /* padding-bottom: 30px; */
    /* border-bottom: 2px solid #f0f0f0; */
}

.news_view_meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.news_category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
}

.news_date {
    color: #636161;
    font-weight: 500;
    font-size: 1.125rem;
}

.news_view_title {
    font-size: 3.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.news_view_info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.news_author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news_author i {
    color: #adb5bd;
}

.news_stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.news_stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news_stats i {
    color: #adb5bd;
}

/* 뉴스 액션 */
.news_actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
}
.news_actions span{
    padding: 0;
}

.news_action_buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn_action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn_list {
    background: #000;
    color: #fff;
    border: 1px solid #e9ecef;
}

.btn_list:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
}

.btn_write {
    background: #040404;
    color: white;
}

.btn_write:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

.news_admin_actions {
    position: relative;
    display: inline-block;
}

.btn_more_opt {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn_more_opt:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
}

.btn_more_opt:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.more_opt {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 120px;
    overflow: hidden;
}

.more_opt.show {
    display: block !important;
}

.more_opt li {
    border-bottom: 1px solid #f8f9fa;
}

.more_opt li:last-child {
    border-bottom: none;
}

.more_opt a {
    display: block;
    padding: 12px 16px;
    color: #495057;
    text-decoration: none;
    transition: background 0.2s ease;
    font-size: 14px;
}

.more_opt a:hover {
    background: #f8f9fa;
    color: #007bff;
    text-decoration: none;
}

.more_opt a:focus {
    background: #e3f2fd;
    color: #1976d2;
    outline: none;
}

/* 뉴스 본문 */
.news_content {
    margin-bottom: 40px;
}

.news_images {
    margin-bottom: 30px;
}

.news_images img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news_body {
    line-height: 1.8;
    color: #333;
    font-size: 1rem;
    margin-bottom: 30px;
}

.news_body p {
    margin-bottom: 20px;
}

.news_body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.news_share {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
}

.btn_scrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn_scrap:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
}

/* 뉴스 반응 */
.news_reactions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
}

.btn_reaction {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn_good {
    background: #e8f5e8;
    color: #28a745;
    border-color: #d4edda;
}

.btn_good:hover {
    background: #d4edda;
    color: #1e7e34;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn_nogood {
    background: #f8e8e8;
    color: #dc3545;
    border-color: #f5c6cb;
}

.btn_nogood:hover {
    background: #f5c6cb;
    color: #c82333;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn_reaction.disabled {
    cursor: default;
    opacity: 0.7;
}

.btn_reaction.disabled:hover {
    transform: none;
}

/* 첨부파일 */
.news_attachments {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.news_attachments h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}

.attachment_list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.attachment_item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.attachment_item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.attachment_item i {
    color: #007bff;
    font-size: 1.2rem;
    margin-top: 2px;
}

.attachment_info {
    flex: 1;
}

.attachment_download {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.attachment_download:hover {
    color: #007bff;
    text-decoration: none;
}

.attachment_desc {
    margin: 5px 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.attachment_meta {
    color: #adb5bd;
    font-size: 0.85rem;
}

/* 관련링크 */
.news_links {
    margin-bottom: 30px;
    /* padding: 25px; */
    /* background: #f8f9fa; */
    /* border-radius: 12px; */
    /* border: 1px solid #e9ecef; */
}

.news_links h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}

.link_list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.link_item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
}

.link_item:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.link_item i {
    color: #9c9c9c;
    font-size: 1.2rem;
    margin-top: 6px;
}

.link_info {
    flex: 1;
}

.link_url {
    color: #333;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
}

.link_url:hover {
    color: #007bff;
    text-decoration: none;
}

.link_meta {
    color: #adb5bd;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* 목록 버튼 섹션 */
.list-button-section {
    display: flex;
    margin: 40px 0;
    text-align: center;
    justify-content: flex-end;
}

.btn-list {
    display: inline-block;
    padding: 12px 24px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-list:hover {
    background: #cf1212;
    color: #fff;
    transform: translateY(-2px);
}

/* 네비게이션 섹션 */
.navigation-section {
    margin: 40px 0;
}

.navigation-container {
    display: flex;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    flex-direction: column;
}

.nav-item {
    flex: 1;
}
.next-item{
    border-top: 1px solid #000;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #e9ecef;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-icon {
    font-size: 20px;
    color: #007bff;
    margin: 0 15px;
}

.nav-content {
    display: flex;
    min-width: 0;
    justify-content: space-between;
    padding: 15px 0 15px 50px;
}

.nav-content .nav-box{
    display:flex;
    width: 80%;
    justify-content: flex-start;
}

.nav-label {
    width: 9rem;
    min-width: 120px;
    font-size: 1.25rem;
    color: #949595;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 네비게이션 섹션의 sitenav__link 호버 효과 */
.nav-title.sitenav__link {
    position: relative;
    display: inline-block;
}

.nav-title.sitenav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: left;
}

.nav-link-none:hover .nav-title.sitenav__link::after {
    width: 100%;
}

.nav-date {
    font-size: 1.125rem;
    color: #949595;
    padding-right: 10px;
}

.next-item .nav-link {
    flex-direction: row-reverse;
}

.next-item .nav-icon {
    margin: 0 15px;
}
@media (max-width: 1023px) and (min-width: 768px) {
    .pageheader__heading.heading-lg {
        font-size: 3rem;
        line-height: 1.1;
        padding-top: 100px;
    }
    .news_view_title{
        font-size: 2rem;
        line-height: 1.1;
    }
    
}
/* 반응형 디자인 - 뉴스 보기 */
@media (max-width: 768px) {
    .pageheader__heading.heading-lg{
        font-size: 2.5rem;
        line-height: 1.1;
        text-align: center;
        padding-top: 100px;
    }
    #news_view {
        padding-top: 60px;
        padding: 0;
        margin:0 1rem;
    }
    
    .news_view_title {
        font-size: 1.8rem;
    }
    
    .news_view_info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news_actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 0;
    }
    
    .news_action_buttons {
        width: 100%;
        justify-content: center;
    }
    
    .btn_action {
        flex: 1;
        justify-content: center;
    }
    
    .news_reactions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn_reaction {
        width: 100%;
        justify-content: center;
    }
    
    .news_attachments,
    .news_links {
        padding: 20px;
    }
    
    .attachment_item,
    .link_item {
        flex-direction: column;
        gap: 10px;
    }
    /* 네비게이션 섹션 */
    .navigation-section {
        margin: 40px 0;
    }
    
    .navigation-container {
        display: flex;
        border-top: 1px solid #000;
        border-bottom: 1px solid #000;
        flex-direction: column;
    }
    
    .nav-item {
        flex: 1;
    }
    .next-item{
        border-top: 1px solid #000;
    }
    
    .nav-link {
        display: flex;
        align-items: center;
        padding: 20px;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        text-decoration: none;
        color: #333;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: #e9ecef;
        border-color: #007bff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .nav-icon {
        font-size: 20px;
        color: #007bff;
        margin: 0 15px;
    }
    
    .nav-content {
        display: flex;
        min-width: 0;
        justify-content: space-between;
        padding: 15px 0 15px 50px;
    }
    
    .nav-content .nav-box{
        display:flex;
        width: 80%;
        justify-content: space-between;
    }
    
    .nav-label {
        width: 2rem;
        min-width: 120px;
        font-size: 1.25rem;
        color: #949595;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .nav-title {
        font-size: 1.5rem;
        font-weight: 600;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .nav-date{
        font-size: 1rem;
    }
    .btn-list {
        display: inline-block;
        padding: 12px 24px;
        background: #000;
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s 
    ease;
    }
}

@media (max-width: 480px) {
    .pageheader__heading.heading-lg{
        
    }
    .news_view_title {
        font-size: 1.5rem;
    }
    
    .news_view_meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news_attachments,
    .news_links {
        padding: 0;
    }
    /* 네비게이션 섹션 */
    .navigation-section {
        margin: 40px 0;
    }
    
    .navigation-container {
        display: flex;
        border-top: 1px solid #000;
        border-bottom: 1px solid #000;
        flex-direction: column;
    }
    
    .nav-item {
        flex: 1;
    }
    .next-item{
        border-top: 1px solid #000;
    }
    
    .nav-link {
        display: flex;
        align-items: center;
        padding: 20px;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        text-decoration: none;
        color: #333;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: #e9ecef;
        border-color: #007bff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .nav-icon {
        font-size: 20px;
        color: #007bff;
        margin: 0 15px;
    }
    
    .nav-content {
        display: flex;
        min-width: 0;
        justify-content: space-between;
        padding: 15px 0 15px 0;
        align-items: flex-start;
    }
    
    .nav-content .nav-box{
        display:flex;
        width: 75%;
        flex-direction: column;
    }
    
    .nav-label {
        width: 1rem;
        min-width: 96px;
        font-size: 1rem;
        color: #949595;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .nav-title {
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .nav-date{
        font-size: 0.8rem;
        padding: 0;
    }
    .list-button-section {
        margin: 20px 0;
    }
    .btn-list {
        display: inline-block;
        font-size: 0.8rem;
        padding: 6px 14px;
        background: #000;
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s 
    ease;
    }
}

/* 디버깅용 스타일 - 뉴스 게시판이 로드되었는지 확인 */
#news_list::before {
    display:none;
    content: "뉴스 게시판 CSS 로드됨 - " attr(data-time) !important;
    position: fixed !important;
    top: 10px !important;
    right: 10px !important;
    background: #28a745 !important;
    color: white !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    z-index: 9999 !important;
    /* display: block !important; */
}

/* CSS 로드 확인을 위한 강제 스타일 */
body {
    /* background: #f8f9fa !important; */
}

/* 뉴스 게시판 강제 표시 */
#news_list {
    display: block !important;
    visibility: visible !important;
    min-height: 200px !important;
}

/* 기존 게시판 스타일 완전 제거 */
.tbl_head01, .tbl_wrap, .board_list, .board_view, .board_write {
    display: none !important;
    visibility: hidden !important;
}

/* 뉴스 게시판 강제 표시 */
#news_view, #news_write {
    display: block !important;
    visibility: visible !important;
}
