@charset "utf-8";
@import url('https://fonts.googleapis.com/css?family=Nanum+Gothic:400,700|Nanum+Myeongjo');
@import url(https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@1.0/nanumsquare.css);

* {
    margin: 0;
    padding: 0;
    font-family: 'NanumSquareNeoLight', sans-serif;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

.top_img {
    height: 550px;
    background: url(../img/main_news.jpg) no-repeat center/cover;
    margin-top: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top_text {
    font-size: 4.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.contents_box {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.right_box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.section_title {
    width: 100%;
    max-width: 1200px;
    margin-top: 80px;
    text-align: center;
}

.section_title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section_title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: linear-gradient(to right, #2786e7, #3399ff);
    border-radius: 2px;
}

.section_title span {
    display: block;
    font-size: 1.125rem;
    color: #999;
    margin-top: 10px;
}
/* 공지사항 상세 섹션 */
.notice_box {
    width: 100%;
    margin-top: 40px;
    padding-bottom: 40px;
}

.top_button {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.top_button a {
    display: inline-block;
    padding: 8px 16px;
    background: #0099d9;
    color: #fff;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    transition: background 0.3s ease;
}

.top_button a:hover {
    background: #007bb5;
}

/* 비밀번호 입력 폼 */
.password_form {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.password_form form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.password_form input[type="password"] {
    width: 250px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    outline: none;
}

.password_form button {
    width: 100px;
    height: 40px;
    background: #0099d9;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}

.password_form button:hover {
    background: #007bb5;
}

.title_view_box {
    width: 100%;
    min-height: 60px;
    border-top: 2px solid #666;
    background: #f5f5f5;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.title_view_box p {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.action_buttons {
    display: flex;
    gap: 10px;
}

.action_buttons a {
    font-size: 1rem;
    color: #666;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.action_buttons .edit_btn:hover {
    background: #e0f7ff;
    color: #0099d9;
    border-color: #0099d9;
}

.action_buttons .delete_btn:hover {
    background: #ffe0e0;
    color: #d32f2f;
    border-color: #d32f2f;
}

.date_view_box {
    width: 100%;
    height: 46px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #ccc;
    gap: 20px;
}

.date_view_box span {
    font-size: 1rem;
    color: #666;
}

.date_view_box .file_download a {
    color: #0099d9;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.date_view_box .file_download a:hover {
    color: #007bb5;
}

.contents_view_box {
    width: 100%;
    min-height: 360px;
    padding: 20px;
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
}

.comment_title {
    width: 100%;
    padding: 10px 20px;
    border-bottom: 1px solid #ccc;
    margin-top: 20px;
}

.comment_title p {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

.comment_title span {
    color: #0099d9;
}

#replyList {
    width: 100%;
    padding: 0 20px;
}

.comment_contents_none {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 1rem;
}

.comment_contents {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.comment_contents .comment {
    display: flex;
    gap: 15px;
    align-items: center;
}

.comment_contents .comment span:nth-child(1) {
    font-weight: 700;
    color: #333;
}

.comment_contents .comment span:nth-child(2) {
    flex: 1;
    color: #333;
}

.comment_contents .comment span:nth-child(3) {
    color: #666;
    font-size: 0.9rem;
}

.comment_write {
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9f9f9;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.comment_write .nickname {
    width: 100px;
    font-weight: 700;
    color: #333;
}

.comment_write .nickname p {
    font-size: 1rem;
}

.comment_write input[type="text"] {
    flex: 1;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    outline: none;
}

.comment_write input[type="button"] {
    width: 100px;
    height: 40px;
    background: #0099d9;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}

.comment_write input[type="button"]:hover {
    background: #007bb5;
}

.prev_view_box,
.next_view_box {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    border-bottom: 1px solid #ccc;
    gap: 20px;
}

.prev_view_box {
    border-top: 2px solid #666;
}

.next_view_box {
    border-bottom: 2px solid #666;
}

.prev_view_box div:first-child,
.next_view_box div:first-child {
    width: 70px;
    font-size: 1rem;
    font-weight: 700;
    color: #333;
}

.prev_view_box a,
.next_view_box a {
    font-size: 1rem;
    color: #0099d9;
    transition: color 0.3s ease;
}

.prev_view_box a:hover,
.next_view_box a:hover {
    color: #007bb5;
    text-decoration: underline;
}

.prev_view_box span,
.next_view_box span {
    font-size: 1rem;
    color: #666;
}

/* 반응형 디자인 */
@media screen and (max-width: 768px) {
    .top_text {
        font-size: 2.5rem;
    }
    .notice_box {
        padding: 0 15px;
    }

    .password_form form {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .password_form input[type="password"],
    .password_form button {
        width: 100%;
    }

    .title_view_box {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .title_view_box p {
        font-size: 1.2rem;
    }

    .action_buttons {
        width: 100%;
        justify-content: flex-end;
    }

    .action_buttons a {
        font-size: 0.9rem;
        padding: 4px 8px;
    }

    .date_view_box {
        flex-wrap: wrap;
        gap: 10px;
    }

    .date_view_box span {
        font-size: 0.9rem;
    }

    .contents_view_box {
        font-size: 0.9rem;
    }

    .comment_title p {
        font-size: 1rem;
    }

    .comment_contents .comment {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .comment_write {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment_write .nickname,
    .comment_write input[type="text"],
    .comment_write input[type="button"] {
        width: 100%;
    }

    .prev_view_box div:first-child,
    .next_view_box div:first-child {
        font-size: 0.9rem;
    }

    .prev_view_box a,
    .next_view_box a,
    .prev_view_box span,
    .next_view_box span {
        font-size: 0.9rem;
    }

    .table_btn {
        flex-direction: column;
        gap: 10px;
    }

    .table_btn a {
        width: 100%;
        text-align: center;
    }
}