@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;
}

/* 공지사항 섹션 */
.notice_box {
    width: 100%;
    margin-top: 40px;
    padding-bottom: 40px;
}

.search {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.total_count {
    font-size: 1.1rem;
    color: #333;
}

.search_form {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.search_form select {
    width: 120px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    background: #fff;
    outline: none;
}

.search_form input {
    width: 250px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    outline: none;
}

.search_form button {
    width: 40px;
    height: 40px;
    background: #0099d9;
    border: none;
    border-radius: 5px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search_form button:hover {
    background: #007bb5;
}

.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;
}

.table_box {
    width: 100%;
    margin-top: 20px;
}

.table_box table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.table_box thead tr th {
    height: 50px;
    background: #f5f5f5;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    border-top: 2px solid #666;
    border-bottom: 1px solid #ccc;
}

.table_box tbody tr {
    height: 50px;
    border-bottom: 1px solid #e0e0e0;
}

.table_box tbody tr td {
    color: #333;
    font-size: 1rem;
}

.table_box tbody tr td a {
    color: #0099d9;
    transition: color 0.3s ease;
}

.table_box tbody tr td a:hover {
    color: #007bb5;
    text-decoration: underline;
}

.pagination {
    text-align: center;
    margin-top: 20px;
    font-size: 1rem;
}

.pagination span {
    margin: 0 5px;
}

.pagination a {
    color: #0099d9;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.pagination a:hover {
    background: #e0f7ff;
}

.pagination b {
    color: #333;
    font-weight: 700;
    padding: 5px 10px;
    background: #e0f7ff;
    border-radius: 5px;
}

.table_btn {
    margin-top: 20px;
    text-align: right;
}

.table_btn a {
    display: inline-block;
    padding: 10px 20px;
    background: #0099d9;
    color: #fff;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    transition: background 0.3s ease;
}

.table_btn a:hover {
    background: #007bb5;
}

/* 반응형 디자인 */
@media screen and (max-width: 768px) {
    .top_text {
        font-size: 2.5rem;
    }
    .notice_box {
        padding: 0 15px;
    }
    .search_form {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }

    .search_form select,
    .search_form input {
        width: 100%;
    }

    .table_box table {
        font-size: 0.9rem;
    }

    .table_box thead tr th {
        font-size: 1rem;
    }

    .table_box tbody tr td {
        font-size: 0.9rem;
    }

    .pagination {
        font-size: 0.9rem;
    }

    .table_btn a {
        width: 100%;
        text-align: center;
    }
}