/* 언어설정 */
@charset 'utf-8';

@font-face {
    font-family: 'SUIT-Regular';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'KCCHyerim-Regular';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2411-3@1.0/KCCHyerim-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* 전체설정 */
* {
    margin: 0;
    padding: 0;
    font-family: 'SUIT-Regular';
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--main-text);
}

img {
    vertical-align: bottom;
}

html,
body {
    overflow-x: hidden;
    scroll-behavior: smooth;

}

body {
    max-width: 100%;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
    /* 스크롤 막기 */
    touch-action: none;
    /* 터치 시 흔들림 방지 (모바일 UX 향상) */
}

/* 색상설정 */
:root {
    --main-navi: #204B62;
    --main-text: #333;
    --main-white: #fff;
}

/* 상세설정 ---------------------------------------------------------------------------- */

main {
    margin-top: 60px;
}

.txt {
    background-image: url(/img/news_bg.png);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    width: 100%;
    height: 400px;
    /* 또는 원하는 높이 */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.txt h1 {
    font-size: 50px;
    margin-top: 50px;
    font-weight: bold;
    box-shadow: inset 0 -20px 0 rgba(255, 209, 211, 0.5);
    display: inline-block;
    color: #fff;
}

/* 뉴스 상세내용 */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.news-header {
    border-top: 2px solid #000;
    border-bottom: 1px solid #ccc;
    padding: 20px 0;
    margin-bottom: 20px;
}

.news-header h1 {
    font-size: 30px;
    margin: 0 0 10px;
}

.news-meta {
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-meta .label {
    font-weight: bold;
}

.news-meta .divider {
    color: #aaa;
}

.news-meta .date {
    font-weight: 500;
}


.news-image {
    width: 100%;
    max-width: 1000px;
    margin: 30px auto 5px;
    position: relative;
    padding-top: 56.2%;
    overflow: hidden;

}

.news-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.caption {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.news-content {
    font-size: 18px;
    line-height: 1.8;
}

.source {
    margin-top: 40px;
    font-size: 14px;
    text-align: right;
    color: #555;
}

.source a {
    color: #0074cc;
    text-decoration: none;
}
.file-box {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
    background-color: #fff;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.file-icon {
    font-size: 40px;
    color: #0074cc;
}

.file-details {
    flex: 1;
}

.file-label {
    font-weight: bold;
    margin-bottom: 5px;
}

.file-name {
    font-size: 16px;
}

.file-name a {
    color: #333;
    font-weight: 500;
    text-decoration: underline;
}

.file-name a:hover {
    color: #204B62;
}

.file-size {
    margin-left: 10px;
    font-size: 13px;
    color: #888;
}

.btn-back {
    display: inline-block;
    padding: 10px 30px;
    margin-top: 15px;
    background: #204B62;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-back:hover {
    background: #204B62;
    color: #fff;
}

.btn-edit, .btn-delete {
    display: inline-block;
    padding: 10px 30px;
    margin-top: 15px;
    margin-left: 4px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
}

/* 수정 버튼 */
.btn-edit {
    background: #3191e3;
    color: #fff;
}
.btn-edit:hover {
    background: #2676b9;
    color: #fff;
}

/* 삭제 버튼 */
.btn-delete {
    background: #ed514f;
    color: #fff;
}
.btn-delete:hover {
    background: #b32323;
    color: #fff;
}

/* 미디어 쿼리 구간------------------------------------------------------------------------------------- */

/* PC 전용 */
@media screen and (min-width: 1440px) {}

/* 노트북 전용 */
@media screen and (min-width: 1025px) and (max-width: 1439px) {}

/* 태블릿 전용 */
@media screen and (min-width: 768px) and (max-width: 1024px) {}

/* 모바일 전용 */
@media screen and (min-width: 481px) and (max-width: 767px) {
    .news-header h1{
        font-size: 15px;
    }

    .news-meta{
        font-size: 11px;
    }
}

@media screen and (max-width: 480px) and (orientation: portrait) {

    .txt h1{
        font-size: 35px;
    }


    .news-header h1{
        font-size: 15px;
    }

    .news-meta{
        font-size: 11px;
    }

    .news-content
    {
        font-size: 12px;
    }

    .news-content pre {
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    .txt{
        height: 300px;
    }

    .file-label {
        font-size: 11px;
    }

    .file-name a{
        font-size: 11px;
    }
}